/* Water Damage Los Angeles — brand system */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap");
@import url("../brand/colors/tokens.css");

:root {
  /* Brand kit tokens (inlined so layout never depends on @import alone) */
  --color-primary-900: #0f2b3d;
  --color-primary-600: #1c5b7a;
  --color-primary-600-hover: #163f53;
  --color-secondary-500: #2e93a0;
  --color-accent-500: #e2912e;
  --color-accent-500-hover: #c67420;
  --color-neutral-100: #f5f7f7;
  --color-neutral-200: #e1e6e8;
  --color-neutral-400: #64757f;
  --color-surface: #ffffff;
  --color-success-500: #3c9a5f;
  --color-danger-500: #c4432e;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Legacy aliases → brand kit tokens */
  --bg: var(--color-neutral-100);
  --bg-deep: var(--color-neutral-200);
  --surface: var(--color-surface);
  --ink: var(--color-primary-900);
  --ink-soft: var(--color-primary-600);
  --muted: var(--color-neutral-400);
  --line: var(--color-neutral-200);
  --line-soft: #eef2f3;
  --accent: var(--color-secondary-500);
  --accent-deep: var(--color-primary-600);
  --accent-soft: #e4f3f5;
  --cta: var(--color-accent-500);
  --cta-hover: var(--color-accent-500-hover);
  --warn: var(--color-danger-500);
  --success: var(--color-success-500);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 43, 61, 0.04), 0 12px 32px rgba(15, 43, 61, 0.06);
  --shadow-hover: 0 2px 4px rgba(15, 43, 61, 0.05), 0 18px 40px rgba(15, 43, 61, 0.1);
  --max: 1120px;
  --font: var(--font-body);
  --serif: var(--font-display);
  --mono: var(--font-mono);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #d7ecef 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #e4ebf0 0%, transparent 50%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary-600);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-secondary-500);
}

:focus-visible {
  outline: 2px solid var(--color-secondary-500);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(245, 247, 247, 0.92);
  border-bottom: 1px solid rgba(225, 230, 232, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand-logo {
  height: 2.65rem;
  width: auto;
  max-width: min(240px, 52vw);
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.nav > a:not(.btn):not(.social-link),
.nav .nav-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.nav > a:not(.btn):not(.social-link):hover,
.nav > a:not(.btn):not(.social-link)[aria-current="page"],
.nav .nav-link:hover,
.nav .nav-link[aria-current="page"],
.nav-item.is-open > .nav-item-head .nav-link,
.nav-item:hover > .nav-item-head .nav-link {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.nav-item {
  position: relative;
  flex: 0 0 auto;
}

.nav-item-head {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.nav-dropdown-toggle:hover,
.nav-item.is-open .nav-dropdown-toggle {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.nav-caret {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s var(--ease);
}

.nav-item.is-open .nav-caret {
  transform: rotate(225deg) translateY(-1px);
}

.nav-dropdown-panel {
  display: none !important;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 80;
  min-width: 16rem;
  max-width: min(92vw, 42rem);
  max-height: min(70vh, 28rem);
  overflow: auto;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}

.nav-dropdown-services {
  min-width: min(92vw, 40rem);
}

.nav-dropdown-areas {
  min-width: 14rem;
  max-width: 18rem;
}

.nav-item.is-open > .nav-dropdown-panel {
  display: block !important;
}

@media (hover: hover) and (pointer: fine) {
  .nav-item:hover > .nav-dropdown-panel {
    display: block !important;
  }
}

.nav-dropdown-all {
  display: block;
  margin-bottom: 0.55rem;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--color-primary-700);
  text-decoration: none;
  background: var(--accent-soft);
}

.nav-dropdown-all:hover {
  color: var(--ink);
}

.nav-dropdown-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.nav-dropdown-heading {
  margin: 0 0 0.35rem;
  padding: 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-dropdown-group a,
.nav-dropdown-list a {
  display: block;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}

.nav-dropdown-group a:hover,
.nav-dropdown-list a:hover {
  background: var(--accent-soft);
  color: var(--color-primary-700);
}

.nav-cta {
  margin-left: 0.25rem;
}

.header-social,
.footer-social,
.social-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.header-social {
  margin-left: 0.35rem;
  padding-left: 0.45rem;
  border-left: 1px solid var(--line);
}

.social-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2rem !important;
  height: 2rem !important;
  min-width: 2rem;
  min-height: 2rem;
  max-width: 2rem;
  max-height: 2rem;
  flex: 0 0 2rem;
  overflow: hidden;
  border-radius: 999px;
  color: var(--color-primary-600);
  text-decoration: none;
  line-height: 0;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.social-link:hover {
  background: var(--accent-soft);
  color: var(--color-secondary-500);
  transform: translateY(-1px);
}

.social-link svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  display: block;
  fill: currentColor;
  flex-shrink: 0;
}

.btn svg,
.btn-icon {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  display: block;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}

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

.btn-primary {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 8px 20px rgba(226, 145, 46, 0.32);
}

.btn-primary:hover {
  background: var(--cta-hover);
  color: #fff;
}

.btn-call {
  background: var(--color-primary-600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(28, 91, 122, 0.28);
}

.btn-call:hover {
  background: var(--color-primary-600-hover);
  color: #fff;
}

.cta-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.nav-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-left: 0.25rem;
}

.footer-cta {
  margin-top: 1rem;
}

.footer-cta .btn {
  font-size: 0.88rem;
  padding: 0.65rem 1rem;
}

.urgency-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: stretch;
  min-width: min(100%, 16rem);
}

.urgency-actions .cta-pair,
.urgency-actions .btn {
  width: 100%;
}

.urgency-actions .btn {
  justify-content: center;
}

/* Sticky mobile CTA bar */
.mobile-cta {
  display: none;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  color: var(--ink);
  border-color: var(--color-secondary-500);
}

.menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--ink);
}

/* Hero — full-bleed featured image */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: grid;
  align-items: end;
  padding: 0;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 43, 61, 0.4) 0%, rgba(15, 43, 61, 0.58) 42%, rgba(15, 43, 61, 0.88) 100%),
    linear-gradient(90deg, rgba(15, 43, 61, 0.58) 0%, rgba(15, 43, 61, 0.18) 70%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 3rem;
  max-width: 40rem;
}

.hero .brand-lockup {
  margin: 0 0 0.85rem;
}

.hero .brand-lockup img {
  height: 3.1rem;
  width: auto;
  max-width: min(320px, 90vw);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary-600);
  background: var(--accent-soft);
  border: 1px solid #c5e2e6;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.85rem;
}

.hero .eyebrow {
  color: #d7eef1;
  background: transparent;
  border: 0;
  padding: 0;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  color: #fff;
}

.page-hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--ink);
}

.hero .lede {
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
}

.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0;
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Urgency strip under hero */
.urgency {
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
  padding-bottom: 0.5rem;
}

.urgency-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.4rem;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1rem;
  align-items: center;
}

.urgency-card h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}

.urgency-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Featured image strip */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.feature-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 11rem;
  text-decoration: none;
  color: #fff;
  display: block;
}

.feature-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.35s var(--ease);
}

.feature-tile:hover img {
  transform: scale(1.04);
}

.feature-tile span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.1rem 0.95rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(11, 18, 32, 0.85));
  font-weight: 600;
  font-size: 0.95rem;
}

/* Page featured media */
.page-feature {
  margin: 0 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-deep);
}

.page-feature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.page-feature figcaption {
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
}

/* Sections */
section {
  padding: 2.75rem 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head h2,
.prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  letter-spacing: -0.025em;
  margin: 0;
}

.section-head p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  max-width: 36rem;
}

.section-link {
  white-space: nowrap;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-deep);
}

/* Cards — Next.js / Vercel-adjacent */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100%;
  overflow: hidden;
}

a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #c5d5e0;
  color: inherit;
}

.card-media {
  aspect-ratio: 16 / 10;
  background: var(--bg-deep);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}

a.card:hover .card-media img {
  transform: scale(1.03);
}

.card-body {
  padding: 1.1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.card h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  flex: 1;
}

.card-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-deep);
}

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--color-primary-600);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.faq details[open] summary {
  margin-bottom: 0.55rem;
}

.faq p {
  margin: 0;
  color: var(--muted);
}

/* Page layout */
.page-hero {
  padding: 2.75rem 0 1.25rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.layout-split {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 3rem;
}

.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.6rem;
}

.prose p {
  color: var(--ink-soft);
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose h2 {
  margin: 1.75rem 0 0.75rem;
}

.prose h3 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1.05rem;
}

.prose .table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.prose th,
.prose td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--bg);
  font-weight: 600;
  color: var(--ink);
}

.prose .placeholder,
.prose .unresolved-link {
  color: var(--warn);
  font-style: italic;
}

.article-body > p:first-of-type {
  font-size: 1.05rem;
}

.side-card {
  position: sticky;
  top: 5.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.side-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.side-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.list-clean li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.92rem;
}

.list-clean a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
}

.list-clean a:hover {
  color: var(--accent);
}

/* Forms */
.form {
  display: grid;
  gap: 0.85rem;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  background: #fff;
  color: var(--ink);
  min-height: 2.85rem;
}

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

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

.form-consent {
  font-weight: 500;
}

.form-consent-inner {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.form-consent input {
  width: auto;
  min-height: 0;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
}

.form-status {
  font-size: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  display: none;
}

.form-status.show {
  display: block;
}

.form-status.ok {
  background: #e8f6ee;
  color: var(--color-success-500);
}

.form-status.err {
  background: #fff1ee;
  color: var(--warn);
}

.contact-form-panel h2 {
  margin-top: 0;
}

.side-card .cta-pair {
  margin-top: 0.75rem;
}

.side-card .cta-pair .btn {
  flex: 1 1 auto;
  justify-content: center;
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
}

/* Disclosure / footer */
.disclosure {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--color-primary-900);
  color: #e8eef1;
  padding: 2.75rem 0 2rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9db0ba;
}

.site-footer a:not(.social-link):not(.btn):not(.footer-brand-link) {
  display: block;
  text-decoration: none;
  color: #d5e0e5;
  font-size: 0.92rem;
  padding: 0.2rem 0;
}

.site-footer a:not(.social-link):not(.btn):not(.footer-brand-link):hover {
  color: var(--color-secondary-500);
}

.footer-cta {
  margin-top: 1rem;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.footer-cta .cta-pair {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.footer-cta .btn {
  display: inline-flex !important;
  width: auto !important;
  margin: 0;
  position: relative;
  z-index: 1;
}

.footer-brand {
  margin-bottom: 0.85rem;
}

.footer-brand-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #f5f7f7 !important;
  padding: 0 !important;
}

.footer-brand-link img {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}

.footer-brand-link span {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.15;
}

.footer-brand-link strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.footer-brand-link small {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-secondary-500);
}

.footer-blurb {
  color: #9db0ba;
  margin: 0;
  font-size: 0.92rem;
  max-width: 28rem;
}

.footer-social,
.site-footer .footer-social,
.site-footer .social-links.footer-social {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.5rem !important;
  margin: 1.15rem 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100%;
  max-width: 100%;
  clear: both;
  position: relative;
  z-index: 0;
}

.site-footer .footer-social .social-link,
.site-footer .social-links .social-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  min-width: 2.5rem !important;
  min-height: 2.5rem !important;
  max-width: 2.5rem !important;
  max-height: 2.5rem !important;
  flex: 0 0 2.5rem !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  color: #f5f7f7 !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  line-height: 0 !important;
  text-decoration: none !important;
  vertical-align: middle;
}

.site-footer .footer-social .social-link:hover {
  color: #0f2b3d !important;
  background: #f5f7f7 !important;
  border-color: #f5f7f7 !important;
}

.site-footer .footer-social .social-link svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  display: block !important;
  fill: currentColor !important;
  flex-shrink: 0;
}

.site-footer .btn-call {
  background: transparent !important;
  color: #f5f7f7 !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: none !important;
}

.site-footer .btn-call:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-color: #fff !important;
}

.footer-copy {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8fa3ae;
  font-size: 0.85rem;
}

.badge-draft {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7c2d12;
  background: #ffedd5;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .urgency-card,
  .card,
  .feature-tile,
  .step {
    animation: rise 0.7s var(--ease) both;
  }

  .urgency-card {
    animation-delay: 0.08s;
  }

  .card:nth-child(2),
  .feature-tile:nth-child(2),
  .step:nth-child(2) {
    animation-delay: 0.06s;
  }

  .card:nth-child(3),
  .feature-tile:nth-child(3),
  .step:nth-child(3) {
    animation-delay: 0.12s;
  }

  .card:nth-child(4),
  .feature-tile:nth-child(4),
  .step:nth-child(4) {
    animation-delay: 0.18s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-tile:hover img,
  a.card:hover .card-media img {
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .header-social {
    display: none;
  }
}

@media (max-width: 980px) {
  .layout-split,
  .footer-grid,
  .urgency-card,
  .feature-strip,
  .form-row {
    grid-template-columns: 1fr;
  }

  .feature-strip {
    grid-template-columns: 1fr 1fr;
  }

  .card-grid,
  .card-grid.four,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: min(68vh, 520px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .cta-pair .btn,
  .hero-actions > .btn {
    width: 100%;
    justify-content: center;
  }

  .side-card {
    position: static;
  }

  .page-feature {
    margin-bottom: 1rem;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    padding: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    z-index: 60;
    max-height: min(75vh, 32rem);
    overflow-y: auto;
  }

  .nav.open {
    display: flex;
  }

  .nav-cta-group {
    margin: 0.35rem 0 0;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-cta-group .btn,
  .nav a.btn {
    width: 100%;
    justify-content: center;
  }

  .nav > a:not(.social-link):not(.btn),
  .nav .nav-link {
    border-radius: 10px;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item-head {
    display: flex;
    width: 100%;
    align-items: stretch;
  }

  .nav-item-head .nav-link {
    flex: 1;
  }

  .nav-dropdown-toggle {
    width: 2.5rem;
    height: auto;
    border-radius: 10px;
  }

  .nav-dropdown-panel {
    position: static !important;
    display: none !important;
    max-width: none;
    min-width: 0;
    max-height: none;
    margin: 0.25rem 0 0.35rem;
    box-shadow: none;
  }

  .nav-item:hover > .nav-dropdown-panel {
    display: none !important;
  }

  .nav-item.is-open > .nav-dropdown-panel {
    display: block !important;
  }

  .nav-dropdown-groups {
    grid-template-columns: 1fr;
  }

  .header-social {
    display: flex;
    margin: 0.5rem 0 0;
    padding: 0.65rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    justify-content: flex-start;
  }

  .mobile-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
    background: rgba(15, 43, 61, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -8px 24px rgba(15, 43, 61, 0.25);
  }

  .mobile-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
  }

  .mobile-cta-btn.call {
    background: var(--color-primary-600);
    color: #fff;
  }

  .mobile-cta-btn.form {
    background: var(--cta);
    color: #fff;
  }

  body {
    padding-bottom: 4.75rem;
  }

  .site-footer {
    padding-bottom: 1.25rem;
  }
}

@media (max-width: 640px) {
  .card-grid,
  .card-grid.two,
  .card-grid.four,
  .steps,
  .feature-strip {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .brand-logo {
    height: 2.15rem;
    max-width: min(190px, 55vw);
  }

  .hero-copy {
    padding-top: 4rem;
    padding-bottom: 2rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.35rem);
  }

  .page-hero {
    padding-top: 1.25rem;
  }

  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  section {
    padding: 2rem 0;
  }

  .cta-pair {
    width: 100%;
  }

  .cta-pair .btn {
    flex: 1 1 calc(50% - 0.3rem);
    justify-content: center;
    min-width: 8.5rem;
  }
}

@media (min-width: 981px) {
  .mobile-cta {
    display: none !important;
  }
}
