/* ============================================================
   Self-hosted webfonts — no external requests are made by this
   site. Both families are variable, so one file per subset covers
   the whole weight range.

   Quicksand  — geometric sans with rounded terminals (display)
   Nunito     — rounded humanist sans, high legibility (body)
   ============================================================ */

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url('../fonts/quicksand-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url('../fonts/quicksand-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: block;
  src: url('../fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: block;
  src: url('../fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/**
 * NJ Foot & Ankle Care - Design System
 * 
 * Class Vocabulary:
 * - .container: max-width 1120px centered wrapper
 * - .section: generous vertical padding for content blocks
 * - .page-hero: compact interior page banner
 * - .prose: long-form text styling (articles, legal)
 * - .btn, .btn-primary, .btn-secondary, .btn-outline: buttons
 * - .text-center, .text-display, .text-body: typography utilities
 * - .grid-2, .grid-3, .grid-4: basic responsive grids
 * - .modal, .modal-open, .modal-close: dialog system
 */

:root {
  /* Greens carry the brand; every value is softened from the original
     high-saturation set while staying above 4.5:1 on white. */
  --color-primary: #1F7A54;
  --color-primary-dark: #165B3E;
  --color-primary-soft: #E7F2EC;
  --color-secondary: #7A5AA5;
  --color-secondary-soft: #F1ECF8;
  --color-white: #FFFFFF;
  --color-body: #3C4642;
  --color-muted: #69766F;
  --color-link: #17798F;
  --color-bg-light: #F3F8F5;
  --color-bg-warm: #FAF7F1;
  --color-bg-dark: #1E2B26;
  --color-border: #E2EDE7;
  --color-border-strong: #C7D6CF;
  --color-footer-text: #C3D0CA;
  --color-footer-muted: #A3B0AA;

  --color-error: #B94E48;
  --color-success: #1F7A54;
  --color-pending: #DFA34C;

  --font-display: 'Quicksand', 'Trebuchet MS', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;

  /* Rounded geometry to match the rounded type. */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Motion. --ease-soft is easeOutCubic: quick to start, long tail. */
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-gentle: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 220ms;
  --dur-base: 380ms;
  --dur-slow: 620ms;
  --dur-image: 900ms;

  --shadow-soft: 0 6px 24px rgba(30, 43, 38, 0.06);
  --shadow-lift: 0 16px 40px rgba(30, 43, 38, 0.12);

  --container-max: 1120px;
  --header-top-height: 64px;
  --header-nav-height: 48px;

  --spacing-section: 80px;
  --spacing-section-mobile: 48px;
}

/* ==========================================================================
   Resets & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* The site header is sticky, so an anchor target scrolled to the very top of
   the viewport ends up hidden behind it. Reserve the header's height (plus a
   little breathing room) above every in-page anchor target so the heading
   lands just below the header instead of underneath it. Honoured by both the
   native hash jump and scrollIntoView(). */
:root {
  --header-offset: var(--header-top-height);
}

@media (min-width: 1024px) {
  :root {
    --header-offset: calc(var(--header-top-height) + var(--header-nav-height));
  }
}

main [id],
main h1, main h2, main h3, main h4 {
  scroll-margin-top: calc(var(--header-offset) + 24px);
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-body);
  background-color: var(--color-white);
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 600;
  color: var(--color-body);
  letter-spacing: -0.005em;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-gentle), opacity var(--dur-fast) var(--ease-gentle);
}

a:hover {
  text-decoration: underline;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.skip-main-content {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  z-index: 9999;
  background: var(--color-white);
  color: var(--color-primary);
}

.skip-main-content:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  padding: 10px 15px;
  border: 2px solid var(--color-primary);
}

/* ==========================================================================
   Typography
   ========================================================================== */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }

.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-white { color: var(--color-white); }
.text-muted { color: var(--color-muted); }

.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 48px;
  }
}

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

.section {
  padding: var(--spacing-section-mobile) 0;
}

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

.bg-light { background-color: var(--color-bg-light); }
.bg-primary { background-color: var(--color-primary); color: var(--color-white); }
.bg-secondary { background-color: var(--color-secondary); color: var(--color-white); }

.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 30px;
}

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

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 44px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none !important;
  transition: background-color var(--dur-base) var(--ease-soft), color var(--dur-base) var(--ease-soft), box-shadow var(--dur-base) var(--ease-soft), transform var(--dur-fast) var(--ease-soft);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.btn:active {
  transform: translateY(0) scale(0.985);
  box-shadow: var(--shadow-soft);
}

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

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-secondary:hover {
  color: var(--color-white);
  background-color: #6A4C92;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-muted);
  border-color: transparent;
}
.btn-ghost:hover {
  background-color: var(--color-bg-light);
  color: var(--color-body);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  min-height: var(--header-top-height);
  max-width: var(--container-max);
  margin: 0 auto;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-lockup {
  display: none;
  height: 50px;
  width: auto;
}

.logo-mark-only {
  display: block;
  height: 40px;
  width: auto;
}

@media (min-width: 768px) {
  .logo-lockup { display: block; height: 60px; }
  .logo-mark-only { display: none; }
}

.header-ctas {
  display: none;
  gap: 10px;
  align-items: center;
}

@media (min-width: 768px) {
  .header-ctas {
    display: flex;
  }
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.mobile-menu-btn span {
  width: 100%;
  height: 3px;
  background-color: var(--color-body);
  transition: all var(--dur-base) var(--ease-soft);
  border-radius: var(--radius-md);
}

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

.header-nav {
  background-color: var(--color-primary);
  display: none;
}

@media (min-width: 1024px) {
  .header-nav {
    display: block;
  }
}

.nav-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: center;
  max-width: var(--container-max);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 0 15px;
  height: var(--header-nav-height);
  line-height: var(--header-nav-height);
  color: var(--color-white);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  transition: background-color var(--dur-base) var(--ease-gentle);
}

.nav-link:hover, .nav-link[aria-current="page"] {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Cmd Button — sits in the white header bar, so it cannot be white-on-white. */
.cmd-btn {
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  height: 40px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-gentle),
              border-color var(--dur-base) var(--ease-gentle),
              color var(--dur-base) var(--ease-gentle);
}
.cmd-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}
.cmd-btn:hover {
  background-color: #DAEAE1;
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}
.cmd-btn kbd {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.4;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-primary);
  z-index: 99;
  transform: translateX(-100%);
  transition: transform var(--dur-base) var(--ease-soft);
  padding-top: 80px;
  overflow-y: auto;
}

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

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-link {
  display: block;
  padding: 15px 20px;
  color: var(--color-white);
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-ctas {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.mobile-nav-ctas .btn {
  width: 100%;
}

.mobile-menu-btn.is-active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.mobile-menu-btn.is-active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.is-active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }


/* ==========================================================================
   Hero / Carousel
   ========================================================================== */
.hero {
  position: relative;
  min-height: 74vh;
  background-color: var(--color-primary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-items {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.8s var(--ease-gentle);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-cloak {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-body);
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74vh;
}

.hero-content-inner {
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.hero .logo-container {
  margin-bottom: 25px;
}

.hero .logo-container img {
  height: 120px;
  width: 120px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  background-color: var(--color-white);
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
  .hero .logo-container img {
    height: 160px;
    width: 160px;
  }
}

.hero .title {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--color-white);
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 15px;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hero .title {
    font-size: 54px;
  }
}

.hero .subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-white);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  margin-bottom: 35px;
  font-weight: 500;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .hero .subtitle {
    font-size: 21px;
  }
}

.hero .cta-buttons-aligner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

@media (min-width: 480px) {
  .hero .cta-buttons-aligner {
    flex-direction: row;
    justify-content: center;
  }
}

.hero-cta {
  width: 100%;
  max-width: 250px;
}

@media (min-width: 480px) {
  .hero-cta {
    width: 180px;
  }
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
  list-style: none;
  padding: 0;
  margin: 0;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background-color var(--dur-base) var(--ease-gentle);
}

.carousel-indicator.active {
  background-color: var(--color-white);
}

/* ==========================================================================
   Green Strip
   ========================================================================== */
.green-strip {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 18px 20px;
  text-align: center;
  font-weight: 500;
  font-size: 16px;
}

.green-strip a {
  color: var(--color-white);
  text-decoration: underline;
  font-weight: 600;
  margin-left: 5px;
}
.green-strip a:hover {
  opacity: 0.8;
}

/* ==========================================================================
   Home Sections
   ========================================================================== */
.welcome-section p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 20px;
  text-align: center;
  color: var(--color-body);
}

/* Feature Cards */
.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-soft), box-shadow var(--dur-base) var(--ease-soft);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

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

.feature-image {
  height: 220px;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-image) var(--ease-soft);
}

.feature-card:hover .feature-image img {
  transform: scale(1.06);
}

.feature-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: 15px;
  color: var(--color-primary);
}

.feature-text {
  margin-bottom: 20px;
  flex-grow: 1;
  color: var(--color-muted);
}

/* Services Grid */
.service-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  text-decoration: none !important;
  color: var(--color-body);
  transition: transform var(--dur-base) var(--ease-soft), box-shadow var(--dur-base) var(--ease-soft), border-color var(--dur-base) var(--ease-soft), background-color var(--dur-base) var(--ease-soft);
  border: 2px solid transparent;
}

.service-tile:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(31, 122, 84, 0.14);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  fill: var(--color-primary);
}

.service-name {
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.services-cta-wrap {
  text-align: center;
  margin-top: 40px;
}

/* 50/50 blocks */
.split-block {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .split-block {
    flex-direction: row;
    gap: 60px;
  }
  .split-block > * {
    flex: 1;
  }
  .split-block.reverse {
    flex-direction: row-reverse;
  }
}

.split-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  width: 100%;
}

.split-content h3 {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--color-primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.split-content p {
  font-size: 18px;
  margin-bottom: 25px;
  color: var(--color-body);
}

/* CTA Band */
.cta-band {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 60px 20px;
  text-align: center;
}

.cta-band-title {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--color-white);
}

@media (min-width: 768px) {
  .cta-band-title {
    font-size: 40px;
  }
}

/* Article Cards */
.article-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-base) var(--ease-soft), box-shadow var(--dur-base) var(--ease-soft);
  text-decoration: none !important;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-image {
  height: 180px;
  overflow: hidden;
}
.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-image) var(--ease-soft);
}
.article-card:hover .article-image img {
  transform: scale(1.06);
}

.article-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.article-text {
  font-size: 15px;
  color: var(--color-muted);
  flex-grow: 1;
}

.article-readmore {
  margin-top: 15px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-link);
  text-transform: uppercase;
}

/* ==========================================================================
   Modals & Command Palette
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-gentle), visibility var(--dur-base) var(--ease-gentle);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: var(--color-white);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform var(--dur-base) var(--ease-soft), box-shadow var(--dur-base) var(--ease-soft);
  overflow: hidden;
}

.modal-overlay.is-open .modal-container {
  transform: translateY(0);
}

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

.modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--color-primary);
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  color: var(--color-error);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

/* Command Palette Specifics */
#cmd-palette .modal-container {
  max-width: 500px;
  margin-top: -15vh;
}
.cmd-input-wrap {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid var(--color-border);
}
.cmd-input-wrap svg {
  fill: var(--color-muted);
  width: 20px;
  height: 20px;
  margin-right: 15px;
}
#cmd-input {
  width: 100%;
  padding: 10px 0;
  font-size: 18px;
  border: none;
}
#cmd-input:focus {
  outline: none;
}
.cmd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
}
.cmd-link {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: var(--color-body);
  text-decoration: none !important;
  border-left: 3px solid transparent;
  transition: background-color var(--dur-fast) var(--ease-gentle);
}
.cmd-link:hover, .cmd-link.is-active {
  background-color: var(--color-bg-light);
  border-left-color: var(--color-primary);
  color: var(--color-primary);
}
.cmd-link-title {
  font-weight: 600;
  margin-bottom: 2px;
}
.cmd-link-desc {
  font-size: 13px;
  color: var(--color-muted);
}
.cmd-empty {
  padding: 20px;
  text-align: center;
  color: var(--color-muted);
  display: none;
}

/* Newsletter Prompt */
#newsletter-modal .modal-container {
  position: relative;
}
.newsletter-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 1;
}
.newsletter-content {
  text-align: center;
  padding: 46px 44px 40px;
}
@media (max-width: 480px) {
  .newsletter-content {
    padding: 42px 24px 32px;
  }
}
.newsletter-content h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 28px;
  margin-bottom: 15px;
}
.newsletter-content p {
  margin-bottom: 30px;
  font-size: 16px;
  color: var(--color-body);
}

/* Services Modal List */
.services-list-modal {
  list-style: none;
  padding: 0;
  margin: 0;
}
.services-list-modal li {
  margin-bottom: 10px;
}
.services-list-modal a {
  display: block;
  padding: 10px 15px;
  background: var(--color-bg-light);
  border-radius: var(--radius-sm);
  color: var(--color-body);
  font-weight: 500;
  transition: background-color var(--dur-base) var(--ease-gentle), color var(--dur-base) var(--ease-gentle);
}
.services-list-modal a:hover {
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  padding: 60px 0 30px;
  font-size: 14px;
}

.footer-top {
  display: grid;
  gap: 40px;
  margin-bottom: 40px;
}

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

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

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.footer-logo img {
  height: 60px;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--color-footer-text);
}

.footer-contact p {
  margin: 0 0 5px 0;
  color: var(--color-footer-muted);
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--color-footer-muted);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-gentle);
}
.footer-links a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-cta-text {
  color: var(--color-footer-muted);
  margin-top: 0;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  justify-content: center;
}
.footer-legal-links a {
  color: var(--color-footer-muted);
}
.footer-legal-links a:hover {
  color: var(--color-white);
}

.footer-disclaimer {
  color: var(--color-footer-muted);
  font-size: 12.5px;
  line-height: 1.75;
  margin-bottom: 20px;
  text-align: justify;
}

.footer-copyright {
  color: var(--color-footer-muted);
  text-align: center;
  font-size: 13px;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-soft),
              transform var(--dur-slow) var(--ease-soft);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Photographs ease in once decoded rather than snapping into place.
   js/main.js adds .img-fade before load and .is-loaded afterwards. */
.img-fade {
  opacity: 0;
  transition: opacity var(--dur-image) var(--ease-gentle);
}
.img-fade.is-loaded {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .img-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}


/* ============================================================
   care.css
   ============================================================ */
/* ==========================================================================
   Page: Care & Interior Pages
   ========================================================================== */

/* Page Hero Banner */
.page-hero {
  position: relative;
  min-height: 240px;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-white);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    180deg,
    rgba(30, 43, 38, 0.58) 0%,
    rgba(30, 43, 38, 0.72) 100%
  );
  z-index: 1;
}

/* Photographic heroes get more vertical room than the flat colour ones,
   so the image is readable as an image rather than a strip. */
.page-hero.has-photo {
  min-height: 320px;
  padding-top: 96px;
  padding-bottom: 56px;
}

@media (min-width: 768px) {
  .page-hero.has-photo {
    min-height: 380px;
  }
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: 40px;
  text-transform: uppercase;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  line-height: 1.1;
}

.page-hero-subtitle {
  font-size: 18px;
  font-weight: 500;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .page-hero-title {
    font-size: 54px;
  }
  .page-hero-subtitle {
    font-size: 22px;
  }
}

/* Service Detail Cards */
.service-detail-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.service-detail-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  /* Keeps the full-bleed photo inside the card's rounded corners. */
  overflow: hidden;
}

/* Photo band across the top of a service card. The negative margins cancel
   the card's own padding so the image runs edge to edge. */
.service-card-photo {
  width: calc(100% + 60px);
  max-width: none;
  height: 320px;
  margin: -30px -30px 26px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 767px) {
  .service-card-photo {
    height: 230px;
    margin-bottom: 22px;
  }
}

/* Graphic clinical photographs.
   A few service cards carry a genuine wound or deformity photograph. Those are
   covered until the visitor decides to look: the picture is blurred out and a
   full-size button sits over it with the warning along the bottom edge. The
   `is-shielded` class is added by the script rather than written into the
   markup, so with scripting off the photograph simply shows instead of staying
   blurred behind a button that could never be pressed. */
.photo-shield {
  position: relative;
  overflow: hidden;
  width: calc(100% + 60px);
  margin: -30px -30px 26px;
}

/* The wrapper now carries the full-bleed offsets, so the image itself sits
   flush inside it. */
.photo-shield .service-card-photo {
  display: block;
  width: 100%;
  margin: 0;
  transition: filter var(--dur-slow) var(--ease-gentle),
              transform var(--dur-slow) var(--ease-gentle),
              opacity var(--dur-image) var(--ease-gentle);
}

.photo-shield.is-shielded .service-card-photo {
  filter: blur(22px) saturate(0.5) brightness(1.06);
  /* The blur samples past the edges of the source, which would show as pale
     halos along the sides. Overscan has to exceed the blur radius on the
     shortest axis: the band is 150px tall on mobile, so 0.4 * 150 / 2 = 30px
     of overscan per edge clears the 22px radius. */
  transform: scale(1.4);
}

.photo-shield-cover {
  position: absolute;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: linear-gradient(180deg,
              rgba(18, 38, 29, 0.10) 0%,
              rgba(18, 38, 29, 0.30) 100%);
  color: var(--color-white);
  font-family: var(--font-body);
  text-align: center;
  cursor: pointer;
}

.photo-shield.is-shielded .photo-shield-cover {
  display: flex;
}

.photo-shield-cover:hover .photo-shield-hint,
.photo-shield-cover:focus-visible .photo-shield-hint {
  text-decoration: underline;
}

.photo-shield-cover:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: -5px;
}

/* The warning sits on its own near-opaque bar rather than on the gradient, so
   its contrast does not depend on whatever happens to be in the photograph
   underneath. White on this bar stays above 11:1 even over pure white. */
.photo-shield-text {
  display: block;
  width: 100%;
  padding: 11px 20px 13px;
  background-color: rgba(15, 33, 25, 0.88);
}

.photo-shield-icon {
  display: block;
  margin: 0 auto 6px;
}

.photo-shield-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.photo-shield-hint {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.45;
}

/* Revealing the photo hands focus to the service heading, since the button
   the visitor pressed is removed. Keyboard users should still see where they
   landed, so only the mouse-driven case suppresses the ring. */
.service-detail-card h3[tabindex]:focus:not(:focus-visible) {
  outline: none;
}

@media (max-width: 767px) {
  .photo-shield {
    margin-bottom: 22px;
  }

  .photo-shield-title {
    font-size: 14px;
  }

  .photo-shield-hint {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-shield .service-card-photo {
    transition: none;
  }
}

.service-detail-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--color-primary);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-bg-light);
  padding-bottom: 10px;
}

.service-detail-grid {
  display: grid;
  gap: 30px;
}

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

.service-aspect h4 {
  font-size: 16px;
  color: var(--color-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-aspect p {
  font-size: 15px;
  color: var(--color-muted);
}

/* Urgent Care Callout */
.urgent-callout {
  background-color: #fff5f5;
  border-left: 4px solid var(--color-error);
  padding: 30px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 40px 0;
}

.urgent-callout h3 {
  color: var(--color-error);
  font-family: var(--font-display);
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.urgent-callout-icon {
  fill: var(--color-error);
  width: 28px;
  height: 28px;
}

.urgent-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: grid;
  gap: 10px;
}

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

.urgent-list li {
  position: relative;
  padding-left: 25px;
  color: var(--color-body);
  font-weight: 600;
}

.urgent-list li::before {
  content: '•';
  color: var(--color-error);
  font-size: 24px;
  position: absolute;
  left: 0;
  top: -5px;
}

/* Content blocks with borders */
.content-box {
  background: var(--color-bg-light);
  padding: 40px;
  border-radius: var(--radius-md);
  margin-bottom: 40px;
}

.content-box h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 28px;
  margin-bottom: 20px;
}

/* Typography styles for prose */
.prose {
  max-width: 800px;
  margin: 0 auto;
}

.prose h2 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 32px;
  margin: 40px 0 20px;
}

.prose h3 {
  font-family: var(--font-display);
  color: var(--color-secondary);
  font-size: 24px;
  margin: 30px 0 15px;
}

.prose p {
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--color-body);
}

.prose ul {
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--color-body);
}

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


/* ============================================================
   tools.css
   ============================================================ */
/* Symptom Explorer & Plan Your Visit Tools */

.tool-page-header {
  text-align: center;
  margin-bottom: 40px;
}
/* Inside a banner the hero's own padding already provides the gap. */
.page-hero .tool-page-header {
  margin-bottom: 0;
}
.tool-page-header h1 {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--color-primary);
  margin-bottom: 15px;
}
.tool-page-header p {
  font-size: 18px;
  color: var(--color-muted);
  max-width: 800px;
  margin: 0 auto;
}

/* Symptom Explorer */
.symptom-explorer-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (min-width: 992px) {
  .symptom-explorer-container {
    flex-direction: row;
    align-items: flex-start;
  }
}
.symptom-map-col {
  flex: 1;
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 90px;
}
.symptom-panel-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 500px;
}

.foot-map-svg {
  width: 100%;
  max-width: 450px;
  height: auto;
  overflow: visible;
}

.foot-region {
  fill: rgba(31, 122, 84, 0.1);
  stroke: var(--color-primary);
  stroke-width: 2;
  cursor: pointer;
  transition: fill var(--dur-base) var(--ease-soft), stroke-width var(--dur-base) var(--ease-soft);
  outline: none;
}
.foot-region:hover, .foot-region:focus {
  fill: rgba(31, 122, 84, 0.3);
  stroke-width: 3;
}
.foot-region.is-active, .foot-region[aria-pressed="true"] {
  fill: rgba(31, 122, 84, 0.6);
  stroke-width: 3;
}

.non-diagnostic-notice {
  background-color: #fdf3e1;
  border-left: 4px solid var(--color-pending);
  padding: 15px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 15px;
  color: var(--color-body);
  line-height: 1.5;
  margin-bottom: 20px;
}

.search-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}
.search-wrap input {
  width: 100%;
  padding: 15px 20px 15px 45px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  font-size: 16px;
  transition: border-color var(--dur-base) var(--ease-gentle), box-shadow var(--dur-base) var(--ease-gentle);
}
.search-wrap input:focus {
  outline: none;
  border-color: var(--color-primary);
}
.search-wrap svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: var(--color-muted);
}

.symptom-results-title {
  font-size: 24px;
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-bg-light);
}

.symptom-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 25px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.03);
  margin-bottom: 20px;
  transition: transform var(--dur-fast) var(--ease-soft);
}
.symptom-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}
.symptom-card h4 {
  color: var(--color-primary);
  font-size: 22px;
  margin-bottom: 15px;
  font-family: var(--font-display);
}
.symptom-detail {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.5;
}
.symptom-detail strong {
  color: var(--color-body);
  font-weight: 700;
  display: inline-block;
  min-width: 120px;
}
.red-flag-box {
  background-color: rgba(185, 78, 72, 0.05);
  border-left: 4px solid var(--color-error);
  padding: 15px;
  margin-top: 20px;
  font-size: 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.red-flag-box strong {
  color: var(--color-error);
  display: block;
  margin-bottom: 5px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-muted);
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  font-size: 16px;
}

/* Plan Your Visit */
.tool-section-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 40px;
  margin-bottom: 40px;
}
.tool-section-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 15px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
@media (min-width: 768px) {
  .tool-section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}
.tool-section-header h3 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--color-primary);
  margin: 0;
}
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
}
.progress-text {
  font-size: 14px;
  color: var(--color-muted);
  font-weight: 600;
}
.progress-bar-wrap {
  background: var(--color-border);
  border-radius: var(--radius-md);
  height: 8px;
  width: 120px;
  overflow: hidden;
}
.progress-bar-fill {
  background: var(--color-primary);
  height: 100%;
  width: 0%;
  transition: width var(--dur-slow) var(--ease-soft);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 15px;
  border-radius: var(--radius-md);
  transition: background-color var(--dur-base) var(--ease-gentle);
  border: 1px solid transparent;
}
.checklist-item:hover {
  background-color: var(--color-bg-light);
  border-color: var(--color-border);
}
.checklist-item input[type="checkbox"] {
  margin-top: 3px;
  margin-right: 15px;
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}
.checklist-item label {
  cursor: pointer;
  font-size: 16px;
  flex: 1;
  user-select: none;
  line-height: 1.4;
}
.checklist-item input[type="checkbox"]:checked + label {
  color: var(--color-muted);
  text-decoration: line-through;
}

.qa-builder {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (min-width: 992px) {
  .qa-builder {
    flex-direction: row;
  }
}
.qa-library, .qa-list {
  flex: 1;
}
.qa-library h4, .qa-list h4 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--color-secondary);
}
.qa-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 15px;
  background: var(--color-bg-light);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  font-size: 15px;
  border: 1px solid var(--color-border);
}
.qa-item span {
  flex: 1;
  padding-right: 15px;
}
.qa-add-btn, .qa-remove-btn {
  background: var(--color-white);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  font-weight: bold;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-soft), box-shadow var(--dur-base) var(--ease-soft), border-color var(--dur-base) var(--ease-soft), background-color var(--dur-base) var(--ease-soft), color var(--dur-base) var(--ease-soft);
}
.qa-add-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.qa-remove-btn {
  color: var(--color-error);
}
.qa-remove-btn:hover {
  background: var(--color-error);
  color: var(--color-white);
  border-color: var(--color-error);
}
.qa-custom-input {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.qa-custom-input input {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
}
.qa-custom-input input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.coverage-selector {
  display: grid;
  gap: 15px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .coverage-selector {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .coverage-selector {
    grid-template-columns: repeat(3, 1fr);
  }
}
.coverage-option {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 15px;
  cursor: pointer;
  text-align: center;
  transition: transform var(--dur-fast) var(--ease-soft), box-shadow var(--dur-base) var(--ease-soft), border-color var(--dur-base) var(--ease-soft), background-color var(--dur-base) var(--ease-soft), color var(--dur-base) var(--ease-soft);
  background: var(--color-white);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-body);
}
.coverage-option:hover {
  border-color: var(--color-border-strong);
}
.coverage-option.is-active, .coverage-option[aria-pressed="true"] {
  border-color: var(--color-primary);
  background: rgba(31, 122, 84, 0.05);
  color: var(--color-primary);
}
.coverage-questions {
  margin-top: 30px;
  padding: 25px;
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  display: none;
  border-left: 4px solid var(--color-primary);
}
.coverage-questions.is-visible {
  display: block;
}
.coverage-questions h5 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--color-body);
}
.coverage-questions ul {
  padding-left: 20px;
  margin-bottom: 0;
}
.coverage-questions li {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.4;
}

/* Print Styles */
.print-only {
  display: none;
}
@media print {
  body {
    background: #fff;
  }
  .site-header, .site-footer, .green-strip, .hero, .mobile-nav-drawer, .no-print, .symptom-map-col {
    display: none !important;
  }
  .tool-section-card {
    box-shadow: none;
    border: 1px solid var(--color-border-strong);
    padding: 20px;
    margin-bottom: 20px;
    page-break-inside: avoid;
  }
  .checklist-item {
    page-break-inside: avoid;
    border: none;
    padding: 8px 0;
  }
  .checklist-item input[type="checkbox"] {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .print-only {
    display: block;
    margin-bottom: 20px;
  }
  .qa-list {
    width: 100%;
  }
  .qa-item {
    border: none;
    border-bottom: 1px solid var(--color-border);
    background: transparent;
    padding: 8px 0;
  }
  .qa-remove-btn {
    display: none !important;
  }
  .coverage-option:not(.is-active) {
    display: none;
  }
}


/* ============================================================
   forms.css
   ============================================================ */



@media (min-width: 768px) {
  
}

/* Forms */
.form-container {
  max-width: 600px;
  margin: 0 auto;
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--color-body);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color var(--dur-base) var(--ease-gentle), box-shadow var(--dur-base) var(--ease-gentle);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field-error {
  color: var(--color-error);
  font-size: 13px;
  margin-top: 5px;
  margin-bottom: 0;
  min-height: 18px;
}
.field-invalid input,
.field-invalid textarea {
  border-color: var(--color-error);
}

.consent-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 20px;
}
.consent-row input[type="checkbox"] {
  margin-top: 4px;
  margin-right: 12px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.consent-row label {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0;
  flex: 1;
}
.consent-row .field-error {
  margin-left: 30px;
  width: 100%;
}
/* Sits on its own line above the checkbox so that the <label> element holds
   nothing but the consent sentence itself — the stored consent record must be
   byte-for-byte the text the visitor agreed to. */
.consent-tag-row {
  width: 100%;
  margin: 0 0 8px 30px;
}

.form-status {
  margin-top: 20px;
  padding: 15px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: none;
}
.form-status-pending {
  display: block;
  background-color: var(--color-bg-light);
  color: var(--color-pending);
}
.form-status-success {
  display: block;
  background-color: rgba(31, 122, 84, 0.1);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}
.form-status-error {
  display: block;
  background-color: rgba(185, 78, 72, 0.1);
  color: var(--color-error);
  border: 1px solid var(--color-error);
}

#phone-requirement {
  font-size: 13px;
  color: var(--color-muted);
  font-weight: normal;
  margin-left: 8px;
}

/* Prose for legal pages */
.prose {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-body);
}
.prose h2, .prose h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-top: 40px;
  margin-bottom: 15px;
}
.prose h2 {
  font-size: 28px;
}
.prose h3 {
  font-size: 22px;
}
.prose p, .prose ul, .prose ol {
  margin-bottom: 20px;
}
.prose ul, .prose ol {
  padding-left: 20px;
}
.prose li {
  margin-bottom: 10px;
}
.last-updated {
  font-style: italic;
  color: var(--color-muted);
  margin-bottom: 30px;
}
.toc {
  background: var(--color-bg-light);
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 40px;
}
.toc h3 {
  margin-top: 0;
  font-size: 18px;
  font-family: var(--font-body);
  text-transform: uppercase;
  color: var(--color-body);
}
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc li {
  margin-bottom: 8px;
}
.toc a {
  color: var(--color-link);
  font-weight: 500;
}


/* ============================================================
   Interior banner corrections
   ============================================================ */

/* The dark scrim only makes sense over a photograph. */
.page-hero::before {
  display: none;
}

.page-hero[style*="background-image"]::before {
  display: block;
}

/* Banners built with a plain .container instead of .page-hero-content. */
.page-hero > .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 0;
  text-shadow: 0 2px 12px rgba(15, 24, 20, 0.45);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.94);
  font-size: 18px;
  line-height: 1.5;
  margin: 12px auto 0;
  max-width: 720px;
  text-shadow: 0 1px 8px rgba(15, 24, 20, 0.45);
}

@media (min-width: 768px) {
  .page-hero h1 {
    font-size: 48px;
  }
}

/* "Optional" pill in front of an injected consent sentence. */
.consent-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: var(--radius-md);
  background-color: var(--color-border);
  color: var(--color-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.red-flag-note {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-muted);
}
