/* ============================================================
   SLO Window Cleaning — design system v2
   Premium residential window cleaning · Central Coast, CA
   Restrained, corporate, photo-driven (Open Sans + Montserrat)
   ============================================================ */

:root {
  --navy:    #0e3354;
  --navy-2:  #0a2942;
  --navy-3:  #16406a;
  --blue:    #3898ec;
  --cyan:    #3898ec; --cyan-2: #1f78c8; --cyan-light: #7cc0f5;
  --white:   #ffffff; --sky: #e9f3fd; --slate: #4b5965;
  --ink:     #2b3138;
  --muted:   #4b5965;
  --line:    #e7e7e7;
  --bg:      #ffffff;
  --bg-alt:  #f6f8fa;
  --bg-alt2: #eef2f6;
  --radius:  10px;
  --radius-sm: 6px;
  --shadow:  0 24px 60px -28px rgba(14,51,84,.30);
  --shadow-sm: 0 10px 30px -18px rgba(14,51,84,.25);
  --maxw:    1200px;
  --ease:    cubic-bezier(.4, 0, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; color: var(--navy); line-height: 1.18; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.55rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { color: var(--muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  display: inline-block; font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 18px;
}
.lead { font-size: 1.12rem; color: var(--muted); line-height: 1.75; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; max-width: 64ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .95rem;
  padding: 15px 32px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s, transform .2s;
  letter-spacing: .01em; white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-3); border-color: var(--navy-3); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-lg { padding: 17px 38px; font-size: 1rem; }

/* ---------- Top bar + Header ---------- */
.site-top { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
.topbar { background: #081826; color: rgba(255,255,255,.78); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 42px; }
.topbar-left { font-family: 'Montserrat',sans-serif; font-weight: 500; font-size: .8rem; letter-spacing: .03em; display: flex; align-items: center; gap: 9px; }
.topbar-left svg { width: 15px; height: 15px; color: var(--blue); flex: none; }
.topbar-phone { display: flex; align-items: center; gap: 8px; font-family: 'Montserrat',sans-serif; font-weight: 600; font-size: .82rem; color: #fff; }
.topbar-phone svg { width: 15px; height: 15px; color: var(--blue); flex: none; }

.site-header { background: var(--navy); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 10px 30px -16px rgba(0,0,0,.55); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding-top: 13px; padding-bottom: 13px; }
.brand { display: flex; align-items: center; }
.brand .logo-img { height: 50px; width: auto; display: block; }
.brand .logo-scrolled { display: none; }
.brand .logo-hero { display: block; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-family: 'Montserrat',sans-serif; font-weight: 500; font-size: .92rem; letter-spacing: .01em; color: #fff; white-space: nowrap; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }

.nav-cta { display: flex; align-items: center; }
.btn-quote { background: #eef1f4; color: var(--navy); border: 1.5px solid #eef1f4; font-family: 'Montserrat',sans-serif; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: .78rem; padding: 14px 26px; border-radius: var(--radius-sm); transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn-quote:hover { background: transparent; color: #fff; border-color: #fff; }
.nav-mobile-cta { display: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 101; }
.nav-toggle span { width: 26px; height: 2.5px; background: #fff; border-radius: 3px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 82vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8,24,38,.94) 0%, rgba(8,24,38,.80) 36%, rgba(8,24,38,.38) 66%, rgba(8,24,38,.12) 100%); }
.hero .wrap { padding-top: 150px; padding-bottom: 90px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.hero-inner { max-width: 660px; }
.hero h1 { color: #fff; font-family: 'Montserrat',sans-serif; font-weight: 300; font-size: clamp(2.3rem, 4.3vw, 3.6rem); line-height: 1.16; letter-spacing: -.005em; }
.hero h1 strong { font-weight: 700; }
.hero p { color: rgba(255,255,255,.88); font-size: 1.14rem; margin-top: 22px; max-width: 54ch; line-height: 1.72; }
.hero-cta { flex: none; }
.hero-cta .btn { padding: 20px 46px; font-size: 1.02rem; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { margin-top: 18px; }

/* ---------- Stat strip ---------- */
.statbar { background: var(--navy); color: #fff; }
.statbar .wrap { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; padding: 46px 28px; }
.stat { text-align: center; }
.stat b { display: block; font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 2.1rem; color: #fff; line-height: 1.1; }
.stat span { font-size: .9rem; color: rgba(255,255,255,.7); letter-spacing: .02em; }
.stat b .unit { color: var(--blue); }

/* ---------- Feature blocks (alternating image/text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media .badge-float {
  position: absolute; left: 24px; bottom: -26px; background: var(--navy); color: #fff;
  border-radius: var(--radius-sm); padding: 16px 22px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
}
.split-media .badge-float b { font-family: 'Montserrat',sans-serif; font-weight: 600; display: block; font-size: 1rem; color: #fff; }
.split-media .badge-float span { font-size: .8rem; color: rgba(255,255,255,.75); }
.split-media .badge-float .ic { display: none; }
.split-text .eyebrow { color: var(--blue); }
.split-text h2 { margin-bottom: 18px; }
.split-text p { margin-bottom: 16px; }

.tick { list-style: none; margin: 24px 0 32px; display: grid; gap: 14px; }
.tick li { display: flex; gap: 13px; align-items: flex-start; color: var(--ink); font-size: 1.02rem; }
.tick li svg { width: 21px; height: 21px; color: var(--blue); flex: none; margin-top: 4px; }

/* text link with arrow */
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: 'Montserrat',sans-serif; font-weight: 600; color: var(--navy); font-size: .95rem; transition: gap .2s, color .2s; }
.link-arrow:hover { gap: 13px; color: var(--blue); }
.link-arrow svg { width: 18px; height: 18px; }

/* ---------- Plain cards (minimal, no heavy icons) ---------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; padding: 40px 34px; transition: background .25s; }
.card:hover { background: var(--bg-alt); }
.card .num { font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: .9rem; color: var(--blue); letter-spacing: .12em; margin-bottom: 14px; }
.card h3 { margin-bottom: 12px; color: var(--navy); }
.card p { font-size: .98rem; }
.card .ic { width: 46px; height: 46px; color: var(--navy); margin-bottom: 18px; }
.card .ic svg { width: 100%; height: 100%; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 40px; }
.step { border-top: 3px solid var(--navy); padding-top: 22px; }
.step .num { font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--blue); margin-bottom: 10px; }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: .96rem; }

/* ---------- Testimonial / quote band ---------- */
.band { background: var(--navy); color: #fff; position: relative; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.82); }
/* cards inside a navy band (e.g. the comparison section) — readable on navy */
.band .grid { background: transparent; border: none; gap: 22px; overflow: visible; }
.band .grid .card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); }
.band .grid .card:hover { background: rgba(255,255,255,.12); }
.band .grid .card h3 { color: #fff; }
.band .grid .card p { color: rgba(255,255,255,.82); }
.band .grid .card .ic { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.band .grid .card .ic svg { width: 26px; height: 26px; }
.quote-feature { text-align: center; max-width: 860px; margin: 0 auto; }
.quote-feature .stars { color: #f3b53f; letter-spacing: 3px; font-size: 1.1rem; margin-bottom: 22px; }
.quote-feature blockquote { font-family: 'Montserrat',sans-serif; font-weight: 500; font-size: clamp(1.3rem,2.4vw,1.9rem); line-height: 1.5; color: #fff; margin-bottom: 26px; }
.quote-feature cite { font-style: normal; color: rgba(255,255,255,.7); font-size: .95rem; }
.quote-feature cite b { color: #fff; font-family: 'Montserrat',sans-serif; }

.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.quote .stars { color: #f3b53f; letter-spacing: 2px; margin-bottom: 14px; }
.quote p { color: var(--ink); font-size: 1rem; margin-bottom: 18px; }
.quote .who b { display: block; color: var(--navy); font-family: 'Montserrat',sans-serif; font-size: .95rem; }
.quote .who span { font-size: .84rem; color: var(--muted); }
.quote .who .av { display: none; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .wrap { padding: 92px 28px; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Service area ---------- */
.area-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.area-chip { background: #fff; padding: 18px 22px; display: flex; align-items: center; gap: 11px; font-family: 'Montserrat',sans-serif; font-weight: 500; font-size: .96rem; color: var(--navy); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; }
.area-chip:hover { background: var(--bg-alt); }
.area-chip svg { width: 17px; height: 17px; color: var(--blue); flex: none; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 14px; color: #fff; font-family: 'Montserrat',sans-serif; font-weight: 500; font-size: .92rem; background: linear-gradient(transparent, rgba(10,41,66,.85)); }
.gallery-grid .tall { grid-row: span 2; aspect-ratio: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 26px 0; font-family: 'Montserrat',sans-serif; font-weight: 600; font-size: 1.08rem; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .pm { width: 22px; height: 22px; flex: none; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ''; position: absolute; background: var(--blue); border-radius: 2px; transition: .3s; }
.faq-q .pm::before { top: 10px; left: 3px; right: 3px; height: 2.5px; }
.faq-q .pm::after { left: 10px; top: 3px; bottom: 3px; width: 2.5px; }
.faq-item.open .faq-q .pm::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 0 26px; font-size: 1rem; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 168px 0 78px; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p { color: rgba(255,255,255,.82); font-size: 1.12rem; max-width: 58ch; margin-top: 18px; }
.crumbs { font-size: .82rem; color: rgba(255,255,255,.55); margin-bottom: 20px; display: flex; gap: 8px; font-family: 'Montserrat',sans-serif; }
.crumbs a:hover { color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-info .info-row { display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start; }
.contact-info .info-row .ic { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--bg-alt); color: var(--navy); display: grid; place-items: center; flex: none; border: 1px solid var(--line); }
.contact-info .info-row .ic svg { width: 22px; height: 22px; }
.contact-info .info-row b { display: block; font-family: 'Montserrat',sans-serif; font-weight: 600; color: var(--navy); }
.contact-info .info-row a, .contact-info .info-row span { color: var(--muted); }
.contact-info .info-row a:hover { color: var(--blue); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: 'Montserrat',sans-serif; font-weight: 600; font-size: .85rem; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-family: 'Open Sans',sans-serif; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(56,152,236,.14); }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 14px; text-align: center; }
.hidden-hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-2); color: rgba(255,255,255,.66); padding: 76px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 44px; margin-bottom: 50px; }
.site-footer .brand .logo-img { height: 46px; }
.site-footer p { color: rgba(255,255,255,.72); font-size: .96rem; margin-top: 18px; max-width: 36ch; }
.footer-col h4 { color: #fff; font-family: 'Montserrat',sans-serif; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col a { display: block; color: rgba(255,255,255,.75); font-size: .95rem; margin-bottom: 12px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.foot-contact a { display: flex; gap: 10px; align-items: center; }
.foot-contact svg { width: 17px; height: 17px; color: var(--blue); flex: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal ---------- */
/* content visible immediately — no scroll-triggered fade */
.reveal, .reveal.in { opacity: 1; transform: none; }

/* ---------- Nav: switch to hamburger before the links cram ---------- */
@media (max-width: 1080px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(82vw, 330px); background: #fff; flex-direction: column; align-items: flex-start; padding: 104px 34px 40px; gap: 6px; transform: translateX(100%); transition: transform .35s var(--ease); box-shadow: -20px 0 60px -20px rgba(14,51,84,.4); z-index: 100; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--navy) !important; font-size: 1.05rem; padding: 12px 0; width: 100%; white-space: normal; border-bottom: 1px solid var(--line); }
  .nav-links a.nav-mobile-cta { display: block; margin-top: 22px; padding: 15px 20px; background: var(--navy); color: #fff !important; text-align: center; font-family: 'Montserrat',sans-serif; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: .82rem; border: 0; border-radius: var(--radius-sm); }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav-toggle.open span { background: var(--navy); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .steps, .quotes { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media { order: 0; }
  .split + .split { margin-top: 64px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .area-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .statbar .wrap { grid-template-columns: repeat(2,1fr); gap: 34px; }
  .hero .wrap { flex-direction: column; align-items: flex-start; gap: 30px; }
  .hero-cta, .hero-cta .btn { width: 100%; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid-3, .steps, .quotes, .area-grid, .gallery-grid, .footer-grid, .field-row { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .section-head { margin-bottom: 34px; }
  .split + .split { margin-top: 44px; }
  .hero { min-height: 74svh; }
  .hero .wrap { padding-top: 130px; padding-bottom: 64px; }
  .hero h1 { font-size: 2rem; line-height: 1.22; }
  .hero p { font-size: 1.04rem; margin-top: 18px; }
  .hero::after { background: linear-gradient(180deg, rgba(8,24,38,.9) 0%, rgba(8,24,38,.64) 52%, rgba(8,24,38,.55) 100%); }
  h2 { font-size: 1.55rem; }
  .lead { font-size: 1.04rem; }
  .card { padding: 30px 24px; }
  .quote-feature blockquote { font-size: 1.2rem; }
  .topbar-left { display: none; }
  .topbar-inner { justify-content: center; }
  .nav-cta { display: none; }
  .brand .logo-img { height: 38px; }
  .nav { padding-top: 11px; padding-bottom: 11px; }
  .gallery-grid .tall { grid-row: auto; }
  .split-media .badge-float { left: 50%; transform: translateX(-50%); }
}
