/* ==========================================================================
   J2M Pressure Washing — styles.css
   Mobile-first. Pure CSS, no build step.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --color-bg: #FFFFFF;
  --color-bg-accent: #95C7F1;   /* full light-blue, used strategically (bundles, hero accent) */
  --color-bg-dark: #012037;
  --color-bg-subtle: #F1F7FC;   /* soft tint for section rhythm */
  --color-text: #012037;
  --color-text-muted: #4A6478;
  --color-primary: #0066CC;
  --color-primary-hover: #0A6FD8;
  --color-border: #E5EEF6;
  --color-white: #FFFFFF;

  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-sm: 6px;

  --shadow-card: 0 4px 12px rgba(1, 32, 55, 0.08);
  --shadow-card-hover: 0 10px 26px rgba(1, 32, 55, 0.13);
  --shadow-header: 0 2px 14px rgba(1, 32, 55, 0.08);
  --shadow-cta: 0 8px 20px rgba(0, 102, 204, 0.26);

  --container: 1140px;
  --gutter: 20px;
  --header-h: 70px;
  --transition: all 0.2s ease;

  /* Fluid type scale (mobile -> desktop targets from spec) */
  --fs-h1: clamp(2.25rem, 1.81rem + 1.88vw, 3.5rem);   /* 36 -> 56 */
  --fs-h2: clamp(1.75rem, 1.49rem + 1.13vw, 2.5rem);   /* 28 -> 40 */
  --fs-h3: clamp(1.25rem, 1.16rem + 0.38vw, 1.5rem);   /* 20 -> 24 */
  --fs-body: clamp(1rem, 0.956rem + 0.19vw, 1.125rem); /* 16 -> 18 */
  --fs-sm: 0.875rem;                                   /* 14 */
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--color-primary); }

ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.section-dark :focus-visible,
.section-accent :focus-visible { outline-color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: 56px 0; }
.section-tint { background: var(--color-bg-subtle); }
.section-accent { background: var(--color-bg-accent); }
.section-dark { background: var(--color-bg-dark); color: #fff; }

.section-head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.section-intro { color: var(--color-text-muted); font-size: 1.0625rem; margin: 0; }
.section-intro-dark { color: var(--color-text); }

.eyebrow {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}
.eyebrow-dark { color: var(--color-text); }

/* ---------- Icons (generic line set) ---------- */
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-check { width: 18px; height: 18px; fill: none; stroke: var(--color-primary); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  padding: 0.78rem 1.3rem;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-cta); }
.btn-outline { background: #fff; color: var(--color-primary); border-color: var(--color-border); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary-hover); transform: translateY(-2px); }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-header); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--color-text); }
.brand img { width: 44px; height: 44px; border-radius: var(--radius-sm); }
.brand-name { font-weight: 800; font-size: 1.15rem; line-height: 1; letter-spacing: -0.01em; }
.brand-name-sub { display: block; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--color-text-muted); text-transform: uppercase; margin-top: 2px; }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 1.6rem; }
.nav-desktop a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  position: relative;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: width 0.2s ease;
}
.nav-desktop a:hover { color: var(--color-primary); }
.nav-desktop a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-phone { display: none; }
.header-cta { display: none; }

.phone-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-btn);
  color: var(--color-primary);
  background: var(--color-bg-subtle);
  text-decoration: none;
  transition: var(--transition);
}
.phone-icon-btn:hover { background: var(--color-border); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: none;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-btn);
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
}
.nav-toggle:hover { background: var(--color-border); }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile dropdown panel */
.nav-mobile {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-header);
  padding: 1rem var(--gutter) 1.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.nav-mobile.open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-mobile ul { display: flex; flex-direction: column; }
.nav-mobile a {
  display: block;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--color-border);
}
.nav-mobile a:hover { color: var(--color-primary); }
.nav-mobile .btn { margin-top: 1rem; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 60px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(149, 199, 241, 0.30) 0%, rgba(149, 199, 241, 0) 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(149, 199, 241, 0.18) 0%, rgba(149, 199, 241, 0) 60%),
    var(--color-white);
}
.hero-decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-decor .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
}
.hero-decor .blob-1 {
  width: 320px; height: 320px;
  top: -90px; right: -80px;
  background: radial-gradient(circle at 30% 30%, rgba(149, 199, 241, 0.55), rgba(149, 199, 241, 0));
}
.hero-decor .blob-2 {
  width: 220px; height: 220px;
  bottom: -70px; left: -60px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 102, 204, 0.12), rgba(0, 102, 204, 0));
}
.hero-drop {
  position: absolute;
  top: 18%; right: 8%;
  width: 46px; height: 46px;
  fill: rgba(0, 102, 204, 0.10);
  transform: rotate(-8deg);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { margin-bottom: 0.4em; }
.hero-sub { font-size: 1.125rem; color: var(--color-text-muted); max-width: 560px; margin-bottom: 1.6rem; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.8rem; }
.hero-cta .btn { flex: 1 1 auto; }

.trust-strip { display: flex; flex-wrap: wrap; gap: 0.5rem 0.65rem; }
.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.grid { display: grid; gap: 20px; }
.grid-services { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.service-card { display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-subtle);
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.service-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin-bottom: 0.25rem; }
.price { font-weight: 800; font-size: 1.25rem; color: var(--color-primary); margin: 0 0 0.5rem; }
.service-desc { color: var(--color-text-muted); margin: 0; font-size: 1rem; }

.disclaimer {
  margin: 28px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   BUNDLES
   ========================================================================== */
.grid-bundles { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }

.bundle-card {
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(1, 32, 55, 0.08);
}
.bundle-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.bundle-card h3 { margin-top: 0.25rem; }
.price-bundle { font-size: 1.5rem; }
.bundle-list { flex: 1 1 auto; margin: 0.5rem 0 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; }
.bundle-list li { display: flex; align-items: flex-start; gap: 0.55rem; color: var(--color-text); font-size: 1rem; }
.bundle-list .icon-check { margin-top: 3px; }

.bundle-featured { border: 2px solid var(--color-bg-dark); box-shadow: 0 12px 30px rgba(1, 32, 55, 0.18); }
.best-value {
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--color-bg-dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

/* ==========================================================================
   OUR STORY
   ========================================================================== */
.story-inner { display: grid; gap: 32px; align-items: center; }
.story-text p { color: var(--color-text-muted); }
.story-text .eyebrow { color: var(--color-primary); }
.signature { margin-top: 1.4rem; color: var(--color-text); font-size: 1.0625rem; }
.signature strong { font-weight: 800; font-size: 1.2rem; }

.story-media { display: flex; justify-content: center; }
.story-logo-wrap {
  text-align: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 34px;
  box-shadow: var(--shadow-card);
}
.story-logo-wrap img { width: 200px; height: 200px; margin: 0 auto 1rem; border-radius: var(--radius-sm); }
.story-badge { margin: 0; font-weight: 700; font-size: var(--fs-sm); color: var(--color-text-muted); letter-spacing: 0.02em; }

/* ---------- Droplet divider ---------- */
.divider { display: flex; justify-content: center; padding: 4px 0 0; }
.divider svg { width: 30px; height: 30px; fill: var(--color-bg-accent); opacity: 0.8; }

/* ==========================================================================
   WHY CHOOSE
   ========================================================================== */
.grid-why { grid-template-columns: 1fr; }
.why-item { text-align: center; padding: 14px; }
.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
}
.why-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why-item h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.why-item p { color: var(--color-text-muted); margin: 0; }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.steps { display: grid; gap: 28px; counter-reset: step; grid-template-columns: 1fr; }
.step { text-align: center; padding: 8px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.step p { color: var(--color-text-muted); margin: 0; }

/* ==========================================================================
   SERVICE AREA
   ========================================================================== */
.area-inner { max-width: 720px; margin-inline: auto; text-align: center; }
.area-text { color: var(--color-text-muted); margin-bottom: 1.6rem; }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.cta-inner { max-width: 680px; margin-inline: auto; text-align: center; }
.section-dark h2 { color: #fff; }
.cta-sub { color: rgba(255, 255, 255, 0.82); font-size: 1.125rem; margin-bottom: 1.8rem; }
.cta-phone { margin: 1.1rem 0 0; }
.cta-phone a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.4); padding-bottom: 2px; }
.cta-phone a:hover { border-bottom-color: #fff; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: #fff; border-top: 1px solid var(--color-border); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 36px; }
.footer-brand img { width: 56px; height: 56px; border-radius: var(--radius-sm); margin-bottom: 0.85rem; }
.footer-tagline { color: var(--color-text-muted); margin: 0; max-width: 260px; }
.footer-heading { font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text); margin: 0 0 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links li { color: var(--color-text-muted); }
.footer-links a { color: var(--color-text-muted); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--color-primary); }

.social-row { display: flex; gap: 0.75rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-btn);
  background: var(--color-bg-subtle);
  color: var(--color-text);
  transition: var(--transition);
}
.social-link svg { width: 22px; height: 22px; fill: currentColor; }
.social-link:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }

.footer-bottom { border-top: 1px solid var(--color-border); padding: 18px 0; }
.footer-bottom p { margin: 0; text-align: center; font-size: var(--fs-sm); color: var(--color-text-muted); }

/* ==========================================================================
   RESPONSIVE — tablet (>=768px)
   ========================================================================== */
@media (min-width: 768px) {
  .section { padding: 76px 0; }
  .hero { padding: 84px 0 88px; }

  .nav-desktop { display: block; }
  .header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.4rem 0.5rem;
  }
  .header-phone:hover { color: var(--color-primary); }
  .header-phone .icon { color: var(--color-primary); }
  .header-cta { display: inline-flex; }
  .phone-icon-btn, .nav-toggle { display: none; }
  .nav-mobile { display: none; }

  .hero-cta .btn { flex: 0 0 auto; }

  .grid-why { grid-template-columns: repeat(2, 1fr); gap: 28px; }

  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps .step { position: relative; }

  .story-inner { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
  .story-text { text-align: left; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
}

/* ==========================================================================
   RESPONSIVE — desktop (>=1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  .section { padding: 90px 0; }
  .hero { padding: 104px 0 108px; }
  .hero-decor .blob-1 { width: 460px; height: 460px; top: -120px; right: -120px; }
  .hero-decor .blob-2 { width: 320px; height: 320px; }

  .grid-why { grid-template-columns: repeat(4, 1fr); }
  .section-head { margin-bottom: 48px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .btn:hover, .card:hover, .service-card:hover, .bundle-card:hover, .social-link:hover { transform: none; }
}
