/* ==========================================================================
   Sir Rebral Counseling — stylesheet
   ========================================================================== */

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

:root {
  --sage: #6b8f71;
  --sage-light: #e8f0e9;
  --sage-dark: #4a6650;
  --gold: #c9a96e;
  --gold-light: #f5edd8;
  --cream: #f8f6f2;
  --charcoal: #2c2c2c;
  --muted: #6b6b6b;
  --border: #d8d4cc;
  --white: #ffffff;

  --font-display: "Cormorant Garamond", serif;
  --font-body: "Inter", sans-serif;

  --container-width: 1100px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.7;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
}

a {
  color: inherit;
}

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

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sage-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sage);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Navigation ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(248, 246, 242, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: -0.3px;
}

.brand-name em {
  color: var(--sage);
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--sage);
}

.nav-links .btn-primary {
  padding: 9px 20px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--charcoal);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ---------- Buttons ---------- */

.btn-primary,
.btn-secondary,
.btn-white {
  display: inline-block;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border: 1.5px solid transparent;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.btn-primary {
  background: var(--sage);
  color: var(--white);
}

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

.btn-secondary {
  border-color: var(--sage);
  color: var(--sage);
}

.btn-secondary:hover {
  background: var(--sage-light);
}

.btn-white {
  background: var(--white);
  color: var(--sage);
  padding: 15px 36px;
  font-size: 16px;
}

.btn-white:hover {
  opacity: 0.9;
}

/* ---------- Layout helpers ---------- */

.section {
  padding: 5rem 2rem;
}

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--white);
  padding: 8rem 2rem 5rem;
  border-bottom: 1px solid var(--border);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

.hero h1 em {
  color: var(--sage);
  font-style: normal;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-weight: 300;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

/* ---------- Services ---------- */

.services {
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  list-style: none;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: var(--sage);
  transform: translateY(-2px);
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--sage-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.service-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- About ---------- */

.about {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.values {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
}

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

.value-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
  margin-top: 8px;
}

.value-item p {
  font-size: 15px;
  color: var(--charcoal);
}

.stats-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--sage);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

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

.stats-note {
  padding: 1.25rem 0.5rem 0.25rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

/* ---------- Clinicians ---------- */

.clinicians {
  background: var(--cream);
}

.clinicians-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  list-style: none;
}

.clinician-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.clinician-top {
  background: var(--sage-light);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.clinician-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white);
  flex-shrink: 0;
}

.clinician-top h3 {
  font-size: 22px;
  font-weight: 500;
  color: var(--charcoal);
}

.clinician-top p {
  font-size: 13px;
  color: var(--sage-dark);
  font-weight: 500;
  margin-top: 2px;
}

.clinician-body {
  padding: 1.5rem;
}

.clinician-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.tag {
  font-size: 12px;
  background: var(--sage-light);
  color: var(--sage-dark);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.clinicians-note {
  margin-top: 2rem;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Insurance ---------- */

.insurance {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.insurance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.insurance-intro {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.insurance-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.insurance-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.insurance-check {
  width: 24px;
  height: 24px;
  background: var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.insurance-item span {
  font-size: 15px;
  color: var(--charcoal);
}

.insurance-note {
  background: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.insurance-note h4 {
  font-size: 22px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.insurance-note p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.insurance-note .fine-print {
  margin-top: 1rem;
  font-size: 13px;
  color: #8a7040;
}

.insurance-verify {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.insurance-verify strong {
  color: var(--charcoal);
}

/* ---------- Schedule / CTA ---------- */

.schedule {
  background: var(--sage);
  padding: 5rem 2rem;
  text-align: center;
}

.schedule h2 {
  font-size: clamp(36px, 5vw, 52px);
  color: var(--white);
  margin-bottom: 1rem;
}

.schedule > .container > p:first-of-type {
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  margin-bottom: 2rem;
  font-weight: 300;
}

.schedule-cards {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  list-style: none;
}

.schedule-card {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 1.25rem 2rem;
  color: var(--white);
}

.schedule-card strong {
  display: block;
  font-size: 20px;
  font-family: var(--font-display);
  font-weight: 500;
}

.schedule-card span {
  font-size: 13px;
  opacity: 0.75;
}

.schedule-email {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.schedule-email a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 3rem 2rem;
}

.footer-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
}

.footer-brand .logo-text em {
  color: var(--sage);
  font-style: normal;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

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

.footer-col address {
  font-style: normal;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

.footer-bottom {
  max-width: var(--container-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p,
.footer-bottom a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Sub-page header ---------- */

.page-header {
  background: var(--white);
  padding: 7.5rem 2rem 3.5rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-header .section-eyebrow,
.page-header .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.page-header .section-title {
  margin-bottom: 0;
}

.page-header .section-sub {
  margin-top: 1rem;
}

/* ---------- CTA band (appears near the bottom of sub-pages) ---------- */

.cta-band {
  background: var(--sage-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.cta-band p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 1.5rem;
}

/* ---------- Nav active state ---------- */

.nav-links a[aria-current="page"] {
  color: var(--sage-dark);
  font-weight: 500;
}

/* ---------- Photo-based clinician avatar ---------- */

.clinician-avatar.has-photo {
  padding: 0;
  overflow: hidden;
}

.clinician-avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ---------- Home page preview sections (condensed, link out to full pages) ---------- */

.preview-link {
  display: inline-block;
  margin-top: 1.75rem;
  color: var(--sage-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--sage);
  padding-bottom: 2px;
}

.preview-link:hover {
  color: var(--sage);
}

.services-grid.preview,
.clinicians-grid.preview {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .hero .container,
  .about .container,
  .insurance-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 2rem 1rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }

  .nav-links[data-open="true"] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-links .btn-primary {
    text-align: center;
    margin-top: 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

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