/* =========================================================================
   Dynasty Home Improvement — Stylesheet
   Brand: Navy (#0f2547) + Gold (#d4a23c). Modern, lightweight, responsive.
   ========================================================================= */

/* ----- Design tokens ----- */
:root {
  --navy: #0f2547;
  --navy-700: #16335f;
  --navy-900: #0a1a35;
  --gold: #d4a23c;
  --gold-600: #c08f2c;
  --gold-100: #f6ecd5;
  --ink: #1a2233;
  --muted: #5b6577;
  --line: #e6e9ef;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --white: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(15, 37, 71, 0.06);
  --shadow: 0 18px 40px rgba(15, 37, 71, 0.12);
  --shadow-lg: 0 30px 70px rgba(15, 37, 71, 0.18);

  --container: 1180px;
  --space: clamp(64px, 8vw, 110px);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; }

/* ----- Layout helpers ----- */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding-block: var(--space); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--gold); }
.text-gold { color: var(--gold); }

.section__head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.section__title--light { color: var(--white); }
.section__sub { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }

/* ----- Buttons ----- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  will-change: transform;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--navy-900); }
.btn--gold:hover { background: var(--gold-600); }
.btn--navy { --btn-bg: var(--navy); --btn-fg: #fff; }
.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn--lg { padding: 16px 32px; font-size: 1.03rem; }
.btn--block { width: 100%; }

/* =========================================================================
   Topbar
   ========================================================================= */
.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.85rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 9px;
}
.topbar__item { opacity: 0.85; }
.topbar__contact { display: flex; gap: 22px; }
.topbar__link { display: inline-flex; align-items: center; gap: 7px; transition: color 0.15s; }
.topbar__link:hover { color: var(--gold); }
.topbar__link svg { width: 15px; height: 15px; fill: var(--gold); }

/* =========================================================================
   Header / Nav
   ========================================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.brand img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.15s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.22s ease;
}
.nav__link:hover { color: var(--navy); }
.nav__link:hover::after { width: 100%; }
.nav__cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Close (X) button — only visible inside the open mobile panel.
   Lives in a full-width row (.nav-close-row) and is aligned right there. */
.nav-close-row { display: none; }
.nav-close {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-close span { font-size: 1.75rem; line-height: 1; font-weight: 300; }
.nav-close:hover { background: var(--gold); color: var(--navy-900); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  min-height: clamp(560px, 86vh, 820px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 26, 53, 0.92) 0%, rgba(10, 26, 53, 0.62) 45%, rgba(10, 26, 53, 0.2) 100%);
}
.hero__content { padding-block: 70px; max-width: 660px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin-bottom: 30px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero__badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero__badges img { height: 46px; width: auto; background: #fff; padding: 5px 8px; border-radius: 8px; }
.hero__trust {
  position: relative;
  padding-left: 24px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.hero__trust::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 15px; height: 15px;
  margin-top: -7.5px;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* =========================================================================
   Services
   ========================================================================= */
.services { background: var(--bg-soft); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__tag {
  position: absolute;
  left: 14px; bottom: 14px;
  background: var(--navy);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 999px;
}
.card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card__title {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.card__body > p { color: var(--muted); }
.card__list { margin: 18px 0 22px; display: grid; gap: 8px; }
.card__list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.94rem;
}
.card__list li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--gold);
  transform: rotate(45deg);
}
.card__link {
  margin-top: auto;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.15s, gap 0.15s;
}
.card__link:hover { color: var(--gold-600); }

/* =========================================================================
   Trust band
   ========================================================================= */
.band { position: relative; padding-block: clamp(54px, 6vw, 80px); overflow: hidden; color: #fff; }
.band__bg { position: absolute; inset: 0; z-index: 0; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,26,53,0.9), rgba(10,26,53,0.82));
}
.band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat__label { display: block; margin-top: 8px; font-size: 0.95rem; color: rgba(255,255,255,0.85); }

/* =========================================================================
   About
   ========================================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.about__badge {
  position: absolute;
  right: -14px; bottom: -18px;
  background: #fff;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.about__badge img { height: 50px; width: auto; }
.about__content > p { color: var(--muted); margin-bottom: 16px; }
.about__pledge {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--navy);
}

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-top: 22px;
}
.checklist--two { grid-template-columns: 1fr 1fr; }
.checklist li {
  position: relative;
  padding-left: 30px;
  font-weight: 500;
  font-size: 0.96rem;
}
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold-100);
  -webkit-mask: none;
}
.checklist li::after {
  content: "";
  position: absolute; left: 5px; top: 8px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--gold-600);
  border-bottom: 2px solid var(--gold-600);
  transform: rotate(-45deg);
}

/* =========================================================================
   Projects — Before/After slider + gallery
   ========================================================================= */
.ba { max-width: 960px; margin: 0 auto; }
.ba__frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2;
  user-select: none;
  touch-action: pan-y;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before {
  position: absolute; inset: 0;
  width: 50%;
  overflow: hidden;
}
/* The "before" image stays the full frame width and is only clipped by the
   container, so both images remain perfectly aligned as the slider moves. */
.ba__before img {
  position: absolute; top: 0; left: 0;
  width: var(--ba-w, 960px);
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.ba__label {
  position: absolute; top: 16px;
  z-index: 3;
  background: rgba(10, 26, 53, 0.82);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.ba__label--before { left: 16px; }
.ba__label--after { right: 16px; background: rgba(212, 162, 60, 0.92); color: var(--navy-900); }
.ba__handle {
  position: absolute; top: 0; bottom: 0;
  left: 50%;
  width: 44px;
  margin-left: -22px;
  z-index: 4;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ba__handle::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; margin-left: -1.5px;
  background: #fff;
}
.ba__handle-grip {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
}
.ba__handle-grip svg { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ba__handle:focus-visible { outline: none; }
.ba__handle:focus-visible .ba__handle-grip { box-shadow: 0 0 0 4px var(--gold); }

.offer { max-width: 960px; margin: clamp(44px, 5vw, 64px) auto 0; text-align: center; }
.offer__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 22px;
}
.offer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.offer__grid li {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-weight: 500;
  font-size: 0.95rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: clamp(44px, 5vw, 64px);
}
.gallery img {
  border-radius: var(--radius-sm);
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}
.gallery img:hover { transform: scale(1.02); }

/* =========================================================================
   Financing
   ========================================================================= */
.financing { background: var(--bg-soft); }
.financing__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.financing__content > p { color: var(--muted); }
.financing__content .checklist { margin-bottom: 30px; }
.financing__card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 42px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.financing__card::before {
  content: "";
  position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(212,162,60,0.35), transparent 70%);
}
.financing__card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.financing__card p { color: rgba(255,255,255,0.84); margin-bottom: 24px; }
.financing__phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--gold);
  color: var(--navy-900);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.15rem;
  transition: transform 0.18s ease;
}
.financing__phone:hover { transform: translateY(-2px); }
.financing__phone svg { width: 22px; height: 22px; fill: var(--navy-900); }
.financing__phone small { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }

/* =========================================================================
   Contact
   ========================================================================= */
.contact { background: var(--navy); color: #fff; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.contact__lead { color: rgba(255,255,255,0.85); font-size: 1.08rem; margin-bottom: 32px; }
.contact__list { display: grid; gap: 20px; }
.contact__list li { display: flex; align-items: center; gap: 16px; }
.contact__icon {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  display: grid; place-items: center;
}
.contact__icon svg { width: 22px; height: 22px; fill: var(--gold); }
.contact__list small { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 2px; }
.contact__list a, .contact__list span { font-weight: 600; word-break: break-word; }
.contact__list a { transition: color 0.15s; }
.contact__list a:hover { color: var(--gold); }

.contact__form {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
}
.contact__form-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 22px;
}
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(212,162,60,0.16);
}
.field textarea { resize: vertical; }
.contact__form-note { margin-top: 14px; font-size: 0.9rem; color: var(--muted); text-align: center; }
.contact__form-note a { color: var(--navy); font-weight: 600; }

/* Honeypot anti-spam field — visually hidden, kept in the accessibility tree off. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

/* Form status message */
.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
}
.form-status--ok  { background: #e8f6ec; color: #1f6b3a; border: 1px solid #bfe6cb; }
.form-status--err { background: #fdecec; color: #b3261e; border: 1px solid #f3c4c1; }

/* =========================================================================
   Footer
   ========================================================================= */
.footer { background: var(--navy-900); color: rgba(255,255,255,0.78); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-block: clamp(48px, 6vw, 70px);
}
.footer__brand img { height: 56px; width: auto; margin-bottom: 18px; }
.footer__brand p { font-size: 0.95rem; max-width: 320px; margin-bottom: 20px; }
.footer__bbb { height: 48px !important; width: auto; background: #fff; padding: 5px 8px; border-radius: 8px; }
.footer__col h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__col a, .footer__col span { display: block; margin-bottom: 10px; font-size: 0.95rem; transition: color 0.15s; }
.footer__col a:hover { color: var(--gold); }
.footer__contact a { word-break: break-word; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* =========================================================================
   Floating call button (mobile)
   ========================================================================= */
.fab {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--gold);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
  animation: fabPulse 2.4s infinite;
}
.fab svg { width: 26px; height: 26px; fill: var(--navy-900); }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(0,0,0,0.3), 0 0 0 0 rgba(212,162,60,0.5); }
  50% { box-shadow: 0 12px 28px rgba(0,0,0,0.3), 0 0 0 12px rgba(212,162,60,0); }
}

/* =========================================================================
   Scroll reveal
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .about__grid, .financing__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; margin-inline: auto; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .topbar__item { display: none; }
  .topbar__link--email { display: none; }
  .topbar__inner { justify-content: center; }

  /* Remove backdrop-filter on mobile: it turns the header into a containing
     block, which would otherwise break the slide-in panel's position:fixng. */
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }

  /* Dim overlay behind the panel */
  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(10, 26, 53, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .nav-overlay.is-open { opacity: 1; visibility: visible; }

  /* Slide-in panel — fixed to the viewport, full height, fully opaque */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: min(82vw, 340px);
    max-width: 100%;
    z-index: 120;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    padding: 24px 28px 40px;
    background: var(--navy);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  /* Close button sits at the panel's top, aligned with the links (left).
     A right-pushed flex item lands on the panel edge and gets clipped against
     the viewport, so we keep it left where it always paints reliably. */
  .nav-close-row { display: flex; justify-content: flex-start; width: 100%; margin-bottom: 6px; }
  /* Each link is a full-width, tall touch target so taps never overlap */
  .nav__link {
    display: block;
    width: 100%;
    color: #fff;
    font-size: 1.25rem;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav__link::after { display: none; }
  .nav__link:hover { color: var(--gold); }
  .nav__cta {
    width: 100%;
    margin: 18px 0 0;
    padding: 14px 20px;
    text-align: center;
    white-space: normal;
  }

  .nav-toggle { display: flex; }
  .nav-close-row { display: flex; }

  /* Lock background scroll while the menu is open */
  body.nav-open { overflow: hidden; }

  .fab { display: flex; }
  .gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .band__inner { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
  .checklist, .checklist--two { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .offer__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .hero__actions .btn { flex: 1; }
}

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