/* ==========================================================================
   Tours Bénies — section layouts
   Depends on tokens.css + main.css
   ========================================================================== */

/* --- Hero -----------------------------------------------------------------
   The single most important structural decision on this site: the hero forks
   immediately. Tours Bénies is two businesses under one brand (rentals with
   "Making Your Edible Incredible", hosting with "Let's Break the Ice") and
   the two buyers want different things. A blended hero serves neither, so
   the fork happens above the fold rather than three sections down.
   -------------------------------------------------------------------------- */
.tb-hero {
  position: relative;
  min-height: min(92svh, 900px);
  display: grid;
  align-items: center;
  padding-block: calc(var(--tb-header-h) + var(--tb-space-6)) var(--tb-space-7);
  background: var(--tb-forest-700);
  color: var(--tb-cream);
  overflow: hidden;
  isolation: isolate;
}

/* Warm wash so the forest never reads flat or cold. */
.tb-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(72% 58% at 78% 18%, rgba(235, 161, 136, .26), transparent 62%),
    radial-gradient(58% 50% at 12% 88%, rgba(180, 137, 79, .30), transparent 66%),
    var(--tb-forest-700);
}

/* Oversized tower mark, bled off the right edge as a watermark.
   This is the client's real mark (cream variant) held at low opacity — not a
   redrawn approximation. `height:auto` keeps it from squashing, since the
   img carries intrinsic 473×797 dimensions. */
.tb-hero__mark {
  position: absolute; z-index: -1;
  right: -6%; bottom: -12%;
  width: min(42vw, 430px);
  height: auto;
  opacity: .10;
  pointer-events: none;
  user-select: none;
}

/* The hero is a grid, so .tb-wrap is a grid ITEM — and grid items default to
   min-width:auto, refusing to shrink below their content. On a 375px phone
   that forced the wrap to 536px and pushed the headline off-screen. */
.tb-hero > .tb-wrap { min-width: 0; }

/* A rem max, not ch: `ch` is measured against the body font, so it sized the
   column for Nunito Sans while the headline set in Playfair at 3× that. */
.tb-hero__inner { display: grid; gap: var(--tb-space-3); max-width: 56rem; min-width: 0; }

.tb-hero__title { font-size: var(--tb-size-hero); }

.tb-hero__slogan {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--tb-font-display);
  font-style: italic;
  font-size: var(--tb-size-lead);
  color: var(--tb-gold-300);
}
.tb-hero__slogan::before {
  content: ""; width: 2rem; height: 1px; background: currentColor; opacity: .6;
}

/* The fork itself. Two peers, not a primary and a secondary. */
.tb-hero__fork {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--tb-space-2);
  margin-top: var(--tb-space-3);
  max-width: 640px;
}
.tb-fork-card {
  display: grid; gap: .375rem;
  padding: 1.125rem 1.375rem;
  border: 1px solid var(--tb-rule-dark);
  border-radius: var(--tb-radius-md);
  background: rgba(251, 248, 244, .05);
  backdrop-filter: blur(6px);
  transition: background var(--tb-dur-base) var(--tb-ease),
              border-color var(--tb-dur-base) var(--tb-ease),
              transform var(--tb-dur-base) var(--tb-ease);
}
.tb-fork-card:hover {
  background: rgba(251, 248, 244, .10);
  border-color: var(--tb-gold-300);
  transform: translateY(-3px);
}
.tb-fork-card__k {
  font-size: var(--tb-size-micro); font-weight: 800;
  letter-spacing: var(--tb-track-eyebrow); text-transform: uppercase;
  color: var(--tb-gold-300);
}
.tb-fork-card__v {
  font-family: var(--tb-font-display); font-size: 1.375rem; color: var(--tb-cream);
}
.tb-fork-card__m { font-size: var(--tb-size-small); color: rgba(251,248,244,.66); }

/* --- Two doors (What We Do) ----------------------------------------------- */
.tb-doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: var(--tb-space-4);
}
.tb-door {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: var(--tb-space-3);
  background: var(--tb-surface-raised);
  border: 1px solid var(--tb-rule);
  border-radius: var(--tb-radius-lg);
  padding: var(--tb-space-3);
  box-shadow: var(--tb-shadow-sm);
  transition: box-shadow var(--tb-dur-base) var(--tb-ease),
              transform var(--tb-dur-base) var(--tb-ease),
              border-color var(--tb-dur-base) var(--tb-ease);
}
.tb-door:hover {
  box-shadow: var(--tb-shadow-lg);
  transform: translateY(-4px);
  border-color: var(--tb-gold-300);
}
.tb-door__body { display: grid; gap: var(--tb-space-2); align-content: start; padding: 0 .5rem .5rem; }
.tb-door__slogan {
  font-family: var(--tb-font-display); font-style: italic;
  color: var(--tb-gold-700); font-size: 1.0625rem;
}
.tb-door .tb-link { margin-top: auto; padding-top: var(--tb-space-2); }

/* --- Principles ------------------------------------------------------------
   Her brief said the same thing three times over ("Welcome", "Why Tours
   Bénies", "The Tours Bénies Experience"). Consolidated into one section
   built on the triad she wrote herself: décor, hosting, engagement.
   -------------------------------------------------------------------------- */
.tb-principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--tb-space-4);
  margin-top: var(--tb-space-6);
}
.tb-principle { display: grid; gap: var(--tb-space-2); align-content: start; }
.tb-principle__n {
  font-family: var(--tb-font-display);
  font-size: 2.75rem; line-height: 1;
  /* Solid gold first: if background-clip:text is unavailable, the numeral is
     still legible rather than invisible. Only go transparent once the clip
     is known to work. */
  color: var(--tb-gold-700);
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .tb-principle__n {
    color: transparent;
    background: var(--tb-gold-metal);
    background-clip: text; -webkit-background-clip: text;
  }
}
.tb-principle__t { font-size: var(--tb-size-h3); }
.tb-principle::after {
  content: ""; height: 1px; background: var(--tb-rule); margin-top: var(--tb-space-1);
}

/* --- Split (Story / Ice-breaking) ----------------------------------------- */
.tb-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(2rem, 1rem + 5vw, 5rem);
  align-items: center;
}
.tb-split--reverse > *:first-child { order: 2; }
@media (max-width: 719px) { .tb-split--reverse > *:first-child { order: 0; } }

.tb-split__media { position: relative; }

/* Gold hairline offset frame behind the portrait. The frame hangs outside its
   box, so its offset is capped by the page gutter: a fixed 1.5rem pushed it
   4px past a 390px screen, where the gutter is only 20px. */
.tb-split__media--framed::before {
  --_off: min(1.5rem, calc(var(--tb-gutter) - 4px));
  content: "";
  position: absolute;
  inset: var(--_off) calc(var(--_off) * -1) calc(var(--_off) * -1) var(--_off);
  border: 1px solid var(--tb-gold-500);
  border-radius: var(--tb-radius-md);
  opacity: .5;
  pointer-events: none;
}
.tb-split__media--framed > * { position: relative; }

/* --- Stat / trust strip ---------------------------------------------------- */
.tb-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: var(--tb-space-4);
  text-align: center;
}
.tb-stat__n {
  font-family: var(--tb-font-display);
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
  line-height: 1;
  color: var(--tb-gold-300);
}
.tb-stat__l {
  margin-top: .625rem;
  font-size: var(--tb-size-micro); font-weight: 700;
  letter-spacing: var(--tb-track-eyebrow); text-transform: uppercase;
  color: rgba(251, 248, 244, .70);
}

/* --- Closing CTA ----------------------------------------------------------- */
.tb-cta {
  position: relative;
  text-align: center;
  background: var(--tb-blush-50);
  overflow: hidden;
}
.tb-cta__slogans {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .75rem var(--tb-space-3);
  margin-top: var(--tb-space-4);
  font-family: var(--tb-font-display); font-style: italic;
  color: var(--tb-gold-700);
}
.tb-cta__slogans span { display: inline-flex; align-items: center; gap: var(--tb-space-3); }
.tb-cta__slogans span:not(:last-child)::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--tb-blush-500);
}

/* --- Footer lockup --------------------------------------------------------
   The client's primary logo is a stacked, near-square mark. The footer is the
   only place on the page with the vertical room to show it whole, at a size
   where the wordmark inside it is actually readable. */
.tb-footer__logo {
  width: min(190px, 46vw);
  height: auto;
  margin: 0 auto var(--tb-space-4);
  opacity: .9;
}
