/*
  Hearthguard Pest Control — portfolio demo mockup.
  Structural chassis follows GCV's standing mockup conventions (see
  Leads/LEAD_GEN_SOP.md and Leads/Portfolio Demos/PORTFOLIO_DEMO_PLAN.md):
  clean minimal aesthetic, generous whitespace, one accent color, sticky
  mobile bottom tab bar. Palette is distinct from other GCV demos to keep
  this niche visually its own.
*/

:root {
  --ink: #12261f;
  --ink-dark: #0a1712;
  --accent: #d9622b;
  --accent-dark: #b84e1e;
  --accent-soft: #f2b58c;
  --sage: #3f7d5c;
  --ivory: #f7f5ef;
  --paper: #ffffff;
  --text: #1f2420;
  --muted: #656b62;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 14px 34px rgba(18, 38, 31, 0.08);
  --shadow-lg: 0 22px 50px rgba(18, 38, 31, 0.18);
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
section { scroll-margin-top: 70px; }

.section-eyebrow {
  display: inline-block; color: var(--sage); text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 700; margin-bottom: 12px;
}
.section-eyebrow--light { color: var(--accent-soft); }

.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700;
  text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow); font-size: 0.95rem; border: none; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: var(--accent-dark); }
.btn--large { padding: 18px 38px; font-size: 1.05rem; }
.btn--ghost {
  background: transparent; color: #fff; box-shadow: none;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); box-shadow: none; }
.btn--outline {
  background: transparent; color: var(--ink); box-shadow: none;
  border: 1.5px solid var(--ink);
}
.btn--outline:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn--full { width: 100%; text-align: center; }

/* Header */
.site-header {
  background: var(--ink); position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header__inner {
  max-width: 1160px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand__logo { width: 38px; height: 38px; }
.brand__name { font-weight: 700; letter-spacing: 0.02em; color: #fff; font-size: 1rem; }
.site-header__nav { display: flex; gap: 26px; font-size: 0.9rem; }
.site-header__nav a { color: #cdd6cf; text-decoration: none; transition: color 0.15s ease; }
.site-header__nav a:hover { color: var(--accent-soft); }
.site-header__contact { display: flex; align-items: center; gap: 18px; font-size: 0.88rem; }
.site-header__contact a { color: #e9e6db; text-decoration: none; }
.site-header__contact a:hover { color: var(--accent-soft); }
.site-header__phone { font-weight: 700; }

/* Hero */
.hero {
  background:
    radial-gradient(1100px 480px at 12% -10%, rgba(217,98,43,0.16), transparent),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-dark) 100%);
  color: #fff; padding: 84px 24px 90px;
}
.hero__inner {
  max-width: 1160px; margin: 0 auto; display: grid;
  grid-template-columns: 1.1fr 1fr; gap: 52px; align-items: center;
}
.hero__eyebrow { color: var(--accent-soft); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; margin-bottom: 18px; font-weight: 700; }
.hero h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.18; margin: 0 0 18px; letter-spacing: -0.01em; }
.hero__sub { color: #d3d9d3; margin-bottom: 30px; font-size: 1.08rem; max-width: 480px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }
.hero__stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero__stat { display: flex; flex-direction: column; }
.hero__stat strong { font-size: 1.5rem; color: var(--accent-soft); font-weight: 700; }
.hero__stat span { font-size: 0.76rem; color: #a9b3a9; text-transform: uppercase; letter-spacing: 0.06em; }
.hero__media { display: flex; justify-content: center; }
.hero__img-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); width: 100%; max-width: 440px; aspect-ratio: 4/5;
}
.hero__img-card img { width: 100%; height: 100%; object-fit: cover; }
.hero__img-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,23,18,0) 55%, rgba(10,23,18,0.6) 100%);
}
.hero__img-caption {
  position: absolute; bottom: 18px; left: 18px; right: 18px; z-index: 2; color: #fff;
}
.hero__img-caption strong { display: block; font-size: 0.95rem; }
.hero__img-caption span { font-size: 0.78rem; color: #d3d9d3; }

/* Trust strip */
.trust-strip { background: var(--paper); border-bottom: 1px solid #e9e6dd; padding: 22px 24px; }
.trust-strip__inner {
  max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; text-align: center;
}
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.trust-item svg { color: var(--sage); }
.trust-item span { font-size: 0.82rem; font-weight: 600; color: var(--ink); }

/* Services */
.services { padding: 90px 24px; background: var(--ivory); }
.services__inner { max-width: 1160px; margin: 0 auto; }
.services__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.services__head h2 { color: var(--ink); margin: 0 0 10px; font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.services__head p { color: var(--muted); margin: 0; }
.services__tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; }
.services__tab {
  padding: 10px 22px; border-radius: 999px; border: 1.5px solid #d9d4c6; background: transparent;
  font-weight: 600; font-size: 0.88rem; color: var(--muted); cursor: pointer; transition: all 0.15s ease;
}
.services__tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 24px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card__icon {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(63,125,92,0.1);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--sage);
}
.service-card h3 { margin: 0 0 8px; color: var(--ink); font-size: 1.05rem; }
.service-card p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.services__panel { display: none; }
.services__panel.is-active { display: grid; }

/* Process */
.process { padding: 90px 24px; background: var(--ink); color: #fff; }
.process__inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.process__inner h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.process__sub { color: #c3ccc4; margin: 0 0 52px; }
.process__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: left; }
.process-step { position: relative; padding-left: 4px; }
.process-step__num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 18px;
}
.process-step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.process-step p { margin: 0; color: #c3ccc4; font-size: 0.9rem; }

/* Why us */
.why { padding: 90px 24px; background: var(--paper); }
.why__inner { max-width: 1160px; margin: 0 auto; }
.why__head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.why__head h2 { color: var(--ink); margin: 0 0 10px; font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.why__head p { color: var(--muted); margin: 0; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card { text-align: center; padding: 8px; }
.why-card__icon {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(217,98,43,0.1);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--accent);
}
.why-card h3 { margin: 0 0 8px; color: var(--ink); font-size: 1rem; }
.why-card p { margin: 0; font-size: 0.86rem; color: var(--muted); }

/* Quote form */
.quote { padding: 90px 24px; background: var(--ivory); }
.quote__inner {
  max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 50px; align-items: start;
}
.quote__copy h2 { color: var(--ink); margin: 0 0 14px; font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.quote__copy p { color: var(--muted); margin: 0 0 24px; }
.quote__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.quote__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--text); }
.quote__list svg { color: var(--sage); flex-shrink: 0; margin-top: 2px; }
.quote-form {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 34px; display: grid; gap: 16px;
}
.quote-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote-form label { font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; display: block; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm); border: 1.5px solid #ddd8ca;
  font-size: 0.92rem; font-family: inherit; background: var(--ivory); color: var(--text);
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: none; border-color: var(--sage);
}
.quote-form__urgency { display: flex; gap: 10px; flex-wrap: wrap; }
.urgency-pill {
  flex: 1; min-width: 100px; text-align: center; padding: 10px 8px; border-radius: 999px;
  border: 1.5px solid #ddd8ca; font-size: 0.82rem; font-weight: 600; cursor: pointer; color: var(--muted);
  transition: all 0.15s ease;
}
.urgency-pill input { display: none; }
.urgency-pill.is-selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.quote-form__file {
  border: 1.5px dashed #ddd8ca; border-radius: var(--radius-sm); padding: 16px; text-align: center;
  font-size: 0.82rem; color: var(--muted); background: var(--ivory); cursor: pointer;
}
.quote-form__note { font-size: 0.76rem; color: var(--muted); margin: 0; }

/* Reviews */
.reviews { padding: 90px 24px; background: var(--ink-dark); color: #fff; }
.reviews__inner { max-width: 980px; margin: 0 auto; text-align: center; }
.reviews__inner h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.reviews__rating { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px; }
.reviews__stars { color: var(--accent-soft); font-size: 1.3rem; letter-spacing: 2px; }
.reviews__score { font-size: 1.3rem; font-weight: 700; }
.reviews__count { color: #a9b3a9; }
.reviews__disclaimer { font-size: 0.76rem; color: #8b958c; margin: 0 0 40px; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.review-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 24px; margin: 0; font-size: 0.92rem;
}
.review-card__stars { color: var(--accent-soft); font-size: 0.85rem; margin-bottom: 10px; letter-spacing: 2px; }
.review-card p { margin: 0 0 14px; color: #e2e6df; }
.review-card cite { color: var(--accent-soft); font-style: normal; font-size: 0.83rem; display: block; }
.review-card .review-card__tag {
  display: inline-block; margin-top: 8px; font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: #7f8a80; border: 1px solid #3a453c; border-radius: 999px; padding: 3px 10px;
}

/* Service area */
.area { padding: 90px 24px; background: var(--paper); }
.area__inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.area__details h2 { color: var(--ink); margin: 0 0 14px; font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.area__details p { color: var(--muted); margin: 0 0 22px; }
.area__regions { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.area__regions li { font-size: 0.9rem; color: var(--text); display: flex; justify-content: space-between; border-bottom: 1px dashed #e2ded1; padding-bottom: 8px; }
.area__regions li span { color: var(--sage); font-weight: 600; }
.area__hours { font-size: 0.8rem; color: var(--muted); }
.area__map iframe { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; min-height: 340px; }

/* Footer */
.site-footer { background: var(--ink-dark); color: #a9b3a9; padding: 52px 24px 30px; }
.site-footer__inner {
  max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.site-footer__brand span { color: #fff; font-weight: 700; }
.site-footer p { margin: 6px 0; font-size: 0.88rem; }
.site-footer a { color: #d3d9d3; text-decoration: none; }
.site-footer a:hover { color: var(--accent-soft); }
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 14px; }
.site-footer__copyright { max-width: 1160px; margin: 22px auto 0; font-size: 0.78rem; color: #5f6b60; text-align: center; }

.sticky-whatsapp {
  position: fixed; bottom: 22px; right: 22px; background: var(--sage); color: #fff;
  padding: 14px 22px; border-radius: 999px; text-decoration: none; font-weight: 700;
  box-shadow: 0 12px 28px rgba(63,125,92,0.4); font-size: 0.9rem; z-index: 60;
  display: flex; align-items: center; gap: 8px;
}

/* Sticky bottom tab bar — mobile only, standing GCV mockup component */
.mobile-tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(255,255,255,0.98);
  border-top: 1px solid #e7e5df;
  box-shadow: 0 -8px 24px rgba(18,38,31,0.1);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 10px 4px 8px; text-decoration: none; color: var(--ink);
  font-size: 0.68rem; font-weight: 600;
}
.mobile-tabbar a:active { color: var(--accent); }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__img-card { max-width: 360px; margin: 0 auto; }
  .trust-strip__inner { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .quote__inner { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .area__inner { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .site-header__nav { display: none; }
}

@media (max-width: 768px) {
  .mobile-tabbar { display: flex; }
  .sticky-whatsapp { display: none; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .services__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .quote-form__row { grid-template-columns: 1fr; }
  .area__regions { grid-template-columns: 1fr; }
  .hero { padding: 18px 20px 36px; }
  .hero__eyebrow { margin-bottom: 8px; }
  .hero h1 { font-size: 1.7rem; line-height: 1.16; margin: 0 0 10px; }
  .hero__sub { margin-bottom: 18px; font-size: 0.94rem; max-width: none; }
  .hero__actions { margin-bottom: 22px; gap: 10px; }
  .hero__actions .btn { padding: 12px 22px; font-size: 0.88rem; }
  .hero__stats { gap: 18px; row-gap: 12px; }
  .services, .process, .why, .quote, .reviews, .area { padding: 60px 20px; }
}
