/* ==========================================================================
   Triple Crown Pest and Wildlife — site stylesheet
   Palette pulled from the crest logo.
   ========================================================================== */

:root {
  --purple-900: #3c1c5c;
  --purple-800: #4b2470;
  --purple-700: #5c2d87;
  --purple-600: #6a3499;
  --gold-600: #a9813f;
  --gold-500: #c7a466;
  --gold-300: #e2cd9c;
  --green-700: #2c6b34;
  --green-600: #37823f;
  --cream-50: #faf8f4;
  --cream-100: #f3efe6;
  --ink-900: #241730;
  --ink-700: #43364f;
  --ink-500: #6b5f78;
  --white: #ffffff;
  --line: #e5ddef;
  --shadow: 0 10px 30px rgba(60, 28, 92, 0.12);
  --shadow-sm: 0 2px 10px rgba(60, 28, 92, 0.08);
  --radius: 14px;
  --max: 1160px;
}

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

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--purple-900);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-700); }
a { color: var(--purple-700); text-decoration-color: var(--gold-500); }
a:hover { color: var(--purple-900); }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.2em; color: var(--ink-700); }
li { margin-bottom: 0.4em; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-600);
  background: var(--purple-900);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-500), var(--gold-600));
  color: var(--purple-900);
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover { color: var(--purple-900); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-outline-purple {
  background: transparent;
  border-color: var(--purple-700);
  color: var(--purple-700);
}
.btn-outline-purple:hover { background: var(--purple-700); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--ink-900);
  color: var(--gold-300);
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: var(--gold-300); text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar-license { color: rgba(226,205,156,0.75); }
@media (max-width: 640px) {
  .topbar { font-size: 0.75rem; }
  .topbar-license { display: none; }
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--purple-900);
}
.brand img { height: 52px; width: auto; }
.brand-word {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.05;
}
.brand-word strong { display: block; font-size: 1.18rem; letter-spacing: 0.01em; }
.brand-word span { display: block; font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold-600); }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink-900);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: var(--purple-800); border-bottom-color: var(--gold-500); }
.main-nav a.portal-link { color: var(--gold-600); }
.main-nav a.portal-link:hover { color: var(--purple-800); border-bottom-color: var(--gold-500); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-phone {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--purple-900);
  font-weight: 700;
  line-height: 1.1;
  text-align: right;
}
.nav-phone small { font-weight: 500; color: var(--ink-500); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--purple-900); margin: 4px 0; }

@media (max-width: 900px) {
  .main-nav ul { display: none; }
  .nav-toggle { display: block; }
  .nav-phone { display: none; }
  .brand img { height: 42px; }
  .brand-word strong { font-size: 1.02rem; }
  .site-header .container { flex-wrap: wrap; row-gap: 8px; }
  .nav-cta { gap: 8px; }
  .btn.btn-gold { padding: 11px 16px; font-size: 0.9rem; }
  body.nav-open .main-nav ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    gap: 14px;
  }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(199,164,102,0.18), transparent 60%),
    linear-gradient(160deg, var(--purple-900), var(--purple-700) 65%, var(--purple-600));
  color: var(--white);
  padding: 64px 0 76px;
  position: relative;
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero p.lead { color: rgba(255,255,255,0.86); font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero h1 { color: var(--white); }
.hero-badges { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-badge { font-size: 0.85rem; color: rgba(255,255,255,0.85); display: flex; align-items: center; gap: 8px; }
.hero-badge b { color: var(--gold-300); }
.hero-art {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  backdrop-filter: blur(2px);
}
.hero-art img { margin: 0 auto 14px; height: 150px; width: auto; }
.hero-art .crest-caption { color: rgba(255,255,255,0.75); font-size: 0.9rem; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 260px; margin: 0 auto; }
}

/* ---------- Section scaffolding ---------- */
section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--cream-50); }
.section-dark {
  background: linear-gradient(160deg, var(--purple-900), var(--purple-800));
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.82); }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--purple-700), var(--purple-900));
  color: var(--gold-300);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-link { font-weight: 700; font-size: 0.92rem; display: inline-block; margin-top: 8px; text-decoration: none; }
.card-link:after { content: " \2192"; }

.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li {
  margin: 0;
  background: var(--cream-100);
  border: 1px solid var(--line);
  color: var(--ink-900);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}
.pill-list a { text-decoration: none; color: inherit; }
.pill-list li:hover { border-color: var(--gold-500); }

/* City & pest chip grids */
.chip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .chip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .chip-grid { grid-template-columns: 1fr; } }
.chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink-900);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.chip:hover { border-color: var(--gold-500); color: var(--purple-800); }
.chip .arrow { color: var(--gold-600); }
.chip small { display: block; font-weight: 500; color: var(--ink-500); font-size: 0.78rem; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold-500); color: var(--purple-900);
  font-family: "Playfair Display", Georgia, serif; font-weight: 700;
  margin-bottom: 12px;
}

/* ---------- Table (pest identification etc) ---------- */
.info-table { width: 100%; border-collapse: collapse; margin: 18px 0 28px; }
.info-table th, .info-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.info-table th { color: var(--purple-900); font-family: "Playfair Display", Georgia, serif; }

/* ---------- Callout / CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--purple-800), var(--purple-600));
  color: var(--white);
  border-radius: 20px;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--ink-500); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--purple-800); }

/* ---------- Alert / notice box ---------- */
.notice {
  border-left: 4px solid var(--gold-500);
  background: var(--cream-100);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin: 20px 0;
  font-size: 0.95rem;
}
.notice strong { color: var(--purple-900); }

/* ---------- Two column layout ---------- */
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Sidebar (used on pest/service/city pages) ---------- */
.side-card {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.side-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.side-card ul { margin-bottom: 0; }
.side-card.contact { background: var(--purple-900); color: var(--white); }
.side-card.contact h3 { color: var(--white); }
.side-card.contact p { color: rgba(255,255,255,0.82); }
.side-card.contact a.btn { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,0.75); padding: 56px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--gold-300); font-family: "Playfair Display", Georgia, serif; font-size: 1rem; margin-bottom: 14px; letter-spacing: 0.02em; }
.site-footer p { color: rgba(255,255,255,0.72); font-size: 0.92rem; }
.site-footer a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 46px; }
.footer-brand strong { font-family: "Playfair Display", Georgia, serif; color: var(--white); font-size: 1.05rem; display: block; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }

/* ---------- Contact / quote form ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; color: var(--purple-900); }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream-50);
  color: var(--ink-900);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-500); outline-offset: 1px; }
.field { margin-bottom: 16px; }
.form-note { font-size: 0.82rem; color: var(--ink-500); margin-top: 10px; }

/* ---------- Misc ---------- */
.badge-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.badge {
  display: inline-block;
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple-800);
  background: var(--cream-100);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  vertical-align: middle;
  line-height: 1.4;
}
.center { text-align: center; }
.muted { color: var(--ink-500); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
