/* Al's Window Cleaning: one-page site. Visual system after jjwindowwash.com (navy → royal blue,
   Plus Jakarta Sans headings, Inter body, ~1240px container, generous whitespace). */
:root {
  --navy: #0B1E55;
  --navy-deep: #071440;
  --royal: #0B4FC4;
  --blue: #0B63E5;
  --sky: #1B9AEF;
  --sky-light: #8FCBFF;
  --ink: #0F172A;
  --text: #475569;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg-alt: #F8FAFC;
  --ice: #EEF5FF;
  --error: #C2261D;
  --radius: 8px;
  --container: 1240px;
  --head: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 84px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.65; color: var(--text); background: #fff; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem); font-weight: 500; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.eyebrow { font-family: var(--head); font-weight: 600; color: var(--blue); font-size: 1rem; margin: 0 0 .6rem; }
.eyebrow-light { color: var(--sky-light); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-family: var(--head); font-weight: 600; font-size: .95rem; text-decoration: none; border-radius: 6px; padding: .8em 1.4em; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; line-height: 1.2; }
.btn-lg { font-size: 1.02rem; padding: .95em 1.7em; }
.btn-primary { background: var(--royal); color: #fff; }
.btn-primary:hover { background: var(--blue); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--ice); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* Header: transparent over the hero, solid white once scrolled */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; transition: background .25s, box-shadow .25s; }
.site-header.is-solid { background: #fff; box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(15, 23, 42, .06); }
.header-row { display: flex; align-items: center; gap: 28px; }
.brand { display: block; flex: 0 0 auto; }
.brand img { width: 268px; height: auto; }
.brand-dark { display: none !important; }
.is-solid .brand-light { display: none !important; }
.is-solid .brand-dark { display: block !important; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { font-family: var(--head); font-weight: 500; color: #fff; text-decoration: none; font-size: .98rem; }
.nav a:hover { color: var(--sky-light); }
.is-solid .nav a { color: var(--ink); }
.is-solid .nav a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-call { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-family: var(--head); font-weight: 600; white-space: nowrap; }
.is-solid .header-call { color: var(--navy); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; border-radius: 6px; cursor: pointer; padding: 0; }
.is-solid .menu-toggle { color: var(--navy); }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; margin: 0 auto; position: relative; transition: transform .2s, background .2s; }
.bars::before, .bars::after { content: ''; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 760px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy-deep); }
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 55% 40%; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 20, 64, .72) 0%, rgba(7, 20, 64, .38) 30%, rgba(7, 20, 64, .62) 62%, rgba(7, 20, 64, .95) 100%), linear-gradient(90deg, rgba(7, 20, 64, .55), rgba(11, 79, 196, .12)); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: end; padding-top: calc(var(--header-h) + 80px); padding-bottom: 76px; }
.pill { display: inline-block; background: var(--royal); color: #fff; font-family: var(--head); font-weight: 500; font-size: .95rem; padding: .35em .9em; border-radius: 4px; margin-bottom: 1.1rem; }
.hero h1 { color: #fff; font-weight: 500; font-size: clamp(2.3rem, 1.4rem + 3vw, 4rem); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
.hl { color: var(--sky-light); }
.hero-lede { font-size: 1.15rem; line-height: 1.6; color: rgba(255, 255, 255, .92); margin-bottom: 1.6rem; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-phone { display: flex; flex-direction: column; color: #fff; text-decoration: none; padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .35); }
.hero-phone-label { font-size: .88rem; color: var(--sky-light); }
.hero-phone-number { font-family: var(--head); font-size: 1.6rem; font-weight: 600; letter-spacing: .01em; line-height: 1.25; }
.hero-phone:hover .hero-phone-number { text-decoration: underline; text-underline-offset: 4px; }

/* Sections */
.section { padding: 110px 0; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head p:last-child { margin-bottom: 0; }
.why { background: var(--bg-alt); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: 0 20px 50px rgba(11, 30, 85, .14); }
.split-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.split-copy h2 { font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.5rem); }
.checks { list-style: none; padding: 26px 0 0; margin: 26px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.checks li { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; color: var(--ink); font-size: .98rem; }
.checks svg { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card { padding: 40px 36px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.card:nth-child(3n) { border-right: 0; }
.card:nth-last-child(-n+2) { border-bottom: 0; }
.card p { margin: 0; font-size: .97rem; }
.card-icon { width: 46px; height: 46px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 26px; }
.card-cta { grid-column: span 2; background: linear-gradient(120deg, var(--royal), var(--navy-deep)); border-right: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.card-cta h3 { max-width: 420px; }
.card-cta .card-icon { stroke: #fff; }
.card-cta h3 { color: #fff; font-size: 1.35rem; font-weight: 500; margin-bottom: 1.2rem; }

/* Gallery */
.work { background: var(--bg-alt); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 14px; }
.gallery figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
.gallery picture, .gallery img { width: 100%; height: 100%; }
.gallery img { object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 28px 14px 12px; color: #fff; font-family: var(--head); font-weight: 500; font-size: .9rem; background: linear-gradient(180deg, transparent, rgba(7, 20, 64, .82)); }

/* CTA band */
.cta-band { position: relative; color: #fff; overflow: hidden; background: var(--navy-deep); }
.cta-photo, .cta-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-photo img { object-fit: cover; object-position: 50% 45%; }
.cta-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 20, 64, .95) 0%, rgba(7, 20, 64, .85) 45%, rgba(11, 79, 196, .55) 100%); }
.cta-inner { position: relative; padding-top: 110px; padding-bottom: 110px; max-width: calc(var(--container) + 48px); }
.cta-inner h2 { color: #fff; max-width: 680px; }
.cta-inner p { max-width: 600px; color: rgba(255, 255, 255, .88); font-size: 1.08rem; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.8rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 64px; align-items: start; }
.quote-form { margin-top: 28px; }
.field { margin: 0 0 18px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
label, legend { display: block; font-family: var(--head); font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 6px; }
.req { color: var(--error); }
input[type=text], input[type=tel], input[type=email], textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #CBD5E1; border-radius: 6px; padding: .75em .9em; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 99, 229, .18); }
input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(194, 38, 29, .12); }
textarea { resize: vertical; min-height: 110px; }
.field-error { color: var(--error); font-size: .86rem; margin: 6px 0 0; min-height: 0; }
.field-error:empty { display: none; }
fieldset { border: 0; padding: 0; }
.checkbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; }
.checkbox-grid label { display: flex; align-items: center; gap: 10px; font-family: var(--body); font-weight: 400; color: var(--text); font-size: .96rem; margin: 0; cursor: pointer; }
.checkbox-grid input { width: 18px; height: 18px; accent-color: var(--royal); margin: 0; flex: 0 0 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-weight: 500; }
.form-status.is-error { color: var(--error); }
.form-status:empty { display: none; }
.form-note { margin: 14px 0 0; font-size: .86rem; color: var(--muted); }
button[disabled] { opacity: .7; cursor: progress; }
.form-success { margin-top: 28px; padding: 32px; background: var(--ice); border-radius: var(--radius); border-left: 4px solid var(--sky); }
.form-success svg { width: 40px; height: 40px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.form-success p { margin: 0; }
.contact-panel { background: linear-gradient(150deg, var(--navy-deep), var(--royal)); color: rgba(255, 255, 255, .86); border-radius: var(--radius); padding: 40px 36px; position: sticky; top: calc(var(--header-h) + 24px); }
.contact-panel h3 { color: #fff; }
.contact-panel a { color: #fff; }
.panel-phone { display: inline-block; font-family: var(--head); font-size: 1.85rem; font-weight: 600; text-decoration: none; margin: 4px 0 18px; }
.panel-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-panel dl { margin: 0; }
.contact-panel dl div { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.contact-panel dt { font-family: var(--head); font-weight: 600; color: var(--sky-light); font-size: .85rem; margin-bottom: 2px; }
.contact-panel dd { margin: 0; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: linear-gradient(110deg, var(--navy-deep), #0A2A86 60%, var(--royal)); color: rgba(255, 255, 255, .78); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-top: 80px; padding-bottom: 56px; }
.footer-brand img { width: 260px; margin-bottom: 18px; }
.footer-brand p { max-width: 360px; }
.site-footer h3 { color: var(--sky-light); font-size: .95rem; font-weight: 600; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { text-decoration: underline; }
.footer-phone { font-family: var(--head); font-size: 1.35rem; font-weight: 600; }
.muted { color: rgba(255, 255, 255, .6); font-size: .86rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; color: rgba(255, 255, 255, .6); }
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 1080px) {
  .header-call span { display: none; }
  .nav { gap: 22px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .split { gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-panel { position: static; }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .brand img { width: 196px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-quote { display: none; }
  .header-actions { margin-left: auto; gap: 6px; }
  .header-call { width: 44px; height: 44px; justify-content: center; border-radius: 50%; background: var(--royal); color: #fff !important; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; background: #fff; box-shadow: 0 12px 24px rgba(15, 23, 42, .12); padding: 8px 24px 18px; display: none; }
  .nav.is-open { display: flex; }
  .nav a { color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .split { grid-template-columns: 1fr; }
  .split-photo { aspect-ratio: 4 / 3; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card, .card:nth-child(3n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .card:nth-child(2n) { border-right: 0; }
  .card:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .card:last-child { border-bottom: 0; grid-column: 1 / -1; border-right: 0; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .checkbox-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .hero { min-height: 0; }
  .hero-grid { padding-top: calc(var(--header-h) + 120px); padding-bottom: 48px; }
  .hero-photo img { object-position: 60% 50%; }
  .hero-lede { font-size: 1.05rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 18px; }
  .hero-phone { border-left: 0; padding-left: 0; align-items: center; text-align: center; }
  .checks { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card, .card:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); padding: 32px 26px; }
  .card:last-child { border-bottom: 0; }
  .field-row { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .cta-inner { padding-top: 76px; padding-bottom: 76px; }
  .cta-actions .btn { flex: 1 1 100%; }
  .quote-form .btn { width: 100%; }
  .contact-panel { padding: 32px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 60px; }
}
