/* ============================================================
   G L ROOFING — Heartland Trust
   Compiled output of: brand.config.json + variants/a-heartland-trust
   Design tokens live in :root; swap them to re-skin.
   ============================================================ */

:root {
  /* palette */
  --primary: #1e3a5f;
  --primary-700: #152a45;
  --primary-900: #0e1e33;
  --accent: #f59e0b;
  --accent-ink: #7a4d05;      /* amber dark enough for text on paper */
  --ink: #101826;
  --muted: #5b6675;
  --paper: #ffffff;
  --paper-alt: #f4f7fb;
  --paper-warm: #fbf9f5;
  --line: #e2e7ee;
  --star: #f5a623;
  --success: #0f9d6a;

  /* type */
  --display: "Clash Display", "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;

  /* geometry */
  --radius: 14px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);

  /* elevation — soft, layered "crafted" shadows */
  --shadow-sm: 0 1px 2px rgba(16,24,38,.06), 0 2px 8px rgba(16,24,38,.05);
  --shadow-md: 0 6px 16px rgba(16,24,38,.08), 0 14px 40px rgba(16,24,38,.08);
  --shadow-lg: 0 18px 50px rgba(14,30,51,.16), 0 4px 12px rgba(14,30,51,.08);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,svg,video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* subtle film grain overlay for a crafted, non-flat feel */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.bg-alt { background: var(--paper-alt); }
.bg-warm { background: var(--paper-warm); }

.eyebrow {
  font-family: var(--body);
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex; align-items: center; gap: .55em;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }

h1,h2,h3,h4 { font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -.015em; color: var(--primary-900); }
h2.section-title { font-size: clamp(2rem, 4.4vw, 3.15rem); margin-top: .5rem; max-width: 18ch; }
.section-lead { color: var(--muted); font-size: 1.075rem; max-width: 54ch; margin-top: 1rem; }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); }

.mark { color: var(--primary); position: relative; white-space: nowrap; }
.mark::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: .06em; height: .34em;
  background: linear-gradient(transparent 55%, rgba(245,158,11,.42) 0);
  z-index: -1;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.55em; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 1rem; letter-spacing: -.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  will-change: transform;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--accent); color: #241503; box-shadow: 0 8px 20px rgba(245,158,11,.32); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(245,158,11,.42); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.32); }
.btn--ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn--dark { background: var(--primary); color: #fff; box-shadow: var(--shadow-md); }
.btn--dark:hover { transform: translateY(-2px); background: var(--primary-700); }
.btn--outline { border: 1.5px solid var(--line); background: var(--paper); color: var(--primary-900); }
.btn--outline:hover { border-color: var(--primary); transform: translateY(-2px); }
.btn--lg { padding: 1.1em 1.9em; font-size: 1.08rem; }

/* ---------- header / nav ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding-block: 18px;
}
.header.is-scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding-block: 10px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--display); font-weight: 600; font-size: 1.28rem; color: #fff; letter-spacing: -.02em; transition: color .3s; }
.header.is-scrolled .brand { color: var(--primary-900); }
.brand__mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent); color: #241503; font-weight: 700; flex: none;
  box-shadow: 0 4px 12px rgba(245,158,11,.35);
}
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.85); transition: color .2s; }
.header.is-scrolled .nav__links a { color: var(--muted); }
.nav__links a:hover { color: var(--accent); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__phone { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: #fff; transition: color .3s; }
.header.is-scrolled .nav__phone { color: var(--primary-900); }
.nav__phone:hover { color: var(--accent); }
.nav__toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; padding-top: 148px; padding-bottom: clamp(70px, 9vw, 120px); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
/* Colorado dusk duotone placeholder — a Higgsfield hero video/still drops in here (see media.manifest hero-loop) */
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(245,158,11,.28), transparent 46%),
    radial-gradient(90% 80% at 12% 0%, rgba(70,120,180,.35), transparent 50%),
    linear-gradient(180deg, #23456e 0%, #1a3455 44%, #12253d 100%);
}
.hero__bg video, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.hero__bg.has-media::before { content: none; }        /* drop the placeholder gradient once real media loads */
.hero__bg.has-media video, .hero__bg.has-media img { opacity: 1; }
.hero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,22,38,.72) 0%, rgba(10,22,38,.46) 42%, rgba(10,22,38,.15) 100%); }
/* faint roofline silhouette at the base grounds the placeholder */
.hero__ridge { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 120px; opacity: .5;
  background: linear-gradient(180deg, transparent, rgba(8,16,28,.9));
  clip-path: polygon(0 62%, 14% 40%, 27% 60%, 41% 30%, 55% 58%, 70% 36%, 84% 60%, 100% 44%, 100% 100%, 0 100%); }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero__eyebrow { color: #ffd591; }
.hero__eyebrow::before { background: var(--accent); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 1rem 0 1.1rem; max-width: 15ch; }
.hero h1 .mark { color: #fff; }
.hero h1 .mark::after { background: linear-gradient(transparent 55%, rgba(245,158,11,.85) 0); }
.hero__sub { font-size: 1.12rem; color: rgba(255,255,255,.9); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.16); }
.hero__trust span { display: inline-flex; align-items: center; gap: .5em; font-size: .92rem; color: rgba(255,255,255,.85); font-weight: 500; }
.hero__trust .stars { color: var(--star); letter-spacing: .08em; }

/* hero side card — "the promise" */
.promise {
  background: rgba(255,255,255,.07); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-lg);
}
.promise__label { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: #ffd591; font-weight: 600; }
.promise__quote { font-family: var(--display); font-size: 1.5rem; line-height: 1.22; margin: .7rem 0 1rem; color: #fff; letter-spacing: -.01em; }
.promise__by { display: flex; align-items: center; gap: .7rem; font-size: .92rem; color: rgba(255,255,255,.82); }
.promise__by b { color: #fff; font-weight: 600; }
.promise__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #241503; display: grid; place-items: center; font-weight: 700; font-family: var(--display); }

/* ---------- logo/trust bar ---------- */
.trustbar { border-block: 1px solid var(--line); }
.trustbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 34px; padding-block: 22px; }
.trustbar__item { display: inline-flex; align-items: center; gap: .6em; font-weight: 600; font-size: .93rem; color: var(--primary-900); }
.trustbar__item svg { width: 20px; height: 20px; color: var(--accent-ink); flex: none; }
.trustbar__item small { color: var(--muted); font-weight: 500; }

/* ---------- reviews ---------- */
.reviews__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.rating-badge { display: flex; align-items: center; gap: 18px; }
.rating-badge__num { font-family: var(--display); font-size: 3.4rem; line-height: 1; color: var(--primary-900); }
.rating-badge .stars { color: var(--star); font-size: 1.15rem; letter-spacing: .1em; }
.rating-badge small { color: var(--muted); display: block; font-size: .9rem; margin-top: .2rem; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px,1fr)); gap: 22px; margin-top: 44px; }
.review-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review-card .stars { color: var(--star); letter-spacing: .08em; margin-bottom: .7rem; }
.review-card__quote { font-size: 1rem; color: var(--ink); flex: 1; }
.review-card__meta { display: flex; align-items: center; gap: .7rem; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.review-card__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 600; flex: none; }
.review-card__name { font-weight: 600; font-size: .95rem; }
.review-card__when { color: var(--muted); font-size: .82rem; }
.badge-lg { display: inline-flex; align-items: center; gap: .35em; font-size: .72rem; font-weight: 600; color: var(--success); background: rgba(15,157,106,.1); padding: .2em .6em; border-radius: var(--radius-pill); margin-left: auto; }

/* ---------- why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 22px; }
.why-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.why-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease); }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-card:hover::before { transform: scaleY(1); }
.why-card__icon { width: 52px; height: 52px; border-radius: 13px; background: linear-gradient(140deg, var(--primary), var(--primary-700)); color: #fff; display: grid; place-items: center; margin-bottom: 1.2rem; }
.why-card__icon svg { width: 26px; height: 26px; }
.why-card h3 { font-size: 1.28rem; margin-bottom: .55rem; }
.why-card p { color: var(--muted); font-size: .98rem; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; }
.svc-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--paper); transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; display: flex; flex-direction: column; gap: .6rem; }
.svc-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow-md); }
.svc-card__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--paper-alt); color: var(--primary); display: grid; place-items: center; margin-bottom: .5rem; }
.svc-card:hover .svc-card__icon { background: var(--accent); color: #241503; }
.svc-card__icon svg { width: 24px; height: 24px; }
.svc-card h3 { font-size: 1.22rem; }
.svc-card p { color: var(--muted); font-size: .96rem; }
.svc-cta { text-align: center; margin-top: 44px; }

/* ---------- process + signature before/after ---------- */
.process__inner { display: grid; grid-template-columns: 1fr; gap: 60px; }
.steps { display: grid; gap: 8px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 24px; border-radius: var(--radius); transition: background .3s; }
.step:hover { background: var(--paper); box-shadow: var(--shadow-sm); }
.step__n { font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--accent-ink); width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--accent); display: grid; place-items: center; flex: none; }
.step h3 { font-size: 1.3rem; margin-bottom: .35rem; display: flex; align-items: center; gap: .6rem; }
.step h3 svg { width: 20px; height: 20px; color: var(--primary); }
.step p { color: var(--muted); }

/* signature scroll transform */
.transform-wrap { position: relative; }
.transform-sticky { position: sticky; top: 90px; }
.ba { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16/10; background: #10202f; }
.ba__layer { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ba__after { /* new roof — Higgsfield "roof-after" still */
  background-image: url("../public/media/roof-after.jpg"); }
.ba__before { /* worn/failing roof — clipped reveal */
  background-image: url("../public/media/roof-before.jpg");
  clip-path: inset(0 0 0 0);
}
.ba__label { position: absolute; top: 16px; padding: .35em .9em; border-radius: var(--radius-pill); font-size: .78rem; font-weight: 600; letter-spacing: .04em; backdrop-filter: blur(6px); }
.ba__label--before { left: 16px; background: rgba(53,50,46,.85); color: #ffdca8; }
.ba__label--after { right: 16px; background: rgba(43,63,84,.85); color: #cfe4f5; }
.ba__divider { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); box-shadow: 0 0 12px rgba(245,158,11,.7); }
.ba__hint { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 1rem; }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery-grid figure { border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); }
.gallery-grid .g-media { width: 100%; height: 100%; }
.gallery-grid figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid figure:nth-child(6) { grid-column: span 2; }
/* Real <img> gallery stills — object-fit mirrors the old background-size:cover */
.g-media { display: block; object-fit: cover; object-position: center; transition: transform .5s var(--ease); }
.gallery-grid figure:hover .g-media { transform: scale(1.05); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; font-family: var(--display); font-size: 1.18rem; font-weight: 500; color: var(--primary-900); }
.faq__icon { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: transform .35s var(--ease), background .3s, border-color .3s; position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--primary); border-radius: 2px; transition: opacity .3s; }
.faq__icon::before { width: 12px; height: 2px; }
.faq__icon::after { width: 2px; height: 12px; }
.faq__item.is-open .faq__icon { background: var(--accent); border-color: var(--accent); transform: rotate(135deg); }
.faq__item.is-open .faq__icon::before, .faq__item.is-open .faq__icon::after { background: #241503; }
.faq__a { overflow: hidden; height: 0; transition: height .4s var(--ease); }
.faq__a p { color: var(--muted); padding: 0 4px 26px; max-width: 68ch; }
.faq__more { text-align: center; margin-top: 40px; color: var(--muted); }
.faq__more button { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- booking ---------- */
.booking { color: #fff; background: linear-gradient(150deg, var(--primary) 0%, var(--primary-900) 100%); position: relative; overflow: hidden; }
.booking::before { content: ""; position: absolute; top: -20%; right: -8%; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,.22), transparent 65%); }
.booking__inner { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; align-items: center; }
.booking h2 { color: #fff; font-size: clamp(2rem,4vw,3rem); }
.booking__lead { color: rgba(255,255,255,.85); margin-top: 1rem; font-size: 1.08rem; max-width: 42ch; }
.booking__list { margin-top: 1.8rem; display: grid; gap: .9rem; }
.booking__list li { display: flex; align-items: center; gap: .8rem; color: rgba(255,255,255,.9); }
.booking__list svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.booking__phone { margin-top: 2rem; display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-size: 1.6rem; color: #fff; }
.booking__phone small { display: block; font-family: var(--body); font-size: .8rem; color: rgba(255,255,255,.7); font-weight: 500; }
.booking__card { background: #fff; border-radius: var(--radius-lg); padding: 12px; box-shadow: var(--shadow-lg); }
.calendly-slot { border-radius: 18px; overflow: hidden; min-height: 560px; background: var(--paper-alt); position: relative; }
.calendly-inline-widget { min-height: 560px; }
.calendly-fallback { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 1rem; padding: 40px; color: var(--muted); }
.calendly-fallback h3 { color: var(--primary-900); }

/* ---------- footer ---------- */
.footer { background: var(--primary-900); color: rgba(255,255,255,.72); padding-block: 64px 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer .brand { color: #fff; margin-bottom: 1rem; }
.footer p { font-size: .95rem; max-width: 40ch; }
.footer h4 { color: #fff; font-family: var(--body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer a { display: block; padding: .3rem 0; font-size: .95rem; transition: color .2s; }
.footer a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .85rem; }
.footer__badges { display: flex; gap: 16px; }
.footer__badges span { display: inline-flex; align-items: center; gap: .4em; }
.footer__badges .stars { color: var(--star); }

/* ---------- exit-intent modal ---------- */
.exit { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px;
  background: rgba(10,20,35,.6); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.exit.is-open { opacity: 1; visibility: visible; }
.exit__card { background: var(--paper); border-radius: var(--radius-lg); max-width: 860px; width: 100%; overflow: hidden;
  display: grid; grid-template-columns: .8fr 1fr; box-shadow: var(--shadow-lg); transform: translateY(24px) scale(.98); transition: transform .4s var(--ease); }
.exit.is-open .exit__card { transform: none; }
.exit__media { background: linear-gradient(160deg,#23456e,#12253d); position: relative; min-height: 300px; }
.exit__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 60% 20%, rgba(245,158,11,.35), transparent 55%); }
.exit__body { padding: 40px; position: relative; }
.exit__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--paper-alt); display: grid; place-items: center; color: var(--muted); transition: background .2s; }
.exit__close:hover { background: var(--line); }
.exit__eyebrow { color: var(--accent-ink); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.exit h3 { font-size: 1.9rem; margin: .5rem 0 .7rem; }
.exit p { color: var(--muted); margin-bottom: 1.4rem; }
.exit__actions { display: flex; flex-direction: column; gap: 12px; }
.exit__micro { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.exit__micro label { font-size: .85rem; color: var(--muted); font-weight: 500; }
.exit__form { display: flex; gap: 8px; margin-top: .5rem; }
.exit__form input { flex: 1; min-width: 0; padding: .7em 1em; border: 1.5px solid var(--line); border-radius: var(--radius-pill); font: inherit; }
.exit__form input:focus { outline: none; border-color: var(--accent); }
.exit__form button { flex: none; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { 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}.reveal[data-delay="4"]{transition-delay:.32s}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__toggle { display: grid; }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 8px 20px 16px;
    box-shadow: 0 14px 30px rgba(0,0,0,.16); border-top: 1px solid var(--line);
  }
  .nav__links.is-open a {
    color: var(--primary-900); padding: 14px 4px; font-size: 1.05rem;
    border-bottom: 1px solid rgba(0,0,0,.06);
  }
  .nav__links.is-open a:last-child { border-bottom: 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .promise { max-width: 420px; }
  .booking__inner { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-grid figure:nth-child(1){grid-column:span 2}
  .exit__card { grid-template-columns: 1fr; }
  .exit__media { min-height: 140px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav__phone span { display: none; }
  .hero { padding-top: 120px; }
  .hero__actions .btn { width: 100%; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 190px; }
  .gallery-grid figure:nth-child(1),.gallery-grid figure:nth-child(6){grid-column:span 1}
  .footer__grid { grid-template-columns: 1fr; }
  .exit__form { flex-direction: column; }
  .exit__form button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
