/* ============================================================
   Nico Pest Control — dark theme by default, light via toggle
   ============================================================ */
:root {
  --bg: #0b1210;
  --bg-2: #0f1a16;
  --surface: #121f1a;
  --card: #14231d;
  --text: #eaf3ec;
  --muted: #a7bdb0;
  --border: #22362d;
  --green: #35b954;
  --green-dark: #1f8a3a;
  --lime: #a7e04a;
  --gold: #e8b423;
  --gold-soft: #f6d269;
  --btn-text: #06110b;
  --radius: 16px;
  --shadow: 0 22px 50px -26px rgba(0, 0, 0, .8);
  --gradient: linear-gradient(100deg, var(--green-dark), var(--green) 45%, var(--gold));
  --overlay: linear-gradient(180deg, rgba(6, 17, 11, .05), rgba(6, 17, 11, .72));
}

html[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f7fbf7;
  --surface: #f2f8f2;
  --card: #ffffff;
  --text: #13251b;
  --muted: #5b6d62;
  --border: #dfe8e0;
  --green: #2e9e46;
  --green-dark: #1c7a33;
  --lime: #74b81f;
  --gold: #cf9a08;
  --gold-soft: #a97a05;
  --btn-text: #ffffff;
  --shadow: 0 16px 40px -24px rgba(20, 38, 28, .45);
  --overlay: linear-gradient(180deg, rgba(10, 30, 18, .04), rgba(10, 30, 18, .58));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Barlow", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, .form-title, .addr-label, .stat strong {
  font-family: "Barlow Condensed", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin: 0;
}
h1 { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.05; margin-top: 18px; }
h2 { font-size: clamp(1.7rem, 5vw, 2.5rem); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 760px; }
section { padding: 62px 0; }
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sub { color: var(--muted); max-width: 620px; margin: 10px 0 0; }
.grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- top bar + header ---------- */
.topbar { background: var(--bg-2); border-bottom: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.topbar-inner { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 18px; }
.topbar a { font-weight: 700; color: var(--gold-soft); }
.header {
  position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 12px 18px; }
.brand img { height: 44px; width: auto; border-radius: 8px; }
.nav { display: flex; gap: 22px; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--lime); }
.head-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  background: var(--card); border: 1px solid var(--border); color: var(--text); font-size: 1.15rem;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold-soft); }
.burger { display: none; }

/* ---------- mobile drawer ---------- */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw); z-index: 90;
  background: var(--bg-2); border-left: 1px solid var(--border);
  transform: translateX(105%); transition: transform .28s ease;
  display: flex; flex-direction: column; padding: 18px; gap: 6px;
}
.drawer.open { transform: translateX(0); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer-top img { height: 40px; border-radius: 8px; }
.drawer a.d-link { padding: 14px 6px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 1.05rem; }
.drawer .btn { margin-top: 14px; }
.drawer .d-contact { margin-top: auto; font-size: .85rem; color: var(--muted); }
.scrim {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none;
  transition: opacity .28s ease; z-index: 80;
}
.scrim.show { opacity: 1; pointer-events: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 13px 24px; font-weight: 700; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s ease, filter .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-brand { background: var(--gradient); color: var(--btn-text); box-shadow: var(--shadow); }
.btn-brand:hover { filter: brightness(1.08); }
.btn-outline { border-color: var(--gold); color: var(--gold-soft); background: transparent; }
.btn-outline:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.full { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -180px; right: -120px; width: 460px; height: 460px;
  background: radial-gradient(circle, color-mix(in srgb, var(--green) 26%, transparent), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.hero-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center; position: relative; }
.pill {
  display: inline-block; border: 1px solid var(--gold); color: var(--gold-soft);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  border-radius: 999px; padding: 5px 16px; font-size: .72rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
}
.lead { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin-top: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 30px; max-width: 470px; }
.stat { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 12px 14px; }
.stat strong { display: block; font-size: 1.3rem; color: var(--lime); }
.stat span { font-size: .74rem; color: var(--muted); }

.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.pad { padding: 22px; }
.form-card { padding: 16px; }
.hero-img { border-radius: 12px; height: auto; }
.form { display: grid; gap: 12px; margin-top: 18px; }
.form-title { font-size: 1.2rem; }
.form input, .form select {
  font: inherit; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-2); color: var(--text); width: 100%;
}
.form input:focus, .form select:focus { outline: none; border-color: var(--green); }

/* ---------- grids / services with photos ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.service {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold); }
.service-media { position: relative; aspect-ratio: 4 / 3; }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-media::after { content: ""; position: absolute; inset: 0; background: var(--overlay); }
.service-media h3 {
  position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 2;
  color: #fff; font-size: 1.3rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
}
.service-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.service-body a { margin-top: auto; font-weight: 700; color: var(--lime); }

.why { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.why h3 { font-size: 1.15rem; }
.why p { color: var(--muted); font-size: .95rem; margin: 6px 0 0; }
.why .dot { color: var(--gold); font-size: 1.3rem; line-height: 1; }

/* ---------- reviews ---------- */
.g-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 18px; }
.g-badge {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card);
}
.g-badge .g-logo { font-family: "Barlow Condensed", sans-serif; font-size: 1.9rem; font-weight: 800; letter-spacing: .02em; }
.g-badge .g-logo span:nth-child(1) { color: #4285f4; }
.g-badge .g-logo span:nth-child(2) { color: #ea4335; }
.g-badge .g-logo span:nth-child(3) { color: #fbbc05; }
.g-badge .g-logo span:nth-child(4) { color: #4285f4; }
.g-badge .g-logo span:nth-child(5) { color: #34a853; }
.g-badge .g-logo span:nth-child(6) { color: #ea4335; }
.g-score { font-size: 1.25rem; font-weight: 800; }
.g-score small { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); }
.review { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.review .stars { color: var(--gold); letter-spacing: 2px; }
.review blockquote { color: var(--muted); font-size: .95rem; margin: 8px 0 0; }
.review figcaption { margin-top: 14px; font-weight: 700; font-size: .92rem; display: flex; align-items: center; gap: 10px; }
.review figcaption span { font-weight: 400; color: var(--muted); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--gradient); color: var(--btn-text);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem;
}

/* ---------- faq ---------- */
.faq { margin-top: 26px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  text-align: left; background: none; border: 0; font: inherit; font-weight: 700; color: var(--text);
  padding: 16px 18px; cursor: pointer;
}
.faq-q span { color: var(--gold); font-size: 1.2rem; }
.faq-a { display: none; padding: 0 18px 18px; color: var(--muted); font-size: .95rem; }
.faq-item.open .faq-a { display: block; }

/* ---------- contact + footer ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; align-items: start; }
address { font-style: normal; font-size: .95rem; color: var(--muted); }
.addr-label { font-size: 1.1rem; color: var(--text); margin-bottom: 6px; }
.map-link { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--lime); font-size: .9rem; }
footer { padding: 32px 0; border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: .82rem; color: var(--muted); }
.footer-inner img { height: 40px; border-radius: 8px; }

/* ---------- sticky mobile bar ---------- */
.sticky-bar {
  display: none; position: fixed; inset: auto 0 0 0; gap: 10px; padding: 10px;
  background: color-mix(in srgb, var(--bg) 94%, transparent); border-top: 1px solid var(--border); z-index: 70;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .hide-sm { display: none; }
}
@media (max-width: 640px) {
  section { padding: 46px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  /* .stats { grid-template-columns: 1fr 1fr; } */
  .stat {
    padding: 8px 10px;
}
  .btn { padding: 12px 20px; }
  .sticky-bar { display: flex; }
  body { padding-bottom: 78px; }
  .topbar-inner span { display: none; }
  .topbar-inner { justify-content: center; }
}
