/* ============================================================================
   Aqua Desert — main stylesheet (layout, components, motion).
   Brand-owned values (color/font/type/radius/buttons) come from tokens.css via
   var(--…). Structural constants live here; Kura never overwrites this file.
   ============================================================================ */

/* ---- Layout constants (safe here — not part of the brand-kit contract) ---- */
:root {
  --header-h: 88px;
  --container: 1240px;
  --container-narrow: 880px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 10vw, 140px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 2px 10px rgba(15, 40, 46, 0.06);
  --shadow-md: 0 18px 50px -20px rgba(15, 40, 46, 0.28);
  --shadow-lg: 0 40px 90px -40px rgba(9, 24, 28, 0.5);
  --ink-deep: #0c2228;          /* fixed deep section ground (darker than fg) */
  --ink-deep-2: #103038;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  font-weight: var(--weight-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
::selection { background: var(--color-primary); color: #fff; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 2px; }

/* ---- Helpers ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--color-surface); }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: 0.8; }
.eyebrow.is-centered { justify-content: center; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--color-muted); line-height: 1.65; }

.h-display {
  font-size: clamp(2.6rem, 6.2vw, calc(var(--text-h1) * 1.35));
  line-height: var(--leading-h1); font-weight: var(--weight-h1);
}
.h2 { font-size: clamp(2rem, 3.6vw, var(--text-h2)); line-height: var(--leading-h2); font-weight: var(--weight-h2); }
.h3 { font-size: var(--text-h3); line-height: var(--leading-h3); font-weight: var(--weight-h3); }
.section-head { max-width: 760px; }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head .h2 { margin-top: 18px; }
.section-head p { margin-top: 20px; color: var(--color-muted); font-size: 1.12rem; }

/* ---- Buttons ---- */
.btn {
  --_bg: var(--color-primary); --_fg: var(--color-primary-fg); --_bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--radius-full);
  background: var(--_bg); color: var(--_fg); border: 1.5px solid var(--_bd);
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
  transition: transform .35s var(--ease), background-color .3s var(--ease), color .3s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary { --_bg: var(--color-primary); --_fg: var(--color-primary-fg); }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-accent { --_bg: var(--color-accent); --_fg: var(--color-accent-fg); }
.btn-accent:hover { background: var(--color-accent-hover); }
.btn-ghost { --_bg: transparent; --_fg: #fff; --_bd: rgba(255,255,255,0.55); backdrop-filter: blur(2px); }
.btn-ghost:hover { --_bg: #fff; --_fg: var(--ink-deep); --_bd: #fff; }
.btn-outline { --_bg: transparent; --_fg: var(--color-fg); --_bd: var(--color-border); }
.btn-outline:hover { --_bg: var(--color-fg); --_fg: #fff; --_bd: var(--color-fg); }
.btn-lg { padding: 17px 38px; font-size: 1.02rem; }

.textlink {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--color-primary);
  padding-bottom: 3px; border-bottom: 1.5px solid transparent; transition: border-color .3s var(--ease), gap .3s var(--ease);
}
.textlink svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.textlink:hover { border-color: var(--color-primary); }
.textlink:hover svg { transform: translateX(4px); }

/* ============================ Header / Nav ============================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; color: #fff; transition: color .4s var(--ease); }
.brand__logo { position: relative; display: block; height: 32px; aspect-ratio: 712 / 96; }
.brand__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .4s var(--ease); }
.brand__logo .logo-dark { opacity: 0; }
.site-header.is-solid .brand__logo .logo-light,
.site-header.is-static .brand__logo .logo-light { opacity: 0; }
.site-header.is-solid .brand__logo .logo-dark,
.site-header.is-static .brand__logo .logo-dark { opacity: 1; }
.site-footer .brand__logo { height: 34px; }
.brand__tag { font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase; margin-top: 6px; opacity: 0.85; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative; padding: 10px 16px; font-weight: 500; font-size: 0.95rem; color: #fff;
  transition: color .3s var(--ease); opacity: 0.92;
}
.nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1.5px;
  background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 600; font-size: 0.98rem; transition: color .4s var(--ease); }
.header-phone svg { width: 17px; height: 17px; color: var(--color-accent); }

/* scrolled / solid state */
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-sm); border-color: var(--color-border);
}
.site-header.is-solid .brand,
.site-header.is-solid .nav a,
.site-header.is-solid .header-phone { color: var(--color-fg); }
.site-header.is-solid .brand__tag { color: var(--color-muted); opacity: 1; }
.site-header.is-solid .btn-ghost { --_fg: var(--color-fg); --_bd: var(--color-border); }
.site-header.is-solid .btn-ghost:hover { --_fg: #fff; --_bd: var(--color-fg); --_bg: var(--color-fg); }

/* solid header on interior (non-hero) pages from load */
.site-header.is-static { background: var(--color-bg); border-color: var(--color-border); box-shadow: var(--shadow-sm); }
.site-header.is-static .brand, .site-header.is-static .nav a, .site-header.is-static .header-phone { color: var(--color-fg); }
.site-header.is-static .brand__tag { color: var(--color-muted); opacity: 1; }
.site-header.is-static .btn-ghost { --_fg: var(--color-fg); --_bd: var(--color-border); }

/* mobile nav */
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; position: relative; z-index: 120; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 11px; width: 24px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s var(--ease); border-radius: 2px;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.site-header.is-solid .nav-toggle span, .site-header.is-solid .nav-toggle span::before, .site-header.is-solid .nav-toggle span::after,
.site-header.is-static .nav-toggle span, .site-header.is-static .nav-toggle span::before, .site-header.is-static .nav-toggle span::after { background: var(--color-fg); }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); background: var(--color-fg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); background: var(--color-fg); }

/* ============================ Hero ============================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(9,24,28,0.55) 0%, rgba(9,24,28,0.12) 32%, rgba(9,24,28,0.20) 62%, rgba(9,24,28,0.86) 100%),
    radial-gradient(120% 90% at 15% 90%, rgba(9,24,28,0.55), transparent 60%);
}
.hero__inner { width: 100%; padding-block: clamp(40px, 9vh, 120px); padding-top: calc(var(--header-h) + 40px); }
.hero__eyebrow { color: #e9c893; }
.hero h1 { margin-top: 22px; max-width: 16ch; text-shadow: 0 2px 30px rgba(0,0,0,0.25); }
.hero h1 em { font-style: italic; color: #cfe9e6; }
.hero__sub { margin-top: 26px; max-width: 56ch; font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: rgba(255,255,255,0.9); line-height: 1.6; }
.hero__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 34px; display: inline-flex; align-items: center; gap: 12px; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.75); writing-mode: vertical-rl; }
.hero__scroll::after { content: ""; width: 1px; height: 46px; background: linear-gradient(#e9c893, transparent); animation: scrollpulse 2.4s var(--ease) infinite; }
@keyframes scrollpulse { 0%,100% { opacity: .3; transform: scaleY(.6);} 50% { opacity: 1; transform: scaleY(1);} }
@media (prefers-reduced-motion: reduce) { .hero__scroll::after { animation: none; } }

/* page hero (interior) */
.page-hero { position: relative; color: #fff; padding-top: calc(var(--header-h) + clamp(70px, 12vh, 150px)); padding-bottom: clamp(56px, 9vh, 120px); isolation: isolate; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,24,28,0.62), rgba(9,24,28,0.5) 40%, rgba(9,24,28,0.78)); }
.page-hero h1 { margin-top: 20px; font-size: clamp(2.4rem, 5vw, 3.7rem); line-height: 1.05; }
.page-hero p { margin-top: 20px; max-width: 60ch; color: rgba(255,255,255,0.88); font-size: 1.14rem; }
.breadcrumb { font-size: 0.82rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: #fff; }

/* ============================ Stat band ============================ */
.stats { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); background: var(--color-bg); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(28px, 4vw, 46px) var(--gutter); text-align: center; border-right: 1px solid var(--color-border); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-heading); font-size: clamp(2rem, 3vw, 2.9rem); font-weight: 600; color: var(--color-primary); line-height: 1; }
.stat__num span { color: var(--color-accent); }
.stat__label { margin-top: 12px; font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }

/* ============================ Intro / split ============================ */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split.is-reverse { direction: rtl; }
.split.is-reverse > * { direction: ltr; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split__media .badge {
  position: absolute; bottom: -26px; left: -26px; background: var(--color-primary); color: #fff;
  padding: 22px 28px; border-radius: var(--radius-md); box-shadow: var(--shadow-md); max-width: 220px;
}
.split__media .badge strong { font-family: var(--font-heading); font-size: 2.1rem; display: block; }
.split__media .badge span { font-size: 0.82rem; opacity: 0.85; letter-spacing: 0.04em; }
.prose p + p { margin-top: 18px; }
.prose .lead { margin-top: 22px; }
.checklist { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; font-weight: 500; color: var(--color-fg); }
.checklist svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--color-primary); margin-top: 1px; }

/* ============================ Service rows ============================ */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(40px, 6vw, 70px); }
.service-row + .service-row { border-top: 1px solid var(--color-border); }
.service-row:nth-child(even) .service-row__media { order: -1; }
.service-row__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.service-row__media img { width: 100%; aspect-ratio: 5/4; object-fit: cover; transition: transform 1.1s var(--ease); }
.service-row:hover .service-row__media img { transform: scale(1.05); }
.service-row__index { font-family: var(--font-heading); font-size: 0.95rem; letter-spacing: 0.2em; color: var(--color-accent); font-weight: 600; }
.service-row h3 { margin-top: 14px; font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.service-row p { margin-top: 18px; color: var(--color-muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag { font-size: 0.8rem; padding: 7px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-full); color: var(--color-fg); background: var(--color-bg); }
.service-row .textlink { margin-top: 26px; }

/* ============================ Feature grid (why us) ============================ */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 30px); margin-top: 56px; }
.feature { padding: 32px 28px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--radius-md); background: color-mix(in srgb, var(--color-primary) 12%, transparent); color: var(--color-primary); margin-bottom: 22px; }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.18rem; }
.feature p { margin-top: 10px; color: var(--color-muted); font-size: 0.98rem; }

/* ============================ Gallery ============================ */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-md); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.07); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 20px 18px 16px; color: #fff; font-size: 0.9rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(9,24,28,0.82)); opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.gallery figure:hover figcaption { opacity: 1; transform: none; }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-wide { grid-column: span 2; }
.gallery .span-3 { grid-column: span 3; } .gallery .span-2 { grid-column: span 2; }

/* ============================ Dark section / testimonials ============================ */
.dark { background: var(--ink-deep); color: #fff; position: relative; overflow: hidden; }
.dark .section-head p, .dark .lead { color: rgba(255,255,255,0.72); }
.dark .eyebrow { color: #e9c893; }
.dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 85% 0%, rgba(15,110,126,0.35), transparent 60%); pointer-events: none; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 34px); margin-top: 54px; position: relative; }
.quote { padding: 36px 32px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); }
.quote__stars { display: flex; gap: 3px; color: var(--color-accent); margin-bottom: 20px; }
.quote__stars svg { width: 18px; height: 18px; }
.quote p { font-family: var(--font-heading); font-size: 1.24rem; line-height: 1.5; font-weight: 500; }
.quote footer { margin-top: 24px; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; color: #e9c893; font-family: var(--font-body); }

/* ============================ Locations ============================ */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 48px; }
.loc {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px;
  border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); font-weight: 500;
}
.loc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.loc span { color: var(--color-muted); font-size: 0.82rem; }
.loc.is-primary { background: var(--color-primary); color: #fff; border-color: transparent; }
.loc.is-primary span { color: rgba(255,255,255,0.8); }
.loc__marker { color: var(--color-accent); }
.loc.is-primary .loc__marker { color: #fff; }

/* ============================ CTA band ============================ */
.cta {
  position: relative; color: #fff; isolation: isolate; border-radius: var(--radius-lg); overflow: hidden;
  padding: clamp(48px, 7vw, 92px) clamp(28px, 6vw, 84px);
}
.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(12,34,40,0.92) 0%, rgba(12,34,40,0.62) 60%, rgba(15,110,126,0.5) 100%); }
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 18ch; }
.cta p { margin-top: 18px; max-width: 52ch; color: rgba(255,255,255,0.85); font-size: 1.12rem; }
.cta__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ============================ Contact / forms ============================ */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact-info .info-row { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--color-border); }
.contact-info .info-row:first-of-type { border-top: 1px solid var(--color-border); }
.contact-info .info-row svg { flex: 0 0 auto; width: 24px; height: 24px; color: var(--color-primary); margin-top: 3px; }
.contact-info .info-row h3 { font-size: 1.05rem; }
.contact-info .info-row a, .contact-info .info-row p { color: var(--color-muted); margin-top: 4px; display: block; }
.contact-info .info-row a:hover { color: var(--color-primary); }

.form-card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 46px); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.is-full { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 600; letter-spacing: 0.02em; }
.field label .req { color: var(--color-accent); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 14px 16px; border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-bg); color: var(--color-fg); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 15%, transparent); }
.form-note { margin-top: 18px; font-size: 0.86rem; color: var(--color-muted); }
.form-card .btn { margin-top: 8px; width: 100%; }

/* ============================ Footer ============================ */
.site-footer { background: var(--ink-deep); color: rgba(255,255,255,0.72); padding-block: clamp(56px, 7vw, 86px) 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(30px, 4vw, 60px); }
.site-footer .brand { color: #fff; }
.site-footer .brand__tag { color: rgba(255,255,255,0.6); }
.footer-about p { margin-top: 22px; max-width: 34ch; font-size: 0.98rem; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 20px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a:hover { color: #fff; }
.footer-contact a { display: flex; gap: 11px; align-items: center; margin-bottom: 14px; color: #fff; font-weight: 500; }
.footer-contact a svg { width: 17px; height: 17px; color: var(--color-accent); }
.footer-bottom { margin-top: clamp(44px, 6vw, 70px); padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 0.85rem; }

/* ============================ Scroll reveal ============================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================ Responsive ============================ */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .header-cta { gap: 10px; }
  .mobile-menu {
    position: fixed; inset: 0; z-index: 110; background: var(--color-bg); color: var(--color-fg);
    display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 var(--gutter);
    transform: translateX(100%); transition: transform .45s var(--ease); visibility: hidden;
  }
  body.nav-open .mobile-menu { transform: none; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .mobile-menu a { font-family: var(--font-heading); font-size: 1.9rem; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
  .mobile-menu .mobile-actions { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
  .mobile-menu .btn { width: 100%; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--color-border); }
  .split, .service-row, .contact-grid { grid-template-columns: 1fr; }
  .split.is-reverse { direction: ltr; }
  .service-row:nth-child(even) .service-row__media { order: 0; }
  .split__media .badge { left: 16px; bottom: 16px; }
  .quotes { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .g-tall { grid-row: span 1; } .gallery .g-wide, .gallery .span-3, .gallery .span-2 { grid-column: span 2; }
  .form-grid { grid-template-columns: 1fr; }
}
.mobile-menu { display: none; }
@media (max-width: 860px) { .mobile-menu { display: flex; } }
@media (max-width: 560px) {
  /* Keep the small-screen header clean — phone lives in the mobile menu. */
  .header-phone { display: none; }
  .brand__logo { height: 26px; }
}
@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--color-border); }
  .gallery { grid-template-columns: 1fr; }
}
