/* ============================================
   Pest Heroes - Stylesheet
   Rebuilt from Wix to static HTML/CSS/JS
   Designed for speed, conversion, and mobile-first
   Brand design system per HANDOFF.md Section 3
   ============================================ */

/* === Self-hosted fonts (no external font request) === */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Anton-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ArchivoBlack-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/PublicSans-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/PublicSans-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/PublicSans-Bold.woff2") format("woff2");
}

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand tokens (HANDOFF.md Section 3) - use verbatim */
  --color-red: #B42424;
  --color-navy: #002490;
  --color-yellow: #FFD84D;
  --color-cream: #FFF6E8;
  --color-black: #111111;
  --color-white: #FFFFFF;

  /* Legacy/semantic aliases mapped onto the brand tokens above */
  --color-primary: var(--color-navy);
  --color-primary-dark: #001b6b;
  --color-secondary: var(--color-red);
  --color-secondary-dark: #8f1c1c;
  --color-accent: var(--color-red);
  --color-dark: var(--color-black);
  --color-text: var(--color-black);
  --color-muted: #4a4a4a;
  --color-bg: #ffffff;
  --color-card: var(--color-white);
  --color-border: var(--color-black);
  --color-footer: var(--color-black);
  --color-footer-text: #c9c9c9;

  --radius-sm: 4px;
  --radius-md: 4px;
  --radius-lg: 4px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.14);

  /* Comic hard-shadow offsets */
  --comic-shadow: 6px 6px 0 var(--color-black);
  --comic-shadow-sm: 3px 3px 0 var(--color-black);
  --comic-border: 3px solid var(--color-black);

  --max-width: 1200px;
  --header-height: 88px;

  --font-display: "Anton", "Archivo Black", Impact, sans-serif;
  --font-subhead: "Archivo Black", "Anton", Impact, sans-serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --transition: 0.2s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Comic-treatment pages: homepage, About, Service Areas, Contact */
body.theme-comic {
  background: var(--color-cream);
}

/* Bold dark-treatment pages: the seven individual service pages */
body.theme-dark {
  background: var(--color-cream);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-dark);
  line-height: 1.1;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.5rem; font-family: var(--font-subhead); text-transform: none; letter-spacing: 0; }
h4 { font-size: 1.15rem; font-family: var(--font-subhead); text-transform: none; letter-spacing: 0; }

p { margin-bottom: 1rem; }

a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--color-primary-dark); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

/* === Layout Utilities === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

.section-tight {
  padding: 40px 0;
}

.section-light {
  background: var(--color-white);
}

.section-tint {
  background: var(--color-cream);
}

/* Dark alternating sections for the bold-dark service pages */
.section-dark {
  background: var(--color-black);
  color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-white);
}

.section-dark p {
  color: #d8d8d8;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-muted); }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-sm { font-size: 0.875rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

/* === Comic Card component (white fill, black border, offset hard shadow) === */
.card-comic {
  background: var(--color-white);
  border: var(--comic-border);
  border-radius: 0;
  box-shadow: var(--comic-shadow);
}

/* === Comic Burst component (starburst callout, CSS-only) === */
.comic-burst {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--color-yellow);
  color: var(--color-black);
  border: var(--comic-border);
  border-radius: 50%;
  font-family: var(--font-subhead);
  text-align: center;
  padding: 18px;
  box-shadow: var(--comic-shadow-sm);
  transform: rotate(-4deg);
}

/* === Comic Speech Bubble component (for reviews) === */
.speech-bubble {
  position: relative;
  background: var(--color-white);
  border: var(--comic-border);
  border-radius: 0;
  box-shadow: var(--comic-shadow);
  padding: 24px;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: 32px;
  bottom: -18px;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 18px solid var(--color-black);
}

.speech-bubble::before {
  content: "";
  position: absolute;
  left: 35px;
  bottom: -13px;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 14px solid var(--color-white);
  z-index: 1;
}

/* === Halftone texture (CSS-only, no image file) === */
.halftone-bg {
  position: relative;
}

.halftone-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--color-black) 1.4px, transparent 1.4px);
  background-size: 14px 14px;
  opacity: 0.06;
  pointer-events: none;
}

/* === Buttons (comic style, used on every page/treatment) === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 0;
  font-family: var(--font-subhead);
  font-weight: 400;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border: var(--comic-border);
  box-shadow: var(--comic-shadow-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--color-black);
}

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-red);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-secondary:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-outline {
  background: var(--color-white);
  border-color: var(--color-black);
  color: var(--color-black);
}

.btn-outline:hover {
  background: var(--color-yellow);
  color: var(--color-black);
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* === Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-white);
  border-bottom: var(--comic-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-subhead);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--color-dark);
  text-decoration: none;
}

.logo:hover { color: var(--color-dark); }

/* Header logo: minimum 56px tall so the shield mark reads clearly (was 40px) */
.logo-icon {
  height: 56px;
  width: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-icon img {
  height: 56px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text span {
  font-size: 0.68rem;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: none;
  color: var(--color-muted);
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--color-navy);
}

/* The .nav a rule above (element+class selector) has higher specificity
   than .btn-primary alone and was overriding the button's white text with
   --color-text, making the CTA unreadable on the navy background. */
.nav a.btn-primary,
.nav a.btn-primary:hover {
  color: var(--color-white);
}

.nav .nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--color-dark);
}

.nav-phone svg {
  width: 18px;
  height: 18px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  margin: 5px 0;
  transition: var(--transition);
}

/* === Hero === */
.hero {
  position: relative;
  margin-top: var(--header-height);
  background: linear-gradient(135deg, var(--color-navy) 0%, #001b6b 100%);
  color: var(--color-white);
  padding: 80px 0 64px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("/images/foundation-vent-damage.jpg") center/cover;
  opacity: 0.12;
}

/* Comic-treatment homepage hero gets the halftone texture and cream card */
body.theme-comic .hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, #001b6b 100%);
}

body.theme-comic .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: 0.08;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: 3rem;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-content p {
  font-family: var(--font-body);
  font-size: 1.2rem;
  opacity: 0.92;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  font-family: var(--font-subhead);
  font-size: 1.2rem;
}

.hero-phone:hover { color: var(--color-white); opacity: 0.9; }

.hero-phone svg {
  width: 24px;
  height: 24px;
}

/* Hero quote form card: comic card style per HANDOFF.md Section 4 item 1 */
.hero-card {
  background: var(--color-white);
  border: var(--comic-border);
  border-radius: 0;
  padding: 32px;
  box-shadow: var(--comic-shadow);
  color: var(--color-text);
}

.hero-card h3 {
  margin-bottom: 0.5rem;
  text-align: center;
}

.hero-card p {
  text-align: center;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-card .form-group {
  margin-bottom: 1rem;
}

.hero-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-dark);
}

.hero-card input,
.hero-card select,
.hero-card textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-black);
  border-radius: 0;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition);
}

.hero-card input:focus,
.hero-card select:focus,
.hero-card textarea:focus {
  outline: none;
  border-color: var(--color-navy);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* === Trust Bar === */
.trust-bar {
  background: var(--color-black);
  color: var(--color-white);
  padding: 20px 0;
  border-bottom: var(--comic-border);
}

.trust-bar .container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-item svg {
  width: 22px;
  height: 22px;
  color: var(--color-yellow);
  flex-shrink: 0;
}

/* === Pest Problem Selector === */
.pest-selector {
  text-align: center;
}

.pest-selector h2 {
  margin-bottom: 0.5rem;
}

.pest-selector .subtitle {
  color: var(--color-muted);
  font-family: var(--font-body);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.pest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.pest-card {
  background: var(--color-white);
  border: var(--comic-border);
  border-radius: 0;
  box-shadow: var(--comic-shadow-sm);
  padding: 28px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pest-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--color-black);
  color: var(--color-red);
}

.pest-card .pest-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--color-cream);
  border: 2px solid var(--color-black);
  border-radius: 50%;
}

.pest-card:hover .pest-icon {
  background: var(--color-red);
  color: var(--color-white);
}

.pest-card span {
  font-family: var(--font-subhead);
  font-weight: 400;
  font-size: 0.9rem;
}

/* === Services Grid === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--color-white);
  border: var(--comic-border);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--comic-shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--color-black);
}

.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-cream);
  border-bottom: var(--comic-border);
}

.service-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body h3 {
  margin-bottom: 0.5rem;
}

.service-card-body p {
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  flex: 1;
}

.service-card-link {
  margin-top: 1rem;
  font-family: var(--font-subhead);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-red);
}

.service-card-link::after {
  content: "\2192";
  transition: transform var(--transition);
}

.service-card:hover .service-card-link::after {
  transform: translateX(4px);
}

/* === Process Section === */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step-number {
  width: 56px;
  height: 56px;
  background: var(--color-navy);
  color: var(--color-white);
  border: var(--comic-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-subhead);
  font-size: 1.4rem;
  margin: 0 auto 16px;
  counter-increment: step;
}

.process-step:nth-child(even) .process-step-number {
  background: var(--color-red);
}

.process-step-number::before {
  content: counter(step);
}

.process-step h4 {
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

/* === Guarantee Badge === */
.guarantee {
  background: var(--color-red);
  color: var(--color-white);
  border: var(--comic-border);
  border-radius: 0;
  box-shadow: var(--comic-shadow);
  padding: 48px;
  text-align: center;
}

.guarantee-badge {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2.5rem;
}

.guarantee h2 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.guarantee p {
  font-family: var(--font-body);
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* === Testimonials (speech bubble ready; content added in Section 4) === */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px 24px;
}

.testimonial-card {
  background: var(--color-white);
  border: var(--comic-border);
  border-radius: 0;
  box-shadow: var(--comic-shadow);
  padding: 28px;
}

.stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.stars span {
  font-size: 1.2rem;
  color: var(--color-yellow);
}

.testimonial-text {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.7;
}

.testimonial-author {
  font-family: var(--font-subhead);
  font-size: 0.9rem;
  color: var(--color-dark);
}

.testimonial-location {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* === Service Areas === */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.area-card {
  background: var(--color-white);
  border: var(--comic-border);
  border-radius: 0;
  box-shadow: var(--comic-shadow-sm);
  padding: 20px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.area-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--color-black);
}

.area-card h4 {
  margin-bottom: 4px;
}

.area-card p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0;
}

/* === FAQ === */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-black);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-family: var(--font-subhead);
  font-size: 1.02rem;
  color: var(--color-dark);
  user-select: none;
  list-style: none;
}

.faq-question::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-red);
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 0 0 0;
  color: var(--color-muted);
  font-family: var(--font-body);
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

/* === CTA Section === */
.cta-section {
  background: var(--color-navy);
  color: var(--color-white);
  text-align: center;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: 0.08;
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.cta-section p {
  font-family: var(--font-body);
  opacity: 0.9;
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.cta-section .btn {
  font-size: 1.05rem;
}

.cta-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--color-white);
  font-family: var(--font-subhead);
  font-size: 1.3rem;
  margin-top: 1.5rem;
}

.cta-phone:hover { color: var(--color-white); opacity: 0.9; }

/* === Footer === */
.site-footer {
  background: var(--color-footer);
  color: var(--color-footer-text);
  padding: 56px 0 24px;
  border-top: var(--comic-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: var(--color-white);
  margin-bottom: 12px;
}

.footer-brand .logo:hover { color: var(--color-white); }

.footer-brand p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h5 {
  color: var(--color-white);
  font-family: var(--font-subhead);
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--color-footer-text);
  font-family: var(--font-body);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* === Page Header (subpages) === */
.page-header {
  margin-top: var(--header-height);
  background: var(--color-black);
  border-bottom: var(--comic-border);
  color: var(--color-white);
  padding: 56px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.page-header p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

/* === Content Page === */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}

.content-page h1 {
  margin-bottom: 1rem;
}

.content-page h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-page p {
  font-family: var(--font-body);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.content-page ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.content-page ul li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.service-feature {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding: 24px;
  background: var(--color-white);
  border: var(--comic-border);
  border-radius: 0;
  box-shadow: var(--comic-shadow-sm);
}

.section-dark .service-feature {
  background: var(--color-white);
  color: var(--color-text);
}

/* Bold dark treatment (individual service pages): fewer comic borders per
   HANDOFF.md Section 3 -- thinner border, no offset hard shadow. */
.theme-dark .service-feature {
  border: 1.5px solid var(--color-black);
  box-shadow: none;
}

.service-feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.service-feature h4 {
  margin-bottom: 4px;
}

.service-feature p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-muted);
  margin: 0;
}

/* === Contact Form === */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 24px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-black);
  border-radius: 0;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-navy);
}

.form-success {
  display: none;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.form-success.show {
  display: block;
}

.form-error {
  display: none;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.form-error.show {
  display: block;
}

/* === Video embed (Pest Heroes Pete YouTube videos) === */
.video-embed {
  max-width: 800px;
  margin: 0 auto 32px;
}

.video-embed-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-black);
  border: var(--comic-border);
  box-shadow: var(--comic-shadow);
}

.theme-dark .video-embed-frame {
  border: 1.5px solid var(--color-black);
  box-shadow: none;
}

/* 16:9 landscape (long-form videos) */
.video-embed-frame.ratio-16x9 {
  aspect-ratio: 16 / 9;
}

/* 9:16 portrait (Shorts) */
.video-embed-frame.ratio-9x16 {
  aspect-ratio: 9 / 16;
  max-width: 360px;
  margin: 0 auto;
}

.video-embed-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed-caption {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 10px;
}

.theme-dark .video-embed-caption {
  color: #d8d8d8;
}

.video-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 32px;
}

.video-row .video-embed {
  max-width: none;
  margin-bottom: 0;
}

/* === Responsive === */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 24px;
    border-bottom: var(--comic-border);
    box-shadow: var(--shadow-md);
    gap: 16px;
  }

  .nav.open {
    display: flex;
  }

  .nav .nav-cta {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-row .btn {
    text-align: center;
  }

  .hero-phone {
    justify-content: center;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.6rem; }

  .section {
    padding: 40px 0;
  }

  .guarantee {
    padding: 32px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .trust-bar .container {
    flex-direction: column;
    gap: 12px;
  }

  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === Print === */
@media print {
  .site-header, .cta-section, .site-footer { display: none; }
}
