/* =============================================
   TULSA TERMITE COMPANY — style.css
   Design: Deep forest green + warm cream,
   DM Serif Display headlines, DM Sans body.
   Signature element: organic leaf-shaped
   section dividers and the textured hero.
   ============================================= */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-900: #1a3a1a;
  --green-800: #1f4a1f;
  --green-700: #27632a;
  --green-600: #3b6d11;
  --green-500: #639922;
  --green-400: #97c459;
  --green-100: #eaf3de;
  --green-50:  #f4f9ec;

  --cream-100: #fdfaf4;
  --cream-200: #f5f0e4;
  --cream-300: #e8e0ce;

  --bark-700: #3d2b1f;
  --bark-500: #5c4033;
  --bark-300: #a08060;

  --text-primary: #1a2210;
  --text-secondary: #4a5540;
  --text-muted: #7a8870;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(27,58,27,0.08);
  --shadow-md: 0 4px 16px rgba(27,58,27,0.12);
  --shadow-lg: 0 12px 40px rgba(27,58,27,0.16);

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --nav-h: 68px;
  --section-pad: 96px;
  --content-max: 1160px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--cream-100);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 600; }

em { font-style: italic; color: var(--green-500); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 0.6rem;
}
.eyebrow-light { color: var(--green-400); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--green-400); outline-offset: 3px; }

.btn-primary {
  background: var(--green-600);
  color: #fff;
  border-color: var(--green-600);
}
.btn-primary:hover { background: var(--green-700); border-color: var(--green-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); }

.btn-outline {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-500);
}
.btn-outline:hover { background: var(--green-100); }

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.875rem; }
.btn-full { width: 100%; justify-content: center; padding: 0.9rem; font-size: 1rem; }

/* ---- NAV ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-900);
  height: var(--nav-h);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.logo-bug { font-size: 1.4rem; }
.logo-bug-img { width: 50%; }
.logo-co { color: var(--green-400); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  padding: 0.4rem 0.85rem;
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-links .nav-cta {
  margin-left: 0.5rem;
  background: var(--green-500);
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-md);
}
.nav-links .nav-cta:hover { background: var(--green-400); color: var(--green-900); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.2s;
}

/* ---- HERO ---- */
.hero {
  min-height: calc(100vh - var(--nav-h));
  background: var(--green-900);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 5rem 3rem 5rem;
  max-width: var(--content-max);
  margin: 0 auto;
  position: relative;
}

/* green grain texture via CSS */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

/* Full-bleed dark background behind hero */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  background: var(--green-900);
  z-index: -1;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-400);
  margin-bottom: 1rem;
}
.hero-headline {
  color: #fff;
  margin-bottom: 1.25rem;
}
.hero-sub {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.badge {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.14);
}

/* Hero floating cards */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
  padding-right: 2rem;
}
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.4rem;
  width: 230px;
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(8px);
  animation: floatCard 3s ease-in-out infinite;
}
.hc2 { animation-delay: 0.7s; }
.hc3 { animation-delay: 1.4s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.hc-icon { font-size: 1.6rem; }
.hc-label { font-size: 0.9rem; font-weight: 600; color: #fff; line-height: 1.2; }
.hc-sub { font-size: 0.75rem; color: var(--green-400); margin-top: 2px; }

/* ---- TRUST BAR ---- */
.trust-bar {
  background: var(--green-700);
  padding: 1.5rem;
}
.trust-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.trust-stat { text-align: center; }
.ts-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  line-height: 1;
}
.ts-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.2);
}

/* ---- SECTIONS ---- */
.section {
  padding: var(--section-pad) 1.5rem;
  background: var(--cream-100);
}
.section-alt { background: var(--cream-200); }
.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.section-sub {
  color: var(--text-secondary);
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-featured {
  border-color: var(--green-400);
  background: var(--green-50);
  grid-column: span 1;
  position: relative;
}
.service-featured::before {
  content: 'Most Requested';
  position: absolute;
  top: -1px; right: 1.25rem;
  background: var(--green-600);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.ico-pest {width:3.75rem;}
.sc-icon { 
	font-size: 2rem;
	display: inline-block;
	}
.service-card h3 { color: var(--text-primary); }
.service-card p { color: var(--text-secondary); font-size: 0.93rem; flex: 1; }
.sc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sc-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 1.1rem;
  position: relative;
}
.sc-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-500);
  font-weight: 700;
}

/* ---- WHY US ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.why-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.why-icon {
  width: 52px;
  height: 52px;
  background: var(--green-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
}
.why-card h3 { font-size: 1.05rem; }
.why-card p { color: var(--text-secondary); font-size: 0.93rem; }

/* ---- REVIEWS ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.review-card {
  background: #fff;
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.review-stars { color: #f5a623; font-size: 1.1rem; letter-spacing: 2px; }
.review-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  flex: 1;
  font-style: italic;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-name { font-weight: 600; font-size: 0.9rem; }
.review-location { font-size: 0.78rem; color: var(--text-muted); }

/* ---- COVERAGE ---- */
.coverage-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.coverage-text h2 { margin-bottom: 1rem; }
.coverage-text p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.coverage-cities {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}
.city-col strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-600);
  margin-bottom: 0.5rem;
}
.city-col ul { list-style: none; }
.city-col li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 2px 0;
}

.coverage-map {
  background: #fff;
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.18s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--green-500);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding: 0 1.4rem 1.15rem;
}
.faq-body p { color: var(--text-secondary); font-size: 0.93rem; }

/* ---- QUOTE SECTION ---- */
.section-quote {
  background: var(--green-900);
  padding: var(--section-pad) 1.5rem;
}
.quote-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.quote-text h2 { color: #fff; margin-bottom: 0.75rem; }
.quote-text p { color: rgba(255,255,255,0.7); margin-bottom: 1.75rem; font-size: 1.02rem; }
.quote-perks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.qp {
  color: var(--green-400);
  font-size: 0.93rem;
  font-weight: 500;
}
.quote-phone p { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-bottom: 0.25rem; }
.phone-link {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  text-decoration: none;
}
.phone-link:hover { color: var(--green-400); }

/* Quote Form */
.quote-form-wrap {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.quote-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}
.optional { font-weight: 400; color: var(--text-muted); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--cream-300);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--text-primary);
  background: var(--cream-100);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5540' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(99,153,34,0.14);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #c0392b;
}
.field-error {
  font-size: 0.78rem;
  color: #c0392b;
  min-height: 1em;
}

.form-consent { flex-direction: row; align-items: flex-start; gap: 0.5rem; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.83rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: var(--green-600);
  cursor: pointer;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}
.checkbox-label input[type="checkbox"]:focus { box-shadow: 0 0 0 3px rgba(99,153,34,0.2); }

.form-success {
  background: var(--green-100);
  border: 1px solid var(--green-400);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: var(--green-800);
  font-size: 0.93rem;
  text-align: center;
}
.form-error-msg {
  background: #fdf0f0;
  border: 1px solid #f5c6c6;
  border-radius: var(--radius-md);
  padding: 1rem;
  color: #c0392b;
  font-size: 0.93rem;
  text-align: center;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--green-900);
  padding: 3.5rem 1.5rem 2rem;
}
.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.9rem; max-width: 320px; margin-bottom: 1rem; line-height: 1.6; }
.footer-contact { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-contact a { color: var(--green-400); font-size: 0.9rem; font-weight: 500; }
.footer-contact a:hover { color: #fff; }

.footer-links { display: flex; gap: 3rem; }
.footer-col strong {
  display: block;
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.88rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom p { color: rgba(255,255,255,0.35); font-size: 0.8rem; }
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { color: rgba(255,255,255,0.35); font-size: 0.8rem; }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  :root { --section-pad: 64px; }

  .hero {
    grid-template-columns: 1fr;
    padding: 3.5rem 1.5rem;
    text-align: center;
    min-height: auto;
  }
  .hero-sub { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-visual {
    align-items: center;
    padding-right: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-card { width: auto; flex: 1 1 160px; }

  .coverage-inner { grid-template-columns: 1fr; }
  .coverage-map { max-width: 420px; margin: 0 auto; }

  .quote-inner { grid-template-columns: 1fr; gap: 2.5rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  :root { --section-pad: 48px; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--green-900);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0.5rem 0 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0 1rem; }
  .nav-links a {
    display: block;
    padding: 0.8rem 0.5rem;
    border-radius: 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-links .nav-cta {
    margin: 0.75rem 0 0;
    text-align: center;
    border-radius: var(--radius-md);
    padding: 0.7rem;
  }

  .trust-inner { gap: 1rem; }
  .trust-divider { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer-links { flex-direction: column; gap: 2rem; }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }

  .hero-visual { display: none; }
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-card { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
