/* =====================================================================
   Emergency Flooring Services — global stylesheet
   Single source of truth for all pages. Token-driven (see :root).
   Palette: emergency red/orange urgency + neutral slate text.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand — red/orange urgency */
  --red-700: #9f1813;
  --red-600: #c81e1e;
  --red-500: #e02424;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --amber-300: #fcd34d;

  /* Neutral ink/slate */
  --ink-900: #14181f;
  --ink-800: #1f2530;
  --ink-700: #323b49;
  --slate-600: #4b5566;
  --slate-500: #667085;
  --slate-400: #98a2b3;
  --slate-300: #d0d5dd;
  --slate-200: #e4e7ec;
  --slate-100: #f2f4f7;
  --slate-50:  #f8fafc;
  --white: #ffffff;

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--slate-50);
  --text: var(--ink-800);
  --text-muted: var(--slate-500);
  --heading: var(--ink-900);
  --primary: var(--red-600);
  --primary-dark: var(--red-700);
  --accent: var(--orange-500);
  --border: var(--slate-200);
  --success: #15803d;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: clamp(2.25rem, 4.5vw, 3.5rem);

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Radii & shadows */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.10);
  --shadow: 0 8px 24px rgba(16, 24, 40, 0.10);
  --shadow-lg: 0 20px 48px rgba(16, 24, 40, 0.16);
  --shadow-primary: 0 10px 24px rgba(200, 30, 30, 0.30);

  --container: 1180px;
  --header-h: 76px;
  --transition: 200ms ease;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--space-4)); }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
p { color: var(--text); }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--orange-400); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-5); }
.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-8); }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--ink-900); color: #cdd4df; }
.section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head { max-width: 680px; margin-bottom: var(--space-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: var(--space-3); margin-bottom: var(--space-3); }
.section-head p { color: var(--text-muted); font-size: var(--fs-lg); }
.lead { font-size: var(--fs-lg); color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-weight: 700; font-size: var(--fs-base); line-height: 1;
  padding: 0.95em 1.6em; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(249, 115, 22, 0.30); }
.btn--accent:hover { background: #ea580c; color: #fff; }
.btn--ghost { background: transparent; color: var(--heading); border-color: var(--slate-300); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { background: var(--slate-100); color: var(--primary-dark); }
.btn--lg { font-size: var(--fs-lg); padding: 1.1em 2em; }
.btn--block { width: 100%; }
.btn svg { width: 1.2em; height: 1.2em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: var(--space-5); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); font-weight: 800; color: var(--heading); font-size: var(--fs-lg); letter-spacing: -0.02em; }
.brand:hover { color: var(--heading); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand small { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); letter-spacing: 0; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: var(--space-2); list-style: none; padding: 0; margin: 0; }
.main-nav a { display: block; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); color: var(--ink-700); font-weight: 600; font-size: var(--fs-sm); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--primary); background: var(--slate-100); }

/* Services dropdown */
.has-dropdown { position: relative; }
.dropdown-toggle { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; font: inherit; cursor: pointer; color: var(--ink-700); font-weight: 600; font-size: var(--fs-sm); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); }
.dropdown-toggle:hover { color: var(--primary); background: var(--slate-100); }
.dropdown-toggle svg { width: 16px; height: 16px; transition: transform var(--transition); }
.has-dropdown.open .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 280px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: var(--space-2);
  opacity: 0; visibility: hidden; transition: opacity var(--transition), transform var(--transition);
}
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3); border-radius: var(--radius-sm); }
.dropdown a:hover { background: var(--slate-100); }
.dropdown .di { width: 34px; height: 34px; flex: none; color: var(--primary); }
.dropdown strong { display: block; color: var(--heading); font-size: var(--fs-sm); }
.dropdown span { display: block; font-size: var(--fs-xs); color: var(--text-muted); }

.header-cta { display: flex; align-items: center; gap: var(--space-4); }
.header-phone { display: inline-flex; flex-direction: column; line-height: 1.1; text-align: right; }
.header-phone small { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; }
.header-phone strong { font-size: var(--fs-lg); color: var(--heading); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: var(--space-2); margin-left: auto; }
.nav-burger span { display: block; width: 26px; height: 2.5px; background: var(--ink-900); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav-burger span + span { margin-top: 6px; }
.nav-burger.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Top urgency bar */
.topbar { background: var(--ink-900); color: #fff; font-size: var(--fs-sm); }
.topbar-inner { display: flex; align-items: center; justify-content: center; gap: var(--space-5); height: 40px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 700; }
.topbar .pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; display: inline-block; box-shadow: 0 0 0 0 rgba(74,222,128,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); } 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--slate-50) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 0%, rgba(249,115,22,0.10), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(200,30,30,0.08), transparent 60%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-8); align-items: center; padding-block: var(--space-9); }
.badge-247 { display: inline-flex; align-items: center; gap: var(--space-2); background: #fff; border: 1px solid var(--border); padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); font-weight: 700; font-size: var(--fs-sm); color: var(--heading); box-shadow: var(--shadow-sm); }
.hero h1 { font-size: var(--fs-4xl); margin-block: var(--space-4) var(--space-4); }
.hero h1 .hl { color: var(--primary); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.05em; height: 0.28em; background: var(--amber-300); opacity: 0.55; z-index: -1; border-radius: 4px; }
.hero p.lead { margin-bottom: var(--space-6); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.hero-trust { display: flex; gap: var(--space-5); margin-top: var(--space-7); flex-wrap: wrap; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust strong { font-size: var(--fs-2xl); color: var(--heading); }
.hero-trust span { font-size: var(--fs-sm); color: var(--text-muted); }
.hero-visual { position: relative; }
.hero-visual .card-float {
  position: absolute; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: var(--space-4); display: flex; align-items: center; gap: var(--space-3); font-weight: 700; font-size: var(--fs-sm);
}
.hero-visual .card-float .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.card-float--top { top: 8%; left: -4%; }
.card-float--bottom { bottom: 8%; right: -4%; }

/* ---------- Trust bar ---------- */
.trustbar { border-block: 1px solid var(--border); background: #fff; }
.trustbar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-5); padding-block: var(--space-5); }
.trust-item { display: flex; align-items: center; gap: var(--space-3); font-weight: 600; color: var(--ink-700); font-size: var(--fs-sm); }
.trust-item svg { width: 26px; height: 26px; color: var(--primary); flex: none; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: var(--space-5); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--orange-400); }
.service-card .ico-tile { width: 56px; height: 56px; border-radius: var(--radius); display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--orange-500), var(--red-600)); box-shadow: var(--shadow-primary); }
.service-card .ico-tile svg { width: 30px; height: 30px; }
.service-card h3 { margin-top: var(--space-2); }
.service-card p { color: var(--text-muted); font-size: var(--fs-sm); flex: 1; }
.service-card .card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--fs-sm); }
.service-card .card-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.service-card:hover .card-link svg { transform: translateX(4px); }

/* Step / process */
.steps { counter-reset: step; }
.step-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); padding-top: var(--space-7); }
.step-card::before { counter-increment: step; content: counter(step); position: absolute; top: -22px; left: var(--space-6); width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--orange-500), var(--red-600)); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow-primary); font-size: var(--fs-lg); }
.step-card h3 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.step-card p { color: var(--text-muted); font-size: var(--fs-sm); }

/* Feature / why-us list */
.feature { display: flex; gap: var(--space-4); align-items: flex-start; }
.feature .fico { width: 48px; height: 48px; border-radius: var(--radius); flex: none; display: grid; place-items: center; background: #fff5f0; color: var(--primary); }
.feature .fico svg { width: 26px; height: 26px; }
.feature h3 { font-size: var(--fs-lg); margin-bottom: var(--space-1); }
.feature p { color: var(--text-muted); font-size: var(--fs-sm); }

/* Check list */
.check-list { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.check-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.check-list li::before { content: ""; width: 22px; height: 22px; flex: none; margin-top: 2px; border-radius: 50%; background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); text-align: center; }
.stat strong { display: block; font-size: var(--fs-4xl); color: #fff; line-height: 1; background: linear-gradient(135deg, var(--orange-400), var(--amber-300)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { color: #aeb6c2; font-size: var(--fs-sm); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; color: var(--heading); font-size: var(--fs-lg); padding: var(--space-5) 0; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.faq-q .pm { width: 28px; height: 28px; flex: none; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--primary); transition: transform var(--transition); }
.faq-q .pm::before { width: 14px; height: 2.5px; }
.faq-q .pm::after { width: 2.5px; height: 14px; }
.faq-item.open .faq-q .pm::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 280ms ease; }
.faq-a p { padding-bottom: var(--space-5); color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--red-700), var(--red-600) 55%, var(--orange-500)); color: #fff; border-radius: var(--radius-lg); padding: var(--space-8); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 80% at 100% 0%, rgba(255,255,255,0.18), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 60ch; margin-inline: auto; margin-top: var(--space-3); }
.cta-band .hero-actions { justify-content: center; margin-top: var(--space-6); }

/* ---------- Forms / contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-7); box-shadow: var(--shadow); }
.form-row { display: grid; gap: var(--space-4); margin-bottom: var(--space-4); }
.form-row.two { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-weight: 700; font-size: var(--fs-sm); color: var(--heading); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 0.85em 1em; border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-sm); background: #fff; color: var(--text); transition: border-color var(--transition), box-shadow var(--transition);
} /* 16px min prevents iOS Safari auto-zoom on focus */
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(200,30,30,0.12); }
.form-note { font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--space-3); text-align: center; }
.form-note a { font-weight: 700; }
/* Consent checkbox (lead-form / TCPA disclosure) */
.consent { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.5; cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--primary); cursor: pointer; }
.consent a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.form-success { display: none; text-align: center; padding: var(--space-6); }
.form-success.show { display: block; }
.form-success .ok { width: 64px; height: 64px; margin: 0 auto var(--space-4); border-radius: 50%; background: #ecfdf3; color: var(--success); display: grid; place-items: center; }
.form-success .ok svg { width: 34px; height: 34px; }

.contact-aside { display: flex; flex-direction: column; gap: var(--space-5); }
.contact-method { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-method .cm-ico { width: 50px; height: 50px; flex: none; border-radius: var(--radius); background: linear-gradient(135deg, var(--orange-500), var(--red-600)); color: #fff; display: grid; place-items: center; }
.contact-method .cm-ico svg { width: 24px; height: 24px; }
.contact-method strong { display: block; color: var(--heading); }
.contact-method a, .contact-method span { color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: linear-gradient(180deg, var(--ink-900), #20262f); color: #fff; padding-block: var(--space-8); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 100% at 100% 0%, rgba(249,115,22,0.22), transparent 60%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: var(--fs-4xl); margin-block: var(--space-3); max-width: 18ch; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 60ch; font-size: var(--fs-lg); }
.page-hero .eyebrow { color: var(--orange-400); }
.page-hero .eyebrow::before { background: var(--orange-400); }
.breadcrumb { display: flex; gap: var(--space-2); align-items: center; font-size: var(--fs-sm); color: rgba(255,255,255,0.6); flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: #fff; }

/* Article / prose (service + legal pages) */
.prose { max-width: 760px; }
.prose h2 { font-size: var(--fs-2xl); margin-top: var(--space-7); margin-bottom: var(--space-4); }
.prose h3 { font-size: var(--fs-xl); margin-top: var(--space-5); margin-bottom: var(--space-3); }
.prose p, .prose li { color: var(--slate-600); }
.prose p { margin-bottom: var(--space-4); }
.prose ul, .prose ol { margin-bottom: var(--space-4); display: grid; gap: var(--space-2); }
.prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.split { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: var(--space-7); align-items: start; }
.sidebar-card { background: var(--slate-50); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); position: sticky; top: calc(var(--header-h) + var(--space-5)); }
.sidebar-card h3 { font-size: var(--fs-lg); margin-bottom: var(--space-3); }
.sidebar-card .btn { margin-top: var(--space-4); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #aeb6c2; padding-top: var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-6); padding-bottom: var(--space-7); }
.site-footer .brand { color: #fff; margin-bottom: var(--space-4); }
.site-footer .brand small { color: var(--slate-400); }
.footer-about p { color: #97a0ad; font-size: var(--fs-sm); margin-bottom: var(--space-4); }
.footer-col h4 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.footer-col a { color: #aeb6c2; font-size: var(--fs-sm); }
.footer-col a:hover { color: #fff; }
.footer-phone { display: inline-flex; align-items: center; gap: var(--space-3); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); padding: var(--space-3) var(--space-4); border-radius: var(--radius); color: #fff; font-weight: 700; }
.footer-phone svg { width: 22px; height: 22px; color: var(--orange-400); }
.footer-address { font-style: normal; color: #97a0ad; font-size: var(--fs-sm); margin-top: var(--space-4); line-height: 1.7; }
.footer-address span { color: var(--slate-400); }
.footer-disclaimer { color: #7d8694; font-size: var(--fs-xs); line-height: 1.6; padding-block: var(--space-4); border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-block: var(--space-5); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-size: var(--fs-sm); }
.footer-bottom .legal-links { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ---------- Cookie consent banner (injected by script.js on every page) ---------- */
.cookie-bar {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(140%);
  bottom: 16px; z-index: 120; width: min(680px, calc(100vw - 32px));
  background: var(--ink-900); color: #e7ebf1; border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: var(--space-5); display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap;
  transition: transform 360ms ease; opacity: 0.98;
}
.cookie-bar.show { transform: translateX(-50%) translateY(0); }
.cookie-bar p { color: #c7cdd6; font-size: var(--fs-sm); margin: 0; flex: 1 1 280px; line-height: 1.55; }
.cookie-bar p a { color: #fff; text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.cookie-bar .cookie-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.cookie-bar .btn { padding: 0.7em 1.3em; font-size: var(--fs-sm); }
.cookie-bar .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.cookie-bar .btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.06); }
/* lift the floating call button while the cookie bar is visible so they don't collide */
body.cookie-open .float-call { bottom: calc(16px + var(--cookie-bar-h, 150px)); }

/* ---------- Floating mobile call button ---------- */
.float-call {
  position: fixed; bottom: 18px; right: 18px; z-index: 90; display: none;
  align-items: center; gap: var(--space-2); background: var(--primary); color: #fff;
  padding: 0.9em 1.4em; border-radius: var(--radius-pill); font-weight: 800; box-shadow: var(--shadow-lg);
}
.float-call svg { width: 20px; height: 20px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 80ms; }
.reveal.d2 { transition-delay: 160ms; }
.reveal.d3 { transition-delay: 240ms; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-6 { margin-top: var(--space-6); }
.hide { display: none !important; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero-visual { order: -1; max-width: 480px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .contact-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-phone { display: none; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw);
    background: #fff; box-shadow: var(--shadow-lg); padding: calc(var(--header-h) + var(--space-5)) var(--space-5) var(--space-6);
    transform: translateX(100%); transition: transform 280ms ease; overflow-y: auto; margin-left: 0;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: var(--space-1); }
  .main-nav a, .dropdown-toggle { width: 100%; font-size: var(--fs-base); padding: var(--space-3); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--border); border-radius: 0; min-width: 0; margin-left: var(--space-3); padding: 0; max-height: 0; overflow: hidden; transition: max-height var(--transition); }
  .has-dropdown.open .dropdown { max-height: 600px; }
  .has-dropdown:hover .dropdown { /* disable hover-open on mobile */ }
  .nav-burger { display: block; }
  .header-cta .btn { display: none; }
  .float-call { display: inline-flex; }
}

@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .grid--4, .grid--3, .grid--2, .stats, .form-row.two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
  .section { padding-block: var(--space-8); }
  .cta-band { padding: var(--space-6); }
  .hero-visual .card-float { display: none; }
  .cookie-bar { flex-direction: column; align-items: stretch; gap: var(--space-4); padding: var(--space-4); bottom: 12px; }
  .cookie-bar .cookie-actions { justify-content: stretch; }
  .cookie-bar .cookie-actions .btn { flex: 1; }
}

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