/* ==========================================================================
   HandyBros Window Cleaning Services — styles.css
   Palette: Primary #1E88E5 | Secondary #1565C0 | Accent #43A047 | White bg
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --blue: #1E88E5;
  --blue-dark: #1565C0;
  --green: #43A047;
  --green-dark: #2E7D32;
  --ink: #16293d;          /* deep navy for headings/body */
  --ink-soft: #4a5d72;     /* secondary text */
  --mist: #f2f8fd;         /* pale blue section background */
  --line: #dce8f3;         /* hairline borders */
  --white: #ffffff;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-pill: 999px;
  --shadow-card: 0 4px 20px rgba(21, 101, 192, 0.08);
  --shadow-card-hover: 0 10px 30px rgba(21, 101, 192, 0.16);
  --container: 1120px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;            /* 17px — large, readable */
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--blue-dark); }

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--mist { background: var(--mist); }

.section-intro {
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
}

/* Eyebrow label above section headings */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 0.75rem;
}

/* Signature: short squeegee-swipe underline on section headings */
.swipe-heading { position: relative; padding-bottom: 0.55rem; }
.swipe-heading::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 64px; height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform: skewX(-18deg);
}

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 1.9rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(30, 136, 229, 0.35);
}
.btn--primary:hover { background: var(--blue-dark); }

.btn--green {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(67, 160, 71, 0.35);
}
.btn--green:hover { background: var(--green-dark); }

.btn--ghost {
  background: var(--white);
  color: var(--blue-dark);
  border-color: var(--blue);
}
.btn--ghost:hover { background: var(--mist); }

.btn--lg { padding: 1.05rem 2.3rem; font-size: 1.1rem; }

/* ---------- 4. Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(21, 41, 61, 0.08); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
}
.brand svg { flex-shrink: 0; }
.brand span small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  padding: 0.35rem 0;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: var(--blue-dark); }
.nav-links a[aria-current="page"] {
  color: var(--blue-dark);
  border-bottom-color: var(--green);
}

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-phone {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-dark);
  text-decoration: none;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 3px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(13, 49, 86, 0.88) 0%, rgba(21, 101, 192, 0.78) 55%, rgba(30, 136, 229, 0.6) 100%),
    url("../images/hero-placeholder.svg") center / cover no-repeat;
  padding: clamp(5rem, 11vw, 8.5rem) 0;
}

/* Signature: one-time squeegee sheen sweeping across the hero glass */
.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -30%;
  width: 26%;
  height: 140%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.28) 50%, transparent 100%);
  transform: skewX(-18deg) translateX(-120%);
  animation: squeegee 1.6s ease-out 0.4s 1 forwards;
  pointer-events: none;
}
@keyframes squeegee { to { transform: skewX(-18deg) translateX(620%); } }

.hero-inner { max-width: 700px; position: relative; z-index: 1; }

.hero h1 { color: var(--white); margin-bottom: 0.4em; }

.hero .tagline {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  color: #e3f1fd;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.hero-phone {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}
.hero-phone a { color: #aee3ff; text-decoration: none; }
.hero-phone a:hover { text-decoration: underline; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.4rem;
  padding: 0;
  list-style: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: #d8ecfc;
}
.hero-badges li::before { content: "✓ "; color: #7ee787; font-weight: 800; }

/* Page hero (interior pages) */
.page-hero {
  background: linear-gradient(115deg, #0d3156 0%, var(--blue-dark) 60%, var(--blue) 100%);
  color: var(--white);
  padding: clamp(3.2rem, 7vw, 4.8rem) 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.3em; }
.page-hero p { color: #dcecfb; font-size: 1.15rem; max-width: 640px; margin: 0; }

/* ---------- 6. Cards & grids ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.card .icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--mist);
  color: var(--blue);
  margin-bottom: 1rem;
}
.card .icon svg { width: 28px; height: 28px; }
.card p { color: var(--ink-soft); margin-bottom: 0; }

/* Service area chips */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.area-list li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 1.1rem;
  background: var(--white);
  border: 1.5px solid var(--blue);
  color: var(--blue-dark);
  border-radius: var(--radius-pill);
}

/* Before / after gallery */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ba-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  background: var(--white);
}
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; }
.ba-pair figure { margin: 0; position: relative; }
.ba-pair img { width: 100%; height: 210px; object-fit: cover; }
.ba-pair figcaption {
  position: absolute;
  bottom: 10px; left: 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  color: var(--white);
}
.ba-pair figure:first-child figcaption { background: rgba(22, 41, 61, 0.85); }
.ba-pair figure:last-child figcaption { background: var(--green); }
.ba-card .ba-label { padding: 0.9rem 1.2rem; font-weight: 600; color: var(--ink-soft); font-size: 0.95rem; }

/* Testimonials */
.testimonial { display: flex; flex-direction: column; }
.testimonial .stars { color: #f5a623; letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 0.7rem; }
.testimonial blockquote { margin: 0 0 1rem; font-size: 1.05rem; color: var(--ink); }
.testimonial cite {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue-dark);
  margin-top: auto;
}
.testimonial cite span { display: block; font-weight: 500; color: var(--ink-soft); font-size: 0.85rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(115deg, var(--blue-dark), var(--blue));
  color: var(--white);
  text-align: center;
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #dcecfb; max-width: 560px; margin: 0 auto 1.8rem; font-size: 1.1rem; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- 7. Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.2rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-card);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}
.step h3 { margin-bottom: 0.25rem; }
.step p { margin: 0; color: var(--ink-soft); }

/* Guarantee panel */
.guarantee {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.4rem;
  align-items: center;
  background: #eef8ef;
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
}
.guarantee .icon { color: var(--green); }
.guarantee h3 { color: var(--green-dark); margin-bottom: 0.3rem; }
.guarantee p { margin: 0; }

/* ---------- 8. FAQ accordion ---------- */
.faq { display: grid; gap: 0.9rem; max-width: 780px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.3rem; margin: 0; color: var(--ink-soft); }

/* ---------- 9. Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
}
.form-field label .req { color: var(--green); }

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--ink);
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.18);
}

.form-note { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.9rem; }

.form-success {
  display: none;
  background: #eef8ef;
  border: 1.5px solid var(--green);
  color: var(--green-dark);
  font-weight: 600;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-top: 1rem;
}
.form-success.is-visible { display: block; }

/* Contact info panel */
.contact-info { display: grid; gap: 1.3rem; }
.contact-info .item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 1rem;
  align-items: start;
}
.contact-info .item .icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--mist);
  color: var(--blue);
}
.contact-info .item h3 { font-size: 1rem; margin-bottom: 0.15rem; }
.contact-info .item p { margin: 0; color: var(--ink-soft); }
.contact-info .item a { font-weight: 600; }

.map-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.map-embed iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ---------- 10. Footer ---------- */
.site-footer {
  background: #0d2438;
  color: #b9cfe2;
  padding: 3.5rem 0 1.5rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.2rem;
  margin-bottom: 2.5rem;
}
.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.9rem;
}
.site-footer a { color: #aee3ff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-brand .brand { color: var(--white); margin-bottom: 0.8rem; }
.footer-brand p { font-size: 0.95rem; }

.social-links { display: flex; gap: 0.7rem; margin-top: 1rem; }
.social-links a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: background 0.15s;
}
.social-links a:hover { background: var(--blue); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.4rem;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- 11. Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 12. Mobile sticky call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(21, 41, 61, 0.12);
  padding: 0.7rem 4%;
  gap: 0.7rem;
}
.mobile-call-bar .btn { flex: 1; padding: 0.8rem 0.5rem; font-size: 0.95rem; }

/* ---------- 13. Responsive ---------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(21, 41, 61, 0.12);
    padding: 0.5rem 0;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    display: block;
    padding: 0.9rem 6%;
    border-bottom: 0;
    border-left: 4px solid transparent;
  }
  .nav-links a[aria-current="page"] { border-left-color: var(--green); background: var(--mist); }

  .nav-toggle { display: block; }
  .nav-phone { display: none; }
  .nav-cta .btn { padding: 0.65rem 1.2rem; font-size: 0.9rem; }

  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .guarantee { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .step { grid-template-columns: 46px 1fr; padding: 1.2rem; }
  .step::before { width: 44px; height: 44px; font-size: 1.1rem; }

  .mobile-call-bar { display: flex; }
  body { padding-bottom: 70px; }
}

/* ---------- 14. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::after { animation: none; opacity: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
