/* C&A Janitorial Service — site styles
   Layout: sticky white header, full-bleed photo bands, 1240px content column, quote card as the hero's working element. */
:root {
  --blue: #0A12A8;        /* logo royal blue: headings, bands */
  --blue-deep: #070C5E;   /* footer, dark overlays */
  --sky: #0099EA;         /* logo light blue: accents, focus */
  --sky-text: #0077C8;    /* light blue usable as text on white */
  --sky-soft: #6CCBFF;    /* light blue on dark */
  --tint: #E6F4FD;        /* soft blue grounds */
  --green: #187A2F;       /* action buttons only */
  --green-hover: #13652A;
  --green-soft: #E2F4E5;
  --ink: #0A0F4A;
  --text: #1B2333;
  --muted: #4A5878;
  --line: #E3EAF5;
  --line-strong: #C9DDF3;
  --bg: #FFFFFF;
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 16px;
  --gutter: 20px;
  --max: 1240px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-deep); }
h1, h2, h3 { font-family: var(--font-display); color: var(--blue); line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-weight: 800; font-size: clamp(36px, 5vw, 62px); }
h2 { font-weight: 800; font-size: clamp(28px, 3.8vw, 44px); }
h3 { font-weight: 700; font-size: 21px; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: 80px; }
.section.tight { padding-block: 56px; }
.eyebrow { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky-text); font-weight: 700; margin-bottom: 10px; }
.on-dark .eyebrow { color: var(--sky-soft); }
.lead { font-size: clamp(18px, 1.8vw, 21px); color: var(--muted); max-width: 640px; margin-top: 14px; }
.on-dark { color: #FFFFFF; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #FFFFFF; }
.on-dark .lead { color: #DCE9FA; }
[id] { scroll-margin-top: 84px; }
.skip { position: absolute; left: -999px; top: 8px; background: #FFFFFF; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.1; text-align: center; }
.btn-go { background: var(--green); color: #FFFFFF; }
.btn-go:hover { background: var(--green-hover); color: #FFFFFF; }
.btn-line { background: #FFFFFF; color: var(--blue); border-color: var(--blue); }
.btn-line:hover { background: var(--tint); color: var(--blue); }
.btn-ghost { color: #FFFFFF; border-color: rgba(255,255,255,0.65); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #FFFFFF; }
.btn-lg { min-height: 56px; font-size: 18px; padding: 0 28px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: #FFFFFF; border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(10,15,74,0.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue); min-width: 0; }
.brand img { width: 44px; height: 48px; object-fit: contain; flex: none; }
.brand b { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.1; display: block; }
.brand small { font-weight: 600; font-size: 13px; color: var(--muted); display: block; }
.nav { display: flex; gap: 22px; font-weight: 600; font-size: 16px; }
.nav a { color: var(--ink); text-decoration: none; padding-block: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.header-actions { display: flex; gap: 10px; align-items: center; flex: none; }
.phone-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; border: 2px solid #D5E3F5; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; color: var(--blue); }
.header-actions .btn { min-height: 46px; padding: 0 18px; font-size: 16px; white-space: nowrap; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--line-strong); background: #FFFFFF; cursor: pointer; align-items: center; justify-content: center; }
.mobile-nav { border-top: 1px solid var(--line); background: #FFFFFF; }
.mobile-nav .wrap { display: grid; gap: 4px; padding-block: 12px 18px; }
.mobile-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 6px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 10px; border-bottom: 0; color: #FFFFFF; justify-content: center; }
@media (max-width: 1060px) { .nav { display: none; } .menu-btn { display: inline-flex; } }
@media (max-width: 600px) { .phone-pill { display: none; } .brand small { display: none; } }
@media (max-width: 380px) { .header-actions .btn { padding: 0 14px; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--blue); color: #FFFFFF; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(4,8,60,0.66); }
.hero .wrap { position: relative; z-index: 1; }
.hero-home .wrap { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; padding-block: 52px 72px; }
.hero-copy { flex: 1 1 420px; min-width: 0; padding-top: 20px; }
.hero h1 { color: #FFFFFF; }
.hero h1 span { color: var(--sky-soft); }
.hero .lead { color: #E1E9F7; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; font-size: 18px; font-weight: 600; }
.checks li { display: flex; gap: 10px; align-items: center; }
.check-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex: none; }
.kb { animation: kb 22s ease-in-out infinite alternate; transform-origin: 60% 50%; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.page-hero .wrap { padding-block: 72px 64px; }
.page-hero .crumbs { font-size: 15px; color: #CFE0F5; margin-bottom: 14px; }
.page-hero .crumbs a { color: #FFFFFF; }

/* Trust strip */
.trust { background: var(--tint); }
.trust .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; padding-block: 24px; }
.trust b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--blue); }
.trust span { font-weight: 600; color: var(--ink); }

/* Cards & grids */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.svc-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #FFFFFF; transition: border-color .2s, transform .2s; }
.svc-card:hover { border-color: var(--sky); transform: translateY(-2px); color: var(--text); }
.svc-card img { width: 100%; height: 190px; object-fit: cover; }
.svc-card div { padding: 18px 20px 20px; display: grid; gap: 6px; }
.svc-card p { color: var(--muted); font-size: 16px; }
.svc-card .more { color: var(--blue); font-weight: 700; font-size: 16px; margin-top: 4px; }
.ind-tile { position: relative; min-height: 260px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; background: var(--blue); text-decoration: none; }
.ind-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ind-tile div { position: relative; width: 100%; padding: 20px 22px; background: rgba(5,9,90,0.84); color: #FFFFFF; }
.ind-tile b { font-family: var(--font-display); font-size: 22px; display: block; }
.ind-tile span { color: #CFE6FB; font-size: 16px; }

/* Split rows */
.split { display: flex; gap: 48px; flex-wrap: wrap; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split img { width: 100%; height: 420px; object-fit: cover; border-radius: 18px; }
.split.reverse { flex-direction: row-reverse; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; margin-top: 1px; }
.ticks b { color: var(--ink); }

/* Blue band */
.band { background: var(--blue); }
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-top: 34px; }
.step { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22); border-radius: 18px; padding: 24px; }
.step-n { width: 48px; height: 48px; border-radius: 14px; background: #FFFFFF; color: var(--blue); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.step h3 { margin-top: 16px; }
.step p { margin-top: 8px; color: #DCE9FA; }

/* Scope / info boxes */
.box { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: #FFFFFF; }
.box.soft { background: var(--tint); border-color: var(--line-strong); }
.box h3 { margin-bottom: 4px; }
.cols-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { border: 1px solid var(--line-strong); background: #FFFFFF; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 16px; color: var(--ink); text-decoration: none; }
.on-dark .chip { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,0.45); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; background: #FFFFFF; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; font-weight: 700; font-size: 19px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; color: var(--blue); font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* CTA band */
.cta { background: var(--tint); }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 56px; }
.cta h2 { max-width: 680px; font-size: clamp(26px, 3.4vw, 40px); }

/* Contact */
.contact-list { display: grid; gap: 14px; margin-top: 20px; }
.contact-list div { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; }
.contact-list b { display: block; color: var(--ink); }
.form { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; font-weight: 700; font-size: 15px; color: var(--ink); }
.field input, .field textarea, .field select { min-height: 50px; padding: 10px 14px; border: 2px solid #D5E3F5; border-radius: 12px; font: inherit; font-size: 17px; font-weight: 400; color: var(--text); background: #FFFFFF; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--sky); outline: none; box-shadow: 0 0 0 3px rgba(0,153,234,0.25); }
.field .err { color: #B42318; font-weight: 600; font-size: 14px; }
.note { font-size: 14px; color: var(--muted); }
.notice { border-radius: 14px; padding: 16px 18px; font-weight: 600; }
.notice.ok { background: var(--green-soft); color: #0F4D1F; }
.notice.bad { background: #FDECEC; color: #8A1C14; }

/* Footer */
.site-footer { background: var(--blue-deep); color: #CFE0F5; }
.site-footer .wrap { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); padding-block: 52px 28px; font-size: 16px; line-height: 1.75; }
.site-footer a { color: #CFE0F5; text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer h4 { margin: 0 0 6px; color: #FFFFFF; font-size: 16px; }
.logo-chip { display: inline-block; background: #FFFFFF; border-radius: 14px; padding: 8px; margin-bottom: 12px; }
.logo-chip img { width: 110px; height: 110px; object-fit: contain; }
.legal { border-top: 1px solid rgba(255,255,255,0.15); }
.legal .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 18px; font-size: 14px; }

/* Calculator */
.calc { flex: 1 1 520px; max-width: 600px; min-width: 0; background: #FFFFFF; color: var(--ink); border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,40,0.38); overflow: hidden; scroll-margin-top: 84px; }
.calc.flat { box-shadow: 0 12px 40px rgba(10,15,74,0.12); border: 1px solid var(--line); max-width: 760px; margin-inline: auto; }
.calc-head { background: var(--blue); color: #FFFFFF; padding: 22px 26px; }
.calc-head strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 32px); line-height: 1.1; }
.calc-head span { display: block; margin-top: 6px; color: #CFE6FB; }
.calc-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 18px 26px 0; }
.calc-progress div { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: #7A879E; }
.calc-progress i { display: block; height: 6px; border-radius: 999px; background: var(--line); }
.calc-progress .done i { background: var(--green); }
.calc-progress .now i { background: var(--blue); }
.calc-progress .done, .calc-progress .now { color: var(--ink); }
.calc-body { padding: 18px 26px 26px; display: grid; gap: 16px; }
.calc-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.calc-back { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px 0 14px; border-radius: 999px; border: 2px solid var(--blue); background: #FFFFFF; color: var(--blue); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.calc-back:hover { background: var(--tint); }
.calc-step { font-size: 15px; font-weight: 600; color: var(--muted); }
.calc h2 { font-size: 24px; color: var(--ink); }
.opts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.opts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-height: 150px; padding: 14px 10px 16px; border-radius: 16px; border: 2px solid var(--line); background: #FFFFFF; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--sky); }
.opt[aria-pressed="true"] { border-color: var(--blue); background: var(--tint); }
.opt img { width: 92px; height: 69px; }
.opt b { font-size: 17px; line-height: 1.2; }
.opt small { font-size: 14px; color: var(--muted); line-height: 1.3; }
.opt .on { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; }
.price-box { border-radius: 18px; background: var(--tint); padding: 20px; }
.price-box .lbl { font-size: 15px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.08em; }
.price-box .amt { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-variant-numeric: tabular-nums; }
.price-box .amt b { font-family: var(--font-display); font-weight: 800; font-size: 46px; color: var(--ink); line-height: 1; }
.price-box .amt span { font-size: 19px; font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pills span { background: #FFFFFF; border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 12px; font-size: 15px; font-weight: 600; }
.scope-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.scope-title img { width: 48px; height: 36px; }
.scope-group { margin-top: 14px; }
.scope-group h4 { margin: 0; font-size: 14px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.06em; }
.scope-group ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.scope-group li { display: flex; gap: 8px; align-items: flex-start; font-size: 16px; line-height: 1.4; }
.scope-group li svg { flex: none; margin-top: 2px; }
.sent { text-align: center; display: grid; justify-items: center; gap: 10px; padding-block: 10px; }
.sent img { width: 140px; height: 105px; }
.sent .files { display: grid; gap: 8px; width: 100%; max-width: 380px; text-align: left; }
.sent .files div { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 700; }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .section { padding-block: 60px; }
  .calc-head, .calc-body { padding-inline: 18px; }
  .calc-progress { padding-inline: 18px; }
  .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opt { min-height: 140px; }
  .opt img { width: 76px; height: 57px; }
  .price-box .amt b { font-size: 40px; }
  .split img { height: 280px; }
  .hero-home .wrap { padding-block: 32px 48px; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .kb { animation: none; } .svc-card { transition: none; } }

/* Footer legal links + EMCB Pro attribution (visible referral link; client identity stays in metadata) */
.legal-links { display: inline-flex; flex-wrap: wrap; gap: 8px 20px; }
.legal .powered { font-weight: 700; }

/* "Save or print my estimate": print only the estimate card */
@media print {
  body.printing-estimate * { visibility: hidden; }
  body.printing-estimate .calc, body.printing-estimate .calc * { visibility: visible; }
  body.printing-estimate .calc { position: absolute; left: 0; top: 0; width: 100%; max-width: none; box-shadow: none; border: 0; }
  body.printing-estimate .calc .btn-row, body.printing-estimate .calc .calc-back { display: none; }
}
