/* ============================================
   Outsmart Pest Management - Main Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-maroon: #7A1B1F;
  --color-maroon-dark: #5E1417;
  --color-maroon-light: rgba(122,27,31,0.08);
  --color-charcoal: #1F2328;
  --color-charcoal-soft: #2B3138;
  --color-paper: #FBFAF8;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F4F2EF;
  --color-border: #E7E2DC;
  --color-success: #1F7A5A;
  --color-warning: #B45309;
  --color-error: #B42318;
  --color-muted: rgba(31,35,40,0.60);

  --shadow-sm: 0 1px 2px rgba(16,24,40,0.06);
  --shadow-md: 0 8px 24px rgba(16,24,40,0.10);
  --shadow-lift: 0 14px 40px rgba(16,24,40,0.14);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,0.7);

  --radius-card: 14px;
  --radius-btn: 10px;
  --radius-chip: 999px;
  --radius-input: 12px;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --dur-fast: 160ms;
  --dur-base: 220ms;
  --dur-slow: 320ms;

  --font-heading: 'Spectral', Georgia, serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --container-max: 1120px;
  --container-px: 16px;
}

@media (min-width: 640px) {
  :root {
    --container-px: 24px;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-charcoal);
  background-color: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

a:focus-visible {
  outline: 3px solid rgba(122,27,31,0.35);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-charcoal);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.25rem; }

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

/* --- Section --- */
.section {
  padding: 56px 0;
}

@media (min-width: 768px) {
  .section { padding: 80px 0; }
}

.section--alt {
  background-color: var(--color-surface-alt);
}

.section--dark {
  background-color: var(--color-charcoal);
  color: #fff;
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header p {
  color: var(--color-muted);
  max-width: 640px;
  margin: 12px auto 0;
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-maroon);
  margin-bottom: 8px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-btn);
  padding: 0 18px;
  height: 46px;
  transition: background-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-maroon);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background-color: var(--color-maroon-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: #fff;
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn--secondary {
  background-color: var(--color-surface);
  color: var(--color-charcoal);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  background-color: var(--color-paper);
  border-color: #D9D2CA;
  transform: translateY(-1px);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-maroon);
}

.btn--ghost:hover {
  background-color: var(--color-maroon-light);
}

.btn--lg {
  height: 52px;
  padding: 0 22px;
  font-size: 1rem;
}

.btn--sm {
  height: 40px;
  padding: 0 14px;
  font-size: 0.875rem;
}

.btn--phone {
  background-color: var(--color-maroon);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.btn--phone:hover {
  background-color: var(--color-maroon-dark);
  color: #fff;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--dur-base) var(--ease-out);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

/* Row 1: Reviews bar */
.header-reviews-bar {
  background-color: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 6px 0;
}

.header-reviews-bar > .container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-reviews-bar .header-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--color-charcoal);
  font-weight: 500;
}

.header-reviews-bar .header-rating img {
  height: 14px;
  width: auto;
}

.header-login-link {
  position: absolute;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-maroon);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.header-login-link:hover {
  color: var(--color-maroon-dark);
}

@media (max-width: 639px) {
  .header-login-link span { display: none; }
}

/* Row 2: Logo + Nav + Phone + Hamburger */
.header-main {
  padding: 0;
}

.header-main > .container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0;
  max-width: 1400px;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-left: 0;
}

.header-logo img {
  width: 200px;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 0;
}

.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  cursor: pointer;
  color: var(--color-charcoal);
  transition: background-color var(--dur-fast) var(--ease-out);
}

.hamburger-btn:hover {
  background-color: var(--color-surface-alt);
}

.hamburger-btn svg {
  width: 22px;
  height: 22px;
}

@media (min-width: 1024px) {
  .hamburger-btn { display: none; }
}

/* Desktop Nav - inline in Row 2 */
.desktop-nav {
  display: none;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex: 1 1 auto;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .desktop-nav { display: flex !important; flex-direction: row !important; }
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  padding: 14px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-charcoal);
  transition: color var(--dur-fast), background-color var(--dur-fast);
  position: relative;
  white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--color-maroon);
  background-color: var(--color-maroon-light);
}

.desktop-nav .nav-dropdown {
  position: relative;
}

.desktop-nav .nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  z-index: 50;
}

.desktop-nav .nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.desktop-nav .nav-dropdown-menu a {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Hide phone button on mobile, show on sm+ */
@media (max-width: 639px) {
  .header-actions .btn--phone { display: none; }
}

/* --- Mobile Menu --- */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(31,35,40,0.5);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out),
              visibility var(--dur-base);
}

.mobile-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  height: 100dvh;
  background-color: var(--color-surface);
  z-index: 210;
  transform: translateX(100%);
  transition: transform 260ms var(--ease-out);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 30px rgba(0,0,0,0.1);
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu-header img {
  width: 48px;
  height: auto;
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  cursor: pointer;
  color: var(--color-charcoal);
  transition: background-color var(--dur-fast);
}

.mobile-menu-close:hover {
  background-color: var(--color-surface-alt);
}

.mobile-menu-nav {
  flex: 1;
  padding: 12px 0;
}

.mobile-menu-nav a {
  display: block;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-charcoal);
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--dur-fast), color var(--dur-fast);
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
  color: var(--color-maroon);
  background-color: var(--color-maroon-light);
}

.mobile-menu-nav .sub-link {
  padding-left: 36px;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.mobile-menu-nav .sub-link:hover {
  color: var(--color-maroon);
}

.mobile-menu-footer {
  padding: 20px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.mobile-menu-footer .btn {
  width: 100%;
  margin-bottom: 12px;
}

.mobile-menu-footer .hours-small {
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.5;
}

@media (min-width: 1024px) {
  .mobile-backdrop, .mobile-menu { display: none !important; }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(122,27,31,0.06) 0%, rgba(251,250,248,0.95) 50%, rgba(31,35,40,0.04) 100%);
  padding: 60px 0 50px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero { padding: 80px 0 70px; }
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .hero .container {
    flex-direction: row;
    text-align: left;
    gap: 40px;
  }
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content .section-label {
  margin-bottom: 12px;
}

.hero-content h1 {
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-buttons { justify-content: flex-start; }
}

.hero-image {
  flex: 0 0 auto;
  max-width: 380px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .hero-image { margin-top: 0; }
}

/* --- Feature Cards --- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card hr {
  border: none;
  height: 2px;
  background: var(--color-maroon);
  width: 40px;
  margin: 10px auto;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0;
}

/* --- Services List --- */
.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .services-list { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .services-list { grid-template-columns: repeat(4, 1fr); }
}

.service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  font-weight: 500;
  font-size: 0.9rem;
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}

.service-item:hover {
  border-color: var(--color-maroon);
  background-color: var(--color-maroon-light);
}

.service-item .check {
  color: var(--color-maroon);
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* --- CTA Band --- */
.cta-band {
  background-color: var(--color-charcoal);
  padding: 50px 0;
  text-align: center;
  color: #fff;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin: 0 auto 24px;
  font-size: 1.05rem;
}

.cta-band .btn--primary {
  background-color: #fff;
  color: var(--color-maroon);
}

.cta-band .btn--primary:hover {
  background-color: var(--color-paper);
  color: var(--color-maroon-dark);
}

.cta-band .btn--secondary {
  background-color: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.cta-band .btn--secondary:hover {
  background-color: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

/* --- Reviews --- */
.reviews-section {
  background-color: var(--color-surface-alt);
}

.reviews-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  justify-content: center;
}

.reviews-header img {
  height: 40px;
  width: auto;
}

.reviews-carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  transition: transform 400ms var(--ease-out);
}

.review-card {
  flex: 0 0 100%;
  padding: 0 10px;
}

@media (min-width: 768px) {
  .review-card { flex: 0 0 50%; }
}

@media (min-width: 1024px) {
  .review-card { flex: 0 0 33.333%; }
}

.review-card-inner {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.review-card-inner .stars {
  color: #FFC107;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.review-card-inner blockquote {
  flex: 1;
  font-size: 0.95rem;
  color: var(--color-charcoal-soft);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.6;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.review-author span {
  font-weight: 600;
  font-size: 0.9rem;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-charcoal);
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}

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

.carousel-dots {
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: background-color var(--dur-fast);
  padding: 0;
}

.carousel-dot.active {
  background-color: var(--color-maroon);
  width: 24px;
  border-radius: 4px;
}

/* --- Guarantee Badge --- */
.guarantee-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  max-width: 600px;
  margin: 30px auto;
}

.guarantee-badge img {
  width: 70px;
  height: auto;
  flex-shrink: 0;
}

.guarantee-badge p {
  margin: 0;
  font-size: 0.95rem;
}

/* --- Service Page Hero --- */
.service-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 80px 0 60px;
  color: #fff;
}

.service-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31,35,40,0.85) 0%, rgba(122,27,31,0.7) 100%);
}

.service-hero .container {
  position: relative;
  z-index: 1;
}

.service-hero h1 {
  color: #fff;
  margin-bottom: 16px;
}

.service-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 650px;
}

/* --- Service Content --- */
.service-content {
  padding: 60px 0;
}

.service-content h2 {
  margin-bottom: 20px;
}

.service-content p {
  max-width: 800px;
  color: var(--color-charcoal-soft);
}

.service-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 768px) {
  .service-two-col { grid-template-columns: 1fr 1fr; }
}

.trap-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.trap-types li {
  list-style: none;
  padding: 12px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  font-weight: 500;
  font-size: 0.9rem;
}

/* --- Treatment Plans --- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .plans-grid { grid-template-columns: repeat(3, 1fr); }
}

.plan-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.plan-item:hover {
  border-color: var(--color-maroon);
  box-shadow: var(--shadow-md);
}

/* --- Contact Form --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .contact-layout { grid-template-columns: 1fr 1fr; }
}

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  background: var(--color-surface);
  color: var(--color-charcoal);
  height: 44px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.form-group textarea {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-maroon);
  box-shadow: 0 0 0 3px rgba(122,27,31,0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(180,35,24,0.1);
}

.form-error {
  color: var(--color-error);
  font-size: 0.8rem;
  margin-top: 4px;
}

.form-success-msg {
  background-color: rgba(31,122,90,0.08);
  border: 1px solid rgba(31,122,90,0.2);
  color: var(--color-success);
  border-radius: var(--radius-btn);
  padding: 16px;
  text-align: center;
  font-weight: 500;
  margin-bottom: 16px;
}

.form-error-msg {
  background-color: rgba(180,35,24,0.06);
  border: 1px solid rgba(180,35,24,0.18);
  color: var(--color-error);
  border-radius: var(--radius-btn);
  padding: 16px;
  text-align: center;
  font-weight: 500;
  margin-bottom: 16px;
}

/* Honeypot - hidden from users */
.ohnohoney {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* --- Slide Puzzle CAPTCHA --- */
.captcha-wrapper {
  margin-bottom: 20px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
}

.captcha-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-charcoal);
}

.captcha-image-container {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.captcha-image-container canvas {
  width: 100%;
  display: block;
}

.captcha-slider-track {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 44px;
  margin: 12px auto 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  overflow: hidden;
}

.captcha-slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--color-maroon-light);
  border-radius: 22px 0 0 22px;
  transition: none;
}

.captcha-slider-thumb {
  position: absolute;
  top: 2px;
  left: 0;
  width: 40px;
  height: 40px;
  background: var(--color-maroon);
  border-radius: 50%;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: var(--shadow-sm);
}

.captcha-slider-thumb:active {
  cursor: grabbing;
}

.captcha-slider-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--color-muted);
  pointer-events: none;
}

.captcha-status {
  text-align: center;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}

.captcha-status.success {
  color: var(--color-success);
}

.captcha-status.error {
  color: var(--color-error);
}

.captcha-actions {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* --- Contact Info Panel --- */
.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.contact-info-item .icon {
  flex-shrink: 0;
  width: 20px;
  color: var(--color-maroon);
  margin-top: 2px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 6px 0;
  font-size: 0.9rem;
}

.hours-table td:first-child {
  font-weight: 600;
  width: 40%;
}

/* --- Service Area --- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .area-grid { grid-template-columns: repeat(4, 1fr); }
}

.area-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base), transform var(--dur-base), border-color var(--dur-base);
  text-decoration: none;
  color: var(--color-charcoal);
  display: block;
}

.area-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-maroon);
  color: var(--color-maroon);
}

.area-card .icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--color-maroon);
}

.area-card h3 {
  font-size: 1rem;
  margin-bottom: 0;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-charcoal);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 0;
}

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

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.footer-brand img {
  width: 80px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  transition: background-color var(--dur-fast);
}

.footer-social a:hover {
  background: var(--color-maroon);
  color: #fff;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  padding: 4px 0;
  transition: color var(--dur-fast);
}

.footer-col a:hover {
  color: #fff;
}

.footer-hours td {
  font-size: 0.85rem;
  padding: 4px 0;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
}

.footer-hours td:first-child {
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding-right: 16px;
}

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

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

.footer-bottom a:hover {
  color: #fff;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 12px 0;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.breadcrumbs a {
  color: var(--color-muted);
}

.breadcrumbs a:hover {
  color: var(--color-maroon);
}

.breadcrumbs span {
  margin: 0 6px;
}

/* --- Privacy Policy --- */
.prose {
  max-width: 750px;
}

.prose h2 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.prose h3 {
  margin-top: 24px;
  margin-bottom: 8px;
}

.prose ul {
  margin-bottom: 16px;
}

.prose li {
  margin-bottom: 6px;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- HTML Sitemap --- */
.sitemap-list {
  list-style: none;
  padding: 0;
}

.sitemap-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.sitemap-list li a {
  font-weight: 500;
}

.sitemap-list .sub-list {
  padding-left: 24px;
  padding-top: 4px;
}

.sitemap-list .sub-list li {
  border-bottom: none;
  padding: 4px 0;
}

/* --- Why Choose Us --- */
.why-us-list {
  list-style: none;
  padding: 0;
}

.why-us-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.why-us-list li:last-child {
  border-bottom: none;
}

.why-us-list .check-icon {
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 1.2rem;
}

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

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--color-surface);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-charcoal);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-question:hover {
  background-color: var(--color-surface-alt);
}

.faq-question .icon {
  transition: transform var(--dur-base);
}

.faq-item.is-open .faq-question .icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms var(--ease-out);
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* --- Phone Banner (Mobile) --- */
.phone-banner {
  display: block;
  background: var(--color-maroon);
  color: #fff;
  text-align: center;
  padding: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.phone-banner:hover {
  background: var(--color-maroon-dark);
  color: #fff;
}

@media (min-width: 640px) {
  .phone-banner { display: none; }
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-maroon { color: var(--color-maroon); }
.text-muted { color: var(--color-muted); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
