/* =============================================================================
   Lumière — sample cafe site
   -----------------------------------------------------------------------------
   REBRAND HERE FIRST: the :root block below is the single source of truth for
   colour, type, radius and spacing. Change these tokens to restyle the whole
   site. Content (names, menu, hours) lives in index.html under "CONTENT SWAP"
   comments. Full guide: REBRAND.md
   ========================================================================== */

:root {
  /* ---- BRAND PALETTE (swap these to rebrand) ------------------------------ */
  --bone:        #F6F1E7; /* page background — warm bone/cream            */
  --cream:       #EFE6D6; /* alternate section / card background          */
  --cream-deep:  #E7DAC4; /* subtle fills, map base                       */
  --ink:         #2A211B; /* primary text — deep espresso (no pure black) */
  --ink-soft:    #5A4F45; /* muted / secondary text                       */
  --accent:      #B05A3C; /* the ONE accent — muted terracotta            */
  --accent-deep: #8F4730; /* hover / pressed accent                       */
  --line:        rgba(42, 33, 27, 0.14); /* hairline borders              */

  /* ---- TYPOGRAPHY --------------------------------------------------------- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Fluid type scale (clamp = mobile min → desktop max) */
  --fs-eyebrow: 0.78rem;
  --fs-body:    1.0625rem;
  --fs-lede:    clamp(1.15rem, 0.9rem + 1.1vw, 1.45rem);
  --fs-h3:      clamp(1.35rem, 1.1rem + 1vw, 1.7rem);
  --fs-h2:      clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --fs-hero:    clamp(3rem, 1.6rem + 6.4vw, 6.5rem);

  /* ---- SPACING SCALE ------------------------------------------------------ */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  /* Section vertical rhythm (fluid) */
  --section-y: clamp(4rem, 2.5rem + 7vw, 8rem);

  /* ---- SHAPE & DEPTH ------------------------------------------------------- */
  --radius:    14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(42, 33, 27, 0.06);
  --shadow-md: 0 14px 40px rgba(42, 33, 27, 0.12);
  --shadow-lg: 0 30px 70px rgba(42, 33, 27, 0.18);

  /* ---- LAYOUT ------------------------------------------------------------- */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3rem);
  --nav-h: 76px;

  /* ---- MOTION ------------------------------------------------------------- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.6s;

  /* ---- MAP ILLUSTRATION (decorative) -------------------------------------- */
  --map-bg: #EFE6D6;
  --map-block: #E1D2B8;
  --map-water: #D8E0D2;
  --map-road: #F6F1E7;
  --map-road-thin: #EAE0CD;
}

/* =============================================================================
   RESET & BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

ul { list-style: none; padding: 0; }

::selection { background: var(--accent); color: var(--bone); }

/* Accessibility: visible focus */
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--bone);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* =============================================================================
   LAYOUT HELPERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.eyebrow--light { color: rgba(246, 241, 231, 0.9); }

.section-head { max-width: 38rem; margin-bottom: var(--space-6); }
.section-head--center { margin-inline: auto; text-align: center; }

.section-title { font-size: var(--fs-h2); }

.section-sub {
  margin-top: var(--space-3);
  color: var(--ink-soft);
  font-size: var(--fs-lede);
  line-height: 1.55;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-3);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.link-arrow span { transition: transform 0.4s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

/* =============================================================================
   BUTTONS
   ========================================================================== */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bone);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  line-height: 1;
  border: 1.5px solid var(--btn-bg);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease),
    border-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  --btn-bg: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  --btn-fg: var(--bone);
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* Ghost button placed over the dark hero scrim */
.hero .btn--ghost {
  --btn-fg: var(--bone);
  border-color: rgba(246, 241, 231, 0.55);
}
.hero .btn--ghost:hover,
.hero .btn--ghost:focus-visible {
  background: var(--bone);
  --btn-fg: var(--ink);
  border-color: var(--bone);
}

.btn--whatsapp {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
  margin-top: var(--space-4);
}
.btn--whatsapp:hover,
.btn--whatsapp:focus-visible {
  --btn-bg: var(--accent);
  --btn-fg: var(--bone);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =============================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  /* backdrop-filter is intentionally NOT transitioned — animating it forces
     a per-frame re-blur that janks the scroll. */
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: var(--nav-h);
}
/* Condensed state on scroll */
.nav.is-scrolled {
  /* Near-opaque so the bar reads cleanly even if the device can't blur cheaply;
     the lighter 8px blur keeps the frosted feel at a fraction of the cost. */
  background: rgba(246, 241, 231, 0.88);
  -webkit-backdrop-filter: saturate(130%) blur(8px);
  backdrop-filter: saturate(130%) blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-scrolled .nav__inner { height: 64px; }

.wordmark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--bone);
  transition: color var(--dur) var(--ease);
}
.nav.is-scrolled .wordmark { color: var(--ink); }

.nav__links {
  display: flex;
  gap: var(--space-4);
  margin-left: auto;
  margin-right: var(--space-4);
}
.nav__links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(246, 241, 231, 0.92);
  padding: 0.4rem 0;
  transition: color var(--dur) var(--ease);
}
.nav.is-scrolled .nav__links a { color: var(--ink-soft); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after { transform: scaleX(1); }
.nav.is-scrolled .nav__links a:hover { color: var(--ink); }

/* primary CTA shrinks slightly in the nav */
.nav__cta { padding: 0.7rem 1.3rem; font-size: 0.9rem; }
/* Before scroll, over the hero image, the dark CTA needs a light edge */
.nav:not(.is-scrolled) .nav__cta {
  --btn-bg: rgba(246, 241, 231, 0.18);
  --btn-fg: var(--bone);
  border-color: rgba(246, 241, 231, 0.5);
}
.nav:not(.is-scrolled) .nav__cta:hover {
  --btn-bg: var(--bone);
  --btn-fg: var(--ink);
  border-color: var(--bone);
}

/* hamburger */
.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bone);
  border-radius: 2px;
  transition: background-color var(--dur) var(--ease);
}
.nav.is-scrolled .nav__toggle-bar { background: var(--ink); }

/* =============================================================================
   MOBILE OVERLAY MENU
   ========================================================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--bone);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu__inner {
  text-align: center;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.mobile-menu__close {
  position: absolute;
  top: 22px;
  right: var(--gutter);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
}
.mobile-menu__close span {
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--bone);
  border-radius: 2px;
}
.mobile-menu__close span:first-child { transform: rotate(45deg); }
.mobile-menu__close span:last-child { transform: rotate(-45deg); }

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 2.8rem);
  font-weight: 500;
  color: var(--bone);
  transition: color 0.3s var(--ease);
}
.mobile-menu__links a:hover { color: var(--accent); }
.mobile-menu__cta { margin-top: var(--space-2); }
.mobile-menu__msg {
  color: rgba(246, 241, 231, 0.85);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 3px;
  transition: color 0.3s var(--ease);
}
.mobile-menu__msg:hover,
.mobile-menu__msg:focus-visible { color: var(--accent); }
.mobile-menu__tag {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(246, 241, 231, 0.6);
  margin-top: var(--space-2);
}

/* =============================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(28, 21, 16, 0.78) 0%, rgba(28, 21, 16, 0.28) 42%, rgba(28, 21, 16, 0.12) 70%, rgba(28, 21, 16, 0.34) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  color: var(--bone);
  padding-bottom: clamp(4rem, 9vh, 8rem);
  padding-top: calc(var(--nav-h) + 2rem);
  max-width: 56rem;
}
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  font-weight: 500;
  color: #F0C9A8; /* warm highlight tint of the accent, legible on dark */
}
.hero__lede {
  max-width: 34rem;
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: rgba(246, 241, 231, 0.92);
  margin-bottom: var(--space-4);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2rem, 6vh, 3.5rem);
  z-index: 2;
  color: rgba(246, 241, 231, 0.8);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 46px;
  margin: 10px auto 0;
  background: linear-gradient(to bottom, rgba(246,241,231,0.8), transparent);
  animation: scrollPulse 2.2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.5); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* Hero load-in animation */
[data-hero] {
  opacity: 0;
  transform: translateY(22px);
  animation: heroIn 0.9s var(--ease) forwards;
}
[data-hero="1"] { animation-delay: 0.15s; }
[data-hero="2"] { animation-delay: 0.28s; }
[data-hero="3"] { animation-delay: 0.42s; }
[data-hero="4"] { animation-delay: 0.56s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* =============================================================================
   STORY STRIP
   ========================================================================== */
.story { padding-block: var(--section-y); }
.story__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}
.story__title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-3);
  text-wrap: balance;
}
.story__body { color: var(--ink-soft); margin-bottom: var(--space-2); max-width: 34rem; }
.story__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.story__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }

@media (min-width: 880px) {
  .story__inner { grid-template-columns: 1fr 0.9fr; gap: var(--space-7); }
  .story__media { order: 2; }
}

/* =============================================================================
   MENU
   ========================================================================== */
.menu {
  padding-block: var(--section-y);
  background: var(--cream);
  border-block: 1px solid var(--line);
}
.menu__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6) var(--space-7);
}
@media (min-width: 720px) {
  .menu__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1040px) {
  .menu__grid { grid-template-columns: repeat(3, 1fr); }
}

.menu__cat-title {
  font-size: var(--fs-h3);
  font-style: italic;
  color: var(--accent);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}
.menu__list { display: flex; flex-direction: column; gap: var(--space-3); }

.menu-item__head {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.menu-item__name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--ink);
}
.menu-item__leader {
  flex: 1;
  align-self: center;
  border-bottom: 1.5px dotted var(--line);
  transform: translateY(2px);
}
.menu-item__price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.menu-item__desc {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 30rem;
}

/* =============================================================================
   GALLERY
   ========================================================================== */
.gallery { padding-block: var(--section-y); }
.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-deep);
  box-shadow: var(--shadow-sm);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: transform 0.8s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--tall img { aspect-ratio: 3 / 4; }
.gallery__item--wide img { aspect-ratio: 16 / 11; }

@media (min-width: 560px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 880px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: var(--space-3);
  }
  .gallery__item--tall { grid-row: span 2; }
  .gallery__item--tall img { aspect-ratio: auto; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item img { aspect-ratio: auto; }
  /* let images fill the grid cells uniformly */
  .gallery__item { min-height: 240px; }
}

/* =============================================================================
   VISIT
   ========================================================================== */
.visit {
  padding-block: var(--section-y);
  background: var(--cream);
  border-block: 1px solid var(--line);
}
.visit__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 880px) {
  .visit__inner { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
}

.visit__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-4);
}
@media (max-width: 420px) { .visit__cols { grid-template-columns: 1fr; } }

.visit__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.hours li span:last-child { font-variant-numeric: tabular-nums; color: var(--ink); }
.visit__address { font-style: normal; color: var(--ink-soft); line-height: 1.8; }

.visit__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--map-bg);
}
.visit__map svg { width: 100%; height: auto; display: block; }
.map-pin { transform-box: fill-box; transform-origin: center bottom; animation: pinFloat 3s var(--ease) infinite; }
@keyframes pinFloat {
  0%, 100% { transform: translate(300px, 196px); }
  50% { transform: translate(300px, 186px); }
}
.visit__map-caption {
  padding: var(--space-2) var(--space-3);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: var(--bone);
  border-top: 1px solid var(--line);
}

/* =============================================================================
   RESERVE
   ========================================================================== */
.reserve { padding-block: var(--section-y); }
.reserve__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}
@media (min-width: 880px) {
  .reserve__inner { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
}

.reserve__form {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field select {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bone);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input::placeholder { color: #9b8f80; }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176, 90, 60, 0.15);
}
.reserve__submit { margin-top: var(--space-2); width: 100%; }
.reserve__note {
  min-height: 1.2em;
  font-size: 0.92rem;
  color: var(--accent-deep);
  font-weight: 500;
  text-align: center;
}

/* =============================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--ink);
  color: rgba(246, 241, 231, 0.78);
  padding-top: var(--space-7);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-6);
}
@media (min-width: 680px) {
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-4); }
}
.wordmark--footer { color: var(--bone); font-size: 1.9rem; }
.footer__tag {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(246, 241, 231, 0.55);
  margin-top: 0.4rem;
}
.footer__label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.5);
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
}
.footer__hours li,
.footer__addr { font-size: 0.95rem; line-height: 1.9; }
.footer__social { display: flex; gap: var(--space-2); }
.footer__social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(246, 241, 231, 0.2);
  color: var(--bone);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer__social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: var(--space-3);
  border-top: 1px solid rgba(246, 241, 231, 0.14);
  font-size: 0.85rem;
  color: rgba(246, 241, 231, 0.55);
}
.footer__credit a { color: var(--bone); border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.footer__credit a:hover { color: var(--accent); }

/* =============================================================================
   FLOATING CONTACT BUTTON
   Persistent "Message us" that fades in after the hero and tucks away while the
   contact section is on screen (so it never covers the form). JS-toggled.
   ========================================================================== */
.fab {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.4rem;
  background: var(--accent-deep);
  color: var(--bone);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
    background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), visibility 0.4s;
}
.fab.is-visible { opacity: 1; visibility: visible; transform: none; }
.fab:hover,
.fab:focus-visible {
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.fab svg { flex: none; }

/* Compact icon-only circle on phones so it stays out of the way */
@media (max-width: 560px) {
  .fab { padding: 0; width: 56px; height: 56px; justify-content: center; gap: 0; }
  .fab__label { display: none; }
}

/* =============================================================================
   SCROLL REVEAL (progressive enhancement — see main.js)
   Hidden only when JS is active (html.js); otherwise content shows normally.
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Anchor offset so sticky nav doesn't cover section headings */
section[id], [id="top"] { scroll-margin-top: var(--nav-h); }

/* =============================================================================
   RESPONSIVE NAV SWITCH
   ========================================================================== */
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}

/* =============================================================================
   REDUCED MOTION — honour the user's preference
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-hero] { opacity: 1; transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .gallery__item:hover img { transform: none; }
}
