/* style.css — Foothill Urology Specialists Design Tokens + Components */

/* ===== TYPE SCALE ===== */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.9rem  + 0.5vw,  1.125rem);
  --text-lg:   clamp(1.125rem, 0.95rem + 0.85vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1rem    + 1.5vw,  2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* ===== SPACING ===== */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ===== FONTS ===== */
  --font-display: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;

  /* ===== RADIUS ===== */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* ===== TRANSITIONS ===== */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* ===== CONTENT WIDTHS ===== */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* ===== CUSTOM MEDICAL PRACTICE PALETTE — Light mode (only) ===== */
:root {
  /* Surfaces — warm whites/creams */
  --color-bg:             #FAFAF7;
  --color-surface:        #FFFFFF;
  --color-surface-2:      #F5F5F0;
  --color-surface-offset: #EEF1F3;
  --color-surface-offset-2: #E8EBF0;
  --color-surface-dynamic: #DDE2E6;
  --color-divider:        #D0D5DA;
  --color-border:         #C2C9CF;

  /* Text */
  --color-text:           #1E3A4F;
  --color-text-muted:     #5A7080;
  --color-text-faint:     #94A3AF;
  --color-text-inverse:   #FFFFFF;

  /* Primary — Slate Blue */
  --color-primary:        #3D5A6E;
  --color-primary-hover:  #2E4758;
  --color-primary-active: #1E3A4F;
  --color-primary-highlight: #D8E2E8;

  /* Accent — Warm Copper */
  --color-accent:         #B87333;
  --color-accent-hover:   #A0622A;
  --color-accent-active:  #8B5423;
  --color-accent-highlight: #F0E2D4;
  --color-accent-light:   #D49A6A;

  /* Success */
  --color-success:        #437a22;
  --color-success-highlight: #d4dfcc;

  /* Warning */
  --color-warning:        #B87333;
  --color-warning-highlight: #F0E2D4;

  /* Error */
  --color-error:          #C0392B;
  --color-error-highlight: #F5D5D0;

  /* Shadows — tone-matched to warm surfaces */
  --shadow-sm: 0 1px 2px oklch(0.25 0.02 240 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.25 0.02 240 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.25 0.02 240 / 0.12);
  --shadow-xl: 0 20px 48px oklch(0.25 0.02 240 / 0.16);
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid oklch(from var(--color-border) l c h / 0.3);
}

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

.header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

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

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

.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-desktop a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive), background var(--transition-interactive);
  white-space: nowrap;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--color-primary);
  background: oklch(from var(--color-primary) l c h / 0.06);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-interactive);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}

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

.btn-primary:active {
  background: var(--color-accent-active);
  transform: translateY(0);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.2);
}

.btn-secondary:hover {
  background: var(--color-primary-highlight);
  border-color: oklch(from var(--color-primary) l c h / 0.35);
}

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

.btn-ghost:hover {
  background: var(--color-accent-highlight);
}

.btn-tertiary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn-tertiary:hover {
  background: var(--color-primary-active, #1E3A4F);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

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

/* ===== MOBILE NAV ===== */
.nav-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: background var(--transition-interactive);
}

.nav-mobile-toggle:hover {
  background: var(--color-surface-offset);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 200;
  padding: var(--space-6);
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-mobile.open {
  display: flex;
  opacity: 1;
}

.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-divider);
  display: block;
  transition: color var(--transition-interactive);
}

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

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .header-cta-desktop { display: none; }
  .nav-mobile-toggle { display: flex; }
}

/* Tablet/small-laptop: keep the desktop nav but drop the header CTA and
   tighten spacing so the header stops overflowing the viewport. */
@media (min-width: 901px) and (max-width: 1150px) {
  .header-cta-desktop { display: none; }
  .nav-desktop { gap: 0; }
  .nav-desktop a { padding: var(--space-2); }
}

/* ===== HERO ===== */
.hero {
  padding: clamp(var(--space-16), 10vw, var(--space-32)) var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-surface-offset) 0%, var(--color-bg) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, oklch(from var(--color-accent) l c h / 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--content-default);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.hero h1 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

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

/* ===== SECTIONS ===== */
.section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-6);
}

.section-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.section-narrow {
  max-width: var(--content-default);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}

.section-header h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section-header p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

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

.section--slate {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.section--slate h2,
.section--slate .section-label {
  color: var(--color-text-inverse);
}

.section--slate .section-label {
  color: var(--color-accent-light);
}

.section--slate p {
  color: oklch(from var(--color-text-inverse) l c h / 0.8);
}

/* ===== CARDS ===== */
.card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-border) l c h / 0.4);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-highlight);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-accent);
}

.card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== GRID LAYOUTS ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

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

@media (max-width: 600px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

/* ===== PROVIDER CARDS ===== */
.provider-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-border) l c h / 0.4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.provider-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.provider-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--color-surface-offset);
}

.provider-card-body {
  padding: var(--space-5);
}

.provider-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.provider-card .provider-title {
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.provider-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== PROVIDER DETAIL (Full page) ===== */
.provider-detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-8);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--color-divider);
}

.provider-detail:last-child {
  border-bottom: none;
}

.provider-detail--reverse {
  grid-template-columns: 1fr 280px;
}

.provider-detail--reverse > img {
  order: 2;
}

.provider-detail--reverse > div {
  order: 1;
}

@media (max-width: 768px) {
  .provider-detail--reverse > img {
    order: 0;
  }
  .provider-detail--reverse > div {
    order: 0;
  }
}

.provider-detail img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--color-surface-offset);
}

.provider-detail h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.provider-detail .provider-title {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.provider-detail .provider-education {
  margin-bottom: var(--space-4);
}

.provider-detail .provider-education h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.provider-detail .provider-education li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-4);
  position: relative;
  margin-bottom: var(--space-1);
}

.provider-detail .provider-education li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.provider-detail .provider-bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .provider-detail {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .provider-detail img {
    max-width: 240px;
  }
}

/* ===== SERVICE SECTIONS ===== */
.service-category {
  margin-bottom: var(--space-12);
  text-align: center;
}

.service-category .section-label,
.service-category > p {
  text-align: center;
}
.service-category > p {
  margin-left: auto !important;
  margin-right: auto !important;
}

.service-category h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
  text-align: center;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
  text-align: left;
}
@media (max-width: 900px) {
  .service-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .service-list { grid-template-columns: 1fr; }
}

.service-item {
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-border) l c h / 0.3);
  border-radius: var(--radius-lg);
  transition: all var(--transition-interactive);
}

.service-item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.service-item h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.service-item p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ===== AFFILIATIONS ===== */
.affiliation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  text-align: center;
}

.affiliation-item {
  padding: var(--space-6);
  background: oklch(from var(--color-text-inverse) l c h / 0.08);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text-inverse) l c h / 0.12);
}

.affiliation-item h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-inverse);
}

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

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-primary-active);
  color: oklch(from var(--color-text-inverse) l c h / 0.8);
  padding: clamp(var(--space-10), 6vw, var(--space-16)) var(--space-6) var(--space-6);
}

.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

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

.footer-brand img {
  height: 120px;
  width: auto;
  display: block;
  margin-bottom: var(--space-4);
  filter: none;
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: oklch(from var(--color-text-inverse) l c h / 0.65);
  max-width: 320px;
}

.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-4);
}

.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: oklch(from var(--color-text-inverse) l c h / 0.65);
  text-decoration: none;
  padding: var(--space-1) 0;
  transition: color var(--transition-interactive);
}

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

.footer-bottom {
  border-top: 1px solid oklch(from var(--color-text-inverse) l c h / 0.12);
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-bottom p,
.footer-bottom a {
  font-size: var(--text-xs);
  color: oklch(from var(--color-text-inverse) l c h / 0.5);
}

.footer-bottom a {
  text-decoration: none;
  transition: color var(--transition-interactive);
}

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

/* ===== CONTACT FORM ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  background: var(--color-surface);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px oklch(from var(--color-accent) l c h / 0.12);
}

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

/* ===== INSURANCE GRID ===== */
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-3);
}

.insurance-item {
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-border) l c h / 0.3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  text-align: center;
}

/* ===== PAGE HERO (interior pages) ===== */
.page-hero {
  padding: clamp(var(--space-10), 6vw, var(--space-16)) var(--space-6);
  background: linear-gradient(180deg, var(--color-surface-offset) 0%, var(--color-bg) 100%);
  text-align: center;
}

.page-hero h1 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.page-hero p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== RIDGELINE DECORATIVE SVG ===== */
.ridgeline-divider {
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  color: var(--color-accent);
  opacity: 0.35;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
}

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-accent-highlight);
  color: var(--color-accent);
}

/* ===== INFO BOX ===== */
.info-box {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-border) l c h / 0.4);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-accent);
}

.info-box h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.info-box p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ===== RESOURCE CARD ===== */
.resource-card {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-border) l c h / 0.4);
  border-radius: var(--radius-lg);
  align-items: flex-start;
  transition: box-shadow var(--transition-interactive);
}

.resource-card:hover {
  box-shadow: var(--shadow-md);
}

.resource-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--color-primary-highlight);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.resource-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.resource-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

@media (max-width: 600px) {
  .resource-card {
    flex-direction: column;
  }
}

/* ===== MAP PLACEHOLDER ===== */
.map-placeholder {
  width: 100%;
  height: 300px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-border) l c h / 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
  font-size: var(--text-sm);
}

/* ===== PHONE STRIP ===== */
.phone-strip {
  background: var(--color-primary-active);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-6);
  font-size: var(--text-xs);
  text-align: center;
}

.phone-strip a {
  color: var(--color-accent-light);
  text-decoration: none;
  font-weight: 600;
}

/* ===== ABOUT PAGE 2-COL ===== */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===== UTILITY ===== */
/* Contact page 2-col responsive.
   The form column is a fixed 640px — the width the embedded Google Form
   needs to render without reflowing — and the office-info column takes
   the remainder. An equal 1fr 1fr split could never reach 640px, since
   .section-inner caps the row at 1200px and two 640px columns plus the
   gap would need 1320px. Below 1100px there isn't room for both, so the
   page stacks. */
.contact-grid {
  grid-template-columns: 640px minmax(0, 1fr);
}

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

/* Embedded Google Form.
   The iframe is cross-origin, so it can't self-report its height — the
   height is set per breakpoint to cover how far the form reflows as it
   narrows. Erring tall only adds whitespace; erring short causes an
   internal scrollbar. */
/* Embedded Google Form.
   The heading, intro, PHI notice and iframe share one 640px measure so
   their left and right edges line up — the form is 640px wide and can't
   shrink, so the text is brought to it rather than the reverse. */
.contact-form-col {
  max-width: 640px;
}

.contact-form-col > p {
  max-width: none;
}

.form-embed {
  width: 100%;
  max-width: 640px;
  margin: 0;
}

.form-embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 1559px;
  border: 0;
}

@media (max-width: 600px) {
  .form-embed iframe { height: 1750px; }
}

@media (max-width: 420px) {
  .form-embed iframe { height: 1950px; }
}

/* ===== FOOTER SERVICE AREA ===== */
.footer-service-area {
  border-top: 1px solid oklch(from var(--color-text-inverse) l c h / 0.1);
  padding-top: var(--space-6);
  margin-top: var(--space-2);
}
.footer-service-area p {
  font-size: var(--text-xs);
  line-height: 1.8;
  color: oklch(from var(--color-text-inverse) l c h / 0.45);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* ===== PRONOX SECTION ===== */
.pronox-content {
  max-width: 720px;
}
.pronox-benefits {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.pronox-benefits li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}
.pronox-benefits li svg {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 1px;
}
.section--slate .pronox-text h3 {
  color: #ffffff;
}
.section--slate .pronox-text .section-label {
  color: var(--color-accent);
}

/* ===== HERO AVAILABILITY BADGE ===== */
.hero-availability,
.cta-tagline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  margin-bottom: var(--space-6);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.01em;
}
.cta-tagline {
  /* tagline used above page CTAs (not the hero) */
  margin-top: 0;
}
.hero-availability svg {
  flex-shrink: 0;
}

/* ===== QUICK ACCESS BANNER ===== */
.quick-access {
  background: var(--color-primary);
  padding: var(--space-12) var(--space-6);
}
.quick-access-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.quick-access-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  color: #ffffff;
}
.quick-access-item svg {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: var(--space-1);
}
.quick-access-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: #ffffff;
}
.quick-access-item p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}
@media (max-width: 768px) {
  .quick-access-inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .hero-availability {
    font-size: var(--text-xs);
  }
}

.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* ============================================
   Testimonials Marquee
   ============================================ */
.testimonials-marquee {
  position: relative;
  overflow: hidden;
  margin-top: var(--space-8);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.testimonials-track {
  display: flex;
  gap: var(--space-4);
  width: max-content;
  animation: testimonials-scroll 60s linear infinite;
}
.testimonials-marquee:hover .testimonials-track { animation-play-state: paused; }
@keyframes testimonials-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.testimonial-card {
  flex: 0 0 360px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.testimonial-stars {
  color: var(--color-accent);
  letter-spacing: 2px;
  font-size: var(--text-base);
}
.testimonial-quote {
  color: var(--color-text);
  font-size: var(--text-base);
  line-height: 1.55;
  margin: 0;
}
.testimonial-author {
  margin-top: auto;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.testimonial-author strong {
  color: var(--color-primary);
  font-weight: 600;
  display: block;
}
.testimonial-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
@media (prefers-reduced-motion: reduce) {
  .testimonials-track { animation: none; }
}

/* Linked cards (used for clickable Specialty blocks on home) */
.card.card--link {
  display: block;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card.card--link:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.card.card--link h3 { color: var(--color-primary); }

/* CTA ridgeline divider (matches logo mountain outline) */
img.ridgeline-divider {
  display: block;
  width: clamp(240px, 38%, 360px);
  height: auto;
  margin: 0 auto var(--space-6);
  user-select: none;
}

/* ============================================================
   Providers Dropdown (desktop) + mobile sublinks
   ============================================================ */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: var(--color-surface, #fff);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.08);
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 12px 32px oklch(from var(--color-primary) l c h / 0.15),
              0 4px 12px oklch(from var(--color-primary) l c h / 0.08);
  padding: var(--space-3) 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Invisible bridge to prevent menu closing in the gap between toggle and menu */
.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown-menu a {
  display: block;
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text, #1a1a1a);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 0;
  background: transparent;
  transition: background 0.14s ease, color 0.14s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: oklch(from var(--color-primary) l c h / 0.08);
  color: var(--color-primary);
}

.nav-dropdown-menu a strong {
  color: var(--color-primary);
  font-weight: 700;
}

.nav-dropdown-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-5) var(--space-1);
  margin: 0;
}

.nav-dropdown-divider {
  height: 1px;
  background: oklch(from var(--color-primary) l c h / 0.08);
  margin: var(--space-2) 0;
}

/* Mobile sublinks (always visible, indented) */
.nav-mobile-sublinks {
  display: flex;
  flex-direction: column;
  padding-left: var(--space-4);
  margin-bottom: var(--space-2);
}

.nav-mobile-sublinks a {
  font-size: var(--text-sm) !important;
  color: var(--color-text-muted) !important;
  padding: var(--space-2) 0 !important;
  border-bottom: none !important;
}

.nav-mobile-sublinks a:hover {
  color: var(--color-primary) !important;
}

/* ============================================================
   Slideshow Component
   ============================================================ */
.slideshow {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: 0 18px 40px oklch(from var(--color-primary) l c h / 0.18),
              0 4px 12px oklch(from var(--color-primary) l c h / 0.08);
  background: oklch(from var(--color-primary) l c h / 0.06);
}

.slideshow--portrait {
  aspect-ratio: 4 / 3;
  max-width: 980px;
}

.slideshow-track {
  position: absolute;
  inset: 0;
}

.slideshow-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
  pointer-events: none;
}

.slideshow-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.slideshow-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-7) var(--space-6) var(--space-5);
  background: linear-gradient(to top,
    rgba(15, 35, 55, 0.92) 0%,
    rgba(15, 35, 55, 0.78) 40%,
    rgba(15, 35, 55, 0.35) 75%,
    transparent 100%);
  color: #fff;
  font-family: var(--font-display, inherit);
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
  pointer-events: none;
}

.slideshow-caption .label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #E8A77A;
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}

/* Dots */
.slideshow-dots {
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  display: flex;
  gap: 10px;
  z-index: 4;
  padding: 6px 10px;
  background: rgba(15, 35, 55, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.slideshow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.slideshow-dot:hover { background: rgba(255, 255, 255, 0.7); }

.slideshow-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

/* Prev / Next buttons */
.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 4px 12px oklch(from var(--color-primary) l c h / 0.2);
  transition: background 0.18s, transform 0.18s;
  opacity: 0;
  pointer-events: none;
}

.slideshow:hover .slideshow-nav,
.slideshow:focus-within .slideshow-nav {
  opacity: 1;
  pointer-events: auto;
}

.slideshow-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.slideshow-nav.prev { left: var(--space-4); }
.slideshow-nav.next { right: var(--space-4); }

@media (max-width: 720px) {
  .slideshow { aspect-ratio: 4 / 3; }
  .slideshow--portrait { aspect-ratio: 4 / 5; }
  .slideshow-nav { width: 36px; height: 36px; opacity: 1; pointer-events: auto; background: rgba(255,255,255,0.85); }
  .slideshow-caption { font-size: 1rem; padding: var(--space-4) var(--space-4) var(--space-6); }
}

@media (prefers-reduced-motion: reduce) {
  .slideshow-slide { transition: opacity 0.2s; }
}

/* ============================================================
   Admin Card Avatar (matches provider headshot size)
   ============================================================ */
.admin-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), oklch(from var(--color-primary) calc(l + 0.08) c h));
  color: #fff;
  font-family: var(--font-display, inherit);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px oklch(from var(--color-primary) l c h / 0.18);
}
