/* ============================================================
   Vibrant Cleaning Co. — design system & components
   Mobile-first. Maps 1:1 to WordPress template parts:
   header.php / footer.php / section blocks (see class names).
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #0c2b3e;          /* deep petrol — headings, body */
  --ink-soft: #4a6273;     /* secondary text */
  --teal: #00bfa6;         /* primary brand */
  --teal-deep: #009e8a;
  --cyan: #1fb6d5;
  --sun: #ffc53d;          /* sunshine accent */
  --coral: #ff6b5e;        /* warm accent */
  --bg: #ffffff;
  --tint: #eefaf7;         /* mint section tint */
  --tint-sun: #fff7e6;
  --line: #dcebe7;
  --grad: linear-gradient(120deg, var(--teal) 0%, var(--cyan) 100%);
  --grad-warm: linear-gradient(120deg, var(--coral) 0%, var(--sun) 100%);
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(0, 158, 138, 0.28);
  --shadow-soft: 0 8px 26px -14px rgba(12, 43, 62, 0.18);
  --container: 1120px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
}
.skip-link:focus { left: 8px; }

/* ---------- Layout utilities ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section--tint { background: var(--tint); }
.section--sun { background: var(--tint-sun); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-deep); background: rgba(0, 191, 166, 0.12);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 1rem;
}

.hl { /* yellow marker swipe under key words */
  background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 94%, transparent 94%);
  padding-inline: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 1.02rem var(--font);
  padding: 15px 30px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(0, 158, 138, 0.42); }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(255, 197, 61, 0.55); }
.btn--sun:hover { transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-deep); }
.btn--lg { padding: 18px 38px; font-size: 1.1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(12, 43, 62, 0.35); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.02em; }
.brand svg { width: 38px; height: 38px; }
.brand span em { font-style: normal; color: var(--teal-deep); }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
  width: 46px; height: 46px; padding: 12px; border: 2px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer;
}
.nav-toggle .bar { height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-menu {
  display: none; position: absolute; inset-inline: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem 1.5rem; box-shadow: 0 20px 40px -24px rgba(12, 43, 62, 0.35);
}
.nav-menu.is-open { display: block; }
.nav-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nav-menu a { display: block; padding: 12px 14px; border-radius: 12px; font-weight: 600; color: var(--ink); text-decoration: none; }
.nav-menu a:hover { background: var(--tint); color: var(--teal-deep); }
.nav-menu a[aria-current="page"] { background: var(--tint); color: var(--teal-deep); }
.nav-cta { margin-top: 10px; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex; position: static; padding: 0; border: 0; box-shadow: none; background: none;
    align-items: center; gap: 6px;
  }
  .nav-menu ul { display: flex; gap: 4px; }
  .nav-menu a { padding: 10px 16px; }
  .nav-cta { margin: 0 0 0 12px; }
  .nav-cta .btn { padding: 12px 24px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--tint) 0%, #fff 55%, var(--tint-sun) 100%); }
.hero .container { position: relative; display: grid; gap: 2.5rem; padding-block: clamp(3rem, 8vw, 6rem); }
.hero-copy { max-width: 620px; }
.hero-copy .lead { font-size: clamp(1.1rem, 2.5vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.6rem 0 1.4rem; }
.hero-review { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-soft); font-size: 0.98rem; }
.hero-review .stars { color: var(--sun); letter-spacing: 2px; font-size: 1.05rem; }
.hero-art { position: relative; align-self: center; }
.hero-art svg { width: min(100%, 520px); height: auto; margin-inline: auto; filter: drop-shadow(0 24px 40px rgba(0, 158, 138, 0.18)); }
.bubble { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(31,182,213,0.25)); border: 1.5px solid rgba(31,182,213,0.35); animation: float 7s ease-in-out infinite; }
.bubble--1 { width: 54px; height: 54px; top: 6%; right: 8%; }
.bubble--2 { width: 30px; height: 30px; top: 30%; right: 24%; animation-delay: 1.4s; }
.bubble--3 { width: 40px; height: 40px; bottom: 12%; left: 4%; animation-delay: 2.8s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
}

/* Quick-quote strip (hero) */
.quick-quote {
  display: grid; gap: 10px; margin-top: 1.8rem; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft);
}
.quick-quote label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.quick-quote .qq-field { display: grid; gap: 4px; }
.quick-quote select, .quick-quote input {
  font: 500 1rem var(--font); color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; width: 100%;
}
@media (min-width: 640px) {
  .quick-quote { grid-template-columns: 1fr 1fr auto; align-items: end; }
}

/* ---------- Trust bar ---------- */
.trust-bar { border-block: 1px solid var(--line); background: #fff; }
.trust-bar .container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; padding-block: 1.6rem; }
.trust-item { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.98rem; }
.trust-item svg { width: 34px; height: 34px; flex: none; }
@media (min-width: 900px) { .trust-bar .container { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.4rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid--4 { grid-template-columns: repeat(4, 1fr); } .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .icon-wrap {
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px;
  background: var(--tint); margin-bottom: 1.1rem;
}
.card .icon-wrap svg { width: 32px; height: 32px; }
.card p { color: var(--ink-soft); font-size: 0.99rem; }
.card .price { display: inline-block; font-weight: 800; color: var(--teal-deep); background: rgba(0,191,166,0.1); border-radius: 999px; padding: 4px 14px; font-size: 0.92rem; margin-bottom: 0.4rem; }
.card .card-link { font-weight: 700; text-decoration: none; }
.card .card-link:hover { text-decoration: underline; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1.6rem; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 2rem 1.6rem 1.6rem; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1rem;
  border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.3rem;
  box-shadow: var(--shadow);
}
.step p { color: var(--ink-soft); margin: 0; font-size: 0.99rem; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .check {
  flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%;
  background: rgba(0,191,166,0.14); display: grid; place-items: center;
}
.checklist .check svg { width: 13px; height: 13px; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--grad); color: #fff; }
.stats-band .container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; padding-block: clamp(2.5rem, 6vw, 4rem); text-align: center; }
.stat b { display: block; font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 800; letter-spacing: -0.02em; }
.stat span { opacity: 0.92; font-weight: 500; }
@media (min-width: 900px) { .stats-band .container { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Testimonials ---------- */
.quote-card { display: flex; flex-direction: column; gap: 0.8rem; }
.quote-card .stars { color: var(--sun); letter-spacing: 3px; font-size: 1.1rem; }
.quote-card blockquote { margin: 0; font-size: 1.02rem; color: var(--ink); }
.quote-card figcaption { font-weight: 700; color: var(--ink-soft); font-size: 0.95rem; }
.quote-card figcaption span { display: block; font-weight: 500; font-size: 0.85rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(2px); opacity: 0.5;
}
.cta-band::before { width: 340px; height: 340px; background: var(--teal); top: -160px; right: -80px; }
.cta-band::after { width: 260px; height: 260px; background: var(--coral); bottom: -140px; left: -60px; }
.cta-band .container { position: relative; z-index: 1; text-align: center; padding-block: clamp(3.5rem, 8vw, 5.5rem); max-width: 720px; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 1.12rem; }
.cta-band .btn { margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: #08202f; color: #c4d6e0; font-size: 0.97rem; }
.site-footer .container { display: grid; gap: 2.2rem; padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; }
.site-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #c4d6e0; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.footer-brand .brand { color: #fff; margin-bottom: 0.8rem; }
.footer-brand p { color: #9db4c2; max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-block: 1.4rem; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 0.88rem; color: #9db4c2; }
@media (min-width: 900px) { .site-footer .container > .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.footer-grid { display: grid; gap: 2.2rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: linear-gradient(160deg, var(--tint) 0%, #fff 70%); }
.page-hero .container { padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); max-width: 780px; }

/* ---------- Service detail sections ---------- */
.service-detail { display: grid; gap: 2rem; align-items: center; padding-block: clamp(2.2rem, 5vw, 3.4rem); border-bottom: 1px solid var(--line); }
.service-detail:last-of-type { border-bottom: 0; }
.service-detail .art { order: -1; }
.service-detail .art svg { width: min(100%, 420px); margin-inline: auto; }
@media (min-width: 900px) {
  .service-detail { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .service-detail .art { order: 0; }
  .service-detail--flip .art { order: -1; }
}
.service-detail h3 { font-size: 1.6rem; }
.service-detail .price-line { font-weight: 800; color: var(--teal-deep); margin-bottom: 0.8rem; }

/* ---------- Accordion (FAQ) ---------- */
.accordion { display: grid; gap: 12px; max-width: 780px; margin-inline: auto; }
.accordion-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.accordion-trigger {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%;
  font: 700 1.05rem var(--font); color: var(--ink); text-align: left;
  background: none; border: 0; padding: 18px 20px; cursor: pointer;
}
.accordion-trigger .chev { flex: none; transition: transform 0.2s; }
.accordion-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.accordion-panel { padding: 0 20px 18px; color: var(--ink-soft); }
.accordion-panel[hidden] { display: none; }

/* ---------- Values / team ---------- */
.avatar { width: 84px; height: 84px; border-radius: 50%; margin-bottom: 1rem; }
.value-card h3 { display: flex; align-items: center; gap: 10px; }

/* ---------- Forms (booking) ---------- */
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: span 2; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; }
.field input, .field select, .field textarea {
  font: 500 1rem var(--font); color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: 3px solid rgba(0,191,166,0.18); outline-offset: 0; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--coral); }
.field .error-msg { color: #d2402f; font-size: 0.85rem; font-weight: 600; display: none; }
.field.is-invalid .error-msg { display: block; }

.booking-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .booking-layout { grid-template-columns: 1.25fr 0.75fr; align-items: start; } }
.booking-form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.4rem); box-shadow: var(--shadow-soft); }
.contact-aside { display: grid; gap: 1.4rem; align-content: start; }
.contact-aside .card { box-shadow: none; }
.contact-aside .card:hover { transform: none; box-shadow: none; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 0.7rem; }
.contact-line svg { width: 22px; height: 22px; flex: none; margin-top: 3px; }
.contact-line a { font-weight: 700; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.hours-table td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.hours-table tr:last-child td { border-bottom: 0; }

/* Success confirmation */
.form-success { display: none; text-align: center; padding: 2.5rem 1rem; }
.form-success.is-visible { display: block; }
.form-success .success-icon { width: 84px; height: 84px; margin: 0 auto 1.2rem; }
.form-success h3 { font-size: 1.5rem; }
.form-success p { color: var(--ink-soft); max-width: 460px; margin-inline: auto; }

/* ---------- Reveal on scroll (only hidden when JS is present) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .bubble { animation: none; }
  html { scroll-behavior: auto; }
}
