/* ==========================================================================
   Crown Ex Roofing — styles.css
   Bold editorial layout. Navy + azure. Edit colours/fonts in :root only.
   ========================================================================== */
:root {
  --ink:#14223D; --ink-soft:#21365E;
  --accent:#2563EB; --accent-dark:#1B4ACB; --accent-tint:#E9F0FE; --accent-lite:#7FB0FF;
  --body:#43506A; --muted:#74829A; --line:#E2E8F2; --chip:#EDF2FA;
  --bg:#FFFFFF; --surface:#FFFFFF; --surface-2:#F4F7FB;
  --navy-grad: linear-gradient(135deg,#14223D 0%,#1E3361 55%,#25427E 100%);
  --font-display:'Plus Jakarta Sans',system-ui,sans-serif; --font-body:'Inter',system-ui,sans-serif;
  --radius:14px; --radius-sm:10px; --shadow:0 14px 40px rgba(20,34,61,.10); --container:1140px;
}
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { font-family:var(--font-body); color:var(--body); background:var(--bg); line-height:1.65; -webkit-font-smoothing:antialiased; }
h1,h2,h3,h4 { font-family:var(--font-display); color:var(--ink); line-height:1.1; letter-spacing:-.02em; }
a { color:inherit; text-decoration:none; }
img,svg { display:block; max-width:100%; }
.container { width:100%; max-width:var(--container); margin:0 auto; padding:0 24px; }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:9px; font-weight:600; font-size:15px; padding:14px 24px; border-radius:var(--radius-sm); border:1.5px solid transparent; cursor:pointer; transition:transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease, border-color .15s ease; }
.btn:hover { transform:translateY(-1px); }
.btn svg { width:18px; height:18px; }
.btn-primary { background:var(--accent); color:#fff; box-shadow:0 10px 24px rgba(37,99,235,.28); }
.btn-primary:hover { background:var(--accent-dark); }
.btn-light { background:#fff; color:var(--ink); }
.btn-light:hover { background:#eef2f8; }
.btn-outline-light { background:transparent; color:#fff; border-color:rgba(255,255,255,.45); }
.btn-outline-light:hover { background:rgba(255,255,255,.12); }

.eyebrow { display:inline-flex; align-items:center; gap:8px; font-weight:600; font-size:13px; letter-spacing:.05em; text-transform:uppercase; color:var(--accent-dark); background:var(--accent-tint); padding:7px 14px; border-radius:999px; }
.eyebrow svg { width:15px; height:15px; }
.eyebrow-light { background:rgba(255,255,255,.12); color:#fff; }
.section-head { text-align:center; max-width:640px; margin:0 auto; }
.section-head h2 { font-size:clamp(28px,3.6vw,40px); font-weight:800; margin-top:14px; }
.section-sub { margin-top:14px; font-size:17px; color:var(--muted); }

/* Top bar */
.topbar { background:var(--ink); color:#cdd6e6; font-size:13px; }
.topbar .container { display:flex; justify-content:space-between; align-items:center; height:38px; gap:16px; }
.topbar a { color:#fff; font-weight:600; }
.topbar .tb-right { display:flex; gap:20px; }
@media (max-width:680px) { .topbar .tb-right { display:none; } }

/* Header */
.site-header { position:sticky; top:0; z-index:50; background:rgba(255,255,255,.92); backdrop-filter:saturate(140%) blur(10px); border-bottom:1px solid var(--line); }
.site-header.scrolled { box-shadow:0 6px 22px rgba(20,34,61,.08); }
.site-header .container { display:flex; align-items:center; justify-content:space-between; height:72px; gap:16px; }
.logo { display:flex; align-items:center; gap:10px; }
.logo .crest { width:38px; height:38px; border-radius:10px; background:var(--ink); display:grid; place-items:center; color:#fff; flex:none; }
.logo .crest svg { width:22px; height:22px; }
.logo .wm { display:flex; flex-direction:column; line-height:1.04; }
.logo .wm b { font-family:var(--font-display); font-weight:800; font-size:17px; color:var(--ink); }
.logo .wm small { font-size:9.5px; font-weight:700; letter-spacing:.3em; text-transform:uppercase; color:var(--accent); }
.main-nav { display:flex; gap:26px; }
.main-nav a { position:relative; font-weight:500; font-size:15px; color:var(--body); transition:color .15s; }
.main-nav a:hover, .main-nav a.active { color:var(--ink); }
.main-nav a.active::after { content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px; background:var(--accent); border-radius:2px; }
.header-cta { display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:15px; color:#fff; background:var(--accent); padding:11px 18px; border-radius:var(--radius-sm); }
.header-cta:hover { background:var(--accent-dark); }
.header-cta svg { width:17px; height:17px; }
.header-right { display:flex; align-items:center; gap:10px; }
.nav-toggle { display:none; background:none; border:0; color:var(--ink); cursor:pointer; padding:4px; }
.nav-toggle svg { width:28px; height:28px; }
.call-mini { display:none; }

/* Hero (centered) */
.hero { position:relative; overflow:hidden; isolation:isolate; color:#fff; text-align:center; background:var(--navy-grad); }
.hero::after { content:""; position:absolute; inset:0; z-index:-1; background:radial-gradient(760px 420px at 50% -12%, rgba(37,99,235,.45), transparent 60%); }
.hero .container { padding:92px 24px 86px; max-width:880px; }
.hero h1 { color:#fff; font-size:clamp(36px,6vw,62px); font-weight:800; margin-top:18px; }
.hero h1 em { font-style:normal; color:var(--accent-lite); }
.hero .lead { margin:18px auto 0; font-size:19px; color:#cdd6e6; max-width:600px; }
.hero-cta { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-top:30px; }
.hero-pills { display:flex; flex-wrap:wrap; gap:10px 16px; justify-content:center; margin-top:30px; }
.hero-pills span { display:inline-flex; align-items:center; gap:8px; font-size:14px; color:#dbe3f0; font-weight:500; }
.hero-pills svg { width:18px; height:18px; color:var(--accent-lite); }

/* Services — numbered editorial list */
.services { padding:90px 0; background:var(--surface); }
.services .container { display:grid; grid-template-columns:.82fr 1.18fr; gap:54px; align-items:start; }
.svc-intro { position:sticky; top:96px; }
.svc-intro h2 { font-size:clamp(28px,3.6vw,40px); font-weight:800; margin-top:14px; }
.svc-intro > p { margin-top:14px; font-size:16.5px; color:var(--body); }
.svc-intro .btn { margin-top:22px; }
.svc-list { display:flex; flex-direction:column; }
.svc-row { display:grid; grid-template-columns:auto 1fr; gap:22px; padding:24px 18px; border-top:1px solid var(--line); align-items:start; border-radius:10px; transition:background .2s ease; }
.svc-list .svc-row:last-child { border-bottom:1px solid var(--line); }
.svc-row:hover { background:var(--surface-2); }
.svc-row .no { font-family:var(--font-display); font-weight:800; font-size:24px; color:var(--accent); line-height:1.15; }
.svc-row h3 { font-size:19px; font-weight:700; }
.svc-row p { margin-top:6px; font-size:15px; color:var(--muted); }

/* Why us — dark band */
.why { background:var(--navy-grad); color:#fff; padding:84px 0; }
.why .head { max-width:640px; }
.why h2 { color:#fff; font-size:clamp(28px,3.4vw,38px); font-weight:800; margin-top:14px; }
.why .head p { color:#cdd6e6; margin-top:14px; font-size:17px; }
.why-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; margin-top:44px; }
.why-card { background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:var(--radius); padding:24px; }
.why-card .ic { width:46px; height:46px; border-radius:12px; background:var(--accent); display:grid; place-items:center; color:#fff; margin-bottom:14px; }
.why-card .ic svg { width:23px; height:23px; }
.why-card h3 { color:#fff; font-size:17px; font-weight:700; }
.why-card p { color:#b9c4d8; font-size:14px; margin-top:6px; }

/* Process — horizontal steps */
.process { padding:90px 0; background:var(--surface-2); }
.steps { display:grid; grid-template-columns:repeat(4,1fr); gap:22px; margin-top:46px; }
.step .n { width:46px; height:46px; border-radius:50%; background:#fff; border:2px solid var(--accent); color:var(--accent); font-family:var(--font-display); font-weight:800; display:grid; place-items:center; margin-bottom:14px; }
.step h3 { font-size:17px; font-weight:700; }
.step p { font-size:14px; color:var(--muted); margin-top:5px; }

/* Reviews — quote cards (placeholder for the demo) */
.reviews { padding:90px 0; background:var(--surface); }
.rev-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:20px; margin-top:44px; }
.rev-card { background:var(--surface-2); border:1px solid var(--line); border-radius:var(--radius); padding:26px 24px; }
.rev-card .quote { font-family:var(--font-display); font-size:46px; line-height:.7; color:var(--accent); opacity:.22; font-weight:800; }
.rev-card .stars { display:flex; gap:3px; color:var(--accent); margin:4px 0 12px; }
.rev-card .stars svg { width:17px; height:17px; }
.rev-card p { font-size:15.5px; color:var(--body); }
.rev-card .who { margin-top:16px; font-size:13.5px; color:var(--muted); font-weight:600; }

/* FAQ */
.faq { padding:84px 0; background:var(--surface-2); }
.faq-list { max-width:780px; margin:36px auto 0; border-top:1px solid var(--line); }
.faq-item { border-bottom:1px solid var(--line); }
.faq-q { width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px; background:none; border:0; cursor:pointer; padding:20px 4px; text-align:left; font-family:var(--font-display); font-weight:700; font-size:17px; color:var(--ink); }
.faq-q .ic { flex:none; width:26px; height:26px; border-radius:50%; background:var(--accent); color:#fff; display:grid; place-items:center; transition:transform .25s ease; }
.faq-q .ic svg { width:16px; height:16px; }
.faq-item.open .faq-q .ic { transform:rotate(45deg); }
.faq-a { overflow:hidden; max-height:0; transition:max-height .3s ease; }
.faq-a p { padding:0 4px 20px; color:var(--body); font-size:15.5px; }

/* Areas — column list */
.areas { padding:84px 0; background:var(--surface); }
.area-cols { columns:4; column-gap:24px; max-width:780px; margin:36px auto 0; padding:0; }
.area-cols li { list-style:none; display:flex; gap:8px; align-items:center; padding:8px 0; font-size:15px; color:var(--ink); font-weight:500; break-inside:avoid; }
.area-cols svg { width:15px; height:15px; color:var(--accent); flex:none; }
.areas .note { text-align:center; margin-top:28px; font-size:15px; color:var(--muted); }
.areas .note a { color:var(--accent); font-weight:600; text-decoration:underline; text-underline-offset:3px; }
@media (max-width:720px) { .area-cols { columns:2; } }
@media (max-width:420px) { .area-cols { columns:1; } }

/* CTA band */
.cta-band { background:var(--navy-grad); }
.cta-band .container { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:22px; padding:54px 24px; }
.cta-band h2 { color:#fff; font-size:clamp(24px,3vw,33px); }
.cta-band p { color:#cdd6e6; margin-top:6px; font-size:16px; }
.cta-actions { display:flex; flex-wrap:wrap; gap:12px; }

/* Contact — centered card */
.contact { padding:90px 0; background:var(--surface-2); }
.contact-card { max-width:760px; margin:40px auto 0; background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:30px; }
.contact-row { display:flex; flex-wrap:wrap; justify-content:center; gap:14px 30px; margin-bottom:24px; padding-bottom:24px; border-bottom:1px solid var(--line); }
.contact-row a, .contact-row span { display:inline-flex; align-items:center; gap:8px; font-weight:600; color:var(--ink); font-size:15px; }
.contact-row svg { width:18px; height:18px; color:var(--accent); }
.field { margin-bottom:16px; }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.field label { display:block; font-size:14px; font-weight:600; color:var(--ink); margin-bottom:6px; }
.field input, .field textarea { width:100%; font:inherit; font-size:15px; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:10px; padding:12px 14px; outline:none; transition:border-color .15s ease, box-shadow .15s ease; }
.field input:focus, .field textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(37,99,235,.14); }
.field textarea { min-height:120px; resize:vertical; }
.contact-card button { width:100%; }
.form-status { margin-top:12px; font-size:14px; font-weight:500; text-align:center; }
.form-note { font-size:12.5px; color:var(--muted); margin-top:12px; text-align:center; }
.hp { position:absolute; left:-9999px; opacity:0; height:0; width:0; }

/* Footer */
.site-footer { background:var(--ink); color:#aeb9cd; padding:56px 0 0; }
.footer-grid { display:grid; grid-template-columns:1.5fr 1fr 1fr 1.2fr; gap:32px; }
.site-footer .logo { margin-bottom:14px; }
.site-footer .logo .crest { background:#fff; color:var(--ink); }
.site-footer .logo .wm b { color:#fff; }
.footer-brand p { font-size:14.5px; color:#9aa6bd; max-width:300px; }
.footer-col h5 { font-family:var(--font-body); font-size:13px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:#7d8aa3; margin-bottom:14px; }
.footer-col ul { list-style:none; display:grid; gap:9px; }
.footer-col a, .footer-col li { font-size:15px; color:#c2cbdc; }
.footer-col a:hover { color:#fff; }
.footer-bottom { margin-top:44px; border-top:1px solid rgba(255,255,255,.12); padding:20px 0; display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; font-size:13.5px; color:#7d8aa3; }

/* Back to top + mobile call */
.to-top { position:fixed; right:20px; bottom:20px; z-index:60; width:48px; height:48px; border-radius:50%; background:var(--accent); color:#fff; border:0; cursor:pointer; display:grid; place-items:center; box-shadow:0 10px 26px rgba(37,99,235,.32); opacity:0; visibility:hidden; transform:translateY(10px); transition:opacity .25s ease, transform .25s ease, visibility .25s; }
.to-top.show { opacity:1; visibility:visible; transform:none; }
.to-top svg { width:22px; height:22px; }
.mobile-call { display:none; }

/* Reveal */
[data-reveal] { opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){ [data-reveal]{opacity:1;transform:none;transition:none} html{scroll-behavior:auto} }

/* Responsive */
@media (max-width:900px) {
  .services .container { grid-template-columns:1fr; gap:30px; }
  .svc-intro { position:static; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:28px; }
  .steps { grid-template-columns:1fr 1fr; gap:30px 16px; }
}
@media (max-width:820px) {
  .main-nav, .header-cta { display:none; }
  .nav-toggle { display:inline-flex; }
  body.nav-open .main-nav { display:flex; flex-direction:column; align-items:stretch; gap:2px; position:absolute; top:72px; left:0; right:0; background:#fff; border-bottom:1px solid var(--line); padding:10px 24px 16px; box-shadow:var(--shadow); }
  body.nav-open .main-nav a { padding:12px 0; font-size:16px; border-bottom:1px solid var(--line); }
  .call-mini { display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:50%; background:var(--accent); color:#fff; }
  .call-mini svg { width:19px; height:19px; }
  .mobile-call { position:fixed; left:0; right:0; bottom:0; z-index:70; display:flex; align-items:center; justify-content:center; gap:9px; background:var(--accent); color:#fff; font-weight:700; font-size:16px; padding:14px; box-shadow:0 -6px 20px rgba(20,34,61,.18); }
  .mobile-call svg { width:19px; height:19px; }
  body { padding-bottom:56px; }
  .to-top { bottom:70px; }
}
@media (max-width:560px) {
  .field-row { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
  .steps { grid-template-columns:1fr; }
  .cta-band .container { flex-direction:column; align-items:flex-start; }
}
