/* ==========================================================================
   GLM homepage options — shared design system
   Tokens · reset · typography · shared components (header, footer, reviews,
   logo carousel, before/after, form, sticky bar) · accessibility.
   Each option-N.css adds its own layout + art direction on top of this.
   ========================================================================== */

/* ---------- Design tokens (brief palette) ---------- */
:root {
  /* Warm paper base — never pure #ffffff as the dominant field */
  --paper:        #f3eada;
  --paper-soft:   #f8f1e1;
  --paper-deep:   #ece0c8;
  --paper-card:   #faf5e9;

  /* Greens: trust, proof, navigation, sticky CTAs, science */
  --sage:         #8a9065;
  --cypress:      #545a3d;
  --cypress-deep: #3d4229;

  /* Quiets: secondary UI, captions, rules, panels */
  --shiitake:     #796856;
  --stucco:       #a49382;

  /* Ink */
  --jet:          #212322;
  --jet-60:       rgba(33, 35, 34, .62);
  --jet-40:       rgba(33, 35, 34, .40);

  /* Derived */
  --line:         rgba(84, 90, 61, .18);
  --line-soft:    rgba(121, 104, 86, .20);
  --rule:         rgba(33, 35, 34, .12);
  --focus:        #545a3d;

  /* Type */
  --serif: "EB Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  Inter, "Helvetica Neue", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Shape + motion */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 18px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(33,35,34,.05), 0 2px 8px rgba(33,35,34,.05);
  --shadow:    0 6px 24px rgba(33,35,34,.10);
  --shadow-lg: 0 18px 50px rgba(33,35,34,.16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --maxw: 1240px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--jet);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* guard: never allow horizontal scroll from flex/grid tracks or off-canvas elements. `clip` (not `hidden`) keeps position:sticky working. */
}
img, svg, video { max-width: 100%; display: block; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
figure { margin: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 26px; }
.section { padding-block: clamp(56px, 8vw, 108px); }
.section--tight { padding-block: clamp(44px, 5vw, 72px); }
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cypress);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: .55;
  display: inline-block;
}
.eyebrow--plain::before { display: none; }
.lede { font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.6; color: var(--jet-60); max-width: 56ch; }
.serif-accent { font-family: var(--serif); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--cypress); --fg: #f7efde; --bd: var(--cypress);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  letter-spacing: .01em;
  background: var(--bg); color: var(--fg);
  border: 1.5px solid var(--bd); border-radius: 999px;
  cursor: pointer; text-align: center;
  transition: transform .15s var(--ease), background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn--ghost { --bg: transparent; --fg: var(--cypress); }
.btn--ghost:hover { --bg: rgba(84,90,61,.08); }
.btn--light { --bg: var(--paper-soft); --fg: var(--cypress); --bd: var(--line); }
.btn--light:hover { --bg: #fff; }
.btn--ink { --bg: var(--jet); --fg: var(--paper-soft); --bd: var(--jet); }
.btn--whatsapp { --bg: #1f7a4d; --fg: #fff; --bd: #1f7a4d; }
.btn--block { display: flex; width: 100%; }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 16px; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn .ico { width: 18px; height: 18px; flex: none; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Skip link ---------- */
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--jet); color: var(--paper-soft); padding: 12px 18px; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* ---------- Header / nav (shared chrome; options tweak colour) ---------- */
.tcl-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(243, 234, 218, .82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.tcl-header[data-scrolled="true"] { box-shadow: 0 4px 20px rgba(33,35,34,.06); }
.tcl-header__row { display: flex; align-items: center; gap: 24px; height: 70px; }
.tcl-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; letter-spacing: .02em; color: var(--cypress-deep); }
.tcl-logo svg, .tcl-logo img { height: 30px; width: auto; }
.tcl-nav { display: flex; align-items: center; gap: 26px; margin-inline: auto 0; }
.tcl-nav a { font-size: 14.5px; font-weight: 500; color: var(--jet-60); position: relative; padding: 6px 0; transition: color .15s var(--ease); }
.tcl-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--cypress); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.tcl-nav a:hover { color: var(--cypress); }
.tcl-nav a:hover::after { transform: scaleX(1); }
.tcl-header__actions { display: flex; align-items: center; gap: 10px; }
.tcl-header__actions .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--cypress); cursor: pointer; transition: background-color .15s var(--ease); }
.icon-btn:hover { background: rgba(84,90,61,.08); }
.icon-btn svg { width: 19px; height: 19px; }

/* Hamburger — mobile only */
.nav-toggle { display: none; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 120;
  visibility: hidden; pointer-events: none;
  overflow: hidden; /* clip the translated off-canvas panel so it never adds horizontal scroll */
}
.mobile-drawer__backdrop { position: absolute; inset: 0; background: rgba(33,35,34,.45); opacity: 0; transition: opacity .25s var(--ease); }
.mobile-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 380px);
  background: var(--paper-soft); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .3s var(--ease);
  display: flex; flex-direction: column; padding: 22px 24px 28px;
}
.mobile-drawer[data-open="true"] { visibility: visible; pointer-events: auto; }
.mobile-drawer[data-open="true"] .mobile-drawer__backdrop { opacity: 1; }
.mobile-drawer[data-open="true"] .mobile-drawer__panel { transform: translateX(0); }
.mobile-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer nav a { font-family: var(--serif); font-size: 21px; color: var(--jet); padding: 11px 4px; border-bottom: 1px solid var(--rule); }
.mobile-drawer nav a:hover { color: var(--cypress); }
.mobile-drawer__cta { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; }

/* ---------- Press / logo carousel (shared) ---------- */
.logo-rail { position: relative; }
.logo-rail__viewport { overflow: hidden; }
.logo-rail__track {
  display: flex; align-items: center; gap: clamp(28px, 5vw, 64px);
  will-change: transform;
}
.logo-rail__track img {
  height: clamp(22px, 2.6vw, 30px); width: auto; opacity: .72;
  filter: grayscale(1) brightness(.9) contrast(.95);
  transition: opacity .2s var(--ease);
}
.logo-rail__track img:hover { opacity: 1; }
.logo-rail__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper-soft); color: var(--cypress); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; z-index: 2;
  transition: background-color .15s var(--ease), box-shadow .15s var(--ease);
}
.logo-rail__btn:hover { background: #fff; box-shadow: var(--shadow-sm); }
.logo-rail__btn[disabled] { opacity: .35; cursor: not-allowed; }
.logo-rail__btn--prev { left: -8px; }
.logo-rail__btn--next { right: -8px; }
.logo-rail__btn svg { width: 16px; height: 16px; }

/* ---------- Reviews (shared) ---------- */
.reviews { position: relative; }
.reviews__viewport { overflow: hidden; }
.reviews__track { display: flex; gap: 22px; transition: transform .45s var(--ease); will-change: transform; }
.review-card {
  flex: 0 0 auto; width: clamp(300px, 32vw, 380px);
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-sm);
}
.review-card__stars { color: #c98a2b; letter-spacing: 2px; font-size: 15px; }
.review-card__body { font-size: 15.5px; line-height: 1.6; color: var(--jet); }
.review-card__meta { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--rule); }
.review-card__avatar { width: 38px; height: 38px; border-radius: 999px; background: var(--paper-deep); color: var(--cypress); font-family: var(--serif); font-size: 17px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.review-card__who { font-weight: 600; font-size: 14px; }
.review-card__src { font-size: 12.5px; color: var(--jet-40); }
.reviews__controls { display: flex; align-items: center; gap: 12px; }
.reviews__dots { display: flex; gap: 8px; }
.reviews__dot { width: 8px; height: 8px; border-radius: 999px; border: none; background: var(--line-soft); cursor: pointer; padding: 0; transition: background-color .2s var(--ease), transform .2s var(--ease); }
.reviews__dot[data-active="true"] { background: var(--cypress); transform: scale(1.25); }

/* aggregate rating chip */
.rating-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--paper-card); border: 1px solid var(--line); font-size: 13.5px; }
.rating-chip strong { font-family: var(--serif); font-size: 17px; color: var(--cypress-deep); }
.rating-chip .src { color: var(--jet-40); font-size: 12px; }

/* ---------- Before / after slider (shared) ---------- */
.ba-slider {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: #111; user-select: none; -webkit-user-select: none; touch-action: pan-y;
  box-shadow: var(--shadow);
}
.ba-slider__img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-slider__after-wrap { position: absolute; inset: 0; }
.ba-slider__before-wrap { position: absolute; inset: 0; overflow: hidden; width: 50%; }
.ba-slider__before-wrap .ba-slider__img { height: 100%; }
.ba-slider__handle { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.85); transform: translateX(-1px); pointer-events: none; }
.ba-slider__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px;
  transform: translate(-50%, -50%); border-radius: 999px; background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}
.ba-slider__handle::before {
  content: "⇆"; position: absolute; top: 50%; left: 50%; z-index: 2; transform: translate(-50%, -50%);
  color: var(--cypress-deep); font-size: 17px; font-weight: 700;
}
.ba-slider__tag { position: absolute; top: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(33,35,34,.62); color: #f7efde; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.ba-slider__tag--before { left: 12px; }
.ba-slider__tag--after { right: 12px; }
.ba-slider__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

/* ---------- Form (shared) ---------- */
.tcl-form { display: grid; gap: 16px; }
.tcl-form .row { display: grid; gap: 16px; }
.tcl-field { display: flex; flex-direction: column; gap: 7px; }
.tcl-field label { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--shiitake); text-transform: uppercase; }
.tcl-field input, .tcl-field textarea, .tcl-field select {
  width: 100%; padding: 13px 15px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-soft); background: var(--paper-card);
  font-size: 15px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.tcl-field input:focus, .tcl-field textarea:focus, .tcl-field select:focus { outline: none; border-color: var(--cypress); box-shadow: 0 0 0 3px rgba(84,90,61,.12); }
.tcl-field textarea { min-height: 110px; resize: vertical; }
.honeypot { position: absolute !important; left: -9999px !important; }

/* ---------- Footer (shared) ---------- */
.tcl-footer { background: var(--cypress-deep); color: #efe6d2; }
.tcl-footer a { color: rgba(239,230,210,.78); transition: color .15s var(--ease); }
.tcl-footer a:hover { color: #fff; }
.tcl-footer__top { display: grid; gap: 40px; padding-block: clamp(48px, 6vw, 72px); }
.tcl-footer__brand .tcl-logo { color: #f3eada; }
.tcl-footer h4 { font-family: var(--sans); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: #c9bf9f; margin-bottom: 14px; font-weight: 600; }
.tcl-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.tcl-footer__cols > div { min-width: 0; }
.tcl-footer__cols ul { display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.tcl-footer__bottom { border-top: 1px solid rgba(239,230,210,.16); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(239,230,210,.62); }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(239,230,210,.22); display: inline-flex; align-items: center; justify-content: center; }
.socials a:hover { background: rgba(239,230,210,.1); }
.socials svg { width: 17px; height: 17px; }
.tcl-footer__news { min-width: 0; display: flex; gap: 8px; }
.tcl-footer__news input { min-width: 0; flex: 1 1 auto; }

/* ---------- Sticky mobile booking bar ---------- */
.sticky-book {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(243, 234, 218, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.sticky-book .btn { flex: 1; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Decorative ---------- */
.hairline { height: 1px; background: var(--rule); border: 0; }
.tagline-rule { display: flex; align-items: center; gap: 14px; color: var(--shiitake); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.tagline-rule::before, .tagline-rule::after { content: ""; height: 1px; flex: 1; background: var(--line); }

/* ---------- Responsive ---------- */
@media (min-width: 760px) {
  .tcl-form .row.two { grid-template-columns: 1fr 1fr; }
  .tcl-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .tcl-nav { display: none; }
  .tcl-header__actions .btn--whatsapp { display: none; }
  .nav-toggle { display: inline-flex; }
  .tcl-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}
@media (max-width: 760px) {
  .tcl-header__actions .btn:not(.icon-btn) { display: none; }
  .tcl-header__actions .icon-btn { display: inline-flex; }
  .sticky-book { display: flex; }
  body { padding-bottom: 76px; }
  .tcl-form .row.two { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .container { padding-inline: 20px; }
  .tcl-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .reviews__track { transition: none !important; }
}
