/* Warrior Welding & Fabrication — static site */
:root {
  --bg: #0e1013;
  --bg-elevated: #171a1f;
  --bg-card: #1c2128;
  --bg-soft: #242a33;
  --border: #2f3742;
  --text: #f3f4f6;
  --text-muted: #a8b0bb;
  --text-dim: #7a8491;
  /* USMC scarlet (#DA291C). Veteran-owned Marine business -- true red, not
     maroon. The -dark shades stay red rather than dropping into brown so the
     button gradients do not read muddy. */
  --accent: #da291c;
  --accent-hot: #ff3b2f;
  --accent-dark: #b01f14;
  --crimson: #da291c;
  --crimson-dark: #b01f14;
  --success: #3d9a5f;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1120px;
  --header-h: 78px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-hot);
  text-decoration: none;
}

a:hover {
  color: #ff6b75;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Top bar */
.topbar {
  background: #090b0d;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  max-height: 4rem;
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.22s ease, border-color 0.22s ease;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
}

.topbar a {
  color: var(--text-muted);
}

.topbar a:hover {
  color: var(--accent-hot);
}

.topbar strong {
  color: var(--text);
}

/* Hide top bar once user scrolls (more room on phones) */
body.is-scrolled .topbar {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
  pointer-events: none;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 16, 19, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  transition: min-height 0.28s ease;
}

.site-header.is-compact .nav-row {
  min-height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  min-width: 0;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  height: 52px;
  width: auto;
  max-width: min(280px, 48vw);
  transition: height 0.28s ease, max-width 0.28s ease;
}

.site-header.is-compact .brand img {
  height: 44px;
}

/* Home: large logo at top of page, shrinks on scroll */
body.page-home .site-header:not(.is-compact) .nav-row {
  min-height: 118px;
}

body.page-home .site-header:not(.is-compact) .brand img {
  height: 96px;
  max-width: min(480px, 72vw);
}

.nav-toggle {
  display: none;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-left: auto;
}

/* Hamburger icon — three bars, animates to an X when the menu is open. */
.nav-toggle .bars {
  display: block;
  position: relative;
  width: 22px;
  height: 16px;
}

.nav-toggle .bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 7px; }
.nav-toggle .bars span:nth-child(3) { top: 14px; }

.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle .bars span { transition: none; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  color: var(--text-muted);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg-soft);
}

.nav-links .btn {
  margin-left: 0.35rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-hot), var(--accent-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(218, 41, 28, 0.35);
}

.btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #ff4d5a, var(--accent));
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(218, 41, 28, 0.1);
}

.btn-crimson {
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
  color: #fff;
}

.btn-crimson:hover {
  color: #fff;
  filter: brightness(1.08);
}

.btn-lg {
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(420px, 68vh, 640px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #000;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

/* Video hero. The poster <img> paints first and stays visible underneath, so
   there is never a blank frame while the clip loads or if it is skipped.
   Phones load a lighter 960px encode -- see the loader in js/main.js. */
.hero-media .hero-video {
  position: absolute;
  inset: 0;
  display: block;
}

/* Respect reduced-motion: hold the poster frame instead of looping video. */
@media (prefers-reduced-motion: reduce) {
  .hero-media .hero-video { display: none !important; }
  .hero-media .hero-fallback { visibility: visible !important; }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 16, 19, 0.35) 0%, rgba(14, 16, 19, 0.72) 48%, rgba(14, 16, 19, 0.96) 100%),
    linear-gradient(90deg, rgba(14, 16, 19, 0.75) 0%, rgba(14, 16, 19, 0.2) 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 3.25rem;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-hot);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  margin-bottom: 0.85rem;
}

.hero p {
  font-size: 1.08rem;
  max-width: 56ch;
  color: #d5dbe3;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Page hero (shorter) */
.page-hero {
  min-height: 340px;
}

.page-hero .hero-content {
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 640px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-head p {
  font-size: 1.05rem;
}

/* Cards grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-body p {
  flex: 1;
}

.card-body .btn {
  align-self: flex-start;
  margin-top: 0.75rem;
}

.card.crimson {
  border-top: 3px solid var(--crimson);
}

.card.accent {
  border-top: 3px solid var(--accent);
}

/* Feature list / why us */
.feature {
  position: relative;
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.45rem 1.45rem;
  height: 100%;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

/* Scarlet rule across the top edge, brightening on hover. */
.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hot) 55%, transparent 100%);
  opacity: 0.55;
  transition: opacity 0.18s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(218, 41, 28, 0.45);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.feature:hover::before {
  opacity: 1;
}

.feature h3 {
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
}

.feature p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .feature,
  .feature::before { transition: none; }
  .feature:hover { transform: none; }
}

.feature-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  /* Solid scarlet. At 16% alpha over the near-black card this desaturated
     into a muddy maroon, so the tile is opaque and the icon sits white on it. */
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
  font-weight: 800;
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
}

/* Split content */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

/* Short-copy splits: keep the text column from stranding a two-line paragraph
   beside a half-width image. */
.split > div:not(.split-media) > p {
  max-width: 46ch;
  font-size: 1.02rem;
}

/* Alternating layout: image on the right instead of the left. Uses order
   rather than row-reverse so the DOM keeps image-then-text on mobile, where
   the grid collapses to a single column. */
.split.split-reverse .split-media {
  order: 2;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 280px;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

/* Service blocks */
.service-list {
  display: grid;
  gap: 1rem;
}

.service-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.service-item .num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.service-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.service-item p {
  margin: 0;
  font-size: 0.95rem;
}

/* FAQ */
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent-hot);
  font-weight: 800;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0.75rem 0 0;
}

/* Testimonials */
.quote {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  height: 100%;
}

.stars {
  color: #f5c542;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.quote p {
  color: #d5dbe3;
  font-style: italic;
}

.quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.quote cite span {
  display: block;
  font-weight: 500;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

/* Areas */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.92;
}

/* CTA band */
.cta-band {
  background:
    linear-gradient(135deg, rgba(218, 41, 28, 0.22), rgba(14, 16, 19, 0.92)),
    var(--bg-elevated);
  border-block: 1px solid var(--border);
  padding: 3.25rem 0;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.6rem;
}

.cta-band p {
  max-width: 60ch;
  margin: 0 auto 1.35rem;
  color: #d5dbe3;
}

.cta-band .hero-actions {
  justify-content: center;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.form-card,
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.75rem 0.85rem;
  font: inherit;
  margin-bottom: 0.9rem;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(218, 41, 28, 0.45);
  border-color: var(--accent);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.info-list li:last-child {
  border-bottom: 0;
}

.info-list strong {
  display: block;
  color: var(--text-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.info-list a,
.info-list span {
  color: var(--text);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: #090b0d;
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer a:hover {
  color: var(--accent-hot);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Agency credit */
.footer-built-by {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-built-by a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-built-by a:hover,
.footer-built-by a:focus-visible {
  opacity: 1;
}

.footer-built-by img {
  height: 14px;
  width: auto;
  display: block;
}

/* Coming soon */
.coming-soon {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.coming-soon h2 {
  color: var(--crimson);
}

/* Utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  /* Safe area for notched phones */
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  /* Top bar: 24/7 + phone only (hide email & service area) */
  .topbar {
    font-size: 0.85rem;
  }

  .topbar .container {
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0;
    text-align: left;
  }

  .topbar-desk {
    display: none;
  }

  .topbar-left strong {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
  }

  .topbar-phone {
    font-size: 0.95rem;
    color: var(--text) !important;
  }

  /* Compact sticky header on mobile */
  .site-header .container {
    position: relative;
  }

  .nav-row {
    min-height: 60px;
    gap: 0.75rem;
  }

  .site-header.is-compact .nav-row {
    min-height: 52px;
  }

  .brand img {
    height: 44px;
    max-width: min(200px, 58vw);
  }

  .site-header.is-compact .brand img {
    height: 38px;
  }

  body.page-home .site-header:not(.is-compact) .nav-row {
    min-height: 76px;
  }

  body.page-home .site-header:not(.is-compact) .brand img {
    height: 64px;
    max-width: min(240px, 62vw);
  }

  .nav-toggle {
    display: inline-flex;
    min-height: 44px;
    min-width: 44px;
    padding: 0.6rem;
    font-weight: 700;
  }

  /* The <nav> wrapper holds the <ul>, but only the <ul> is absolutely
     positioned. Left as a normal block it still occupies the flex row and
     pushes the hamburger off the right edge, so collapse it to nothing. */
  #primary-nav {
    position: static;
    flex: none;
    width: 0;
    margin: 0;
    padding: 0;
  }

  /* Full-screen overlay. Fixed to the viewport rather than the header, so it
     covers the page regardless of scroll position. */
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: calc(72px + env(safe-area-inset-top)) 1.5rem
             calc(2rem + env(safe-area-inset-bottom));
    gap: 0.25rem;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 90;
  }

  .nav-links.open {
    display: flex;
  }

  /* Header sits above the overlay so the hamburger stays tappable to close. */
  .site-header {
    z-index: 120;
  }

  /* Stop the page scrolling behind the open overlay. */
  body.nav-open {
    overflow: hidden;
  }

  /* Helmet fills the overlay as a large watermark. */
  .nav-links::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(78vw, 380px);
    height: min(78vw, 380px);
    background: url("../assets/images/logo-alt.png") no-repeat center / contain;
    opacity: 0.10;
    pointer-events: none;
    z-index: 0;
  }

  .nav-links > li {
    position: relative;
    z-index: 1;
  }

  .nav-links a {
    padding: 0.85rem 1rem;
    font-size: 1.25rem;
    letter-spacing: 0.01em;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* Hairline separators between items, none on the last. */
  .nav-links > li > a:not(.btn) {
    border-bottom: 1px solid rgba(47, 55, 66, 0.55);
    transition: color 0.18s ease, background 0.18s ease;
  }

  .nav-links > li:has(> a.btn) + li > a:not(.btn),
  .nav-links > li:last-child > a:not(.btn) {
    border-bottom: 0;
  }

  .nav-links > li > a:not(.btn):hover,
  .nav-links > li > a:not(.btn).active {
    color: var(--accent-hot);
    background: transparent;
  }

  /* Call button sits apart at the bottom of the stack. */
  .nav-links .btn {
    margin-top: 1.25rem;
    font-size: 1.05rem;
    color: #fff;
  }

  .nav-links .btn {
    margin: 0.5rem 0 0;
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  /* Page rhythm */
  .hero {
    min-height: clamp(320px, 58vh, 480px);
  }

  .page-hero {
    min-height: 260px;
  }

  .hero-content {
    padding: 2.5rem 0 2rem;
  }

  .page-hero .hero-content {
    padding-top: 2rem;
    padding-bottom: 1.75rem;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 7vw, 2.15rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .cta-band .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 2.75rem 0;
  }

  .cta-band {
    padding: 2.25rem 0;
  }

  .cta-band .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-card,
  .info-card {
    padding: 1.15rem;
  }

  input,
  textarea,
  .btn {
    font-size: 16px; /* avoids iOS zoom on focus */
  }

  .footer-grid {
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .pill-row {
    gap: 0.45rem;
  }

  .pill {
    font-size: 0.88rem;
    padding: 0.5rem 0.85rem;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .topbar-left strong {
    font-size: 0.72rem;
  }

  .topbar-phone {
    font-size: 0.88rem;
  }

  .brand img {
    max-width: min(160px, 52vw);
  }
}

/* Centred variant: circular icon badge above centred text, matching the
   layout the previous site used for its benefits row. */
.feature-centered .feature {
  text-align: center;
}

.feature-centered .feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.feature-centered .feature-icon img {
  width: 40px;
  height: 40px;
}

.feature-centered .feature p {
  margin-left: auto;
  margin-right: auto;
  max-width: 34ch;
}
