/* ============================================================
   OASIS COUNSELING SOLUTIONS — GLOBAL STYLESHEET
   assets/css/style.css
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS / CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand colors */
  --color-brand-primary:     #3D6E62;
  --color-brand-primary-dk:  #2E5449;
  --color-brand-accent:      #C47E4A;
  --color-brand-accent-dk:   #A8682F;
  --color-brand-pale:        #EAF0EE;

  /* Backgrounds */
  --color-bg:                #FAF9F6;
  --color-bg-section-alt:    #F3F0EB;
  --color-surface:           #FFFFFF;
  --color-cta-bg:            #3D6E62;
  --color-hero-overlay:      rgba(30, 50, 45, 0.58);

  /* Text */
  --color-text-body:         #2C2C2C;
  --color-text-muted:        #6B6B6B;
  --color-text-inverse:      #FFFFFF;
  --color-text-link:         #3D6E62;

  /* Borders */
  --color-border:            #DDD8D0;
  --color-border-light:      #EDE9E3;

  /* Sage section */
  --color-sage-bg:           #D4E2DC;
  --color-sage-border:       #B2CBBC;

  /* Utility */
  --color-brand-pale-dark:   #C8DAD2;
  --color-placeholder-bg:    #D9E6E1;
  --color-placeholder-border:#B8CFCA;

  /* Typography */
  --font-display:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Type sizes */
  --size-display-xl:   clamp(2.6rem, 5.5vw, 4rem);
  --size-display-lg:   clamp(2.1rem, 4vw, 3rem);
  --size-display-md:   clamp(1.6rem, 2.8vw, 2.1rem);
  --size-display-sm:   clamp(1.25rem, 2vw, 1.6rem);
  --size-body-lg:      1.125rem;
  --size-body:         1rem;
  --size-body-sm:      0.875rem;
  --size-label:        0.72rem;

  /* Line heights */
  --leading-tight:     1.2;
  --leading-snug:      1.35;
  --leading-normal:    1.55;
  --leading-relaxed:   1.7;

  /* Spacing */
  --space-xs:   0.375rem;
  --space-sm:   0.75rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6.5rem;

  /* Layout */
  --container-max:    1200px;
  --container-prose:  720px;
  --container-narrow: 560px;
  --section-pad-y:    var(--space-xl);

  /* Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   14px;
  --radius-xl:   22px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-card:  0 2px 12px rgba(0,0,0,0.07);
  --shadow-nav:   0 2px 18px rgba(0,0,0,0.10);

  /* Transitions */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --duration-sm: 160ms;
  --duration-md: 260ms;
}

/* ============================================================
   2. RESET AND BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

a {
  color: var(--color-text-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--duration-sm) var(--ease-out);
}

a:hover {
  color: var(--color-brand-primary-dk);
}

ul, ol {
  list-style: none;
}

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

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

address {
  font-style: normal;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--color-brand-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-sm);
  font-size: var(--size-body-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--duration-sm);
}

.skip-link:focus {
  top: 1rem;
}

/* ============================================================
   3. TYPOGRAPHY SCALE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-text-body);
}

h1 {
  font-size: var(--size-display-xl);
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--size-display-lg);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--size-display-sm);
}

h4 {
  font-size: var(--size-body-lg);
  font-family: var(--font-body);
  font-weight: 600;
}

p {
  line-height: var(--leading-relaxed);
  color: var(--color-text-body);
}

p + p {
  margin-top: var(--space-sm);
}

.lead {
  font-size: var(--size-body-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-body);
}

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

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--size-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-brand-accent);
  margin-bottom: 0.5rem;
}

.section-header--center {
  text-align: center;
  max-width: var(--container-prose);
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

.section-header--center .section-label {
  justify-content: center;
}

/* Styled list */
.styled-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.styled-list li {
  padding-left: 1.4rem;
  position: relative;
  font-size: var(--size-body);
  line-height: var(--leading-relaxed);
}

.styled-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-brand-accent);
  flex-shrink: 0;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-lg) 0;
}

/* ============================================================
   4. LAYOUT SYSTEM
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }
}

@media (min-width: 1280px) {
  .container {
    padding-inline: 2.5rem;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

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

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

.flex-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

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

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

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

/* Service grid — 2 cols mobile, 3 desktop */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

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

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

/* ============================================================
   5. NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  transition: box-shadow var(--duration-md) var(--ease-out);
  position: relative;
  z-index: 500;
}

.site-header.is-sticky {
  box-shadow: var(--shadow-nav);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  max-width: var(--container-max);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .site-nav {
    padding-inline: 2rem;
  }
}

/* Wordmark */
.nav-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-brand-primary);
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
}

.nav-wordmark span {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-wordmark:hover {
  color: var(--color-brand-primary-dk);
}

/* Nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-body);
  text-decoration: none;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--duration-sm), background-color var(--duration-sm);
  font-family: var(--font-body);
}

.nav-link:hover,
.nav-link.nav-active,
.nav-link[aria-current="page"] {
  color: var(--color-brand-primary);
  background-color: var(--color-brand-pale);
}

.nav-link--dropdown::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.6;
  transition: transform var(--duration-sm);
}

.nav-link--dropdown[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* Nav item + dropdown */
.nav-item {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-nav);
  padding: 0.4rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity var(--duration-md) var(--ease-out),
    transform var(--duration-md) var(--ease-out),
    visibility 0s var(--duration-md);
  z-index: 600;
}

/* Pseudo-element bridge to close the gap between button and dropdown */
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
}

.nav-link--dropdown[aria-expanded="true"] ~ .nav-dropdown,
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity var(--duration-md) var(--ease-out),
    transform var(--duration-md) var(--ease-out),
    visibility 0s 0s;
}

.nav-dropdown a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.87rem;
  color: var(--color-text-body);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background-color var(--duration-sm), color var(--duration-sm);
}

.nav-dropdown a:hover,
.nav-dropdown a[aria-current="page"] {
  background-color: var(--color-brand-pale);
  color: var(--color-brand-primary);
}

/* CTA wrap */
.nav-cta-wrap {
  display: none;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .nav-cta-wrap {
    display: flex;
  }
}

/* Hamburger button */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

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

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text-body);
  border-radius: 2px;
  transition: transform var(--duration-md), opacity var(--duration-md);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav panel */
.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 490;
  background-color: var(--color-surface);
  overflow-y: auto;
  padding: 5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-panel[hidden] {
  display: none;
}

.nav-panel-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-panel-links .nav-link {
  width: 100%;
  justify-content: space-between;
  font-size: 1.05rem;
  padding: 0.75rem 0.85rem;
}

.nav-panel-dropdown {
  list-style: none;
  padding: 0.25rem 0 0.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.nav-panel-dropdown a {
  display: block;
  padding: 0.45rem 0.85rem;
  font-size: 0.92rem;
  color: var(--color-text-body);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.nav-panel-dropdown a:hover {
  background-color: var(--color-brand-pale);
  color: var(--color-brand-primary);
}

.nav-panel-cta {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ============================================================
   6. HERO SECTIONS
   ============================================================ */
.section-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-brand-primary);
}

@media (min-width: 768px) {
  .section-hero {
    min-height: 560px;
  }
}

.section-hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-placeholder-bg);
  background-size: cover;
  background-position: center;
}

.section-hero__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-hero-overlay);
  z-index: 1;
}

.section-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-xl) 0;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-top: var(--space-md);
}

.stat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: var(--space-md);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text-inverse);
  line-height: 1;
}

.stat-label {
  font-size: var(--size-body-sm);
  color: rgba(255,255,255,0.75);
  margin-top: 0.15rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--space-md);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  background-color: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-inverse);
  white-space: nowrap;
}

/* ============================================================
   7. SECTION TEMPLATES
   ============================================================ */
.section-light {
  background-color: var(--color-bg);
  padding: var(--section-pad-y) 0;
}

.section-alt {
  background-color: var(--color-bg-section-alt);
  padding: var(--section-pad-y) 0;
}

.section-sage {
  background-color: var(--color-sage-bg);
  border-top: 1px solid var(--color-sage-border);
  border-bottom: 1px solid var(--color-sage-border);
  padding: var(--section-pad-y) 0;
}

.section-cta-banner {
  background-color: var(--color-cta-bg);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.section-cta-banner h2 {
  font-family: var(--font-display);
  font-size: var(--size-display-lg);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-sm);
}

.section-cta-banner p {
  color: rgba(255,255,255,0.88);
  font-size: var(--size-body-lg);
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.cta-phone {
  font-size: var(--size-body-lg);
  font-weight: 600;
  color: var(--color-brand-primary);
  text-decoration: none;
}

.cta-phone:hover {
  color: var(--color-brand-primary-dk);
}

.cta-phone--inverse {
  color: rgba(255,255,255,0.9);
}

.cta-phone--inverse:hover {
  color: var(--color-text-inverse);
}

/* ============================================================
   8. SERVICE CARDS
   ============================================================ */
.service-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--duration-md) var(--ease-out), transform var(--duration-md) var(--ease-out);
}

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

.service-card__image {
  aspect-ratio: 4/3;
  width: 100%;
  background-color: var(--color-placeholder-bg);
}

.service-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.service-card__body h3 {
  font-size: var(--size-body-lg);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--color-text-body);
}

.service-card__body p {
  font-size: var(--size-body-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  flex: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--size-body-sm);
  font-weight: 600;
  color: var(--color-brand-primary);
  text-decoration: none;
  margin-top: auto;
  padding-top: 0.5rem;
}

.service-card__link::after {
  content: '→';
  font-size: 0.9em;
}

.service-card__link:hover {
  color: var(--color-brand-primary-dk);
}

/* ============================================================
   9. THERAPIST CARDS
   ============================================================ */
.therapist-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.therapist-card__photo {
  aspect-ratio: 4/5;
  width: 100%;
  background-color: var(--color-placeholder-bg);
}

.therapist-card__body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.therapist-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-body);
  line-height: var(--leading-snug);
  margin: 0;
}

.therapist-card__cta {
  margin-top: 0.75rem;
}

/* ============================================================
   10. INSURANCE PILLS AND GRID
   ============================================================ */
.insurance-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--space-md);
}

.insurance-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  background-color: var(--color-brand-pale);
  border: 1px solid var(--color-brand-pale-dark);
  border-radius: var(--radius-pill);
  font-size: var(--size-body-sm);
  font-weight: 500;
  color: var(--color-brand-primary);
  white-space: nowrap;
}

.insurance-pill--lg {
  padding: 0.55rem 1.25rem;
  font-size: var(--size-body);
}

/* ============================================================
   11. TESTIMONIALS
   ============================================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

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

.testimonial-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-card__text {
  font-size: var(--size-body);
  line-height: var(--leading-relaxed);
  color: var(--color-text-body);
  font-style: italic;
}

.testimonial-card__author {
  font-size: var(--size-body-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  color: var(--color-brand-accent);
  font-size: 0.9rem;
}

/* ============================================================
   12. LOCATION BLOCKS
   ============================================================ */
.location-block {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.location-block__map {
  aspect-ratio: 16/9;
  width: 100%;
  background-color: var(--color-placeholder-bg);
}

.location-block__map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.location-block__body {
  padding: 1.5rem;
}

.location-block__name {
  font-size: var(--size-body-lg);
  font-weight: 600;
  color: var(--color-brand-primary);
  margin-bottom: 0.5rem;
}

.location-block__address {
  font-size: var(--size-body-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-body);
}

/* ============================================================
   13. FAQ ACCORDION
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: 600;
  color: var(--color-text-body);
  cursor: pointer;
  list-style: none;
  transition: color var(--duration-sm);
}

.faq-question:hover {
  color: var(--color-brand-primary);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-brand-primary);
  flex-shrink: 0;
  transition: transform var(--duration-md) var(--ease-out);
}

details[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: 1.1rem;
}

.faq-answer p {
  font-size: var(--size-body);
  line-height: var(--leading-relaxed);
  color: var(--color-text-body);
}

.faq-answer p + p {
  margin-top: 0.6rem;
}

.faq-answer a {
  color: var(--color-brand-primary);
}

/* ============================================================
   14. FORMS AND INPUTS
   ============================================================ */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

.form-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: var(--size-body);
  font-family: var(--font-body);
  color: var(--color-text-body);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--duration-sm), box-shadow var(--duration-sm);
}

.form-input:focus {
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px rgba(61, 110, 98, 0.15);
}

.form-input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

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

/* ============================================================
   15. BUTTONS
   ============================================================ */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background-color var(--duration-sm) var(--ease-out),
    color var(--duration-sm) var(--ease-out),
    border-color var(--duration-sm) var(--ease-out),
    transform var(--duration-sm),
    box-shadow var(--duration-sm);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background-color: var(--color-cta-bg);
  color: var(--color-text-inverse);
  border-color: var(--color-cta-bg);
}

.btn-primary:hover {
  background-color: var(--color-brand-primary-dk);
  border-color: var(--color-brand-primary-dk);
  color: var(--color-text-inverse);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(61, 110, 98, 0.28);
}

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

.btn-secondary:hover {
  background-color: var(--color-brand-pale);
  color: var(--color-brand-primary-dk);
  border-color: var(--color-brand-primary-dk);
}

.btn-secondary--inverse {
  color: var(--color-text-inverse);
  border-color: rgba(255,255,255,0.6);
}

.btn-secondary--inverse:hover {
  background-color: rgba(255,255,255,0.15);
  color: var(--color-text-inverse);
  border-color: var(--color-text-inverse);
}

/* Sizes */
.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: var(--size-body-sm);
}

.btn-lg {
  padding: 0.95rem 2.1rem;
  font-size: var(--size-body-lg);
}

/* ============================================================
   16. CREDENTIAL BADGES
   ============================================================ */
.credential-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  background-color: var(--color-brand-pale);
  border: 1px solid var(--color-brand-pale-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-brand-primary);
  white-space: nowrap;
}

/* ============================================================
   17. FOOTER
   ============================================================ */
.site-footer {
  padding: var(--space-xl) 0 var(--space-md);
  background-color: var(--color-brand-primary);
  color: rgba(255,255,255,0.85);
}

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

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

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

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text-inverse);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: var(--size-body-sm);
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.footer-location {
  font-size: var(--size-body-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-sm);
}

.footer-location strong {
  display: block;
  color: var(--color-text-inverse);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.footer-location a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 500;
}

.footer-location a:hover {
  color: var(--color-text-inverse);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-social a {
  font-size: var(--size-body-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color var(--duration-sm);
}

.footer-social a:hover {
  color: var(--color-text-inverse);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--size-body-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-inverse);
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  font-size: var(--size-body-sm);
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color var(--duration-sm);
}

.footer-links a:hover {
  color: var(--color-text-inverse);
}

.footer-legal {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
}

.footer-legal a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--color-text-inverse);
}

/* ============================================================
   18. IMAGE PLACEHOLDERS
   ============================================================ */
.img-placeholder {
  display: block;
  width: 100%;
  background-color: var(--color-placeholder-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-placeholder-border);
}

/* Aspect ratio variants */
.img-placeholder--hero {
  aspect-ratio: 16/9;
}

.img-placeholder--service {
  aspect-ratio: 16/9;
}

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

.img-placeholder--dog {
  aspect-ratio: 3/2;
}

.img-placeholder--square {
  aspect-ratio: 1/1;
}

.img-placeholder--wide {
  aspect-ratio: 21/9;
}

/* ============================================================
   19. PRICING CALLOUT COMPONENT
   ============================================================ */
.pricing-callout {
  background-color: var(--color-brand-pale);
  border: 1px solid var(--color-sage-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pricing-callout__rate {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--color-brand-primary);
  line-height: 1;
}

.pricing-callout__note {
  font-size: var(--size-body-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ============================================================
   20. STEPS LIST COMPONENT
   ============================================================ */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

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

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--color-brand-primary);
  color: var(--color-text-inverse);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  flex-shrink: 0;
  line-height: 1;
}

.step-content h3 {
  font-size: var(--size-body-lg);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding-top: 0.35rem;
}

.step-content p {
  font-size: var(--size-body);
  color: var(--color-text-body);
  line-height: var(--leading-relaxed);
}

/* ============================================================
   21. FOOTER BRAND COLOR TOKEN HELPER
   ============================================================ */
:root {
  --color-brand-pale: #EAF0EE;
}

/* ============================================================
   22. UTILITIES
   ============================================================ */
.mt-xs  { margin-top: var(--space-xs); }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }

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

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

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-lg) 0;
}

/* ============================================================
   23. RESPONSIVE OVERRIDES
   ============================================================ */

/* 480px — small phones */
@media (min-width: 480px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 768px — tablets */
@media (min-width: 768px) {
  :root {
    --section-pad-y: 5rem;
  }

  .stat-bar {
    gap: 2.5rem;
  }

  .hero-cta-row {
    flex-wrap: nowrap;
  }

  .cta-row {
    flex-wrap: nowrap;
  }

  .steps-list {
    gap: var(--space-xl);
  }
}

/* 1024px — desktop */
@media (min-width: 1024px) {
  :root {
    --section-pad-y: var(--space-2xl);
  }

  .service-card__image {
    aspect-ratio: 16/9;
  }

  .footer-grid {
    gap: var(--space-xl);
  }
}

/* 1280px — wide */
@media (min-width: 1280px) {
  .container {
    padding-inline: 2.5rem;
  }
}

/* ============================================================
   24. REDUCED MOTION SUPPORT
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .nav-dropdown {
    transition: none;
  }

  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }

  .service-card:hover {
    transform: none;
  }
}