/* ==========================================================================
   CODORE — site styles (Design Brief v2 theming pass)
   Palette: black / white / one blue / amber (emergency only)
   ========================================================================== */

:root {
  /* Brand */
  --black: #0D0D0D;
  --black-deep: #000000;
  --white: #FFFFFF;
  --blue: #1CA5E0;          /* single brand accent */
  --amber: #F59E1B;         /* RESERVED: emergency banner only */

  /* Text on colour */
  --on-blue: #0D0D0D;       /* blue fills always take black text */
  --on-blue-secondary: #0D2D3D;
  --on-amber: #3D2600;

  /* Neutrals (on white) */
  --text-strong: #111111;
  --text-body: #4B5563;
  --text-muted: #6B7280;
  --text-faint: #8A929B;
  --line: #E5E7EB;
  --line-strong: #D1D5DB;
  --soft: #F6F7F8;

  /* On dark */
  --on-dark: #FFFFFF;
  --on-dark-secondary: #C9CDD2;
  --on-dark-muted: #AEB2B8;

  /* Layout */
  --radius: 8px;
  --radius-card: 12px;
  --maxw: 1160px;
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text-strong);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .5em; letter-spacing: -1px; line-height: 1.06; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 .6em; letter-spacing: -0.5px; }
h3 { font-size: 1.25rem; margin: 0 0 .5em; }

p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.visually-hidden, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 10px; left: 10px; width: auto; height: auto;
  clip: auto; z-index: 2000; background: var(--black); color: var(--white);
  padding: 10px 16px; border-radius: 6px;
}

/* Visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* Buttons ---------------------------------------------------------------- */
/* Contrast rules (brief §3): blue fills always take black text, never white. */
.btn {
  display: inline-block; font-weight: 500; padding: 12px 22px;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  text-align: center; transition: transform .05s ease, background .2s ease, border-color .2s ease;
  font-size: 15px; line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

/* On white: primary = black fill */
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: var(--black-deep); color: var(--white); }

/* Blue fill (primary on dark surfaces): black text */
.btn-accent { background: var(--blue); color: var(--on-blue); }
.btn-accent:hover { background: #189ad2; color: var(--on-blue); }

/* On white: secondary = neutral outline */
.btn-outline { background: transparent; color: var(--text-strong); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--text-strong); color: var(--text-strong); }

/* On dark: secondary = white outline */
.btn-outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); color: var(--white); }

/* Header ----------------------------------------------------------------- */
/* Standard (inner pages): white bg, black text, hairline bottom border.
   Home: dark header sitting flush over the dark hero (white text). */
.site-header {
  position: sticky; top: 0; z-index: 1000; background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 74px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand-logo { width: auto; height: 48px; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-call {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: var(--on-blue);
  font-weight: 500; font-size: 14px; padding: 10px 16px;
  border-radius: var(--radius); white-space: nowrap;
}
.header-call-num { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.header-call:hover { background: #189ad2; color: var(--on-blue); text-decoration: none; }
.header-email {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-strong); color: var(--text-strong);
  font-weight: 500; font-size: 14px; padding: 9px 16px;
  border-radius: var(--radius); white-space: nowrap;
}
.header-email:hover { border-color: var(--text-strong); text-decoration: none; }

.primary-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px;
  color: var(--text-strong); font-weight: 500; border-radius: var(--radius); font-size: .95rem;
}
.nav-list > li > a:hover, .nav-list > li > a[aria-current="page"] {
  background: var(--soft); color: var(--text-strong); text-decoration: none;
}
.caret { font-size: .7em; }

.dropdown {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0;
  min-width: 240px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-card); box-shadow: 0 6px 24px rgba(0,0,0,.10); display: none; z-index: 1001;
}
.has-children:hover > .dropdown,
.has-children:focus-within > .dropdown { display: block; }
.dropdown li a { display: block; padding: 9px 12px; border-radius: 7px; color: var(--text-strong); font-size: .95rem; }
.dropdown li a:hover, .dropdown li a[aria-current="page"] { background: var(--soft); color: var(--text-strong); text-decoration: none; }

.nav-toggle { display: none; }

/* Home header: dark, flush with the hero */
.page-home .site-header { background: var(--black); border-bottom: 1px solid rgba(255,255,255,.12); }
.page-home .brand-logo { filter: brightness(0) invert(1); } /* white mark on dark */
.page-home .nav-list > li > a { color: var(--on-dark); }
.page-home .nav-list > li > a:hover,
.page-home .nav-list > li > a[aria-current="page"] { background: rgba(255,255,255,.12); color: var(--on-dark); }
.page-home .header-email { border-color: rgba(255,255,255,.4); color: var(--on-dark); }
.page-home .header-email:hover { border-color: var(--white); }

/* Emergency banner (site-wide, directly under the header) ----------------- */
/* Amber is reserved for this bar only. */
.emergency-banner { background: var(--amber); color: var(--on-amber); }
.emergency-inner { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 9px; padding-bottom: 9px; }
.emergency-inner p { margin: 0; font-size: 14px; font-weight: 500; }
.emergency-icon { font-size: 15px; line-height: 1; }
.emergency-banner a { color: var(--on-amber); font-weight: 700; text-decoration: underline; }

/* Mobile nav */
@media (max-width: 900px) {
  .header-actions { order: 2; margin-left: auto; gap: 8px; }
  .header-call { padding: 9px 12px; }
  .header-email { display: none; } /* phone stays one-tap; email lives in banner/footer/CTAs */
  .nav-toggle {
    order: 3; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 42px; padding: 0 11px; background: transparent; border: 1px solid var(--line-strong);
    border-radius: var(--radius); cursor: pointer; margin-left: 8px;
  }
  .nav-toggle-bar { display: block; height: 3px; background: var(--text-strong); border-radius: 2px; }
  .page-home .nav-toggle { border-color: rgba(255,255,255,.4); }
  .page-home .nav-toggle-bar { background: var(--white); }
  .primary-nav {
    order: 4; flex-basis: 100%; margin: 0; display: none;
  }
  .primary-nav.is-open { display: block; padding-bottom: 14px; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list > li > a { padding: 12px; }
  .dropdown {
    position: static; display: block; box-shadow: none; border: none;
    border-left: 3px solid var(--line); border-radius: 0; margin: 2px 0 6px 12px;
    max-height: 0; overflow: hidden; padding: 0 8px;
  }
  .has-children.open > .dropdown { max-height: 600px; padding: 4px 8px; }
  .has-children:hover > .dropdown { display: block; } /* keep static behaviour */
  .page-home .dropdown { background: transparent; }
  .page-home .dropdown li a { color: var(--on-dark-secondary); }
  .page-home .dropdown li a:hover { background: rgba(255,255,255,.12); color: var(--on-dark); }

  /* Slimmer emergency banner, still tappable */
  .emergency-inner { padding-top: 7px; padding-bottom: 7px; }
  .emergency-inner p { font-size: 13px; }
}

/* Sections --------------------------------------------------------------- */
.section { padding: 64px 0; }
.section-alt { background: var(--soft); }
.section-brand { background: var(--black); color: var(--on-dark-secondary); }
.section-brand h1, .section-brand h2, .section-brand h3 { color: var(--on-dark); }
.section-narrow { max-width: 820px; margin: 0 auto; }
.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--text-muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 1.8px; font-weight: 500; color: var(--blue); font-size: 12px; margin-bottom: .5rem; }

/* Hero ------------------------------------------------------------------- */
/* Base: solid black band (inner pages). Home adds photo + overlays below. */
.hero {
  position: relative; color: var(--on-dark); padding: 56px 0; overflow: hidden;
  background: var(--black);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--on-dark); max-width: 20ch; }
.hero p { font-size: 1.1rem; max-width: 52ch; color: var(--on-dark-secondary); }
.hero .eyebrow { color: var(--blue); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px; margin-top: 26px; }
.hero-actions .btn { display: inline-flex; align-items: center; }

/* Home hero: full-bleed photo + flat black overlays (base .58 + left panel
   .5 over the left ~60% for headline contrast), then a deep-black trust strip. */
.hero-home { padding: 0; }
.hero-home::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--hero-bg);
  background-size: cover; background-position: center;
}
.hero-home::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(13,13,13,.5) 0%, rgba(13,13,13,.5) 60%, rgba(13,13,13,0) 78%),
    rgba(13,13,13,.58);
}
.hero-home .hero-content { padding-top: 96px; padding-bottom: 88px; }
.hero-home h1 { font-size: clamp(32px, 5vw, 48px); }
.hero-accent { color: var(--blue); }

/* Primary hero CTA: blue block, black text, number in Space Grotesk 700 */
.btn-hero-call {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: var(--blue); color: var(--on-blue);
  border-radius: var(--radius); padding: 11px 22px; line-height: 1.2;
}
.btn-hero-call:hover { background: #189ad2; color: var(--on-blue); text-decoration: none; }
.btn-hero-call:active { transform: translateY(1px); }
.btn-hero-call-label {
  font-size: 12px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 1.8px; color: var(--on-blue-secondary);
}
.btn-hero-call-num { font-family: var(--font-display); font-weight: 700; font-size: 21px; }

/* Trust strip (base of home hero) */
.hero-trust { position: relative; z-index: 1; background: var(--black-deep); }
.hero-trust-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px;
  padding-top: 14px; padding-bottom: 14px;
}
.badge-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius);
  padding: 5px 14px; font-family: var(--font-display); font-weight: 700;
  letter-spacing: 1px; font-size: 13px; color: var(--on-dark);
}
.badge-chip::before { content: "\2713"; color: var(--blue); font-weight: 700; }
.trust-note { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark-secondary); font-size: 14px; }
.trust-ico { color: var(--blue); font-weight: 700; }
.trust-sep { color: var(--on-dark-muted); }

@media (max-width: 600px) {
  .hero-home .hero-content { padding-top: 64px; padding-bottom: 56px; }
}

/* Grids ------------------------------------------------------------------ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Cards ------------------------------------------------------------------ */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .2s ease;
}
.card:hover { border-color: var(--line-strong); }
.card-img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px; flex: 1 1 auto; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .4rem; }
.card-body p { color: var(--text-body); font-size: .95rem; }
.card-body .btn, .card-body .card-link { margin-top: auto; }
.card-link { font-weight: 500; align-self: flex-start; color: var(--blue); }

.feature { padding: 6px 0; }
.feature h3 { color: var(--text-strong); }
.feature-icon { width: 56px; height: 56px; object-fit: contain; margin-bottom: 10px; }

/* Media object (image + text) ------------------------------------------- */
.media { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.media.reverse .media-text { order: 2; }
.media img { border-radius: var(--radius-card); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10); width: 100%; object-fit: cover; }
@media (max-width: 800px) { .media { grid-template-columns: 1fr; gap: 24px; } .media.reverse .media-text { order: 0; } }

/* Lists ------------------------------------------------------------------ */
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--on-blue); background: var(--blue);
  width: 21px; height: 21px; border-radius: 50%; font-size: .8rem; font-weight: 700;
  display: grid; place-items: center;
}
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }

/* CTA band --------------------------------------------------------------- */
/* Blue strip: black text on blue (the black-on-blue rule), black buttons. */
.cta-band { background: var(--blue); color: var(--on-blue); text-align: center; padding: 56px 0; }
.cta-band h2 { color: var(--on-blue); }
.cta-band p { color: var(--on-blue-secondary); }
.cta-band .btn { margin-top: 10px; margin-left: 6px; margin-right: 6px; }
.cta-band .btn-accent, .cta-band .btn-primary { background: var(--black); color: var(--white); }
.cta-band .btn-accent:hover, .cta-band .btn-primary:hover { background: var(--black-deep); color: var(--white); }
.cta-band .btn-outline, .cta-band .btn-outline-light {
  background: transparent; color: var(--on-blue); border-color: var(--black);
}
.cta-band .btn-outline:hover, .cta-band .btn-outline-light:hover { background: rgba(13,13,13,.08); color: var(--on-blue); }

/* Contact section (repeated) -------------------------------------------- */
.contact-block { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .contact-block { grid-template-columns: 1fr; } }
.contact-details address { font-style: normal; line-height: 1.9; margin-bottom: 1rem; }
.contact-details .big-phone { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--blue); }

/* Forms ------------------------------------------------------------------ */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 500; color: var(--text-strong); margin-bottom: 6px; font-size: .95rem; }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; background: var(--white); color: var(--text-strong);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: var(--text-muted); }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--black); color: var(--on-dark-secondary); margin-top: 40px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.1fr 1fr 1.3fr; gap: 40px; padding: 56px 20px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer a { color: var(--on-dark-secondary); }
.site-footer a:hover { color: var(--on-dark); }
.footer-logo { filter: brightness(0) invert(1); height: 46px; width: auto; }
.footer-tagline { margin-top: 14px; }
.footer-chips { display: flex; gap: 8px; margin: 14px 0; }
.footer-badge { font-size: 13px; color: var(--on-dark-muted); }
.footer-heading {
  color: var(--on-dark); font-family: var(--font-display); font-weight: 700;
  font-size: .85rem; text-transform: uppercase; letter-spacing: 1.8px; margin: 0 0 12px;
}
.footer-col .footer-heading:not(:first-child) { margin-top: 22px; }
.footer-address { font-style: normal; line-height: 1.8; }
.footer-address strong { color: var(--on-dark); }
.footer-phone { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.site-footer a.footer-phone { color: var(--blue); }
.site-footer a.footer-phone:hover { color: var(--blue); text-decoration: underline; }
.footer-links, .social-links { list-style: none; padding: 0; margin: 0 0 18px; }
.footer-links li, .social-links li { margin-bottom: 8px; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-directions { display: inline-block; margin-top: 6px; margin-bottom: 4px; font-weight: 500; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 13px; }
.footer-bottom p { margin: 0; color: var(--on-dark-muted); }

/* Blog ------------------------------------------------------------------- */
.post-meta { color: var(--text-muted); font-size: 13px; margin-bottom: 1.5rem; }
.post-body { max-width: 760px; }
.post-body h2 { font-size: 1.5rem; }
.breadcrumbs { font-size: .9rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--text-muted); }

/* FAQ -------------------------------------------------------------------- */
.faq details { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 4px 18px; margin-bottom: 12px; background: var(--white); }
.faq summary { cursor: pointer; font-weight: 500; color: var(--text-strong); padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--blue); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { padding: 12px 0; color: var(--text-body); }

/* Utilities -------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center-btn { text-align: center; margin-top: 28px; }
