/* DW Cool Running — site styles (mobile-first) */
:root {
  --navy: #0a2342;
  --navy-2: #12325c;
  --blue: #1266d4;
  --blue-dark: #0d4fa8;
  --sky: #3fa9f5;
  --ice: #eaf4ff;
  --ice-2: #f5f9ff;
  --yellow: #ffc23d;
  --yellow-dark: #f0ac12;
  --red: #d7262e;        /* brand red from the logo */
  --red-dark: #b51d24;
  --sky-light: #6cc8ff;
  --ink: #0f1b2d;
  --muted: #51627a;
  --line: #d7e3f2;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 35, 66, .12);
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .6rem; }
.section { padding: 64px 0; }
.section--ice { background: var(--ice-2); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head p { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 700 1rem/1 var(--font); padding: 14px 22px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--call { background: var(--blue); color: #fff; }
.btn--call:hover { background: var(--blue-dark); }
.btn--quote { background: var(--red); color: #fff; }
.btn--quote:hover { background: var(--red-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--lg { font-size: 1.15rem; padding: 18px 28px; }
.btn--block { width: 100%; }

/* Header (sticky on every screen) */
.topbar { background: var(--navy); color: #cfe0f5; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar .hide-sm { display: none; }
.header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 14px rgba(10,35,66,.1); }
.header .wrap { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); margin-right: auto; }
.logo img { height: 40px; width: auto; display: block; }
.footer-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 10px; }
.footer-logo img { height: 34px; }
.logo-text { font: 800 1.15rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .02em; }
.logo-text small { display: block; font: 600 .68rem/1.3 var(--font); letter-spacing: .14em; color: var(--blue); }
.nav { display: none; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--ice); color: var(--blue); }
.header-cta { display: flex; gap: 8px; }
.header-cta .btn { padding: 12px 14px; font-size: .95rem; }
.header-cta .btn--call .num { display: none; }
.header .wrap { max-width: 1320px; }
.menu-btn { display: inline-flex; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.menu-btn svg { width: 28px; height: 28px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--navy); font-weight: 600; text-decoration: none; }

/* Hero */
.hero { position: relative; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, rgba(63,169,245,.45), transparent 60%), linear-gradient(160deg, var(--navy) 0%, #0e3a74 55%, var(--blue) 100%); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70px; background: linear-gradient(to top, rgba(10,35,66,.25), transparent); pointer-events: none; }
.hero .wrap { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 48px; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
/* Hero background photo slot: set --hero-img on .hero once the real photo is in /img */
.hero { background-image: linear-gradient(160deg, rgba(10,35,66,.94) 0%, rgba(14,58,116,.86) 55%, rgba(18,102,212,.78) 100%), var(--hero-img, none); background-size: cover; background-position: center; }
.hero-photo-note { display: block; position: relative; margin: -28px 16px 40px; z-index: 1; font-size: .75rem; color: rgba(255,255,255,.75); border: 1px dashed rgba(255,255,255,.4); border-radius: 8px; padding: 4px 8px; }
.hero h1 .accent { color: var(--sky-light); }
.hero-lead { font-size: 1.15rem; color: #d9e8fb; max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: #e7f1fd; font-weight: 600; }
.hero-points li { display: flex; gap: 8px; align-items: center; }
.hero-points svg { width: 20px; height: 20px; color: var(--sky-light); flex: none; }
.rating-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; margin-bottom: 16px; }
.stars { color: var(--yellow); letter-spacing: 1px; }

/* Photo placeholders (swap for real job photos) */
.photo { position: relative; border-radius: var(--radius); overflow: hidden; background: repeating-linear-gradient(135deg, #dce9f8 0 14px, #e8f1fb 14px 28px); border: 2px dashed #9fbfe6; display: flex; align-items: flex-end; min-height: 220px; color: var(--navy); }
.photo--dark { background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 14px, rgba(255,255,255,.03) 14px 28px); border-color: rgba(255,255,255,.35); color: #fff; }
.photo-label { margin: 12px; background: rgba(255,255,255,.92); color: var(--navy); padding: 8px 12px; border-radius: 10px; font-size: .85rem; line-height: 1.35; }
.photo-label b { display: block; }
.photo-label code { font-size: .78rem; color: var(--muted); }

/* Proof stats (right under the hero) */
.proof { background: #fff; position: relative; z-index: 2; }
.proof .wrap { padding-top: 0; padding-bottom: 0; }
.proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: -28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.stat { padding: 18px 14px; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-last-child(-n+2) { border-bottom: 0; }
.stat-num { font: 800 1.9rem/1 var(--font-head); color: var(--navy); display: block; }
.stat-num .stars { font-size: 1.1rem; vertical-align: middle; }
.stat-label { color: var(--muted); font-size: .9rem; font-weight: 600; }

/* Quote quiz */
.quiz { background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 20px 50px rgba(5, 20, 45, .35); padding: 22px; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.quiz-title { font: 800 1.3rem/1.1 var(--font-head); color: var(--navy); margin: 0; }
.quiz-step-count { font-size: .85rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.quiz-bar { height: 6px; background: var(--ice); border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.quiz-bar span { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--blue), var(--sky)); transition: width .3s; }
.quiz-q { font: 700 1.2rem/1.25 var(--font); margin: 0 0 14px; color: var(--navy); }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 15px 16px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font: 600 1.05rem/1.2 var(--font); color: var(--ink); cursor: pointer; min-height: 56px; transition: border-color .15s, background .15s; }
.quiz-opt:hover, .quiz-opt:focus-visible { border-color: var(--blue); background: var(--ice-2); outline: none; }
.quiz-opt.selected { border-color: var(--blue); background: var(--ice); }
.quiz-opt .ico { width: 34px; height: 34px; border-radius: 9px; background: var(--ice); color: var(--blue); display: grid; place-items: center; flex: none; }
.quiz-opt .ico svg { width: 20px; height: 20px; }
.quiz-opt small { display: block; font-weight: 500; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.quiz-field { display: grid; gap: 6px; margin-bottom: 12px; }
.quiz-field label { font-weight: 700; font-size: .95rem; color: var(--navy); }
.quiz-field input, .quiz-field select { font: 500 1.05rem var(--font); padding: 13px 14px; border: 2px solid var(--line); border-radius: 10px; width: 100%; background: #fff; color: var(--ink); }
.quiz-field input:focus, .quiz-field select:focus { border-color: var(--blue); outline: none; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; }
.quiz-back { background: none; border: 0; color: var(--muted); font: 600 .95rem var(--font); cursor: pointer; padding: 8px 4px; }
.quiz-back[hidden] { display: inline-block; visibility: hidden; }
.quiz-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.quiz-msg { border-radius: 10px; padding: 12px 14px; font-size: .95rem; margin: 6px 0 4px; }
.quiz-msg--ok { background: #e8f8ef; color: #135a32; }
.quiz-msg--warn { background: #fff5dd; color: #6b4a00; }
.quiz-msg--err { background: #fde8e8; color: #8a1c1c; }
.emergency { background: linear-gradient(160deg, #fff5dd, #fff); border: 2px solid var(--yellow); border-radius: 14px; padding: 18px; text-align: center; margin-bottom: 12px; }
.emergency p { margin: 0 0 12px; font-weight: 600; color: var(--navy); }
.emergency .btn { width: 100%; font-size: 1.25rem; padding: 20px; }
.quiz-done { text-align: center; padding: 10px 0; }
.quiz-done .check { width: 64px; height: 64px; border-radius: 50%; background: #e8f8ef; color: #1c8a4c; display: grid; place-items: center; margin: 0 auto 14px; }
.quiz-done .check svg { width: 34px; height: 34px; }
.quiz-done h3 { font-size: 1.6rem; }
.quiz-modal { border: 0; padding: 0; background: transparent; width: min(520px, calc(100% - 24px)); max-height: calc(100% - 24px); }
.quiz-modal::backdrop { background: rgba(5, 20, 45, .65); }
.quiz-modal .quiz { position: relative; }
.quiz-close { position: absolute; top: 10px; right: 10px; background: var(--ice); border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; color: var(--navy); }
.quiz-modal .quiz-top { padding-right: 40px; }

/* Cards */
.grid { display: grid; gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .ico { width: 52px; height: 52px; border-radius: 12px; background: var(--ice); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 28px; height: 28px; }
.card p { color: var(--muted); flex: 1; }
.card .price { font-weight: 700; color: var(--navy); font-size: .95rem; margin-bottom: 10px; }
.card-link { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.card-link:hover { text-decoration: underline; }

/* Split rows */
.split { display: grid; gap: 28px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 2px; }

/* Plan band */
.plan { background: linear-gradient(150deg, var(--navy), #0e3a74); color: #fff; border-radius: 20px; padding: 32px 22px; display: grid; gap: 22px; }
.plan h2 { color: #fff; }
.plan p { color: #d9e8fb; }
.plan .checklist svg { color: var(--sky-light); }
.plan-price { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 22px; text-align: center; align-self: center; }
.plan-price .amt { font: 800 2.4rem/1 var(--font-head); display: block; margin: 6px 0; }

/* Areas */
.areas { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.areas li a, .areas li span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); font-weight: 700; text-decoration: none; color: var(--navy); background: #fff; }
.areas li a { border-color: var(--blue); color: var(--blue); }
.areas li a:hover { background: var(--ice); }
.map { min-height: 260px; }

/* Reviews */
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 24px; }
.g-badge { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.g-badge .big { font: 800 2rem/1 var(--font-head); color: var(--navy); }
.review { background: #fff; border: 1px dashed #9fbfe6; border-radius: var(--radius); padding: 22px; }
.review .stars { font-size: 1.1rem; }
.review blockquote { margin: 10px 0; color: var(--muted); font-style: italic; }
.review cite { font-style: normal; font-weight: 700; color: var(--navy); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 700; color: var(--navy); cursor: pointer; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Breadcrumbs */
.crumbs { background: var(--ice-2); border-bottom: 1px solid var(--line); font-size: .9rem; }
.crumbs ol { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: "/"; margin: 0 6px; color: var(--muted); }
.crumbs a { color: var(--blue); text-decoration: none; font-weight: 600; }
.crumbs [aria-current] { color: var(--muted); }

/* Simple page header (About, Reviews, 404) */
.page-head { background: linear-gradient(160deg, var(--navy) 0%, #0e3a74 60%, var(--blue) 100%); color: #fff; padding: 56px 0 72px; }
.page-head h1 { color: #fff; }
.page-head .eyebrow { color: var(--sky-light); }

/* Recent job cards */
.job .photo { margin: -22px -22px 16px; border-radius: var(--radius) var(--radius) 0 0; border-width: 0 0 2px; }
.job p b { color: var(--navy); }
.quiz-anchor { scroll-margin-top: 90px; }

/* CTA band */
.cta-band { background: var(--blue); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e3efff; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-grid { display: grid; gap: 24px; align-items: center; justify-items: center; }
.mascot-card { background: #fff; border-radius: 20px; padding: 12px; max-width: 320px; box-shadow: 0 16px 40px rgba(5,20,45,.3); }
.mascot { width: 100%; height: auto; }

/* Footer */
.footer { background: var(--navy); color: #b9cde6; font-size: .95rem; padding: 48px 0 24px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer h3 { color: #fff; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid { display: grid; gap: 28px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.footer .logo { color: #fff; margin-bottom: 12px; }

/* Larger screens */
@media (min-width: 560px) {
  .topbar .hide-sm { display: inline; }
  .logo img { height: 38px; }
}
@media (min-width: 720px) {
  .header-cta .btn--call .num { display: inline; }
  .logo img { height: 44px; }
  .cta-grid { grid-template-columns: 300px 1fr; justify-items: start; text-align: left; }
  .cta-grid .btns { justify-content: flex-start; }
}
@media (min-width: 720px) {
  .proof-grid { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0; }
  .stat:nth-child(2n) { border-right: 1px solid var(--line); }
  .stat:last-child { border-right: 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 980px) {
  .section { padding: 88px 0; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 64px; padding-bottom: 80px; gap: 48px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .hero-photo-note { position: absolute; right: 16px; bottom: 36px; margin: 0; }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .plan { grid-template-columns: 1.4fr 1fr; padding: 48px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (min-width: 1280px) {
  .nav { display: flex; gap: 2px; }
  .nav a { white-space: nowrap; }
  .menu-btn { display: none; }
  .mobile-nav, .mobile-nav.open { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
