/* ── Layout & typography primitives ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: var(--section-y); overflow-x: clip; }
.section > .container { position: relative; z-index: 1; }
.section--ivory { background: var(--ivory); --bd: var(--bd-ivory); }
.section--champagne { background: var(--champagne); --bd: var(--bd-champagne); }
.section--green { background: var(--green); --bd: var(--bd-green); color: var(--light); }
.section--pine { background: var(--pine); --bd: var(--bd-pine); color: var(--light); }

.backdrop { top: clamp(2rem, 6vw, 5rem); }
.backdrop--low { top: auto; bottom: clamp(1rem, 4vw, 3rem); }

.display {
  max-width: 15ch;
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-variation-settings: 'opsz' 96;
}

/* Split words: each word sits in a mask so it can rise into view. */
.split .line { display: block; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.split .w > span { display: inline-block; will-change: transform; }

.statement-sm {
  max-width: 30ch;
  font-size: var(--fs-statement);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.arch { overflow: hidden; border-radius: var(--arch); background: var(--bd, var(--champagne)); }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* ── Logo ──────────────────────────────────────────────────────────────── */
.logo { display: block; position: relative; height: 64px; aspect-ratio: 720 / 285; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity var(--t) var(--ease); }
.logo--auto .logo__light { opacity: 0; }
.nav--green .logo--auto .logo__light, .nav--pine .logo--auto .logo__light { opacity: 1; }
.nav--green .logo--auto .logo__color, .nav--pine .logo--auto .logo__color { opacity: 0; }
.nav.is-open .logo--auto .logo__color { opacity: 1; }
.nav.is-open .logo--auto .logo__light { opacity: 0; }
.logo--footer { height: clamp(88px, 9vw, 120px); }

/* ── Buttons: flat, fully round ────────────────────────────────────────── */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--light);
  --btn-fill: var(--green);
  position: relative;
  display: inline-flex; align-items: center; gap: 0.85rem;
  min-height: 3.4rem;
  padding: 0 1.7rem;
  font-size: 1rem; font-weight: 600; letter-spacing: -0.005em;
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--t) var(--ease), transform var(--t-fast) var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform var(--t) var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:active { transform: scale(0.97); }
.btn__icon { display: inline-flex; transition: transform var(--t) var(--ease); }
.btn:hover .btn__icon { transform: translateX(4px); }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

.btn--light { --btn-bg: var(--light); --btn-fg: var(--ink); --btn-fill: var(--gold-light); }
.btn--text {
  --btn-bg: transparent; --btn-fg: currentColor; --btn-fill: transparent;
  min-height: auto; padding: 0.3rem 0; border-radius: 0;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.btn--text:hover { text-decoration-color: var(--gold); }

/* ── Navigation: logo, links, one action. Takes the colour of the
   section underneath (set from data-nav). ──────────────────────────────── */
.nav {
  --nav-bg: var(--ivory);
  --nav-fg: var(--ink);
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  color: var(--nav-fg);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.nav--champagne { --nav-bg: var(--champagne); }
.nav--sage { --nav-bg: var(--sage); }
.nav--green { --nav-bg: var(--green); --nav-fg: var(--light); }
.nav--pine { --nav-bg: var(--pine); --nav-fg: var(--light); }
.nav.is-scrolled { background: var(--nav-bg); }

.nav__inner {
  height: 100%;
  display: flex; align-items: center; gap: 2rem;
  padding-inline: var(--gutter);
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
}
.nav__brand { flex-shrink: 0; margin-right: auto; }
.nav__links ul { display: flex; gap: clamp(1rem, 1.8vw, 2rem); }
.nav__links a {
  position: relative;
  font-size: 0.95rem; font-weight: 500;
  padding-block: 0.4rem;
  opacity: 0.8;
  transition: opacity var(--t-fast);
}
.nav__links a::after {
  content: ''; position: absolute; left: 50%; bottom: -2px;
  width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
  background: currentColor; transform: scale(0);
  transition: transform var(--t) var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__links a.is-active::after { transform: scale(1); }

.nav__cta { min-height: 2.9rem; padding: 0 1.35rem; font-size: 0.95rem; }
.nav--green .nav__cta, .nav--pine .nav__cta {
  --btn-bg: var(--light); --btn-fg: var(--ink); --btn-fill: var(--gold-light);
}

.nav__toggle { display: none; width: 48px; height: 48px; margin-right: -10px; align-items: center; justify-content: center; }
.nav__toggle-lines { position: relative; width: 26px; height: 10px; }
.nav__toggle-lines span {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform var(--t) var(--ease), top var(--t) var(--ease);
}
.nav__toggle-lines span:first-child { top: 0; }
.nav__toggle-lines span:last-child { top: 8px; }
.nav.is-open .nav__toggle-lines span:first-child { top: 4px; transform: rotate(45deg); }
.nav.is-open .nav__toggle-lines span:last-child { top: 4px; transform: rotate(-45deg); }

@media (max-width: 1240px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .nav__cta { display: none; }
  .nav .logo { height: 46px; }
}

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: -1;
  background: var(--ivory); color: var(--ink);
  padding: calc(var(--nav-h) + 1.5rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
  animation: menu-in 0.7s var(--ease) both;
}
@keyframes menu-in { from { clip-path: inset(0 0 100% 0 round 0 0 40px 40px); } to { clip-path: inset(0 0 0 0 round 0); } }
.nav.is-open { background: var(--ivory); color: var(--ink); }
.menu__list { display: grid; gap: 0.1rem; }
.menu__item a {
  display: block;
  padding-block: 0.25rem;
  font-size: clamp(2.3rem, 9vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05;
  transition: color var(--t-fast);
}
.menu__item a:hover, .menu__item a:active { color: var(--gold); }
.menu__foot { display: grid; gap: 1.5rem; padding-top: 2.5rem; }
.menu__contact { display: grid; gap: 0.8rem; font-size: 1rem; }
.menu__contact a { display: inline-flex; align-items: center; gap: 0.75rem; }
.menu__place { font-size: 0.95rem; color: var(--ink-soft); }

/* ── Footer: the name returns at full width ───────────────────────────── */
.footer {
  background: var(--pine); color: var(--light);
  padding-block: clamp(5rem, 9vw, 8rem) 2rem;
  overflow-x: clip;
}
.footer__top {
  display: grid; gap: 3rem;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
}
.footer__line { margin-top: 1.75rem; max-width: 24ch; font-size: 1.35rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.footer__heading { font-size: 1rem; font-weight: 700; margin-bottom: 1.1rem; }
.footer__col ul { display: grid; gap: 0.5rem; }
.footer__col .footer__list--spaced { margin-top: 1rem; }
.footer__col a, .footer__col p { color: var(--light-soft); transition: color var(--t-fast); }
.footer__col a:hover { color: var(--gold-light); }
.footer__name {
  max-width: none;
  margin: clamp(3rem, 7vw, 6rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--font-serif);
  font-weight: 900;
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144;
  font-size: clamp(3.5rem, 14.2vw, 15.5rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: var(--gold);
  text-align: center;
}
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding-right: 5rem;
  font-size: var(--fs-small); color: var(--light-soft);
}
.footer__social { display: flex; gap: 0.5rem; }
.footer__social a {
  display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--bd-pine); color: var(--light);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.footer__social a:hover { background: var(--gold); }
.footer__top-link:hover { color: var(--light); }

@media (max-width: 999px) {
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Floating WhatsApp ─────────────────────────────────────────────────── */
.wa-float {
  position: fixed; z-index: 90;
  right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 0.6rem;
  height: 54px; padding: 0 15px;
  background: var(--forest); color: var(--light);
  border-radius: 27px;
  /* The light ring keeps it visible over the green sections. */
  box-shadow: 0 0 0 2px rgba(247, 243, 234, 0.75), 0 12px 30px -12px rgba(21, 40, 28, 0.55);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease), background-color var(--t) var(--ease);
}
.wa-float__label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  font-size: 0.95rem; font-weight: 600;
  transition: max-width var(--t) var(--ease);
}
.wa-float:hover { background: #1F3D2A; }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { max-width: 8rem; }
html:not(.past-hero) .wa-float { opacity: 0; transform: translateY(20px); pointer-events: none; visibility: hidden; transition-property: opacity, transform, visibility; }
.is-locked .wa-float { opacity: 0; pointer-events: none; }

/* ── Share (sits just above WhatsApp) ─────────────────────────────────── */
.share {
  position: fixed; z-index: 91;
  right: calc(max(1rem, env(safe-area-inset-right)) + 4px);
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 54px + 12px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.share-float {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--light); color: var(--ink);
  box-shadow: 0 0 0 1.5px rgba(28, 51, 38, 0.14), 0 10px 26px -12px rgba(21, 40, 28, 0.5);
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color var(--t-fast) var(--ease);
}
.share-float:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .share-float:hover { background: var(--champagne); }
}
.share-menu {
  position: absolute; right: 0; bottom: calc(100% + 10px);
  display: grid; min-width: 12.5rem; padding: 0.4rem;
  background: var(--light); color: var(--ink);
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(28, 51, 38, 0.08), 0 22px 44px -18px rgba(21, 40, 28, 0.45);
  transform-origin: bottom right;
}
.share.is-open .share-menu { animation: share-in 200ms cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes share-in { from { opacity: 0; transform: translateY(6px) scale(0.96); } }
.share-menu__item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.9rem; border-radius: 12px;
  font-size: 0.95rem; font-weight: 600; text-align: left;
  transition: background-color var(--t-fast) var(--ease);
}
.share-menu__item:hover, .share-menu__item:focus-visible { background: var(--champagne); }
.is-locked .share { opacity: 0; pointer-events: none; }
/* The labelled share buttons in the page. */
.contact__primary { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.footer__share { min-height: 2.9rem; padding: 0 1.25rem; font-size: 0.95rem; }

/* ── Cursor (desktop only) ─────────────────────────────────────────────── */
.cursor { display: none; }
.has-cursor .cursor {
  display: flex; align-items: center; justify-content: center;
  position: fixed; left: 0; top: 0; z-index: 300;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  background: var(--gold); border-radius: 50%;
  pointer-events: none; opacity: 0;
  mix-blend-mode: multiply;
  transition: opacity var(--t-fast) var(--ease), width var(--t) var(--ease), height var(--t) var(--ease),
    margin var(--t) var(--ease), background-color var(--t) var(--ease);
}
.has-cursor .cursor.is-visible { opacity: 0.9; }
.has-cursor .cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; opacity: 0.35; }
.has-cursor .cursor.is-label {
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  background: var(--light); mix-blend-mode: normal; opacity: 1;
}
.has-cursor .cursor.is-label::after {
  content: attr(data-label);
  font-size: 0.95rem; font-weight: 700; color: var(--ink);
}
