/* =====================================================
   Havencrest Fumigation & Cleaning
   Palette: forest green + bone + amber accent (locked)
   Radius system: 14px cards/inputs, pill buttons (locked)
   ===================================================== */

:root {
  --bg: #ffffff;
  --surface: #f4fafa;
  --ink: #0c7175;          /* teal text on white, kept dark enough to stay readable */
  --ink-soft: #17878c;
  --line: #d9e8e8;
  --accent: #14979c;        /* teal, matched to brand flyer */
  --accent-hover: #0f7d82;
  --accent-tint: #e2f3f4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 90, 95, 0.12);
}

/* Theme locked to light (white + teal) per brand */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.88rem; }
.btn-full { width: 100%; }

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-mark { width: 32px; height: 32px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a:not(.btn) {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:not(.btn):hover { color: var(--accent); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== Hero ===== */
.hero { padding: 3.5rem 1.25rem 4.5rem; }
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-copy h1 { max-width: 15ch; }
.hero-sub {
  margin-top: 1.1rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 42ch;
}
.hero-ctas {
  margin-top: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.hero-slideshow {
  position: relative;
  border-radius: var(--radius);
  aspect-ratio: 5 / 6;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slideshow-dots {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
  z-index: 2;
}
.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.8); }
.hero-dot.active { background: #fff; transform: scale(1.15); }

/* ===== Stats strip ===== */
.stats {
  background: var(--accent);
  padding: 2.5rem 1.25rem;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat { text-align: left; }
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ===== Sections shared ===== */
.section-head {
  max-width: 1200px;
  margin: 0 auto 2.75rem;
}
.section-head p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  max-width: 55ch;
}

/* ===== Services ===== */
.services { padding: 5.5rem 1.25rem; }
.services .section-head, .services-grid { max-width: 1200px; margin-left: auto; margin-right: auto; }
.services .section-head { margin-bottom: 2.75rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; }
.card-photo {
  background-size: cover;
  background-position: center;
  border: none;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.card-scrim {
  width: 100%;
  padding: 1.75rem;
  background: linear-gradient(to top, rgba(12, 24, 17, 0.88) 20%, rgba(12, 24, 17, 0.2) 70%, transparent);
  color: #fff;
}
.card-scrim h3 { color: #fff; }
.card-scrim p { color: rgba(255, 255, 255, 0.85); }
.card-tint { background: var(--accent-tint); border-color: transparent; }
.card-wide { grid-column: 1 / -1; }
.card-span2 { grid-column: span 2; }

/* ===== Process ===== */
.process {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 5.5rem 1.25rem;
}
.process-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.process-copy p { margin: 0.9rem 0 1.7rem; color: var(--ink-soft); max-width: 40ch; }
.process-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0;
}
.process-steps li {
  counter-increment: step;
  padding: 1.6rem 0 1.6rem 4.25rem;
  position: relative;
}
.process-steps li + li { border-top: 1px solid var(--line); }
.process-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.6rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.process-steps p { color: var(--ink-soft); font-size: 0.97rem; margin-top: 0.3rem; }

/* ===== Reviews ===== */
.reviews { padding: 5.5rem 1.25rem; }
.reviews .section-head, .reviews-grid { max-width: 1200px; margin-left: auto; margin-right: auto; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.review blockquote {
  font-size: 1rem;
  color: var(--ink);
}
.review figcaption {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.review strong { display: block; font-size: 0.95rem; }
.review span { font-size: 0.85rem; color: var(--ink-soft); }

/* ===== FAQ ===== */
.faq {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 5.5rem 1.25rem;
}
.faq-inner { max-width: 820px; margin: 0 auto; }
.faq .section-head { margin-bottom: 2rem; }
.faq-search {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 2rem;
}
.faq-search label {
  font-size: 0.9rem;
  font-weight: 600;
}
.faq-search input {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color 0.2s ease;
}
.faq-search input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.faq-search input::placeholder { color: var(--ink-soft); opacity: 0.75; }
.faq-empty {
  padding: 1.5rem 0;
  color: var(--ink-soft);
}
.faq-empty a { color: var(--accent); font-weight: 600; }
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  transition: color 0.2s ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.25s ease;
}
.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-list summary:hover { color: var(--accent); }
.faq-list details p {
  padding: 0 2.5rem 1.4rem 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* ===== Quote ===== */
.quote {
  padding: 5.5rem 1.25rem 6rem;
  background: var(--accent-tint);
}
.quote-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: start;
}
.quote-copy p { margin-top: 0.75rem; color: var(--ink-soft); max-width: 38ch; }
.contact-list {
  list-style: none;
  margin-top: 1.75rem;
  display: grid;
  gap: 0.6rem;
}
.contact-list a, .contact-list span {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.02rem;
}
.contact-list a:hover { color: var(--accent); }

.quote-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1.25rem;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-field { display: grid; gap: 0.45rem; }
.form-field label { font-size: 0.9rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--ink-soft); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s ease;
}
.form-field textarea { resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--ink-soft); opacity: 0.75; }
.field-hint {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}
.field-error {
  display: none;
  font-size: 0.83rem;
  color: #b3372c;
  font-weight: 500;
}
.form-field.invalid .field-error { display: block; }
.form-field.invalid input,
.form-field.invalid select { border-color: #b3372c; }
.form-or {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: -0.4rem 0;
}
.form-success {
  text-align: center;
  font-weight: 600;
  color: var(--accent);
}
.form-error {
  text-align: center;
  font-weight: 600;
  color: #b3372c;
}

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: #d8ded8;
  padding: 4rem 1.25rem 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer .brand { color: #fff; }
.footer-brand p {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #9aa89c;
  max-width: 34ch;
}
.footer-col { display: grid; gap: 0.6rem; align-content: start; }
.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7f8f83;
  margin-bottom: 0.4rem;
}
.footer-col a, .footer-col span {
  color: #d8ded8;
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-col a:hover { color: #fff; }
.footer-base {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.4rem 0;
  font-size: 0.85rem;
  color: #8a988d;
}

/* ===== Floating free quote promo ===== */
.quote-fab {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 49;
  width: 300px;
  max-width: calc(100vw - 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.5rem 1.4rem;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.quote-fab[hidden] {
  display: block;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
}
.quote-fab-close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.25rem;
}
.quote-fab-close:hover { color: var(--accent); }
.quote-fab-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.55rem;
  padding-right: 1.25rem;
}
.quote-fab-body {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .quote-fab {
    left: 1rem;
    right: 1rem;
    bottom: 5.5rem;
    width: auto;
    max-width: none;
  }
}

/* ===== WhatsApp floating button ===== */
.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  /* Glossy 3D sphere: light source top-left, darker base */
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 50% 45%, #4be381 0%, #25d366 48%, #17a854 78%, #0e8342 100%);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.6),   /* top rim light */
    inset 0 -4px 8px rgba(9, 84, 43, 0.55),     /* bottom shading */
    0 6px 10px rgba(14, 90, 48, 0.35),
    0 14px 28px rgba(14, 90, 48, 0.3);          /* lifted off the page */
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.whatsapp-fab svg {
  width: 32px;
  height: 32px;
  /* Embossed glyph */
  filter: drop-shadow(0 2px 2px rgba(9, 84, 43, 0.55)) drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.35));
}
.whatsapp-fab:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.6),
    inset 0 -4px 8px rgba(9, 84, 43, 0.55),
    0 10px 16px rgba(14, 90, 48, 0.4),
    0 20px 36px rgba(14, 90, 48, 0.35);
}
.whatsapp-fab:active { transform: translateY(-1px) scale(0.97); }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .service-card, .btn { transition: none; }
}

/* ===== Mobile ===== */
@media (max-width: 900px) {
  .hero-inner, .process-inner, .quote-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-media { order: -1; }
  .hero-slideshow { aspect-ratio: 16 / 10; }
  .services-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 1.25rem;
  }
  .nav-links.open { display: flex; }
  .services-grid, .reviews-grid, .form-row { grid-template-columns: 1fr; }
  .card-span2 { grid-column: auto; }
  .hero { padding-top: 2rem; }
  .services, .reviews, .process, .quote { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}
