/* ============================================
   Pittsburgh Infectious Diseases, Ltd.
   Design System & Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #0D4F6B;
  --color-primary-light: #1A7A9E;
  --color-primary-dark: #093A50;
  --color-accent: #2E8B57;
  --color-accent-dark: #257A4A;
  --color-bg-white: #FFFFFF;
  --color-bg-alt: #F4F8FA;
  --color-bg-alt-deep: #E7EFF4;
  --color-text: #1A1A2E;
  --color-text-light: #4A5568;
  --color-border: #E2E8F0;
  --color-shadow: rgba(13, 79, 107, 0.10);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale — every gap on the site comes from here */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  --max-width: 1240px;
  --measure: 70ch;          /* comfortable line length for prose */
  --header-height: 100px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(13, 79, 107, 0.08), 0 1px 2px rgba(13, 79, 107, 0.04);
  --shadow-md: 0 4px 12px rgba(13, 79, 107, 0.10), 0 2px 4px rgba(13, 79, 107, 0.05);
  --shadow-lg: 0 12px 32px rgba(13, 79, 107, 0.14), 0 4px 8px rgba(13, 79, 107, 0.06);

  --transition: 0.25s ease;
  --nav-breakpoint: 1240px;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-accent);
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  text-wrap: balance;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

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

/* --- Visible, consistent focus ring --- */
:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.site-header :focus-visible,
.hero :focus-visible,
.page-header :focus-visible,
.contact-bar :focus-visible,
.site-footer :focus-visible,
details[open] > summary:focus-visible {
  outline-color: #FFFFFF;
}

/* ============================================
   PROSE RHYTHM
   Blocks inside <main> get default vertical
   spacing so nothing ever butts up against
   its neighbour.
   ============================================ */
main h2 { margin-bottom: var(--space-4); }
main h3 { margin-bottom: var(--space-3); }
main h4 { margin-bottom: var(--space-2); }

main p,
main ul,
main ol,
main address { margin-bottom: var(--space-4); }

main p:last-child,
main ul:last-child,
main ol:last-child,
main address:last-child { margin-bottom: 0; }

/* Prose gets a readable measure; centred blocks stay centred. */
main p,
main li { max-width: var(--measure); }

main .text-center p,
main .text-center li { margin-left: auto; margin-right: auto; }

/* Components manage their own measure. */
.hero p,
.page-header p,
.contact-bar p,
.contact-item p,
.service-card p,
.service-card li,
.physician-card p,
.resource-card p,
.callout p { max-width: none; }

/* A heading that follows body copy needs air above it. */
main :is(p, ul, ol, details, .callout, .map-container, figure) + :is(h2, h3) {
  margin-top: var(--space-6);
}

main :is(p, ul, ol) + h4 { margin-top: var(--space-5); }

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* A single centred reading column, as wide as an accordion, so
   headings, accordions and prose share one left edge under the
   centred page title. */
.container-narrow {
  max-width: calc(var(--measure) + 2 * var(--space-5) + 4rem);
}

/* The same column for one block inside a full-width container. */
.column-narrow {
  max-width: calc(var(--measure) + 2 * var(--space-5));
  margin-left: auto;
  margin-right: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.mt-1 { margin-top: var(--space-2); }
.mt-2 { margin-top: var(--space-4); }
.mt-3 { margin-top: var(--space-5); }
.mt-4 { margin-top: var(--space-6); }
.mb-1 { margin-bottom: var(--space-2); }
.mb-2 { margin-bottom: var(--space-4); }
.mb-3 { margin-bottom: var(--space-5); }
.mb-4 { margin-bottom: var(--space-6); }

.section-padding {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

.bg-white { background-color: var(--color-bg-white); }
.bg-alt   { background-color: var(--color-bg-alt); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.8125rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition),
              color var(--transition), box-shadow var(--transition), transform var(--transition);
}

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

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 139, 87, 0.28);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: #FFFFFF;
  color: #FFFFFF;
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active { transform: translateY(0); }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background-color: var(--color-primary);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-height);
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.site-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  flex-shrink: 1;
  min-width: 0;
}

.site-logo:hover {
  color: #FFFFFF;
  opacity: 0.85;
}

/* The lockup's wordmark is only ~15% of the artwork's height, so it needs
   80px to stay legible -- hence the taller header. Below 600px there is no
   room for a 269px lockup beside the phone button and hamburger, so the
   mark and live text take over. */
.site-logo-lockup {
  display: block;
  height: 80px;
  width: auto;
}

.site-logo-mark,
.site-logo-text {
  display: none;
}

/* --- Nav links --- */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.65rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background-color var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.14);
}

.main-nav a.active {
  background-color: rgba(255, 255, 255, 0.20);
}

/* --- Header Phone Link --- */
.header-phone {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color var(--transition), border-color var(--transition);
}

.header-phone:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.6);
}

/* --- Hamburger Button --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
  z-index: 1300;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #FFFFFF;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* --- Collapsed nav: the full horizontal bar needs ~1240px to fit
       seven links plus the wordmark and phone without colliding. --- */
@media (max-width: 1239px) {
  .nav-toggle {
    display: block;
    order: 3;
  }

  /* The nav is out of flow when collapsed, which would otherwise
     strand the hamburger between the wordmark and the phone. */
  .header-phone {
    order: 2;
    margin-left: auto;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    background-color: var(--color-primary);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: calc(var(--header-height) + var(--space-6)) var(--space-5) var(--space-6);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 1150;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    width: 100%;
    max-width: 22rem;
    text-align: center;
  }

  .main-nav a {
    font-size: 1.125rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
  }

  /* Open state */
  .nav-open .main-nav {
    opacity: 1;
    visibility: visible;
  }

  .nav-open {
    overflow: hidden;
  }

  .nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 599px) {
  :root {
    --header-height: 72px;
  }

  .site-logo {
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
  }

  .site-logo-lockup {
    display: none;
  }

  .site-logo-mark {
    display: block;
    height: 40px;
    width: auto;
    flex-shrink: 0;
  }

  .site-logo-text {
    display: block;
  }
}

@media (max-width: 479px) {
  .header-phone {
    padding: 0.5rem 0.7rem;
    font-size: 0.78rem;
  }

  .site-logo { font-size: 0.95rem; }
  .site-logo-mark { height: 34px; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, #072A3A 100%);
  color: #FFFFFF;
  padding: var(--space-8) 1.25rem;
  text-align: center;
  overflow: hidden;
}

.hero::before,
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px, 60px 60px;
  pointer-events: none;
}

.hero .container,
.hero-content,
.page-header .container,
.page-header-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  color: #FFFFFF;
  font-size: 2.25rem;
  margin-bottom: var(--space-4);
}

.hero p,
.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  opacity: 0.88;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-6);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

/* ============================================
   PAGE HEADER (Inner Pages)
   ============================================ */
.page-header {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, #072A3A 100%);
  color: #FFFFFF;
  padding: var(--space-7) 1.25rem;
  text-align: center;
  overflow: hidden;
}

.page-header h1 {
  color: #FFFFFF;
  font-size: 1.875rem;
  margin-bottom: var(--space-3);
}

.page-header p {
  opacity: 0.85;
  font-size: 1.05rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-title {
  text-align: center;
  margin-bottom: var(--space-6);
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin: var(--space-4) auto 0;
  border-radius: 2px;
  background-color: var(--color-accent);
}

/* ============================================
   HOME PAGE SECTIONS
   ============================================ */
.services,
.about-preview,
.physicians-preview {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

.about-preview {
  background-color: var(--color-bg-alt);
}

.about-preview .container,
.physicians-preview .container {
  text-align: center;
}

.about-preview p {
  color: var(--color-text-light);
  font-size: 1.0625rem;
  margin-left: auto;
  margin-right: auto;
}

.about-preview .btn,
.physicians-preview .btn {
  margin-top: var(--space-6);
}

/* ============================================
   SERVICE CARDS (3-Column Grid)
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}

.service-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #CBDDE7;
  box-shadow: var(--shadow-lg);
}

/* Icon chip — gives the glyph its own space instead of
   sitting directly on the heading below it. */
.service-card .card-icon,
.service-card .service-icon,
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius);
  background-color: var(--color-bg-alt-deep);
  color: var(--color-primary-light);
  font-size: 1.75rem;
  line-height: 1;
}

.service-card .card-icon svg,
.service-card .service-icon svg,
.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Bulleted lists inside cards */
.service-card ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.service-card li {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: var(--space-2);
}

.service-card li:last-child { margin-bottom: 0; }

.service-card li::marker { color: var(--color-primary-light); }

/* Card that should fill the remaining track on wide grids. */
.span-2 { grid-column: auto; }

/* ============================================
   PHYSICIAN CARDS
   ============================================ */
.physicians-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}

.physician-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.physician-card:hover {
  transform: translateY(-4px);
  border-color: #CBDDE7;
  box-shadow: var(--shadow-lg);
}

/* Works whether .physician-photo is the <img> itself or a
   wrapper <div> around one. */
.physician-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
  margin: 0 auto var(--space-4);
  border: 4px solid var(--color-bg-alt);
  box-shadow: var(--shadow-sm);
  background-color: var(--color-bg-alt);
}

.physician-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.physician-card h3 {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

.physician-card .credentials {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--space-3);
}

.physician-card .specialty {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0;
}

/* The biography disclosure needs clear separation from the
   specialty line above it. */
.physician-card details {
  margin-top: var(--space-5);
  margin-bottom: 0;
  text-align: left;
}

.physician-card details summary {
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
}

.physician-card .accordion-content {
  font-size: 0.9rem;
  padding: var(--space-4);
}

.physician-card > *:last-child { margin-bottom: 0; }

/* ============================================
   DETAILS / SUMMARY ACCORDION
   ============================================ */
details {
  /* Match the prose measure (plus the body's side padding) so an
     open panel's text fills it instead of leaving a blank right half. */
  max-width: calc(var(--measure) + 2 * var(--space-5));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  overflow: hidden;
  background-color: var(--color-bg-white);
}

details:last-child { margin-bottom: 0; }

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  background-color: var(--color-bg-alt);
  cursor: pointer;
  user-select: none;
  transition: background-color var(--transition), color var(--transition);
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary:hover {
  background-color: var(--color-bg-alt-deep);
}

/* Headings used as accordion labels shouldn't keep their
   page-level type scale. */
summary h2,
summary h3,
summary h4 {
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: inherit;
  margin: 0;
}

summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary-light);
  transition: color var(--transition);
  flex-shrink: 0;
}

/* Some pages ship an explicit icon element; the ::after
   pseudo-element is the single source of truth instead. */
.accordion-icon { display: none; }

details[open] summary {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

details[open] summary:hover {
  background-color: var(--color-primary-dark);
}

details[open] summary::after {
  content: '\2212'; /* minus sign */
  color: #FFFFFF;
}

.accordion-content,
.accordion-body {
  padding: var(--space-5);
  color: var(--color-text-light);
  line-height: 1.75;
}

.accordion-content > *:last-child,
.accordion-body > *:last-child { margin-bottom: 0; }

.accordion-content ul,
.accordion-body ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.accordion-content li,
.accordion-body li {
  margin-bottom: var(--space-2);
}

.accordion-content li:last-child,
.accordion-body li:last-child { margin-bottom: 0; }

.accordion-content li::marker,
.accordion-body li::marker { color: var(--color-primary-light); }

/* ============================================
   INFO CALLOUT BOXES
   ============================================ */
.callout {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary-light);
  background-color: var(--color-bg-alt);
  padding: var(--space-5);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: var(--space-5) 0;
}

.callout > *:last-child { margin-bottom: 0; }

.callout h4 {
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.callout p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.callout--accent {
  border-left-color: var(--color-accent);
}

.callout--accent h4 {
  color: var(--color-accent);
}

/* ============================================
   RESOURCE LINK CARDS
   ============================================ */
.resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}

.resource-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.resource-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.resource-card .resource-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.resource-card h4 {
  color: var(--color-primary);
  margin-bottom: var(--space-1);
  font-size: 1rem;
}

.resource-card p {
  color: var(--color-text-light);
  font-size: 0.85rem;
  margin: 0;
}

/* ============================================
   PROSE BLOCKS
   ============================================ */
.prose p {
  color: var(--color-text-light);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.prose h3 { color: var(--color-primary); }
.prose h4 { color: var(--color-primary-light); font-size: 1.0625rem; }

.prose-narrow {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.prose-narrow p {
  color: var(--color-text-light);
  font-size: 1.0625rem;
  line-height: 1.8;
  max-width: none;
}

/* Standfirst paragraph under a section heading */
.lede {
  color: var(--color-text-light);
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 46rem;
}

.text-center.lede {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   LISTS
   ============================================ */
.list-columns { column-gap: var(--space-6); }

.list-columns li { break-inside: avoid; }

/* Vertical link stacks — padded rows so hover highlights
   never bleed into the neighbouring link. Selectors are scoped
   to beat the `.service-card ul` / `.service-card li` defaults. */
.link-list,
.service-card .link-list {
  list-style: none;
  padding: 0;
  margin-left: -0.625rem;
  margin-right: -0.625rem;
}

.link-list li,
.service-card .link-list li {
  margin-bottom: 0;
  max-width: none;
}

.link-list a,
.service-card .link-list a {
  display: block;
  padding: 0.5rem 0.625rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.45;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background-color var(--transition);
}

.link-list a:hover,
.service-card .link-list a:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
}

/* ============================================
   MEDIA
   ============================================ */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-5);
}

.media-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.media-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* ============================================
   RESOURCES PAGE
   ============================================ */
.resource-panel {
  max-width: 38rem;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.panel-icon {
  font-size: 2.25rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.panel-head p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.disclaimer {
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--color-text-light);
}

.disclaimer h4 {
  font-size: 0.8125rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-family: var(--font-body);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.disclaimer p { max-width: none; }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-content {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

/* ============================================
   LOCATION PAGE
   ============================================ */
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: start;
}

.location-grid .service-card { height: 100%; }

.location-grid address {
  font-style: normal;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: var(--space-5);
}

/* Tight label/value rows in the address card */
.detail-line {
  margin-bottom: var(--space-2);
}

.detail-line strong {
  color: var(--color-text);
}

/* ============================================
   GOOGLE MAPS RESPONSIVE CONTAINER
   ============================================ */
.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   CONTACT BAR
   ============================================ */
.contact-bar {
  background-color: var(--color-accent);
  color: #FFFFFF;
  padding: var(--space-6) 1.25rem;
  text-align: center;
}

.contact-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4) var(--space-5);
}

.contact-bar p {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.contact-bar a {
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.contact-bar a:hover {
  color: rgba(255, 255, 255, 0.82);
}

.contact-bar .btn {
  background-color: #FFFFFF;
  color: var(--color-accent);
  text-decoration: none;
}

.contact-bar .btn:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Home-page variant: three info columns rather than one CTA line. */
.contact-grid {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  text-align: left;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact-item svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.3rem;
  opacity: 0.85;
}

.contact-item h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-2);
}

.contact-item p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.contact-item a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.contact-item a:hover {
  color: #FFFFFF;
  border-bottom-color: #FFFFFF;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-7) 1.25rem var(--space-5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.footer-col h4 {
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: var(--space-4);
}

.footer-brand img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
}

.footer-col p,
.footer-col li,
.footer-col address {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-col address {
  font-style: normal;
}

.footer-col p + p { margin-top: var(--space-3); }

.footer-col address + p { margin-top: var(--space-3); }

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  margin-left: -0.5rem;
}

/* Padded hit target so hover/focus doesn't crowd the row above. */
.footer-col li a {
  display: inline-block;
  padding: 0.1875rem 0.5rem;
  border-radius: var(--radius-sm);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition), background-color var(--transition);
}

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

.footer-col li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-col .after-hours {
  font-size: 0.85rem;
  line-height: 1.7;
  opacity: 0.85;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-5);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer-bottom a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.footer-sep { margin: 0 var(--space-2); }

/* ============================================
   PRIVACY NOTICE
   ============================================ */
.privacy-notice ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--color-text-light);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.privacy-notice li { margin-bottom: var(--space-2); }

/* Long HHS URLs are used as link text and must wrap on phones */
.privacy-notice a { overflow-wrap: anywhere; }

.privacy-notice li::marker { color: var(--color-primary-light); }

.privacy-notice h2 {
  color: var(--color-primary);
  margin-top: var(--space-7);
}

.privacy-notice h4 { margin-top: var(--space-5); }

.privacy-notice .callout h4 { margin-top: 0; }

.privacy-summary {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.privacy-summary .callout { margin: 0; }

.privacy-summary .callout ul,
.privacy-notice .callout ul {
  font-size: 0.95rem;
  margin-top: var(--space-2);
}

.privacy-notice .callout address {
  font-style: normal;
  color: var(--color-text-light);
  margin-bottom: var(--space-3);
}

.privacy-effective {
  font-size: 0.9rem;
  font-style: italic;
}

/* ============================================
   NEW PATIENT FORM
   ============================================ */
/* Classes below set display, which would otherwise override [hidden] */
.form-layout[hidden],
.patient-form [hidden] { display: none !important; }

.form-preview-banner { margin-top: 0; }

.form-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: start;
}

/* Section list — hidden on small screens, sticky sidebar on wide ones */
.form-nav { display: none; }

.form-nav-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--space-3);
}

.form-nav ol { counter-reset: none; }

.form-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.925rem;
}

.form-nav a:hover {
  background-color: var(--color-bg-alt-deep);
  color: var(--color-primary);
}

.form-nav-num,
.form-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 700;
}

.form-nav-num {
  width: 1.625rem;
  height: 1.625rem;
  font-size: 0.8rem;
}

.form-nav-note {
  margin-top: var(--space-4);
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.patient-form {
  display: grid;
  gap: var(--space-5);
  min-width: 0;
}

/* Form cards shouldn't lift on hover like the content cards do */
.form-section.service-card:hover,
.form-summary.service-card:hover {
  transform: none;
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.form-section.service-card { padding: var(--space-5); }

.form-section h2 {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.form-section-num {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1rem;
}

.form-section-intro,
.form-subhead-note {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: var(--space-4);
}

.form-subhead {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

main .form-subhead + .form-subhead-note { margin-top: calc(-1 * var(--space-1)); }

/* Fields: single column on phones, 12-column grid from 600px */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.field > label,
.field > legend {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.patient-form input[type="text"],
.patient-form input[type="email"],
.patient-form input[type="tel"],
.patient-form input[type="date"],
.patient-form input[type="number"],
.patient-form select,
.patient-form textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-3);
  border: 1px solid #C5D3DD;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-white);
  color: var(--color-text);
  line-height: 1.4;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.patient-form textarea { resize: vertical; }

.patient-form input:focus,
.patient-form select:focus,
.patient-form textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(26, 122, 158, 0.2);
}

.patient-form input[readonly] {
  background-color: var(--color-bg-alt);
  color: var(--color-text-light);
}

/* Only flag fields after the patient has tried to submit */
.patient-form.was-validated :is(input, select, textarea):invalid {
  border-color: #B42318;
}

.patient-form.was-validated fieldset:has(input:invalid) legend,
.patient-form.was-validated .choice--agree:has(input:invalid) {
  color: #B42318;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.req { color: #B42318; }

/* Radio / checkbox choices */
.patient-form fieldset {
  border: 0;
  min-width: 0;
}

.choice-group legend {
  margin-bottom: var(--space-2);
  line-height: 1.45;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.choices--stack {
  flex-direction: column;
  gap: var(--space-1);
}

.choice {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.925rem;
  line-height: 1.45;
  cursor: pointer;
}

.choice input {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.1rem;
  accent-color: var(--color-primary);
}

.choice--agree {
  display: flex;
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  border-radius: var(--radius);
  background-color: var(--color-bg-alt);
}

/* Symptom and condition checklists */
.check-columns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-4);
}

.check-columns--dense { display: block; }

.check-columns--dense .choices--stack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: var(--space-2) var(--space-4);
}

.check-group legend {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.check-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-2);
}

/* Checkbox with a detail field beside it (family history, habits) */
.paired-list {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.paired-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  align-items: center;
}

.choices--inline-wrap {
  margin-bottom: var(--space-4);
}

/* Policy text the patient agrees to */
.policy-text {
  max-height: 16rem;
  overflow-y: auto;
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.policy-text p { max-width: none; }

.policy-text p + p { margin-top: var(--space-3); }

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
}

.form-error {
  align-self: stretch;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background-color: #FEF3F2;
  color: #B42318;
  font-size: 0.925rem;
  max-width: none;
}

/* Spam trap: kept off-screen rather than display:none, which bots skip. */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Review, preview and confirmation panels */
.form-check { margin-top: var(--space-5); }
.form-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.form-summary h2 { color: var(--color-primary); }

.form-summary > p { color: var(--color-text-light); }

.form-summary h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  margin-top: var(--space-5);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.form-summary dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1) var(--space-5);
  font-size: 0.9rem;
}

.form-summary dt {
  font-weight: 600;
  margin-top: var(--space-2);
}

.form-summary dd { color: var(--color-text-light); }

@media (min-width: 600px) {
  .form-grid { grid-template-columns: repeat(12, 1fr); }
  .form-grid > * { grid-column: span 12; }
  .form-grid > .field--half { grid-column: span 6; }
  .form-grid > .field--third { grid-column: span 4; }
  .form-grid > .field--quarter { grid-column: span 3; }

  /* Fields side by side share three rows (label, input, hint), so the
     inputs stay level when one label wraps onto a second line. The space
     between rows of fields moves from the grid gap to a bottom margin,
     so an empty hint row doesn't add a gap of its own. */
  @supports (grid-template-rows: subgrid) {
    .form-grid { row-gap: var(--space-1); }

    .form-grid > * { margin-bottom: var(--space-3); }

    .form-grid > div.field {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 3;
      row-gap: var(--space-1);
    }

    .form-grid > div.field > label { align-self: end; }
  }

  .paired-row { grid-template-columns: 14rem 1fr; }

  .form-section.service-card { padding: var(--space-6); }

  .form-summary dl { grid-template-columns: minmax(12rem, 1fr) 2fr; }
  .form-summary dt { margin-top: 0; }
}

@media (min-width: 1024px) {
  .form-layout { grid-template-columns: 15rem 1fr; }

  .form-nav {
    display: block;
    position: sticky;
    top: calc(var(--header-height) + var(--space-5));
  }
}

/* "Prefer paper?" offer above the form */
.form-print-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-bg-white);
}

.form-print-offer p {
  max-width: none;
  font-size: 0.95rem;
}

.print-only { display: none; }

/* ============================================
   NEW PATIENT FORM — PRINTED COPY
   Printing the form page gives a blank paper form: answer lines
   instead of boxes, every follow-up question shown, and anything
   typed on screen left out.
   ============================================ */
@media print {
  @page { margin: 0.6in; }

  html { font-size: 11px; }

  body {
    background: #FFFFFF;
    color: #000000;
  }

  .site-header,
  .site-footer,
  .page-header,
  .form-nav,
  .form-actions,
  .form-print-offer,
  .form-preview-banner,
  .form-summary,
  .form-trap,
  .screen-only { display: none !important; }

  .print-only { display: block; }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  main .section-padding {
    padding: 0;
    background: none;
  }

  main .container {
    max-width: none;
    padding: 0;
  }

  main a {
    color: inherit;
    text-decoration: none;
  }

  .print-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #000000;
    text-align: center;
  }

  .print-header p { max-width: none; }

  .print-header .print-practice {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
  }

  .print-header h1 {
    margin: 1rem 0 0.25rem;
    font-size: 1.9rem;
    color: #000000;
  }

  .form-layout,
  .patient-form { display: block; }

  .form-section.service-card {
    padding: 0;
    margin-bottom: 1.75rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
  }

  .form-section h2 {
    padding-bottom: 0.35rem;
    border-bottom: 1.5px solid #000000;
    font-size: 1.45rem;
    color: #000000;
    break-after: avoid;
  }

  .form-section-num {
    width: 1.9rem;
    height: 1.9rem;
    border: 1.5px solid #000000;
    background: none;
    color: #000000;
  }

  .form-subhead {
    margin-top: 1.25rem;
    border-bottom-color: #000000;
    color: #000000;
    break-after: avoid;
  }

  .form-section-intro,
  .form-subhead-note,
  .field-hint,
  .check-note,
  .policy-text {
    color: #222222;
  }

  .form-section-intro,
  .form-subhead-note { break-after: avoid; }

  .req { display: none; }

  /* Follow-up questions that the screen form reveals on demand */
  .patient-form .reveal[hidden] { display: block !important; }
  .patient-form .paired-row .field[hidden] { display: flex !important; }

  .form-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 0.25rem 1.5rem;
    margin-bottom: 0.4rem;
  }

  .form-grid > * {
    grid-column: span 12;
    margin-bottom: 0.5rem;
  }
  .form-grid > .field--half { grid-column: span 6; }
  .form-grid > .field--third { grid-column: span 4; }
  .form-grid > .field--quarter { grid-column: span 3; }

  .field,
  .choice,
  .choice-group,
  .paired-row,
  .print-line { break-inside: avoid; }

  /* Answer lines to write on. Typed text is left out so the copy is blank. */
  .patient-form input[type="text"],
  .patient-form input[type="email"],
  .patient-form input[type="tel"],
  .patient-form input[type="date"],
  .patient-form input[type="number"],
  .patient-form textarea {
    min-height: 2.1rem;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #000000;
    border-radius: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  .patient-form input::placeholder,
  .patient-form textarea::placeholder { color: transparent; }

  .patient-form input[type="date"]::-webkit-calendar-picker-indicator { display: none; }

  /* Longer answers get ruled writing lines */
  .patient-form textarea {
    min-height: 8.4rem;
    line-height: 2.1rem;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(2.1rem - 1px), #000000 calc(2.1rem - 1px), #000000 2.1rem);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    resize: none;
  }

  /* Empty tick boxes, whatever was ticked on screen */
  .choice input {
    appearance: none;
    -webkit-appearance: none;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
    border: 1px solid #000000;
    border-radius: 2px;
    background: none;
    opacity: 1;
  }

  .choice input[type="radio"] { border-radius: 50%; }

  /* Dropdowns become a row of choices to circle or tick */
  .patient-form select { display: none; }

  .print-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.25rem;
    min-height: 2.1rem;
  }

  .print-option::before {
    content: "";
    display: inline-block;
    width: 1.1rem;
    height: 1.1rem;
    margin-right: 0.45rem;
    border: 1px solid #000000;
    border-radius: 50%;
    vertical-align: -0.2rem;
  }

  .paired-list { gap: 0.35rem; }
  .paired-row { grid-template-columns: 15rem 1fr; }

  .check-columns { grid-template-columns: repeat(4, 1fr); }
  .check-columns--dense .choices--stack { grid-template-columns: repeat(4, 1fr); }

  .check-group legend { color: #000000; }

  /* Policies in full, not in a scrolling box */
  .policy-text {
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
  }

  .choice--agree {
    padding: 0;
    background: none;
  }

  .print-signature {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3.25rem 2rem;
    margin-top: 4rem;
    break-inside: avoid;
  }

  .print-line {
    padding-top: 0.3rem;
    border-top: 1px solid #000000;
    font-size: 0.9rem;
  }
}

/* ============================================
   FADE-IN ANIMATION
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Small tablet (600px+) */
@media (min-width: 600px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5) var(--space-6);
  }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.125rem; }

  .hero {
    padding: 6rem 2rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .page-header {
    padding: var(--space-8) 2rem;
  }

  .page-header h1 {
    font-size: 2.25rem;
  }

  .section-padding,
  .services,
  .about-preview,
  .physicians-preview {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

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

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

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6) var(--space-7);
  }

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

  .contact-bar {
    padding: var(--space-7) 2rem;
  }

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

  /* Hairline dividers between the three info columns. */
  .contact-grid .contact-item + .contact-item {
    padding-left: var(--space-6);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
  }

  .site-footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .about-content {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .list-columns { columns: 2; }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .hero {
    padding: 7rem 2rem;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

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

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

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

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

  .span-2 { grid-column: span 2; }
}

/* Wide desktop — full horizontal nav has room to breathe */
@media (min-width: 1240px) {
  .main-nav a {
    padding: 0.5rem 0.75rem;
  }

  .header-inner {
    gap: var(--space-5);
  }
}

/* ============================================
   MOTION & PRINT PREFERENCES
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .service-card:hover,
  .physician-card:hover,
  .resource-card:hover {
    transform: none;
  }
}
