/* ============================================
   Utah Mental Health Advocates — Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Lato:wght@300;400;700&display=swap');

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

:root {
  --cream:       #F5F0EA;
  --cream-dark:  #EBE4D9;
  --sage:        #5C7A6B;
  --sage-dark:   #4A6356;
  --brown:       #7D6048;
  --charcoal:    #2C3333;
  --gray:        #6E7A7A;
  --white:       #FFFFFF;
  --max-w:       1160px;
}

/* ── Base ────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', 'Segoe UI', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; }

/* ── Navigation ──────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--charcoal);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav-logo-text .brand-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--sage-dark);
}
.nav-logo-text .brand-sub {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.25rem;
}
.nav-links a {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--sage); }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── Hero ────────────────────────────── */
.hero {
  position: relative;
  height: 52vh;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(22, 35, 28, 0.48);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 0 2rem;
  max-width: 820px;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
  margin-bottom: 2rem;
}
.hero-sub {
  font-size: 1.05rem;
  opacity: 0.88;
  margin-bottom: 2.2rem;
  font-weight: 300;
}

/* ── Buttons ─────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.75);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}
.btn-primary {
  background: var(--sage);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74,99,86,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--sage);
  border: 1.5px solid var(--sage);
}
.btn-ghost:hover {
  background: var(--sage);
  color: var(--white);
}

/* ── Layout helpers ──────────────────── */
main { padding-top: 70px; }

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

section { padding: 5.5rem 2rem; }

.section-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}
.section-body {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.8;
  max-width: 700px;
}

.text-center { text-align: center; }
.text-center .section-body { margin: 0 auto; }

.divider {
  width: 48px;
  height: 2px;
  background: var(--sage);
  margin: 1.5rem auto;
}

/* ── Intro section ───────────────────── */
.intro {
  background: var(--white);
  padding: 4.5rem 2rem;
}
.intro p {
  font-size: 1.12rem;
  color: var(--charcoal);
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.85;
}
.intro p strong { color: var(--sage-dark); }

/* ── About two-column ────────────────── */
.about {
  background: var(--cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.conditions-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin: 1.75rem 0 0.9rem;
}
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.condition-item {
  font-size: 0.88rem;
  color: var(--gray);
  padding: 0.45rem 0.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.locations-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.location-tag {
  background: var(--white);
  border: 1px solid rgba(92, 122, 107, 0.28);
  color: var(--sage-dark);
  font-size: 0.8rem;
  padding: 0.32rem 0.9rem;
  border-radius: 20px;
}
.virtual-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--sage-dark);
  font-style: italic;
}

/* ── CTA Banner ──────────────────────── */
.cta-banner {
  position: relative;
  padding: 7.5rem 2rem;
  background-size: cover;
  background-position: center;
  text-align: center;
}
.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18, 30, 24, 0.52);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: clamp(1.4rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  max-width: 700px;
  margin: 0 auto 2.25rem;
  text-shadow: 0 2px 18px rgba(0,0,0,0.3);
}

/* ── Team page hero (shorter) ────────── */
.page-hero {
  position: relative;
  height: 52vh;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(22, 35, 28, 0.5);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
}
.page-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
  margin-bottom: 1.5rem;
}

/* ── Team grid ───────────────────────── */
.team-section { background: var(--cream); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.team-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 18px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.11);
}

.card-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.card-photo-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--cream-dark) 0%, var(--cream) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-photo-placeholder.hiring-bg {
  background: linear-gradient(135deg, rgba(92,122,107,0.12) 0%, rgba(92,122,107,0.04) 100%);
}
.initials-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 500;
}
.hiring-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(92,122,107,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  font-size: 1.8rem;
}

.card-body { padding: 1.4rem 1.5rem; }

.card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
}
.card-meta-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dark);
}
.card-meta-value {
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 0.6rem;
}
.card-price {
  display: inline-block;
  background: var(--cream);
  padding: 0.28rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sage-dark);
  margin: 0.5rem 0 1.1rem;
}
.card-actions {
  display: flex;
  gap: 0.65rem;
}
.card-actions .btn {
  flex: 1;
  text-align: center;
  padding: 0.65rem 0.75rem;
  font-size: 0.67rem;
}

.team-card.hiring-card {
  border: 2px dashed rgba(92,122,107,0.3);
  background: rgba(245,240,234,0.6);
  box-shadow: none;
}
.team-card.hiring-card:hover {
  border-color: var(--sage);
  box-shadow: 0 8px 24px rgba(92,122,107,0.12);
}

/* ── Locations section ───────────────── */
.locations-section {
  background: var(--charcoal);
  padding: 5rem 2rem;
  text-align: center;
  color: var(--white);
}
.locations-section .section-title { color: var(--white); }
.locations-section .section-body  { color: rgba(255,255,255,0.7); margin: 0 auto 2rem; }

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.location-chip {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s;
}
.location-chip:hover {
  background: rgba(92,122,107,0.3);
  border-color: var(--sage);
  color: var(--white);
}

/* ── Services ────────────────────────── */
.services-section { background: var(--cream); }
.services-intro {
  max-width: 720px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.8;
  text-align: center;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 0.85rem;
}
.service-card {
  background: var(--white);
  border: 1px solid rgba(92,122,107,0.15);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  font-size: 0.93rem;
  color: var(--charcoal);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.service-card:hover {
  border-color: var(--sage);
  background: rgba(92,122,107,0.04);
  transform: translateY(-2px);
  color: var(--sage-dark);
}
.service-card::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  opacity: 0.5;
}

/* ── Pricing / FAQ ───────────────────── */
.pricing-section { background: var(--white); }
.pricing-section .section-body { margin: 0 auto 3rem; text-align: center; }

.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 2.25rem 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-q {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}
.faq-a {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.8;
}
.faq-a strong { color: var(--sage-dark); }

/* ── Footer ──────────────────────────── */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 3.5rem 2rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1.75rem;
}
.footer-logo .brand-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--white);
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
  margin-bottom: 1.75rem;
}
.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.copyright { font-size: 0.78rem; opacity: 0.45; }

/* ── Responsive ──────────────────────── */
@media (max-width: 820px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.25rem;
  }
  .conditions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 640px) {
  nav { padding: 0 1.25rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  section { padding: 4rem 1.25rem; }
  .hero { background-attachment: scroll; }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .card-actions { flex-direction: column; }
  .locations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
