/* ==========================================================================
   Custom Services LLC - Design tokens
   ========================================================================== */

:root {
  /* Color */
  --midnight: #0b1226;        /* hero base, darkened brand navy */
  --navy: #1f3871;            /* brand navy */
  --navy-soft: #2a4a92;       /* lifted navy for borders on dark */
  --sky: #35b6f2;             /* Carolina sky, interaction accent */
  --signal: #c0392f;          /* logo red, conversion accent only */
  --signal-dark: #a53027;
  --plaster: #f6f4ef;         /* warm off-white */
  --ink: #16203a;             /* body text on light */
  --ink-soft: #4c5a7a;        /* secondary text on light */
  --mist: #aab6d3;            /* secondary text on dark */
  --line-dark: rgba(170, 182, 211, 0.16);
  --line-grid: rgba(170, 182, 211, 0.09);

  /* Type */
  --font-display: "Bricolage Grotesque", "Public Sans", sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Layout */
  --container: 1320px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --header-h: 84px;
  --radius: 10px;
  --shadow-card: 0 24px 60px -18px rgba(11, 18, 38, 0.55);
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--midnight);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--signal);
  color: #fff;
  font-size: 1.0625rem;
  padding: 0.95rem 1.9rem;
  box-shadow: 0 10px 24px -10px rgba(192, 57, 47, 0.7);
}

.btn-primary:hover { background: var(--signal-dark); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--plaster);
  border-bottom: 1px solid rgba(31, 56, 113, 0.12);
}

.header-inner {
  max-width: calc(var(--container) + 2 * var(--pad));
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand img {
  width: 132px;
  height: auto;
}

.site-nav { margin-left: auto; }

.site-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--sky); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover { color: var(--sky); }

.btn-header {
  background: var(--navy);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.6rem 1.15rem;
}

.btn-header:hover { background: var(--signal); }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: none;
  border: 1px solid rgba(31, 56, 113, 0.25);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  background: var(--plaster);
  border-top: 1px solid rgba(31, 56, 113, 0.12);
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1.25rem 1.25rem;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0.25rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 56, 113, 0.08);
}

.mobile-nav-phone { color: var(--signal); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background:
    /* fine blueprint grid */
    repeating-linear-gradient(0deg, var(--line-grid) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, var(--line-grid) 0 1px, transparent 1px 28px),
    /* major grid lines */
    repeating-linear-gradient(0deg, rgba(170, 182, 211, 0.05) 0 1px, transparent 1px 140px),
    repeating-linear-gradient(90deg, rgba(170, 182, 211, 0.05) 0 1px, transparent 1px 140px),
    radial-gradient(120% 90% at 20% 0%, #14204a 0%, var(--midnight) 62%);
}

#dust {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero {
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
  width: min(var(--container), 100% - 2 * var(--pad));
  margin-inline: auto;
  padding: clamp(2.5rem, 5vh, 4rem) 0 0;
}

/* --- Left: content --- */

.hero-content {
  grid-column: 1;
  max-width: 720px;
}

.hero-serving {
  margin: 0 0 1.4rem;
  font-size: 1.1rem;
  color: var(--mist);
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 2.4vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--plaster);
}

.hero-sub {
  margin: 0 0 2.25rem;
  max-width: 54ch;
  font-size: 1.0925rem;
  line-height: 1.7;
  color: var(--mist);
}

.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-bottom: 2.75rem;
}

.hero-phone {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
}

.hero-phone-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}

.hero-phone-number {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--plaster);
  transition: color 160ms ease;
}

.hero-phone:hover .hero-phone-number { color: var(--sky); }

/* --- Title block (drafting corner table) --- */

.title-block {
  max-width: 560px;
  border: 1px solid var(--line-dark);
  background: rgba(11, 18, 38, 0.55);
  backdrop-filter: blur(2px);
}

.title-block-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}

.title-block-cells {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
}

.title-block .cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.3rem;
  min-height: 72px;
  padding: 0.7rem 0.9rem;
  border-right: 1px solid var(--line-dark);
}

.title-block .cell:last-child { border-right: none; }

.title-block dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
  margin: 0;
}

.title-block dd {
  margin: 0;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--plaster);
  white-space: nowrap;
}

/* --- Right: photo --- */

.hero-visual {
  position: relative;
  z-index: 2;
  width: min(var(--container), 100% - 2 * var(--pad));
  height: clamp(260px, 36vh, 420px);
  margin: clamp(2.5rem, 5vh, 3.5rem) auto 0;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 18, 38, 0.55) 0%, rgba(11, 18, 38, 0) 30%);
}

.visual-caption {
  position: absolute;
  z-index: 1;
  right: clamp(1.25rem, 3vw, 2.5rem);
  bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246, 244, 239, 0.75);
}

/* --- Form card straddling the seam --- */

.hero-form-wrap {
  grid-column: 2;
  position: relative;
  z-index: 3;
  width: 100%;
}

.estimate-card {
  background: var(--plaster);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.4vh, 2rem) clamp(1.4rem, 2vw, 1.9rem);
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--navy);
}

.card-head h2 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.card-head p {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.field { margin-bottom: 0.9rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field .optional { text-transform: none; letter-spacing: 0; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(31, 56, 113, 0.22);
  border-radius: 7px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field textarea { resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(53, 182, 242, 0.22);
}

.field input.invalid,
.field select.invalid {
  border-color: var(--signal);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.btn-submit {
  width: 100%;
  background: var(--signal);
  color: #fff;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  margin-top: 0.25rem;
}

.btn-submit:hover { background: var(--signal-dark); }

.btn-submit[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.card-note {
  margin: 0.8rem 0 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
}

.form-status {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.form-status.ok { color: #1e7c3c; }
.form-status.error { color: var(--signal); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 400px;
  }
  .title-block-cells { grid-template-columns: repeat(2, 1fr); }
  .title-block .cell:nth-child(2n) { border-right: none; }
  .title-block .cell:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
}

@media (max-width: 900px) {
  .site-nav, .header-phone span, .btn-header { display: none; }
  .header-phone { font-size: 0; }
  .header-phone svg { width: 22px; height: 22px; }
  .nav-toggle { display: flex; }
  .mobile-nav.open { display: block; }

  :root { --header-h: 68px; }
  .brand img { width: 106px; }

  /* Push phone icon + menu toggle to the right edge (nav is hidden, so nothing else does) */
  .header-actions { margin-left: auto; }

  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 1.5rem;
  }

  /* Photo banner moves above the heading on mobile */
  .hero-visual {
    order: -1;
    height: 240px;
    margin-top: 1.25rem;
  }

  .hero-content { max-width: none; }

  .hero-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }

  .hero-form-wrap {
    grid-column: 1;
    margin-top: 2.25rem;
  }

  .title-block { max-width: none; }
}

@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-ctas { gap: 1.1rem; }
  .btn-primary { width: 100%; }
}

/* ==========================================================================
   Shared section shells
   ========================================================================== */

.section {
  padding: clamp(4rem, 9vh, 6.5rem) 0;
}

.container {
  width: min(var(--container), 100% - 2 * var(--pad));
  margin-inline: auto;
}

.container-narrow { max-width: 840px; }

.section-light {
  background: var(--plaster);
  color: var(--ink);
}

.section-dark {
  background:
    repeating-linear-gradient(0deg, var(--line-grid) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, var(--line-grid) 0 1px, transparent 1px 28px),
    var(--midnight);
  color: var(--plaster);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.25rem, 5vh, 3.5rem);
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: inherit;
}

.section-light .section-head h2 { color: var(--navy); }

.section-head p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.section-dark .section-head p { color: var(--mist); }

/* ==========================================================================
   Services
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.service-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(31, 56, 113, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px -18px rgba(11, 18, 38, 0.25);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -18px rgba(11, 18, 38, 0.35);
}

.service-card-wide { grid-column: span 3; }

.service-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.service-card-wide .service-media { aspect-ratio: 21 / 10; }

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.service-card:hover .service-media img { transform: scale(1.04); }

.service-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.4rem 1.5rem 1.5rem;
}

.service-body h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--navy);
}

.service-body p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.service-body ul {
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}

.service-body li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.service-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--sky);
}

.service-link {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  text-decoration: none;
}

.service-link:hover { color: var(--sky); }

/* ==========================================================================
   Build story
   ========================================================================== */

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.story-media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  max-height: 70vh;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-dark);
}

.story-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 450ms ease;
}

.story-media img.is-active { opacity: 1; }

.story-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-steps li {
  padding: 0.85rem 0 0.85rem 1.15rem;
  border-left: 2px solid var(--line-dark);
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 300ms ease, border-color 300ms ease;
}

.story-steps li:hover { opacity: 0.75; }

.story-steps li.is-active {
  opacity: 1;
  border-left-color: var(--sky);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--sky);
}

.story-steps h3 {
  margin: 0.15rem 0 0.15rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--plaster);
}

.story-steps p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--mist);
}

/* Mobile / reduced-motion fallback strip */
.story-strip {
  display: none;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 2.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.story-strip figure {
  flex: 0 0 min(78vw, 420px);
  margin: 0;
  scroll-snap-align: center;
}

.story-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
}

.story-strip figcaption {
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ==========================================================================
   Before / after slider
   ========================================================================== */

.ba-slider {
  position: relative;
  max-width: 960px;
  margin-inline: auto;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 50px -24px rgba(11, 18, 38, 0.45);
  touch-action: none;
}

.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: var(--plaster);
  pointer-events: none;
}

.ba-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--plaster);
  box-shadow: 0 4px 14px rgba(11, 18, 38, 0.4);
}

.ba-handle span::before {
  content: "\2194";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--navy);
}

.ba-chip {
  position: absolute;
  top: 1rem;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
  background: rgba(11, 18, 38, 0.72);
  color: var(--plaster);
}

.ba-chip-before { left: 1rem; }
.ba-chip-after { right: 1rem; }

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.ba-slider { cursor: ew-resize; }

.ba-slider:has(.ba-range:focus-visible) {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.ba-more {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.ba-more a {
  color: var(--navy);
  font-weight: 700;
}

/* ==========================================================================
   Why us
   ========================================================================== */

.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.why-content h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--plaster);
}

.why-content > p {
  margin: 0 0 1.5rem;
  line-height: 1.7;
  color: var(--mist);
}

.why-list {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.why-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 2rem;
  color: var(--plaster);
  font-weight: 500;
}

.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--sky);
  border-bottom: 3px solid var(--sky);
  transform: rotate(-45deg);
}

.why-media {
  margin: 0;
}

.why-media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
}

.why-media figcaption {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list details {
  border-bottom: 1px solid rgba(31, 56, 113, 0.15);
}

.faq-list summary {
  position: relative;
  display: block;
  padding: 1.15rem 3rem 1.15rem 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-icon {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--sky);
  transition: transform 200ms ease;
}

.faq-icon::before {
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  left: 6px;
  top: 0;
  width: 2px;
  height: 14px;
}

.faq-list details[open] .faq-icon::after { transform: scaleY(0); }

.faq-list details p {
  margin: 0;
  padding: 0 0 1.25rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.faq-list details a {
  color: var(--navy);
  font-weight: 700;
}

/* ==========================================================================
   Closing CTA
   ========================================================================== */

.closing {
  padding: clamp(3rem, 7vh, 5rem) 0;
  background: linear-gradient(100deg, var(--navy) 30%, #16265a 100%);
  color: var(--plaster);
}

.closing-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.closing h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
}

.closing p {
  margin: 0;
  color: var(--mist);
}

.closing-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer-main {
  background: var(--midnight);
  color: var(--mist);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding: clamp(3rem, 6vh, 4.5rem) 0;
}

.footer-name {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--plaster);
}

.footer-brand p:not(.footer-name) {
  margin: 0 0 1.2rem;
  line-height: 1.7;
  max-width: 34ch;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  color: var(--plaster);
  transition: border-color 160ms ease, color 160ms ease;
}

.footer-social:hover {
  color: var(--sky);
  border-color: var(--sky);
}

.footer-head {
  margin: 0 0 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plaster);
}

.footer-head-gap { margin-top: 1.4rem; }

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li { padding: 0.22rem 0; }

.footer-col a {
  color: var(--mist);
  text-decoration: none;
}

.footer-col a:hover { color: var(--sky); }

.footer-licenses {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 1.2rem 0;
}

.footer-bottom p { margin: 0; font-size: 0.82rem; }

/* ==========================================================================
   Inner pages
   ========================================================================== */

.page-hero {
  background:
    repeating-linear-gradient(0deg, var(--line-grid) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, var(--line-grid) 0 1px, transparent 1px 28px),
    radial-gradient(120% 130% at 20% 0%, #14204a 0%, var(--midnight) 62%);
  padding: clamp(3.5rem, 8vh, 5.5rem) 0;
  color: var(--plaster);
}

.page-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 3.2vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.page-lede {
  margin: 0;
  max-width: 64ch;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--mist);
}

/* --- About --- */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-layout h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  line-height: 1.12;
  color: var(--navy);
}

.about-layout p {
  margin: 0 0 1.1rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.about-media {
  margin: 0;
}

.about-media img {
  width: 100%;
  border-radius: var(--radius);
}

.about-media figcaption {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.about-titleblock {
  max-width: 720px;
  margin-bottom: 2rem;
}

.about-why { margin-bottom: 0; }

/* --- Services detail rows --- */

.svc-detail { padding: clamp(2.5rem, 6vh, 4rem) 0; }

.svc-detail:first-of-type { padding-top: clamp(4rem, 9vh, 6.5rem); }

.svc-alt { background: #fff; }

.svc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.svc-row-flip .svc-media { order: 2; }

.svc-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px -22px rgba(11, 18, 38, 0.35);
}

.svc-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.svc-copy h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.3vw, 2.3rem);
  color: var(--navy);
}

.svc-copy > p {
  margin: 0 0 1.1rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.svc-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.svc-list li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.2rem;
  color: var(--ink);
  font-weight: 500;
}

.svc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 7px;
  height: 7px;
  background: var(--sky);
}

/* Dark variant of the before/after section (services page) */
.ba-dark .ba-more { color: var(--mist); }
.ba-dark .ba-more a { color: var(--plaster); }

/* --- Gallery --- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.g-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(31, 56, 113, 0.08);
}

.g-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease;
}

.g-item:hover img { transform: scale(1.05); }

.gallery-head-gap { margin-top: clamp(3rem, 7vh, 5rem); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(11, 18, 38, 0.92);
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  border-radius: var(--radius);
}

.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: rgba(246, 244, 239, 0.08);
  color: var(--plaster);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.lightbox button:hover { background: rgba(246, 244, 239, 0.2); }

.lb-close { top: 1.25rem; right: 1.25rem; }
.lb-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

.lb-count {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

/* --- Contact --- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contact-info h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  color: var(--navy);
}

.contact-info > p {
  margin: 0 0 2rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.contact-item { margin-bottom: 1.5rem; }

.contact-label {
  margin: 0 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  text-decoration: none;
}

.contact-value:hover { color: var(--sky); }

.contact-email { font-size: 1.15rem; }

.contact-value-plain {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.contact-info .footer-social {
  border-color: rgba(31, 56, 113, 0.25);
  color: var(--navy);
}

.contact-info .footer-social:hover {
  color: var(--sky);
  border-color: var(--sky);
}

/* ==========================================================================
   Section responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card, .service-card-wide { grid-column: span 1; }
  .service-card-wide .service-media { aspect-ratio: 16 / 9; }
}

@media (max-width: 900px) {
  .story-layout { display: none; }
  .story-strip { display: flex; }
  .story { padding-bottom: 0; }

  .why-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .about-layout,
  .svc-row,
  .contact-layout { grid-template-columns: 1fr; }
  .svc-row-flip .svc-media { order: 0; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .lightbox { padding: 1rem; }
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
  .ba-slider { aspect-ratio: 4 / 3; }
  .closing-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  #dust { display: none; }
  .story-layout { display: none; }
  .story-strip { display: flex; }
}
