/* ========== XTERMIN BRAND SYSTEM ==========
   Desert-Tough — confident, modern Arizona brand.
   Anchor: deep ink + warm bone
   Accent: XTERMIN brand green #27A027
   Type: Sora + Instrument Serif + Inter + JetBrains Mono
   ============================================ */

:root {
  --ink:         #0d0d0d;
  --ink-2:       #262626;
  --bone:        #fafaf7;
  --bone-2:      #ededea;
  --paper:       #ffffff;
  --accent:      #27A027;
  --accent-2:    #1f4d3a;
  --line:        rgba(13,13,13,0.10);
  --line-strong: rgba(13,13,13,0.25);
  --muted:       rgba(13,13,13,0.55);

  --f-display:  "Sora", system-ui, sans-serif;
  --f-editorial:"Instrument Serif", Georgia, serif;
  --f-body:     "Inter", system-ui, sans-serif;
  --f-mono:     "JetBrains Mono", ui-monospace, monospace;

  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-pill:999px;
}

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

html {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* =============== TYPOGRAPHY =============== */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.h-display {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.h-1 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.h-2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(26px, 3.5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.h-3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.editorial {
  font-family: var(--f-editorial);
  font-style: italic;
  font-weight: 400;
}

.body-lg {
  font-size: 19px;
  line-height: 1.5;
}

/* =============== LAYOUT =============== */
.container {
  width: 100%;
  max-width: 1320px;
  padding: 0 32px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

.section {
  padding: clamp(56px, 8vw, 120px) 0;
}

.row { display: flex; }
.col { display: flex; flex-direction: column; }

/* =============== BUTTONS =============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--ink); border-color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }

.btn-lg {
  padding: 18px 28px;
  font-size: 16px;
}

.btn-arrow::after {
  content: "→";
  display: inline-block;
  margin-left: 2px;
  transition: transform .2s ease;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* =============== NAV =============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bone) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-link {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: opacity .15s ease;
}
.nav-link:hover { opacity: .65; }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav-phone {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-phone-dot {
  width: 8px; height: 8px;
  background: #1f9c5e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(31,156,94,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(31,156,94,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(31,156,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,156,94,0); }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
}

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 10px 14px;
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 500;
}
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
}

/* Phone number visibility */
.nav-phone-text { display: inline !important; }
.nav-phone-text-mobile { display: none !important; }
@media (max-width: 599px) {
  .nav-phone-text { display: none !important; }
  .nav-phone-text-mobile { display: inline !important; }
}

/* =============== HERO =============== */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

.hero-headline {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(48px, 8.5vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0;
}
.hero-headline .accent { color: var(--accent); }
.hero-headline .editorial {
  font-family: var(--f-editorial);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 460px;
  margin-top: 28px;
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* hero proof strip */
.hero-proof {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.proof-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.proof-num {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.proof-label {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =============== CARDS =============== */
.card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 28px;
}
.card-dark {
  background: var(--ink);
  color: var(--bone);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* =============== TICKER =============== */
.ticker {
  background: var(--ink);
  color: var(--bone);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
}
.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker 38s linear infinite;
  width: max-content;
}
.ticker-item {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.ticker-item .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============== FOOTER =============== */
.footer {
  background: var(--ink);
  color: var(--bone);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer h4 {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.5);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--bone); opacity: 0.85; font-size: 15px; transition: opacity .15s; }
.footer a:hover { opacity: 1; color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(250,250,247,0.12);
  font-size: 13px;
  color: rgba(250,250,247,0.55);
  flex-wrap: wrap;
  gap: 16px;
}

/* =============== UTILITIES =============== */
.divider {
  height: 1px;
  background: var(--line);
  margin: 32px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(13,13,13,0.06);
  color: var(--ink);
  border: 1px solid var(--line);
}
.tag-accent {
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent);
  border-color: color-mix(in oklab, var(--accent) 28%, transparent);
}
.tag-green {
  background: color-mix(in oklab, #1f9c5e 14%, transparent);
  color: #167848;
  border-color: color-mix(in oklab, #1f9c5e 28%, transparent);
}

.stars { display: inline-flex; gap: 2px; color: #f5b400; font-size: 16px; }

/* scroll fade-up */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.fade-up.in { opacity: 1; transform: none; }

/* page transitions */
.page-enter {
  animation: pageIn .45s cubic-bezier(.2,.8,.2,1);
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* selection */
::selection { background: var(--accent); color: #fff; }

/* =============== ESTIMATOR WIDGET =============== */
.estimator-plan-btn {
  padding: 12px 10px;
  border-radius: 12px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: all .15s ease;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}
.estimator-plan-btn.active {
  background: var(--ink);
  color: var(--bone);
  border: 2px solid var(--ink);
}
.estimator-pest-btn {
  padding: 10px 8px;
  border-radius: 12px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s ease;
  background: var(--paper);
  border: 1px solid var(--line);
}
.estimator-pest-btn.active {
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  border: 2px solid var(--accent);
}
input[type="range"] { accent-color: var(--accent); }

/* =============== FAQ ACCORDION =============== */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
}
.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform .2s;
}
.faq-icon.open { transform: rotate(45deg); }
.faq-body {
  padding-bottom: 22px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 640px;
}

/* =============== MOBILE NAV DRAWER =============== */
.nav-drawer {
  display: none;
  padding-bottom: 16px;
}
.nav-drawer.open { display: block; }
.nav-drawer a {
  display: block;
  padding: 12px 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

/* =============== BLOG =============== */
.prose {
  max-width: 720px;
}
.prose h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.025em;
  margin: 48px 0 16px;
  line-height: 1.1;
}
.prose h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.015em;
  margin: 32px 0 12px;
}
.prose p { margin: 0 0 20px; color: var(--ink-2); line-height: 1.7; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 20px; }
.prose li { margin-bottom: 8px; color: var(--ink-2); line-height: 1.6; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 24px 0;
  font-family: var(--f-editorial);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-2);
}
