/* =========================================================
   Elite Window Cleaning Co. — stylesheet
   Palette drawn from the squirrel logo + van wrap artwork
   ========================================================= */

:root {
  --navy-900: #0f2a4d;
  --navy-800: #16386b;
  --navy-700: #1c4a86;
  --teal-700: #127672;
  --teal-600: #16948f;
  --teal-500: #1fb6b0;
  --teal-400: #4fd0ca;
  --sky-100: #eaf7fd;
  --sky-200: #cfe8f5;
  --sky-300: #bfe6fb;
  --yellow-500: #f5b942;
  --ink-900: #12202b;
  --ink-600: #45586a;
  --white: #ffffff;

  --font-display: "Baloo 2", "Nunito Sans", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(15, 42, 77, 0.08);
  --shadow-md: 0 12px 30px rgba(15, 42, 77, 0.12);
  --container-w: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--ink-600); }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

.icon { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--teal-500);
  /* Navy text (not white) on the teal-500 fill -- white text here fails WCAG
     contrast (2.5:1); navy clears it comfortably (5.7:1). */
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--teal-400); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Announcement bar ---------- */
.announce-bar {
  background: var(--navy-900);
  color: var(--sky-200);
  text-align: center;
  font-size: 0.85rem;
  padding: 8px 16px;
}
.announce-bar a { color: var(--yellow-500); font-weight: 700; text-decoration: underline; }
/* Without this, the global "p { color: var(--ink-600) }" rule (more specific
   than inheriting from .announce-bar) wins and renders the text in dark
   ink on the dark navy bar -- practically unreadable (1.95:1 contrast). */
.announce-bar p { margin: 0; color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand-logo { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-900);
}
.brand-tagline { font-size: 0.72rem; letter-spacing: 0.04em; color: var(--teal-700); font-weight: 700; text-transform: uppercase; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav li { flex-shrink: 0; }
.main-nav a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-900);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--teal-600); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.phone-link { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy-900); }
.phone-link .icon { color: var(--teal-500); }
.phone-link:hover { color: var(--teal-600); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--navy-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--teal-600) 130%);
  overflow: hidden;
  padding: 72px 0 120px;
}
.hero-bubbles { position: absolute; inset: 0; pointer-events: none; }
.hero-bubbles span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.hero-bubbles span:nth-child(1) { width: 60px; height: 60px; top: 10%; left: 6%; }
.hero-bubbles span:nth-child(2) { width: 28px; height: 28px; top: 65%; left: 12%; }
.hero-bubbles span:nth-child(3) { width: 90px; height: 90px; top: 60%; left: 85%; }
.hero-bubbles span:nth-child(4) { width: 40px; height: 40px; top: 15%; left: 80%; }
.hero-bubbles span:nth-child(5) { width: 20px; height: 20px; top: 35%; left: 45%; }
.hero-bubbles span:nth-child(6) { width: 50px; height: 50px; top: 5%; left: 55%; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}
.hero-copy .eyebrow { color: var(--sky-300); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin-bottom: 0.4em;
}
.hero-lead { color: var(--sky-200); font-size: 1.08rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 32px; }
.hero-services {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 0;
  margin: 0;
}
.hero-services li {
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}
.hero-art { display: flex; justify-content: center; }
.hero-art img {
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.eyebrow {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* teal-700, not teal-600: teal-600 is only 3.4-3.7:1 on the white/sky-100
     backgrounds this sits on, under the 4.5:1 text minimum. */
  color: var(--teal-700);
  margin: 0 0 10px;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 70px;
}
.hero-wave path { fill: var(--white); }

/* ---------- Section heading ---------- */
.section-heading { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-lead { font-size: 1.02rem; }

/* ---------- Services ---------- */
.services { padding: 88px 0 20px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--sky-100);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--teal-600);
  margin-bottom: 18px;
}
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-card p { font-size: 0.94rem; margin: 0; }

/* Service cards with a real photo behind them: a dark gradient sits between
   the photo and the text so the copy stays readable over any image. */
.service-card--photo {
  min-height: 260px;
  background-image:
    linear-gradient(180deg, rgba(15, 42, 77, 0.55) 0%, rgba(15, 42, 77, 0.88) 100%),
    var(--card-photo);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
}
.service-card--photo .service-icon {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  backdrop-filter: blur(2px);
}
.service-card--photo h3 { color: var(--white); }
.service-card--photo p { color: rgba(255, 255, 255, 0.92); }

.service-card--residential { --card-photo: url("../images/services/service-bg-residential.webp"); }
.service-card--commercial { --card-photo: url("../images/services/service-bg-commercial.webp"); }
.service-card--solar { --card-photo: url("../images/services/service-bg-solar.webp"); }
.service-card--gutters { --card-photo: url("../images/services/service-bg-gutters.webp"); }

/* ---------- Why Us ---------- */
.why-us { padding: 100px 0; }
.why-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.why-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; }
.why-list .icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: var(--white);
  background: var(--teal-500);
  border-radius: 50%;
  padding: 5px;
  box-sizing: content-box;
}
.why-list strong { display: block; color: var(--navy-900); font-size: 1.02rem; margin-bottom: 2px; }
.why-list span { color: var(--ink-600); font-size: 0.95rem; }

/* ---------- About Us (merged into Why Us above) ---------- */
.about-lead { max-width: none; margin-bottom: 14px; }
.about-stats {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.about-stats li {
  background: var(--sky-100);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  min-width: 120px;
  text-align: center;
}
.about-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy-900);
}
.about-stats span { font-size: 0.82rem; color: var(--ink-600); font-weight: 600; }
.about-portrait img {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

/* ---------- Coverage ---------- */
.coverage { padding: 20px 0 100px; }
.coverage-inner { text-align: center; }
.coverage-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}
.chip {
  background: var(--navy-900);
  color: var(--white);
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 1rem;
}
.chip-ghost {
  background: transparent;
  color: var(--navy-900);
  border: 2px dashed var(--sky-300);
}

/* ---------- Gallery ---------- */
.gallery { padding: 20px 0 100px; background: var(--sky-100); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-900);
  box-shadow: var(--shadow-sm);
  margin: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item--video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--navy-900);
  display: block;
}
.muted-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(15, 42, 77, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
}
.muted-badge .icon { width: 16px; height: 16px; color: var(--white); }

/* ---------- Quote / Contact ---------- */
.quote { padding: 20px 0 110px; }
.quote-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.contact-cards { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--sky-100);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.contact-card .icon { width: 26px; height: 26px; color: var(--teal-600); flex-shrink: 0; }
.contact-card span { display: flex; flex-direction: column; font-weight: 600; color: var(--ink-900); font-size: 0.95rem; }
.contact-card strong { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--teal-700); font-weight: 800; }

.quote-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--sky-200);
}
.form-row { margin-bottom: 18px; }
.form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row label, .form-row legend {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy-900);
  margin-bottom: 6px;
  padding: 0;
}
.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--sky-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--ink-900);
  background: var(--sky-100);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  background: var(--white);
}
.form-row fieldset { border: none; padding: 0; margin: 0 0 18px; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 16px; }
.checkbox-group label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; color: var(--ink-900); }
.checkbox-group input { width: 16px; height: 16px; accent-color: var(--teal-500); }
.form-note { font-size: 0.8rem; color: var(--ink-600); text-align: center; margin: 14px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--sky-200); padding: 56px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-name { font-family: var(--font-display); font-weight: 800; color: var(--white); margin: 0; font-size: 1.05rem; }
.footer-tagline { margin: 0; font-size: 0.78rem; color: var(--teal-400); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-weight: 600; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--white); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
.footer-contact a:hover { color: var(--white); }
.footer-contact p { margin: 6px 0 0; color: var(--sky-200); }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }
/* Same fix as .announce-bar p above -- inherit the intended light colour
   instead of losing it to the global dark "p" rule. */
.footer-bottom p { margin: 0; color: inherit; }

/* ---------- Floating call button (mobile) ---------- */
.fab-call {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal-500);
  color: var(--white);
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 40;
}
.fab-call .icon { width: 24px; height: 24px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-inner { grid-template-columns: 1fr; text-align: center; }
  .why-list { text-align: left; }
  .about-stats { justify-content: center; }
  .quote-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-nav, .footer-contact { align-items: center; }
}

/* The desktop nav needs enough width for the brand name, all five links and
   the CTA button to sit on one line without wrapping or overlapping -- that
   stops being reliable below ~1160px, so the hamburger menu takes over there
   rather than further down, where it fit before "About Us" was added. */
@media (max-width: 1160px) {
  .main-nav, .header-actions .phone-link { display: none; }
  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }

  .main-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 420px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .main-nav li { border-top: 1px solid var(--sky-200); }
  .main-nav a { display: block; padding: 14px 0; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 1; }
  .hero-art { order: 0; }
  .hero-art img { width: 220px; height: 220px; margin: 0 auto; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-ctas, .hero-services { justify-content: center; }

  .fab-call { display: flex; }
}

@media (max-width: 640px) {
  .service-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row--split { grid-template-columns: 1fr; }
  .quote-form { padding: 26px 20px; }
  .hero { padding: 56px 0 96px; }
}
