/* ==========================================================================
   Accident Law Group — main.css
   Design system + layout + components
   Palette derives from the source theme's "maroon" skin (#8d1812 / #022444),
   modernised for contrast and screen use.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colour */
  --ink:        #0C1A2B;   /* deep navy — headings, dark sections */
  --ink-2:      #16283D;   /* raised navy surface */
  --ink-3:      #24405C;   /* navy hairlines on dark */
  --signal:     #A81C15;   /* maroon-red — urgency and action only */
  --signal-dk:  #86140F;
  --brass:      #B98A3C;   /* restrained premium accent: rules, eyebrows */
  --paper:      #F1F3F6;   /* cool document grey — page background */
  --paper-2:    #E4E8EE;   /* hairline / divider on light */
  --white:      #FFFFFF;
  --body-text:  #3A4757;
  --muted:      #61707F;

  /* Type */
  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --font-body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Spacing scale */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 96px;  --s-10: 128px;

  /* Structure */
  --wrap: 1200px;
  --wrap-narrow: 780px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(12, 26, 43, .06), 0 2px 8px rgba(12, 26, 43, .05);
  --shadow-md: 0 4px 12px rgba(12, 26, 43, .08), 0 12px 32px rgba(12, 26, 43, .07);
  --shadow-lg: 0 10px 24px rgba(12, 26, 43, .10), 0 28px 60px rgba(12, 26, 43, .10);
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Header heights, used to offset anchors and sticky UI */
  --utility-h: 40px;
  --header-h: 78px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}

h1 { font-size: clamp(2.05rem, 1.35rem + 2.9vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.02rem + 0.5vw, 1.35rem); line-height: 1.35; }
h4 { font-size: 1.05rem; line-height: 1.4; }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--signal); text-decoration: none; }
a:hover { text-decoration: underline; }

strong, b { font-weight: 600; color: var(--ink); }

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25em; }
li { margin-bottom: var(--s-2); }

hr {
  border: 0;
  border-top: 1px solid var(--paper-2);
  margin: var(--s-7) 0;
}

::selection { background: var(--signal); color: #fff; }

/* Accessibility ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--signal);
  color: #fff;
  padding: var(--s-3) var(--s-5);
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; text-decoration: none; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s-5);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }

.section--ink {
  background: var(--ink);
  color: #C3CEDA;
}
.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink h4 { color: #fff; }
.section--ink a { color: #fff; }

/* Eyebrow: small brass-ruled label above a heading */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 var(--s-4);
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--brass), transparent);
  opacity: .5;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { display: none; }

.section-head { max-width: 62ch; margin-bottom: var(--s-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.09rem; }

.lede {
  font-size: clamp(1.08rem, 1rem + .35vw, 1.24rem);
  line-height: 1.65;
  color: var(--ink);
}

.grid { display: grid; gap: var(--s-5); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  padding: 16px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .18s var(--ease),
              box-shadow .22s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--signal);
  color: #fff;
  box-shadow: 0 2px 6px rgba(168, 28, 21, .28);
}
.btn--primary:hover {
  background: var(--signal-dk);
  color: #fff;
  box-shadow: 0 8px 20px rgba(168, 28, 21, .32);
}


.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(12, 26, 43, .22);
}
.btn--outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--lg { padding: 19px 32px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  font-size: .95rem;
  color: var(--signal);
}
.link-arrow .ico { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .ico { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.utility-bar {
  background: var(--ink);
  color: #A9BACB;
  font-size: .82rem;
  border-bottom: 1px solid var(--ink-3);
}
.utility-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: var(--utility-h);
}
.utility-bar a { color: #DCE5EE; }
.utility-bar a:hover { color: #fff; }
.utility-list {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.utility-list li { display: flex; align-items: center; gap: var(--s-2); margin: 0; }
.utility-list .ico { width: 14px; height: 14px; color: var(--brass); flex: none; }
.utility-list .num { font-family: var(--font-mono); letter-spacing: -.01em; }
.utility-note {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass);
}
@media (max-width: 899px) { .utility-bar { display: none; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--paper-2);
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: var(--header-h);
}

/* Logo ------------------------------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.logo:hover { text-decoration: none; opacity: .88; }

/* Header logo — increased height for prominent display */
.logo-img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 270px;
  object-fit: contain;
  object-position: left center;
  flex: none;
}

/* Footer logo — significantly larger on dark footer surface */
.footer-logo .logo-img {
  height: 95px;
  max-width: 360px;
  /* Blend the white logo background with the dark footer */
  mix-blend-mode: screen;
  filter: brightness(1.08);
}

/* Keep old class names inert so any stray references don't break layout */
.logo-mark, .logo-text, .logo-name, .logo-tag { all: unset; display: none; }

@media (max-width: 600px) {
  .logo-img { height: 50px; max-width: 210px; }
  .footer-logo .logo-img { height: 75px; max-width: 280px; }
}
@media (max-width: 400px) {
  .logo-img { height: 44px; max-width: 180px; }
  .footer-logo .logo-img { height: 65px; max-width: 240px; }
}

/* Nav -------------------------------------------------------------------- */
.nav-cluster { display: flex; align-items: center; gap: var(--s-6); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav li { margin: 0; }
.main-nav a {
  position: relative;
  display: block;
  padding: 10px 0;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
}
.main-nav a:hover { color: var(--signal); text-decoration: none; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--signal); font-weight: 600; }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--s-2);
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 11px 15px;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle-bars {
  position: relative;
  width: 18px; height: 2px;
  background: #fff;
  display: block;
  transition: background-color .2s var(--ease);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: #fff;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { top: 0; transform: rotate(-45deg); }

.header-cta { flex: none; }

@media (max-width: 979px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .main-nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--paper-2);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .32s var(--ease);
  }
  .main-nav.is-open { max-height: 520px; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-2) var(--s-5) var(--s-5);
  }
  .main-nav li { border-bottom: 1px solid var(--paper-2); }
  .main-nav a { padding: 15px 0; font-size: 1rem; }
  .main-nav a::after { display: none; }
  .main-nav .nav-cta {
    border-bottom: 0;
    margin-top: var(--s-4);
  }
  .main-nav .nav-cta a {
    background: var(--signal);
    color: #fff;
    text-align: center;
    border-radius: var(--radius);
    font-weight: 600;
    padding: 15px;
  }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #C3CEDA;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 12% 0%, rgba(36, 64, 92, .55), transparent 65%),
    linear-gradient(180deg, #0C1A2B 0%, #102439 100%);
}
.hero .wrap { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  gap: var(--s-7);
  align-items: center;
  padding-block: clamp(48px, 7vw, 88px);
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: var(--s-8); }
}

.hero h1 { color: #fff; margin-bottom: var(--s-5); }
.hero h1 em {
  font-style: normal;
  color: #fff;
  background: linear-gradient(to bottom, transparent 62%, rgba(168, 28, 21, .85) 62%);
  padding-inline: 2px;
}
.hero-body p { color: #B7C5D3; font-size: 1.06rem; }
.hero-body p + p { margin-top: var(--s-4); }

.hero-motto {
  margin: var(--s-5) 0 0;
  padding: var(--s-4) var(--s-5);
  border-left: 3px solid var(--brass);
  background: rgba(255, 255, 255, .05);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: #fff;
  font-style: italic;
}
.hero-motto strong { color: var(--brass); font-style: normal; font-weight: 700; letter-spacing: .02em; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--ink-2);
}

/* "No case too small" seal that overlaps the hero photo */
.hero-seal {
  position: absolute;
  left: -14px;
  bottom: -18px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--s-4) var(--s-5);
  box-shadow: var(--shadow-lg);
  max-width: 260px;
  border-top: 3px solid var(--signal);
}
.hero-seal .seal-title {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--signal);
  display: block;
  margin-bottom: var(--s-2);
  font-weight: 600;
}
.hero-seal p {
  font-family: var(--font-display);
  font-size: .98rem;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 600;
  margin: 0;
}
@media (max-width: 979px) {
  .hero-seal { position: static; max-width: none; margin-top: var(--s-4); }
}

/* Phone block — mono numerals, reads like a dispatch card */
.call-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.call-card .label {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .75;
}
.call-card .num {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -.02em;
}

/* --------------------------------------------------------------------------
   7. Page banner (interior pages)
   -------------------------------------------------------------------------- */
.page-banner {
  position: relative;
  background: var(--ink);
  color: #B7C5D3;
  overflow: hidden;
  padding-block: clamp(44px, 6vw, 76px);
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 420px at 85% 10%, rgba(36, 64, 92, .5), transparent 70%),
    linear-gradient(180deg, #0C1A2B 0%, #102439 100%);
}
.page-banner .wrap { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; margin-bottom: var(--s-3); }
.page-banner .banner-sub {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, .98rem + .4vw, 1.3rem);
  color: var(--brass);
  font-weight: 600;
  margin: 0;
}
.page-banner .banner-lede { max-width: 62ch; margin-top: var(--s-4); color: #B7C5D3; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  list-style: none;
  margin: 0 0 var(--s-5);
  padding: 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7E94A9;
}
.breadcrumb li { margin: 0; }
.breadcrumb a { color: #A9BACB; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }
.breadcrumb [aria-current] { color: var(--brass); }

/* --------------------------------------------------------------------------
   8. Signature element — limitation-period rail
   -------------------------------------------------------------------------- */
.rail-section { background: var(--ink-2); color: #C3CEDA; }
.rail-section h2 { color: #fff; }

.rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-5);
  counter-reset: none;
}
@media (min-width: 860px) {
  .rail {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
  }
  /* the horizontal timeline wire */
  .rail::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: 11px;
    height: 2px;
    background: linear-gradient(to right, var(--brass) 0%, var(--brass) 62%, var(--signal) 100%);
    opacity: .45;
  }
  .rail li { padding-right: var(--s-5); }
}

.rail li {
  position: relative;
  margin: 0;
  padding-top: var(--s-6);
}
.rail li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ink-2);
  border: 3px solid var(--brass);
}
.rail li:last-child::before { border-color: var(--signal); background: var(--signal); }

.rail .rail-mark {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--s-2);
}
.rail li:last-child .rail-mark { color: #FF8A82; }
.rail h3 { color: #fff; font-size: 1.08rem; margin-bottom: var(--s-2); }
.rail p { font-size: .95rem; color: #A9BACB; line-height: 1.65; margin: 0; }

.rail-note {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--ink-3);
  font-size: .88rem;
  color: #8FA3B6;
  max-width: 78ch;
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--paper-2);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #D3DAE3; }
.card h3 { margin-bottom: var(--s-3); }
.card p { color: var(--body-text); font-size: .98rem; margin-bottom: 0; }
.card p + p { margin-top: var(--s-3); }

.card-ico {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(168, 28, 21, .08);
  color: var(--signal);
  margin-bottom: var(--s-5);
}
.card-ico .ico { width: 24px; height: 24px; }

.card--claim { position: relative; padding-top: var(--s-7); }
.card--claim .claim-tag {
  position: absolute;
  top: var(--s-5);
  left: var(--s-6);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}

/* Alternating content blocks (image + text) --------------------------------- */
.feature {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .feature--flip .feature-media { order: 2; }
}
.feature + .feature { margin-top: clamp(48px, 6vw, 88px); }

.feature-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--paper-2);
}
.feature-body h2 { margin-bottom: var(--s-4); }
.feature-body p { color: var(--body-text); }

/* Prose block for long-form copy ------------------------------------------ */
.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--s-7); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-6); }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: var(--s-3);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 6px; top: .68em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
}

/* Pull-quote / callout ----------------------------------------------------- */
.callout {
  background: var(--white);
  border: 1px solid var(--paper-2);
  border-left: 4px solid var(--signal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--s-5) var(--s-6);
  margin: var(--s-6) 0;
  box-shadow: var(--shadow-sm);
}
.callout p { margin-bottom: 0; }
.callout .callout-title {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 600;
  display: block;
  margin-bottom: var(--s-2);
}

/* Fact strip — real figures from the firm's own material -------------------- */
.facts {
  display: grid;
  gap: 1px;
  background: var(--paper-2);
  border: 1px solid var(--paper-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 620px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact {
  background: var(--white);
  padding: var(--s-6) var(--s-5);
  text-align: center;
}
.fact .fact-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -.03em;
}
.fact .fact-label {
  display: block;
  margin-top: var(--s-3);
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   10. Steps (ordered — the content genuinely is a sequence)
   -------------------------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }

.steps li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: var(--s-6) var(--s-6) var(--s-6) 84px;
  background: var(--white);
  border: 1px solid var(--paper-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: var(--s-6);
  top: var(--s-6);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--signal);
  opacity: .32;
  letter-spacing: -.04em;
}
.steps h3 { margin-bottom: var(--s-2); font-size: 1.08rem; }
.steps p { font-size: .96rem; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   11. Emergency band
   -------------------------------------------------------------------------- */
.emergency {
  background: var(--signal);
  color: #fff;
}
.emergency .wrap {
  display: grid;
  gap: var(--s-5);
  align-items: center;
  padding-block: clamp(36px, 4.5vw, 56px);
}
@media (min-width: 900px) {
  .emergency .wrap { grid-template-columns: 1.35fr 1fr; gap: var(--s-7); }
}
.emergency h2 { color: #fff; margin-bottom: var(--s-3); font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2rem); }
.emergency p { color: rgba(255, 255, 255, .92); margin-bottom: 0; }
.emergency-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.emergency .btn--white { background: #fff; color: var(--signal); }
.emergency .btn--white:hover { background: var(--ink); color: #fff; }
.emergency .btn--ghost-light:hover { background: #fff; color: var(--signal); }

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */
.form-shell {
  background: var(--white);
  border: 1px solid var(--paper-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 4vw, 44px);
}

.form-grid { display: grid; gap: var(--s-5); }
@media (min-width: 700px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .field--full { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .005em;
}
.field .req { color: var(--signal); margin-left: 2px; }
.field .hint { font-size: .82rem; color: var(--muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #C9D2DC;
  border-radius: var(--radius);
  padding: 13px 15px;
  width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%2361707F' stroke-width='2' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 42px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(168, 28, 21, .14);
}
.field input::placeholder, .field textarea::placeholder { color: #9AA7B5; }

.field .error-msg {
  font-size: .84rem;
  color: var(--signal);
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 6px;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--signal); background: #FEF6F5; }
.field.has-error .error-msg { display: flex; }

.field--check { gap: var(--s-2); }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
}
.check-row input[type="checkbox"] {
  width: 20px; height: 20px;
  flex: none;
  margin-top: 2px;
  accent-color: var(--signal);
  padding: 0;
}
.check-row label { font-weight: 400; font-size: .92rem; color: var(--body-text); line-height: 1.55; }

.form-note {
  font-size: .86rem;
  color: var(--muted);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--paper-2);
}

.form-status {
  display: none;
  margin-bottom: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 500;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: #EAF5EE; border: 1px solid #B7DCC5; color: #1D6236; }
.form-status--err { background: #FDF0EF; border: 1px solid #F0C4C1; color: var(--signal-dk); }

/* --------------------------------------------------------------------------
   13. Contact blocks
   -------------------------------------------------------------------------- */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--paper-2);
  margin: 0;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ico-wrap {
  width: 40px; height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(12, 26, 43, .06);
  color: var(--ink);
}
.contact-list .ico { width: 19px; height: 19px; }
.contact-list .c-label {
  display: block;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
  font-weight: 500;
}
.contact-list .c-value {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}
.contact-list .c-value.num { font-family: var(--font-mono); letter-spacing: -.02em; }
.contact-list a.c-value:hover { color: var(--signal); }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--paper-2);
  box-shadow: var(--shadow-sm);
  background: var(--paper-2);
  line-height: 0;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #97A9BB;
  font-size: .95rem;
}
.footer-main {
  display: grid;
  gap: var(--s-7);
  padding-block: clamp(48px, 6vw, 80px);
}
@media (min-width: 780px)  { .footer-main { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .footer-main { grid-template-columns: 1.5fr 1fr 1.5fr; gap: var(--s-8); } }

.site-footer h2, .site-footer h3 { color: #fff; }
.footer-title {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 var(--s-5);
  font-weight: 600;
}
.site-footer a { color: #C3CEDA; }
.site-footer a:hover { color: #fff; }

.footer-logo { margin-bottom: var(--s-5); }
.footer-logo .logo-name { color: #fff; }
.footer-logo .logo-tag { color: var(--brass); }
.footer-about p { color: #97A9BB; max-width: 46ch; }

.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: var(--s-3); }
.footer-nav a { display: inline-flex; align-items: center; gap: var(--s-2); }
.footer-nav a::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass);
  opacity: .6;
  flex: none;
}

.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li {
  display: flex;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  align-items: flex-start;
}
.footer-contact .ico { width: 17px; height: 17px; color: var(--brass); flex: none; margin-top: 4px; }
.footer-contact .f-label {
  display: block;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: #7E94A9;
  margin-bottom: 1px;
}
.footer-contact .f-value { color: #fff; font-weight: 500; }
.footer-contact a.f-value:hover { color: var(--brass); }
.footer-contact .num { font-family: var(--font-mono); letter-spacing: -.02em; }

.footer-map { margin-top: var(--s-5); border-radius: var(--radius); overflow: hidden; line-height: 0; }
.footer-map iframe { width: 100%; height: 200px; border: 0; display: block; filter: grayscale(1) contrast(.9); transition: filter .35s var(--ease); }
.footer-map iframe:hover { filter: grayscale(0) contrast(1); }

.footer-bottom {
  border-top: 1px solid var(--ink-3);
  padding-block: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
  justify-content: space-between;
  font-size: .86rem;
  color: #7E94A9;
}
.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-bottom li { margin: 0; }

.footer-disclaimer {
  font-size: .82rem;
  color: #7E94A9;
  line-height: 1.6;
  border-top: 1px solid var(--ink-3);
  padding-block: var(--s-5);
  max-width: 90ch;
}

/* --------------------------------------------------------------------------
   15. Mobile action bar — thumb-reachable, the single biggest conversion lever
   -------------------------------------------------------------------------- */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  background: var(--ink);
  border-top: 1px solid var(--ink-3);
  box-shadow: 0 -4px 20px rgba(12, 26, 43, .22);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.action-bar li { margin: 0; border-right: 1px solid var(--ink-3); }
.action-bar li:last-child { border-right: 0; }
.action-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 11px 6px;
  color: #DCE5EE;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  min-height: 58px;
}
.action-bar a:hover { text-decoration: none; }
.action-bar .ico { width: 19px; height: 19px; color: var(--brass); }
.action-bar li.is-urgent { background: var(--signal); }
.action-bar li.is-urgent a { color: #fff; }
.action-bar li.is-urgent .ico { color: #fff; }

@media (max-width: 899px) {
  .action-bar { display: block; }
  body { padding-bottom: 58px; }
}

/* --------------------------------------------------------------------------
   16. Motion
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
  .card:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   17. Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mb-0 { margin-bottom: 0; }
.num { font-family: var(--font-mono); letter-spacing: -.02em; }

/* Print ------------------------------------------------------------------- */
@media print {
  .site-header, .utility-bar, .action-bar, .emergency, .site-footer, .map-frame { display: none !important; }
  body { background: #fff; color: #000; padding-bottom: 0; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   18. Page-specific: consultation request layout
   -------------------------------------------------------------------------- */
.form-layout { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 1000px) {
  .form-layout { grid-template-columns: 1.65fr 1fr; gap: var(--s-7); }
  .form-side { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* Stacked steps inside a card: keep the numbering, drop the card chrome */
.steps--stack li {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0 0 var(--s-4) 52px;
  border-bottom: 1px solid var(--paper-2);
}
.steps--stack li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps--stack li::before { left: 0; top: 0; font-size: 1.15rem; opacity: .45; }
.steps--stack h3 { font-size: 1rem; }
.steps--stack p { font-size: .93rem; }

.form-shell fieldset legend { margin-bottom: var(--s-4); }
.form-shell > h2 { margin-bottom: var(--s-2); }
.form-shell > p { margin-bottom: var(--s-6); }

/* --------------------------------------------------------------------------
   19. Card used as a link
   -------------------------------------------------------------------------- */
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { text-decoration: none; }
a.card h3 { transition: color .2s var(--ease); }
a.card:hover h3 { color: var(--signal); }

/* Buttons that carry a two-line phone block */
.btn .call-card { padding-block: 1px; }
.btn:has(.call-card) { padding-block: 12px; align-items: center; }

/* Aside cards on the consultation page carry an eyebrow flush to the top */
.card > .eyebrow:first-child { margin-bottom: var(--s-5); }

/* Sections that follow a dark banner shouldn't double up on top padding */
.page-banner + .section { padding-top: clamp(44px, 6vw, 80px); }

/* --------------------------------------------------------------------------
   20. Safety defaults
   -------------------------------------------------------------------------- */
/* Any icon without a context-specific size falls back to the text size
   rather than the SVG default of 300x150. */
.ico { width: 1em; height: 1em; flex: none; }

/* Links on the dark limitation rail need to clear contrast on navy */
.rail-section a { color: #FF8A82; }
.rail-section a:hover { color: #fff; }
