/* ============================================================
   CLARITY WELLNESS BEHAVIORAL HEALTH CENTER
   Brand Colors extracted from logo:
   Navy: #1B3A5C  |  Green: #4A8C3F  |  Gold: #E8A020  |  Teal: #2E7D8C
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Nunito:wght@300;400;600;700&display=swap');

:root {
  --navy: #1B3A5C;
  --navy-dark: #0F2338;
  --navy-light: #2a5080;
  --green: #4A8C3F;
  --green-light: #6aac5f;
  --green-pale: #e8f5e4;
  --gold: #E8A020;
  --gold-light: #f5c050;
  --teal: #2E7D8C;
  --teal-light: #4da8ba;
  --white: #ffffff;
  --off-white: #f8faf7;
  --light-gray: #eef2ee;
  --text-dark: #1a2e1a;
  --text-mid: #3d5a3d;
  --text-light: #6b8c6b;
  --shadow-sm: 0 2px 12px rgba(27,58,92,0.08);
  --shadow-md: 0 8px 32px rgba(27,58,92,0.14);
  --shadow-lg: 0 20px 60px rgba(27,58,92,0.18);
  --radius: 12px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ============ UTILITY ============ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 18px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 620px;
  line-height: 1.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(74,140,63,0.35);
}
.btn-primary:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(74,140,63,0.45);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(27,58,92,0.3);
}
.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  box-shadow: 0 4px 20px rgba(232,160,32,0.35);
  font-weight: 800;
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,160,32,0.45);
}

/* ============ HEADER / NAV ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27,58,92,0.08);
  transition: var(--transition);
}

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

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.nav-logo img {
  height: 70px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
  background: var(--green-pale);
}

.nav-cta {
  background: var(--green) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: 10px 22px !important;
}
.nav-cta:hover {
  background: var(--green-light) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  background: linear-gradient(155deg, var(--navy-dark) 0%, var(--navy) 45%, var(--teal) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 94px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text .overline {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-text .overline::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--gold);
  display: block;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero-text h1 span {
  color: var(--gold);
}

.hero-text p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  color: var(--white);
  max-width: 380px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.stat-item {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px 16px;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}

/* ============ MARQUEE BAND ============ */
.marquee-band {
  background: var(--green);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
  gap: 0;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 32px;
}

.marquee-track span::after {
  content: '◆';
  color: var(--gold);
  font-size: 0.6rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ IS THIS YOU (SCENARIOS) ============ */
.scenarios {
  padding: 100px 0;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.scenarios::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,140,63,0.07) 0%, transparent 70%);
}

.scenarios-header {
  text-align: center;
  margin-bottom: 64px;
}

.scenarios-header .section-sub {
  margin: 0 auto;
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.scenario-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.scenario-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--green);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: var(--transition);
}

.scenario-card:hover {
  border-color: var(--green-pale);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.scenario-card:hover::before {
  transform: scaleY(1);
}

.scenario-icon {
  width: 56px; height: 56px;
  background: var(--green-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.scenario-card h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.scenario-card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 20px;
}

.scenario-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
}

.scenarios-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  color: var(--white);
}

.scenarios-cta h3 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.scenarios-cta p {
  opacity: 0.85;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.scenarios-cta .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ SERVICES ============ */
.services {
  padding: 100px 0;
  background: var(--white);
}

.services-header {
  margin-bottom: 64px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.service-card-top {
  height: 8px;
  background: linear-gradient(90deg, var(--green), var(--teal));
}

.service-card-body {
  padding: 32px 28px;
}

.service-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--light-gray);
  line-height: 1;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* ============ ABOUT ============ */
.about {
  padding: 100px 0;
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,140,63,0.12) 0%, transparent 70%);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-logo-wrap {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-logo-wrap img {
  width: 100%;
  max-width: 340px;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: 50%;
  width: 110px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  font-size: 0.75rem;
  line-height: 1.3;
  box-shadow: var(--shadow-md);
}

.about-text .section-label { color: var(--gold); }
.about-text .section-title { color: var(--white); }
.about-text .section-sub { color: rgba(255,255,255,0.75); max-width: 100%; }

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 16px;
}

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

.value-item p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

/* ============ REFERRAL ============ */
.referral {
  padding: 100px 0;
  background: var(--off-white);
}

.referral-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.referral-info h2 { margin-bottom: 16px; }
.referral-info .section-sub { margin-bottom: 36px; }

.referral-contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  width: 44px; height: 44px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--green);
}

.contact-item strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 2px;
}

.contact-item span {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 600;
}

/* ============ FORMS ============ */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-gray);
}

.form-card h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-card .form-subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--light-gray);
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(74,140,63,0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 12px;
  text-align: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}

.form-success .success-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.form-success h4 {
  color: var(--green);
  margin-bottom: 8px;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img {
  height: 64px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

.footer-col h4 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

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

/* ============ CRISIS BANNER ============ */
.crisis-banner {
  background: linear-gradient(90deg, #c0392b, #e74c3c);
  color: var(--white);
  text-align: center;
  padding: 10px 24px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.crisis-banner a {
  color: var(--gold-light);
  text-decoration: underline;
}

/* ============ PAGE HEADERS ============ */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--teal) 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.page-header-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 14px;
}

.page-header-content p {
  font-size: 1.1rem;
  opacity: 0.82;
  max-width: 560px;
}

/* ============ APPLICATION PAGE ============ */
.application-section {
  padding: 80px 0 100px;
}

.application-intro {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.application-intro h2 { margin-bottom: 14px; }

.app-form-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 60px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--light-gray);
}

.form-section-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 32px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-pale);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--off-white);
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: var(--transition);
}

.checkbox-label:hover {
  border-color: var(--green);
  background: var(--green-pale);
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  padding: 0;
  border: none;
  accent-color: var(--green);
}

/* ============ ANIMATIONS ============ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-content,
  .about-inner,
  .referral-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .app-form-card { padding: 40px 32px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 94px; left: 0; right: 0;
    background: var(--white);
    padding: 20px 24px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--light-gray);
    z-index: 999;
    gap: 4px;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; justify-content: center; }
}
