/* ============================================================
   Definity Pest Services — design system
   Palette from the brand logo: gold, charcoal, Texas red/blue, bone
   ============================================================ */
:root {
  --gold: #C7A24B;
  --gold-deep: #9A7424;
  --gold-soft: #E2C97E;
  --charcoal: #15130F;
  --charcoal-soft: #211E18;
  --charcoal-line: #322d24;
  --bone: #F7F2E7;
  --bone-dim: #d9d2c2;
  --ink: #1A1A1A;
  --tx-blue: #0A3161;
  --tx-red: #B0182C;
  --forest: #33402E;
  --muted: #6b6456;

  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0,0,0,.12);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.20);
  --font-head: "Oswald", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bone);
  line-height: 1.65;
  font-size: 1.0625rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); letter-spacing: .3px; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--charcoal { background: var(--charcoal); color: var(--bone); }
.section--charcoal h1, .section--charcoal h2, .section--charcoal h3 { color: var(--bone); }
.section--alt { background: #efe8d7; }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 2px; color: var(--gold-deep); font-weight: 600; font-size: .85rem; margin-bottom: .4rem; }
.section--charcoal .eyebrow { color: var(--gold-soft); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--charcoal); padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: .5rem; top: .5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
  padding: .85rem 1.6rem; border-radius: var(--radius-sm); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; font-size: 1rem; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: var(--charcoal); box-shadow: 0 8px 20px rgba(154,116,36,.35); }
.btn--gold:hover { box-shadow: 0 12px 26px rgba(154,116,36,.45); }
.btn--ghost { background: transparent; color: var(--bone); border-color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: var(--charcoal); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--charcoal); color: var(--bone); border-bottom: 3px solid var(--gold); }
.site-header__inner { display: flex; align-items: center; gap: 1rem; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--bone); }
.brand__mark { border-radius: 6px; object-fit: cover; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; letter-spacing: 1px; color: var(--gold); }
.brand__sub { font-family: var(--font-head); font-size: .72rem; letter-spacing: 3px; text-transform: uppercase; color: var(--bone-dim); }
.brand__name--footer { color: var(--gold); font-size: 1.5rem; display: block; }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .1rem; margin: 0; padding: 0; }
.site-nav a { display: block; color: var(--bone); text-decoration: none; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .3px; font-size: .82rem; padding: .45rem .5rem; border-radius: 6px; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); background: rgba(255,255,255,.05); }
.header-cta { background: var(--gold); color: var(--charcoal); font-family: var(--font-head); font-weight: 700; letter-spacing: .5px; text-decoration: none; padding: .55rem 1rem; border-radius: 6px; white-space: nowrap; }
.header-cta:hover { background: var(--gold-soft); }

.navtoggle, .navtoggle__btn { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--charcoal); color: var(--bone); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background:
   radial-gradient(1200px 500px at 80% -10%, rgba(199,162,75,.18), transparent 60%); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; display: grid; gap: 2.5rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero__eyebrow { color: var(--gold-soft); letter-spacing: 3px; font-family: var(--font-head); text-transform: uppercase; font-weight: 600; font-size: .9rem; }
.hero h1 { margin-top: .4rem; }
.hero h1 .accent { color: var(--gold); }
.hero__lead { font-size: 1.2rem; color: var(--bone-dim); max-width: 36ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 3px solid rgba(199,162,75,.4); }
@media (min-width: 880px){ .hero__inner { grid-template-columns: 1.05fr .95fr; } }

/* ---------- Trust strip ---------- */
.trust-strip { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: center; background: var(--gold); color: var(--charcoal); padding: .85rem 1rem; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .5px; font-size: .85rem; font-weight: 600; }
.trust-strip__item { display: inline-flex; align-items: center; gap: .4rem; }
.trust-strip__check { font-size: 1rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 640px){ .grid--3 { grid-template-columns: 1fr 1fr; } .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px){ .grid--3 { grid-template-columns: repeat(3,1fr); } }

.card { background: #fff; border: 1px solid #e7dfcc; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); transition: transform .14s ease, box-shadow .14s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon { width: 46px; height: 46px; color: var(--gold-deep); margin-bottom: .8rem; }
.card h3 { margin-bottom: .35rem; }
.card a.card__link { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .5px; font-size: .85rem; text-decoration: none; color: var(--gold-deep); }
.card a.card__link::after { content: " →"; }
.card--link { display: block; text-decoration: none; color: inherit; }

/* ---------- Answer block (AEO) ---------- */
.answer { background: #fff; border-left: 5px solid var(--gold); padding: 1.1rem 1.3rem; border-radius: var(--radius-sm); font-size: 1.12rem; box-shadow: var(--shadow); margin-bottom: 1.6rem; }
.section--charcoal .answer { background: var(--charcoal-soft); color: var(--bone); }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- Process steps ---------- */
.steps { display: grid; gap: 1.2rem; counter-reset: step; }
@media (min-width: 760px){ .steps { grid-template-columns: repeat(3,1fr); } }
.step { background: #fff; border-radius: var(--radius); padding: 1.4rem; border: 1px solid #e7dfcc; position: relative; color: var(--ink); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 1.2rem; width: 38px; height: 38px; background: var(--gold); color: var(--charcoal); font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; border-radius: 50%; box-shadow: var(--shadow); }
.step h3 { margin-top: .6rem; color: var(--charcoal); }
.step p { color: #3a352c; }
/* Ensure cards keep dark text even inside dark sections */
.section--charcoal .step h3, .section--charcoal .card h3 { color: var(--charcoal); }
.section--charcoal .step, .section--charcoal .step p, .section--charcoal .card, .section--charcoal .card p { color: #3a352c; }

/* ---------- Covers list ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
@media (min-width: 640px){ .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; gap: .5rem; align-items: flex-start; }
.checklist li::before { content: "✓"; color: var(--gold-deep); font-weight: 700; }

/* ---------- FAQ (details / no JS) ---------- */
.faq { max-width: 75ch; }
.faq details { background: #fff; border: 1px solid #e7dfcc; border-radius: var(--radius-sm); margin-bottom: .7rem; padding: 0 1.1rem; }
.faq summary { cursor: pointer; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .3px; font-size: 1.02rem; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-deep); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid #eee; }
.faq details > p { padding: .9rem 0 1.1rem; margin: 0; }

/* ---------- Facts / pest unique data ---------- */
.facts { background: var(--charcoal-soft); color: var(--bone); border-radius: var(--radius); padding: 1.4rem 1.6rem; border-left: 5px solid var(--gold); }
.facts li { margin-bottom: .6rem; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding-block: .8rem; }
.crumbs a { color: var(--gold-deep); text-decoration: none; }
.crumbs span { margin-inline: .35rem; }

/* ---------- Lead form ---------- */
.lead { background: var(--charcoal); color: var(--bone); }
.lead__inner { display: grid; gap: 2rem; padding-block: clamp(2.5rem,6vw,4rem); }
@media (min-width: 860px){ .lead__inner { grid-template-columns: 1fr 1fr; align-items: center; } }
.lead__h { color: var(--gold); }
.lead__or a, .lead__copy a { color: var(--gold-soft); }
.lead__points { list-style: none; padding: 0; margin: 1rem 0 0; }
.lead__points li { display: flex; gap: .5rem; }
.lead__points li::before { content: "✓"; color: var(--gold); font-weight: 700; }
.lead__form { background: var(--bone); color: var(--ink); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-lg); }
.field { display: block; margin-bottom: .9rem; }
.field span { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .5px; font-size: .8rem; margin-bottom: .3rem; color: var(--charcoal); }
.field input, .field select { width: 100%; padding: .7rem .8rem; border: 2px solid #d8cfb8; border-radius: var(--radius-sm); font: inherit; background: #fff; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,162,75,.25); }
.lead__fineprint { font-size: .8rem; color: var(--muted); margin: .8rem 0 0; }
.hp { position: absolute; left: -9999px; }

/* ---------- CTA band ---------- */
.ctaband { background: linear-gradient(120deg, var(--tx-blue), var(--charcoal)); color: var(--bone); text-align: center; }
.ctaband .btn { margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: #100e0b; color: var(--bone-dim); padding-block: 3rem 1.5rem; }
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 720px){ .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer__h { font-size: 1rem; color: var(--gold); letter-spacing: 1px; }
.site-footer__list { list-style: none; padding: 0; margin: 0; }
.site-footer__list a, .footer-phone, .site-footer a { color: var(--bone-dim); text-decoration: none; }
.site-footer__list a:hover, .site-footer a:hover { color: var(--gold); }
.footer-phone { font-family: var(--font-head); font-size: 1.3rem; color: var(--gold) !important; }
.site-footer__legal { border-top: 1px solid #2a261e; margin-top: 2rem; padding-top: 1.2rem; font-size: .82rem; }

/* ---------- Sticky mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 760px){
  .callbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 120; display: flex; align-items: center; justify-content: center; gap: .5rem; background: var(--gold); color: var(--charcoal); font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; padding: .9rem; text-decoration: none; box-shadow: 0 -6px 20px rgba(0,0,0,.25); }
  body { padding-bottom: 3.6rem; }
}

/* ---------- Mobile nav (CSS only) ---------- */
@media (max-width: 880px){
  .navtoggle__btn { display: inline-flex; flex-direction: column; gap: 5px; margin-left: auto; padding: .5rem; cursor: pointer; }
  .navtoggle__btn span { width: 26px; height: 3px; background: var(--bone); border-radius: 2px; }
  .header-cta { display: none; }
  .site-nav { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); background: var(--charcoal-soft); transform: translateX(100%); transition: transform .25s ease; padding: 4.5rem 1.2rem 2rem; box-shadow: var(--shadow-lg); margin-left: 0; }
  .site-nav ul { flex-direction: column; gap: .2rem; }
  .site-nav a { font-size: 1.1rem; padding: .8rem .6rem; }
  .navtoggle:checked ~ .site-nav { transform: translateX(0); }
}
/* ---------- Crumbs on dark heroes ---------- */
.hero .crumbs, .section--charcoal .crumbs { color: var(--bone-dim); }
.hero .crumbs a, .section--charcoal .crumbs a { color: var(--gold-soft); }

/* ---------- Photo gallery ---------- */
.gallery { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px){ .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--shadow); border: 2px solid rgba(199,162,75,.25); }
.gallery figcaption { font-size: .8rem; color: var(--muted); margin-top: .35rem; }
.section--charcoal .gallery figcaption { color: var(--bone-dim); }

/* ---------- Fleet / image band ---------- */
.imgband { display: grid; gap: 1.2rem; align-items: center; }
@media (min-width: 860px){ .imgband { grid-template-columns: 1fr 1fr; } .imgband--rev > :first-child { order: 2; } }
.imgband img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ---------- Service hero image sizing ---------- */
.hero__media img { width: 100%; max-height: 460px; object-fit: cover; }

/* ---------- Pest quick-reference spec cards ---------- */
.spec-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.8rem 0; }
@media (min-width: 680px){ .spec-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px){ .spec-grid { grid-template-columns: repeat(3, 1fr); } }
.spec-card { background: #fff; border: 1px solid #e7dfcc; border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); }
.spec-card h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; margin-bottom: .6rem; color: var(--charcoal); }
.spec-card ul { list-style: none; padding: 0; margin: 0; }
.spec-card li { padding-left: 1.1rem; position: relative; margin-bottom: .35rem; }
.spec-card li::before { content: "›"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }
.spec-card p { margin: 0; }
.spec-card--risk { border-top-color: var(--tx-red); }
.spec-card--risk h3 { color: var(--tx-red); }
.spec-card--treat { border-top-color: var(--forest); background: #f3f6ef; }
.spec-card--treat h3 { color: var(--forest); }
.spec-card--treat li::before { content: "✓"; color: var(--forest); }

/* ---------- Brand band (full-width eagle-logo feature) ---------- */
.brandband { background: var(--charcoal); color: var(--bone); border-block: 3px solid var(--gold); position: relative; }
.brandband__inner { display: grid; gap: 1.6rem; align-items: center; padding-block: clamp(2rem, 5vw, 3.4rem); }
@media (min-width: 820px){ .brandband__inner { grid-template-columns: minmax(0, 440px) 1fr; } .brandband--rev .brandband__media { order: 2; } }
.brandband__logo { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 2px solid rgba(199,162,75,.45); }
.brandband h2 { color: var(--bone); }
.brandband .eyebrow { color: var(--gold-soft); }
.brandband__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }

/* ---------- Brand strip (slim centered logo divider) ---------- */
.brandstrip { background: var(--charcoal-soft); text-align: center; padding: 1.4rem 1rem; border-block: 1px solid var(--gold-deep); }
.brandstrip img { display: inline-block; width: min(300px, 72%); border-radius: 12px; box-shadow: var(--shadow); border: 2px solid rgba(199,162,75,.4); }
.brandstrip__tag { display: block; margin-top: .7rem; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 3px; font-size: .8rem; color: var(--gold-soft); }

/* ---------- Crew captioned feature ---------- */
.crewfeat { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 760px){ .crewfeat { grid-template-columns: 1.1fr 1fr; } .crewfeat--rev .crewfeat__media { order: 2; } }
.crewfeat__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center top; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 2px solid rgba(199,162,75,.3); }
.crewfeat__body h3 { margin-bottom: .45rem; }
.crewfeat__body p { color: var(--muted); font-size: 1.06rem; margin: 0; }
.section--charcoal .crewfeat__body p { color: var(--bone-dim); }

/* ---------- Reviews ---------- */
.stars { color: var(--gold); letter-spacing: 2px; margin: 0 0 .5rem; }
.review-card { display: flex; flex-direction: column; }
.review-card__quote { margin: .2rem 0 1rem; padding: 0; border: 0; font-size: 1.02rem; line-height: 1.6; color: #2a261d; }
.review-card__quote::before { content: "\201C"; color: var(--gold); font-family: var(--font-head); font-size: 2rem; line-height: 0; vertical-align: -.35em; margin-right: .1rem; }
.review-card__by { margin-top: auto; margin-bottom: 0; }
.rating-badge { display: inline-flex; flex-direction: column; align-items: center; gap: .35rem; background: var(--charcoal-soft); border: 2px solid var(--gold); border-radius: var(--radius); padding: 1.8rem 2.6rem; box-shadow: var(--shadow-lg); }
.rating-badge__num { font-family: var(--font-head); font-size: 3.6rem; line-height: 1; color: var(--gold); }
.rating-badge .stars { font-size: 1.5rem; margin: 0; }
.rating-badge__count { color: var(--bone-dim); font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Top announcement ribbon ---------- */
.ribbon { background: linear-gradient(90deg, var(--tx-blue), var(--charcoal) 50%, var(--tx-red)); color: var(--bone); text-align: center; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: .82rem; padding: .4rem 1rem; }
.ribbon a { color: var(--gold-soft); text-decoration: none; font-weight: 700; }

@media (prefers-reduced-motion: reduce){ * { scroll-behavior: auto; transition: none !important; } }
