/* ============================================================
   Oral Health First — Patient Website
   Design System & Styles
   ============================================================ */

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
  /* Brand Colors */
  --primary-navy: #192F3E;
  --primary-dark: #021a29;
  --primary-container: #192f3e;
  --secondary-teal: #479E9E;
  --secondary: #006a6a;
  --accent-teal: #46b9c4;
  --cta-green: #2ABB8B;
  --cta-green-hover: #24a87d;
  --accent-gold: #F4A125;

  /* Surfaces */
  --surface-bright: #fbf9fa;
  --surface-warm: #F3F5F6;
  --surface-blue: #F2F6F8;
  --surface-teal: #EFF5F5;
  --pale-green: #EFF5F4;
  --page-bg: #F6F7F9;
  --white: #ffffff;

  /* Text */
  --text-charcoal: #181F25;
  --text-muted: #627384;
  --on-surface: #1b1c1d;
  --on-surface-variant: #43474c;
  --on-primary: #ffffff;

  /* Borders */
  --border-subtle: #E2E6E9;
  --input-border: #E7EBEF;
  --outline: #73777c;
  --outline-variant: #c3c7cc;

  /* Spacing */
  --container-max: 1200px;
  --gutter: 24px;
  --margin-mobile: 16px;
  --stack-xs: 8px;
  --stack-sm: 16px;
  --stack-md: 24px;
  --stack-lg: 48px;
  --stack-xl: 96px;

  /* Radii */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(25, 47, 62, 0.06);
  --shadow-md: 0 4px 12px rgba(25, 47, 62, 0.08);
  --shadow-lg: 0 4px 40px rgba(25, 47, 62, 0.12);
  --shadow-cta: 0 8px 24px rgba(42, 187, 139, 0.2);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-surface);
  background-color: var(--surface-bright);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
  border: none;
  outline: none;
}

ul, ol {
  list-style: none;
}

/* ---------- Utility Classes ---------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.font-titillium {
  font-family: 'Titillium Web', sans-serif;
}

.text-display-hero {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-headline-lg {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
}

.text-headline-md {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.text-body-lg {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.text-body-md {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.text-label-md {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.text-button {
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

/* ---------- Material Symbols ---------- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
}

/* ============================================================
   COMPONENTS
   ============================================================ */

/* ---------- Top Navigation Bar ---------- */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth), backdrop-filter var(--transition-smooth);
}

.top-nav.scrolled {
  background: rgba(251, 249, 250, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border-subtle);
}

.top-nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem var(--gutter);
  max-width: var(--container-max);
  margin-inline: auto;
}

.top-nav__logo img {
  height: 6rem;
  object-fit: contain;
}

.top-nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.top-nav__link {
  color: var(--text-charcoal);
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease, background 0.3s ease;
  position: relative;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
}

.top-nav__link:hover {
  color: var(--on-primary);
  background: var(--accent-teal);
}

.top-nav__link--active {
  color: var(--text-charcoal);
  font-weight: 700;
}

.top-nav__cta {
  background: var(--cta-green);
  color: var(--on-primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 16px;
  transition: opacity var(--transition-normal), transform var(--transition-fast);
  white-space: nowrap;
}

.top-nav__cta:hover {
  opacity: 0.9;
}

.top-nav__cta:active {
  transform: scale(0.95);
}

/* Mobile hamburger */
.top-nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
}

.top-nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--on-primary);
  border-radius: 2px;
  transition: transform var(--transition-smooth), opacity var(--transition-fast), background var(--transition-smooth);
}

.top-nav.scrolled .top-nav__hamburger span {
  background: var(--text-charcoal);
}

.top-nav__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.top-nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.top-nav__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(251, 249, 250, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-navy);
  transition: color var(--transition-normal);
}

.mobile-nav__link:hover {
  color: var(--secondary-teal);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--transition-fast), opacity var(--transition-normal), background var(--transition-normal), box-shadow var(--transition-normal);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.95);
}

.btn--primary {
  background: var(--cta-green);
  color: var(--on-primary);
  padding: 1rem 2rem;
  box-shadow: var(--shadow-cta);
}

.btn--primary:hover {
  background: var(--cta-green-hover);
  transform: scale(1.02);
}

.btn--secondary {
  background: var(--accent-teal);
  color: var(--on-primary);
  padding: 1rem 2rem;
  border: 2px solid var(--accent-teal);
  box-shadow: 0 4px 16px rgba(70, 185, 196, 0.25);
}

.btn--secondary:hover {
  background: #3da8b3;
  border-color: #3da8b3;
  transform: scale(1.02);
}

.btn--dark {
  background: var(--primary-dark);
  color: var(--on-primary);
  padding: 1rem 2.5rem;
  box-shadow: var(--shadow-md);
}

.btn--dark:hover {
  background: var(--primary-container);
}

/* ---------- Trust Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239, 245, 244, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(71, 158, 158, 0.1);
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
  white-space: nowrap;
}

.chip__icon {
  font-size: 16px;
  color: var(--secondary-teal);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 140px; /* account for fixed nav + logo height */
  padding-bottom: 30px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img,
.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: opacity 0.8s ease-in-out;
}

.hero__video--fading {
  opacity: 0.3;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(251, 249, 250, 0.96) 0%,
    rgba(251, 249, 250, 0.85) 35%,
    rgba(251, 249, 250, 0.4) 65%,
    rgba(251, 249, 250, 0) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 10;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--stack-lg);
  align-items: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--stack-sm);
  max-width: 640px;
}

.hero__eyebrow {
  color: var(--section-eyebrow-color, var(--secondary));
  font-size: var(--section-eyebrow-size, 14px);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__title {
  font-family: 'Titillium Web', sans-serif;
  color: var(--section-heading-color, var(--primary-navy));
  font-size: var(--section-heading-size, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hero__subtitle {
  color: var(--section-body-color, var(--text-charcoal));
  font-size: var(--section-body-size, 18px);
  line-height: 1.6;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: var(--stack-sm);
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--stack-md);
}

/* ---------- Search Module ---------- */
.search-module {
  margin-top: var(--stack-lg);
  margin-bottom: var(--stack-lg);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition-smooth);
}

.search-module:focus-within {
  box-shadow: var(--shadow-lg), 0 0 0 3px rgba(71, 158, 158, 0.15);
}

.search-module__accent {
  display: none;
}

.search-module__title {
  color: var(--primary-dark);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.search-module__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-module__input-wrap {
  position: relative;
  flex-grow: 1;
}

.search-module__input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--outline);
  font-size: 24px;
  pointer-events: none;
}

.search-module__input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border-radius: 32px;
  border: 1px solid var(--input-border);
  background: var(--surface-bright);
  font-size: 16px;
  color: var(--text-charcoal);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.search-module__input::placeholder {
  color: var(--outline);
}

.search-module__input:focus {
  border-color: var(--secondary-teal);
  box-shadow: 0 0 0 3px rgba(71, 158, 158, 0.12);
}

.search-module__submit {
  background: var(--primary-dark);
  color: var(--on-primary);
  padding: 1rem 2.5rem;
  border-radius: 32px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background var(--transition-normal);
  border: none;
}

.search-module__submit:hover {
  background: var(--primary-container);
}

.search-module__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.search-module__filter-label {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  margin-right: 0.5rem;
}

.filter-btn {
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--outline-variant);
  background: rgba(255, 255, 255, 0.5);
  color: var(--on-surface-variant);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

.filter-btn:hover {
  background: rgba(71, 158, 158, 0.1);
  border-color: var(--secondary-teal);
}

/* ============================================================
   THE PROCESS SECTION
   ============================================================ */
.process {
  background: var(--white);
  padding: var(--stack-xl) 0;
}

.process__header {
  text-align: center;
  margin-bottom: 4rem;
}

.process__eyebrow {
  color: var(--section-eyebrow-color, var(--secondary-teal));
  font-size: var(--section-eyebrow-size, 14px);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.process__title {
  font-family: 'Titillium Web', sans-serif;
  color: var(--section-heading-color, var(--primary-navy));
  font-size: var(--section-heading-size, 40px);
  font-weight: 700;
  line-height: 1.2;
}

.process__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.process-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.process-card__icon-wrap {
  width: 80px;
  height: 80px;
  background: var(--pale-green);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  border: 1px solid rgba(71, 158, 158, 0.1);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.process-card:hover .process-card__icon-wrap {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(71, 158, 158, 0.15);
}

.process-card__icon {
  font-size: 36px;
  color: var(--secondary-teal);
}

.process-card__title {
  color: var(--primary-navy);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.process-card__text {
  color: var(--section-body-color, var(--on-surface-variant));
  font-size: var(--section-body-size, 16px);
  line-height: 1.6;
  max-width: 320px;
}

/* ============================================================
   BENEFITS SECTION
   ============================================================ */
.benefits {
  background: var(--surface-warm);
  padding: var(--stack-xl) 0;
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.benefits__image-wrap {
  position: relative;
}

.benefits__image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(25, 47, 62, 0.15);
}

.benefits__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.benefits__image-glow {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 6rem;
  height: 6rem;
  background: rgba(71, 158, 158, 0.1);
  border-radius: 50%;
  z-index: -1;
  filter: blur(32px);
}

.benefits__content {
  display: flex;
  flex-direction: column;
  gap: var(--stack-md);
}

.benefits__eyebrow {
  color: var(--section-eyebrow-color, var(--secondary-teal));
  font-size: var(--section-eyebrow-size, 14px);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
}

.benefits__title {
  font-family: 'Titillium Web', sans-serif;
  color: var(--section-heading-color, var(--primary-navy));
  font-size: var(--section-heading-size, 36px);
  font-weight: 700;
  line-height: 1.15;
}

.benefits__description {
  color: var(--section-body-color, var(--on-surface-variant));
  font-size: var(--section-body-size, 18px);
  line-height: 1.6;
}

/* Benefit items */
.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.benefit-item__icon-wrap {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(71, 158, 158, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.benefit-item__icon {
  font-size: 18px;
  color: var(--secondary-teal);
}

.benefit-item__text {
  color: var(--text-charcoal);
  font-size: 16px;
  line-height: 1.5;
}

.benefit-item__text strong {
  font-weight: 600;
}

/* ============================================================
   TRUST & SUPPORT SECTION
   ============================================================ */
.trust {
  background: #ffffff;
  padding: 96px 0;
  position: relative;
}

.trust::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--border-subtle) 20%,
    var(--border-subtle) 80%,
    transparent 100%
  );
}

/* Centered header */
.trust__eyebrow {
  color: var(--section-eyebrow-color, var(--secondary-teal));
  font-size: var(--section-eyebrow-size, 13px);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
}

.trust__title {
  font-family: 'Titillium Web', sans-serif;
  color: var(--section-heading-color, var(--primary-navy));
  font-size: var(--section-heading-size, 32px);
  font-weight: 700;
  line-height: 1.2;
}

.trust__supporting {
  color: var(--on-surface-variant);
  font-size: 17px;
  line-height: 1.6;
}

.trust__header {
  text-align: center;
  margin-bottom: 3rem;
}

.trust__header .trust__eyebrow {
  margin-bottom: 0.75rem;
}

.trust__header .trust__title {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.trust__header .trust__supporting {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.75rem;
}

/* Two-column card grid */
.trust__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .trust__cards {
    grid-template-columns: 1fr;
  }
}

/* Individual card */
.trust__card {
  background: #f0f7f7;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 2px 20px rgba(25, 47, 62, 0.06);
  border: 1px solid rgba(71, 158, 158, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.trust__card:hover {
  box-shadow: 0 6px 24px rgba(25, 47, 62, 0.08);
  transform: translateY(-2px);
}

/* Group header: icon + title */
.trust__group-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.trust__group-icon-wrap {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(71, 158, 158, 0.12), rgba(70, 185, 196, 0.12));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust__group-icon {
  font-size: 24px;
  color: var(--secondary-teal);
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.trust__group-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--primary-navy);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

/* Group body text */
.trust__group-text {
  color: var(--section-body-color, var(--on-surface-variant));
  font-size: var(--section-body-size, 15.5px);
  line-height: 1.75;
}

.trust__group-text + .trust__group-text {
  margin-top: 0.875rem;
}

/* Emphasis highlight */
.trust__emphasis {
  color: var(--primary-navy);
  font-weight: 600;
  background: linear-gradient(180deg, transparent 60%, rgba(71, 158, 158, 0.12) 60%);
  padding: 0 2px;
  border-radius: 2px;
}

/* Bullet list inside trust cards */
.trust__group-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trust__group-list li {
  color: var(--on-surface-variant);
  font-size: 15.5px;
  line-height: 1.6;
  padding-left: 1.5rem;
  position: relative;
}

.trust__group-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-teal), var(--accent-teal));
}

/* ============================================================
   DISCLAIMER
   ============================================================ */
.disclaimer {
  padding: 2rem 0;
  text-align: center;
  background: #ffffff;
}

.disclaimer__text {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  font-style: italic;
}

/* ============================================================
   STATE SELECT DROPDOWN
   ============================================================ */
.search-module__state-select {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-charcoal);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.search-module__state-select:focus {
  outline: 2px solid var(--accent-teal);
  outline-offset: 1px;
}

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-results {
  background: var(--surface-warm);
  padding: var(--stack-xl) 0;
  animation: resultsSlideIn 0.5s ease forwards;
}

@keyframes resultsSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-results__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.search-results__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--primary-navy);
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-results__icon {
  font-size: 28px;
  color: var(--accent-teal);
}

.search-results__count {
  color: var(--on-surface-variant);
  font-size: 15px;
}

/* Results grid */
.search-results__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* Individual result card */
.result-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.result-card__name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--primary-navy);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.result-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.result-card__detail {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--on-surface-variant);
  font-size: 15px;
  line-height: 1.4;
}

.result-card__detail .material-symbols-outlined {
  font-size: 18px;
  color: var(--accent-teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.result-card__detail a {
  color: var(--on-surface-variant);
  transition: color 0.2s ease;
}

.result-card__detail a:hover {
  color: var(--accent-teal);
}

.result-card__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.result-card__directions {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--accent-teal);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  transition: background 0.2s ease, transform 0.2s ease;
}

.result-card__directions:hover {
  background: var(--secondary-teal);
  transform: scale(1.03);
}

.result-card__directions .material-symbols-outlined {
  font-size: 18px;
}

.result-card__call {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: transparent;
  color: var(--accent-teal);
  font-size: 14px;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--accent-teal);
  transition: background 0.2s ease, color 0.2s ease;
}

.result-card__call:hover {
  background: var(--accent-teal);
  color: var(--on-primary);
}

.result-card__call .material-symbols-outlined {
  font-size: 18px;
}

/* State badge on card */
.result-card__state {
  display: inline-flex;
  align-items: center;
  background: rgba(70, 185, 196, 0.1);
  color: var(--secondary-teal);
  font-size: 12px;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  width: fit-content;
}

/* Empty / no results state */
.search-results__empty {
  text-align: center;
  padding: 3rem 1rem;
}

.search-results__empty-icon {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.search-results__empty h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--primary-navy);
  font-size: 22px;
  margin-bottom: 0.5rem;
}

.search-results__empty p {
  color: var(--on-surface-variant);
  font-size: 15px;
}

/* Distance badge on cards */
.result-card__distance {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, rgba(70, 185, 196, 0.12), rgba(70, 185, 196, 0.06));
  color: var(--secondary-teal);
  font-size: 13px;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  margin-top: 0.5rem;
}

.result-card__distance .material-symbols-outlined {
  font-size: 16px;
}

.result-card__badges {
  margin-top: 0.35rem;
}

/* Loading spinner */
.search-results__loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 1rem;
}

.search-results__loading p {
  color: var(--on-surface-variant);
  font-size: 15px;
}

.search-results__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ============================================================
   LEGAL PAGES (Privacy, Terms)
   ============================================================ */
.legal-hero {
  background: var(--primary-navy);
  padding: 7rem 0 3rem;
  text-align: center;
}

.legal-hero__title {
  font-family: 'Titillium Web', sans-serif;
  color: var(--on-primary);
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.legal-hero__date {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

.legal-content {
  background: var(--white);
  padding: var(--stack-xl) 0;
}

.legal-content__inner {
  max-width: 780px;
  margin-inline: auto;
}

.legal-content h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--primary-navy);
  font-size: 22px;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--on-surface-variant);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  color: var(--on-surface-variant);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  list-style: disc;
}

.legal-content a {
  color: var(--accent-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--secondary-teal);
}

.legal-content strong {
  font-weight: 600;
  color: var(--text-charcoal);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--primary-navy);
  padding: 3.5rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brand column */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer__logo {
  height: 3.5rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer__tagline {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}

/* Column headings */
.footer__heading {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* Nav columns */
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__nav-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  transition: color 0.2s ease;
}

.footer__nav-link:hover {
  color: var(--accent-teal);
}

/* Get in touch */
.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__contact-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer__contact-icon .material-symbols-outlined {
  font-size: 18px;
  color: var(--accent-teal);
}

.footer__contact-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  transition: color 0.2s ease;
}

.footer__contact-link:hover {
  color: var(--accent-teal);
}

/* Bottom bar */
.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 0;
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}

.footer__built {
  color: rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-style: italic;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Extra-small phones (320px–374px) --- */
@media (max-width: 374px) {
  :root {
    --gutter: 12px;
  }

  .hero__title {
    font-size: var(--section-heading-size, 28px);
  }

  .hero__subtitle {
    font-size: var(--section-body-size, 15px);
  }

  .search-module {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .search-module__title {
    font-size: 18px;
    margin-bottom: 1rem;
  }

  .search-module__input {
    padding: 0.875rem 0.875rem 0.875rem 2.75rem;
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  .search-module__submit {
    padding: 0.875rem 1.5rem;
    font-size: 15px;
  }

  .process__title {
    font-size: 24px;
  }

  .process-card__title {
    font-size: 20px;
  }

  .benefits__title {
    font-size: 24px;
  }

  .result-card {
    padding: 1.25rem;
  }

  .result-card__name {
    font-size: 16px;
  }

  .result-card__actions {
    flex-direction: column;
  }

  .result-card__directions,
  .result-card__call {
    justify-content: center;
    width: 100%;
  }

  .footer__grid {
    gap: 2rem;
  }

  .search-results__title {
    font-size: 22px;
  }

  .top-nav__cta {
    font-size: 12px;
    padding: 0.5rem 0.875rem;
  }
}

/* --- Small phones & standard mobile (max-767px) --- */
@media (max-width: 767px) {
  :root {
    --gutter: 16px;
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 2rem;
  }

  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(251, 249, 250, 0.95) 0%,
      rgba(251, 249, 250, 0.9) 60%,
      rgba(251, 249, 250, 0.7) 100%
    );
  }

  .hero__title {
    font-size: var(--section-heading-size, 32px);
  }

  .hero__subtitle {
    font-size: var(--section-body-size, 16px);
  }

  .hero__chips {
    flex-wrap: wrap;
  }

  .search-module {
    padding: 1.5rem;
  }

  .search-module__title {
    font-size: 20px;
  }

  /* Stack search form vertically on mobile */
  .search-module__form {
    flex-direction: column;
  }

  /* Ensure input text is 16px+ to prevent iOS auto-zoom */
  .search-module__input {
    font-size: 16px;
  }

  .search-module__filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-module__state-select {
    width: 100%;
  }

  .process__title {
    font-size: 28px;
  }

  .process__grid {
    gap: 2rem;
  }

  .benefits__title {
    font-size: 28px;
  }

  .benefits__description {
    font-size: 16px;
  }

  /* Stack result card actions on smaller screens */
  .result-card__actions {
    flex-wrap: wrap;
  }

  .search-results__title {
    font-size: 24px;
  }

  /* Footer: stack everything */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Ensure buttons have good touch targets (min 44px) */
  .btn {
    min-height: 44px;
  }

  .top-nav__logo img {
    height: 4rem;
  }

  .top-nav__cta {
    font-size: 13px;
    padding: 0.5rem 1rem;
  }

  .trust__title {
    font-size: 26px;
  }

  .trust {
    padding: var(--stack-lg) 0;
  }

  .trust__group {
    padding: 1.5rem;
  }

  .trust__group-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .trust__group-icon {
    font-size: 20px;
  }

  .trust__group-title {
    font-size: 18px;
  }

  .trust__supporting {
    font-size: 15px;
  }
}

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  .top-nav__links {
    display: flex;
  }

  .top-nav__hamburger {
    display: none;
  }

  .top-nav__logo img {
    height: 5rem;
  }

  .hero__title {
    font-size: var(--section-heading-size, 44px);
  }

  .search-module__form {
    flex-direction: row;
  }

  .process__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .process__title {
    font-size: 40px;
  }

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

  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* --- Small Desktop (1024px+) --- */
@media (min-width: 1024px) {
  .top-nav__logo img {
    height: 6rem;
  }

  .hero {
    padding-top: 140px;
  }

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

  .hero__title {
    font-size: var(--section-heading-size, 48px);
  }

  .hero__overlay {
    background: linear-gradient(
      90deg,
      rgba(251, 249, 250, 0.96) 0%,
      rgba(251, 249, 250, 0.88) 40%,
      rgba(251, 249, 250, 0.3) 70%,
      rgba(251, 249, 250, 0) 100%
    );
  }

  .search-results__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .benefits__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .benefits__content {
    padding-left: 2rem;
  }

  .benefits__title {
    font-size: var(--section-heading-size, 44px);
  }

  .benefits__image img {
    aspect-ratio: 4 / 5;
  }

  .process__grid {
    gap: 3rem;
  }

  .trust__layout {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
    align-items: start;
  }

  .trust__headline-col {
    position: sticky;
    top: 160px;
  }

  .trust__title {
    font-size: var(--section-heading-size, 36px);
  }
}

/* --- Large Desktop (1280px+) --- */
@media (min-width: 1280px) {
  .hero__title {
    font-size: var(--section-heading-size, 56px);
  }

  .process__title {
    font-size: var(--section-heading-size, 48px);
  }
}

/* --- Extra-large screens & high-res (1440px+) --- */
@media (min-width: 1440px) {
  .hero__title {
    font-size: var(--section-heading-size, 60px);
  }

  .hero__subtitle {
    font-size: var(--section-body-size, 20px);
  }

  .container {
    max-width: 1320px;
  }
}

/* --- Accessibility: respect user zoom / large text --- */
@media (min-resolution: 1dppx) {
  /* Ensure minimum touch targets on all devices */
  .btn,
  .search-module__submit,
  .filter-btn,
  .result-card__directions,
  .result-card__call {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
