/* =========================================================
   White Rock Garage Doors — coastal, accessible, distinct
   Palette: white #FFFFFF · coastal blue #1F6FB2 ·
            coral/sunset #F06B4A · soft grey text #26333B
   Larger base font, big tap targets, strong contrast.
   ========================================================= */

/* ---- Fonts (Figtree, warm humanist sans) ---- */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&display=swap');

:root {
  --white: #ffffff;
  --blue: #1f6fb2;
  --blue-dark: #155a93;
  --blue-deep: #0e3f6b;
  --coral: #f06b4a;
  --coral-dark: #d8542f;
  --ink: #26333b;
  --ink-soft: #4a5a64;
  --grey-bg: #f3f7fa;
  --grey-line: #d9e4ec;
  --sand: #fbf6ef;
  --focus: #ffb703;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(14, 63, 107, .08);
  --shadow: 0 8px 28px rgba(14, 63, 107, .12);
  --shadow-lg: 0 18px 48px rgba(14, 63, 107, .18);

  --maxw: 1160px;
  --gap: clamp(1rem, 3vw, 2rem);
}

/* ---- Reset-ish ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;          /* larger base for readability */
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 19px; } }

img { max-width: 100%; display: block; }
a { color: var(--blue-dark); }
a:hover { color: var(--coral-dark); }

h1, h2, h3, h4 { line-height: 1.18; color: var(--ink); margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(2.8rem, 6vw, 5rem); }
.section--grey { background: var(--grey-bg); }
.section--sand { background: var(--sand); }
.section--blue { background: var(--blue-deep); color: #eaf2f9; }
.section--blue h2, .section--blue h3 { color: #fff; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.eyebrow { color: var(--coral-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0 0 .6rem; }
.section--blue .eyebrow { color: #ffd9cd; }

/* ---- Accessibility helpers ---- */
.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;
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--coral); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 10px 10px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---- Buttons (big tap targets ≥ 44px) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .85rem 1.5rem;
  font-size: 1.05rem; font-weight: 700; font-family: inherit;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  text-decoration: none; text-align: center; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--call { background: var(--coral); color: #fff; box-shadow: var(--shadow-sm); }
.btn--call:hover { background: var(--coral-dark); color: #fff; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--blue-dark); border-color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff; }
.btn--white { background: #fff; color: var(--blue-deep); }
.btn--white:hover { background: #eaf2f9; color: var(--blue-deep); }
.btn--lg { min-height: 60px; font-size: 1.15rem; padding: 1rem 1.9rem; }
.btn svg { width: 22px; height: 22px; flex: none; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--grey-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font-weight: 800; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__name { font-size: 1.12rem; line-height: 1.05; }
.brand__name span { display: block; font-size: .72rem; font-weight: 600; color: var(--blue-dark); letter-spacing: .03em; text-transform: uppercase; }

.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; background: var(--grey-bg); border: 1px solid var(--grey-line); border-radius: 10px; min-height: 48px; padding: 0 .9rem; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }

.primary-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; align-items: center; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .7rem; border-radius: 9px; text-decoration: none; color: var(--ink); font-weight: 600; }
.primary-nav a:hover { background: var(--grey-bg); color: var(--blue-dark); }
.primary-nav a[aria-current="page"] { color: var(--blue-dark); background: #e8f1f8; }

/* dropdown */
.has-dropdown { position: relative; }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 250px; z-index: 110; background: #fff; border: 1px solid var(--grey-line); border-radius: 12px; box-shadow: var(--shadow); padding: .4rem; display: none; flex-direction: column; gap: 2px; }
/* Only one dropdown shows at a time: hover (mouse) or .open (click/keyboard, set by JS). */
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown { display: flex; }
/* A clicked-open dropdown wins over a hovered neighbour so they never overlap. */
.has-dropdown.open .dropdown { z-index: 120; }
.has-dropdown > a[aria-haspopup] { cursor: pointer; }
.dropdown a { width: 100%; }

.header-cta { display: flex; align-items: center; gap: .6rem; }
.header-phone { display: inline-flex; align-items: center; gap: .5rem; }

.nav-desktop { display: none; }
@media (min-width: 1024px) {
  .nav-desktop { display: flex; align-items: center; gap: 1rem; }
  .nav-toggle { display: none; }
}

/* mobile menu panel */
.mobile-nav { display: none; border-top: 1px solid var(--grey-line); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: .5rem 0 1rem; }
.mobile-nav a { display: block; padding: .85rem clamp(1rem,4vw,2rem); font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--grey-bg); }
.mobile-nav a:hover { background: var(--grey-bg); color: var(--blue-dark); }
.mobile-nav .group-label { padding: .9rem clamp(1rem,4vw,2rem) .3rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--blue-dark); font-weight: 800; }
.mobile-nav .sub a { padding-left: calc(clamp(1rem,4vw,2rem) + 1rem); font-weight: 500; }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }

/* ---- Hero ---- */
.hero { background: linear-gradient(160deg, #eaf3fa 0%, #f6fbff 60%, #fff 100%); position: relative; overflow: hidden; }
.hero::after { content:""; position:absolute; inset:auto 0 0 0; height:6px; background: linear-gradient(90deg, var(--blue), var(--coral)); }
.hero-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding-block: clamp(2.4rem, 6vw, 4.5rem); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { margin-bottom: .35em; }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--ink-soft); max-width: 38ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.6rem; font-weight: 600; color: var(--ink-soft); font-size: .98rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-badges svg { width: 20px; height: 20px; color: var(--blue); }

/* ---- Trust strip ---- */
.trust-strip { background: var(--blue-deep); color: #eaf2f9; }
.trust-strip ul { list-style: none; margin: 0; padding: 1rem 0; display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: center; font-weight: 600; }
.trust-strip li { display: inline-flex; align-items: center; gap: .5rem; }
.trust-strip svg { width: 20px; height: 20px; color: var(--coral); flex: none; }

/* ---- Image placeholders (no real images yet) ---- */
.img-ph {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: .4rem;
  background: repeating-linear-gradient(135deg, #e7eff6 0 14px, #dfeaf4 14px 28px);
  border: 2px dashed var(--blue); border-radius: var(--radius-lg);
  color: var(--blue-deep); padding: 1.2rem; min-height: 240px; text-align: center; overflow: hidden;
}
.img-ph::before { content: "🖼 image placeholder"; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; font-size: .72rem; color: var(--blue); }
.img-ph .fn { font-weight: 800; font-size: .95rem; word-break: break-word; }
.img-ph .desc { font-size: .85rem; color: var(--ink-soft); max-width: 40ch; margin-inline: auto; }
.img-ph--sm { min-height: 170px; }
.img-ph--tall { min-height: 340px; }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: clamp(1rem, 3vw, 1.8rem); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2,1fr);} .grid-4 { grid-template-columns: repeat(2,1fr);} }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3,1fr);} .grid-4 { grid-template-columns: repeat(4,1fr);} }

.card { background: #fff; border: 1px solid var(--grey-line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-top: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: #e8f1f8; color: var(--blue); margin-bottom: .4rem; }
.card__icon svg { width: 30px; height: 30px; }
.card--link { display: flex; flex-direction: column; }
.card--link a.card__more { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--coral-dark); display: inline-flex; align-items: center; gap: .35rem; padding-top: .6rem; }
.card--link a.card__more:hover { gap: .6rem; }

/* feature list with check icons */
.checks { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .6rem; }
.checks li { display: flex; gap: .65rem; align-items: flex-start; }
.checks svg { width: 24px; height: 24px; color: var(--blue); flex: none; margin-top: 2px; }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.8rem); text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dce9f4; max-width: 52ch; margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; }
.cta-phone-big { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .6rem; margin: .3rem 0 1rem; }
.cta-phone-big:hover { color: #fff; }
.cta-phone-big svg { width: 34px; height: 34px; }

/* ---- Comparison cards (openers) ---- */
.opener-card { display: flex; flex-direction: column; }
.opener-card .tag { align-self: flex-start; background: var(--sand); color: var(--coral-dark); border: 1px solid #f3d8cd; font-weight: 700; font-size: .8rem; padding: .25rem .7rem; border-radius: 999px; margin-bottom: .6rem; }
.opener-card.featured { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(240,107,74,.18), var(--shadow-sm); }
.opener-card .best { background: #e8f1f8; border-radius: 12px; padding: .7rem .9rem; font-size: .95rem; margin: .2rem 0 1rem; }
.opener-card .best strong { color: var(--blue-dark); }

/* ---- FAQ (accordion) ---- */
.faq details { border: 1px solid var(--grey-line); border-radius: var(--radius); background: #fff; margin-bottom: .8rem; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 1.05rem 1.2rem; font-weight: 700; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--coral); font-weight: 700; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.2rem 1.2rem; color: var(--ink-soft); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---- Breadcrumbs ---- */
.breadcrumbs { background: var(--grey-bg); border-bottom: 1px solid var(--grey-line); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: .7rem 0; font-size: .92rem; }
.breadcrumbs li { display: flex; align-items: center; gap: .4rem; color: var(--ink-soft); }
.breadcrumbs li::after { content: "›"; color: var(--grey-line); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { text-decoration: none; color: var(--blue-dark); font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---- Two-column content ---- */
.split { display: grid; gap: clamp(1.5rem,4vw,3rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }

/* prose */
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }

/* pill list of areas */
.area-pills { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 1rem 0 0; }
.area-pills a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; background: #fff; border: 1px solid var(--grey-line); border-radius: 999px; text-decoration: none; color: var(--blue-dark); font-weight: 600; }
.area-pills a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* stats */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(2,1fr); }
@media (min-width:760px){ .stats { grid-template-columns: repeat(4,1fr);} }
.stat { text-align: center; }
.stat b { display: block; font-size: clamp(1.8rem,4vw,2.6rem); color: var(--coral); }
.stat span { color: var(--ink-soft); font-weight: 600; }

/* ---- Quote form ---- */
.form-card { background: #fff; border: 1px solid var(--grey-line); border-radius: var(--radius-lg); padding: clamp(1.4rem,4vw,2.2rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.field .req { color: var(--coral-dark); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: .8rem .9rem; min-height: 52px;
  border: 2px solid var(--grey-line); border-radius: 12px; background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(31,111,178,.18); }
.form-note { font-size: .9rem; color: var(--ink-soft); }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #c9d4db; padding-block: clamp(2.5rem,5vw,3.5rem) 1.5rem; }
.site-footer a { color: #dfe8ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-grid h4 { color: #fff; font-size: 1.05rem; margin-bottom: .8rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__name span { color: #9fc3df; }
.footer-phone { font-size: 1.5rem; font-weight: 800; color: #fff !important; display: inline-flex; align-items: center; gap: .5rem; margin: .3rem 0; }
.footer-bottom { border-top: 1px solid #3a4750; margin-top: 2rem; padding-top: 1.2rem; font-size: .88rem; color: #9aa7af; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; }

/* ---- Floating call button (mobile) ---- */
.float-call {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  background: var(--coral); color: #fff; font-weight: 800; font-size: 1.2rem;
  min-height: 60px; border-radius: 999px; text-decoration: none; box-shadow: var(--shadow-lg);
}
.float-call:hover { background: var(--coral-dark); color: #fff; }
.float-call svg { width: 26px; height: 26px; }
@media (min-width: 1024px) { .float-call { display: none; } }
/* keep content clear of floating button on mobile */
@media (max-width: 1023px) { .site-footer { padding-bottom: 6rem; } }

/* utility */
.mt0{margin-top:0}.mb0{margin-bottom:0}
.lead { font-size: 1.15rem; color: var(--ink-soft); }
hr.rule { border: none; border-top: 1px solid var(--grey-line); margin: 2rem 0; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
