:root {
  --blue: #1b1f8a;
  --blue-bright: #2a2fd6;
  --yellow: #f5e64a;
  --dark: #16162e;
  --gray: #5a5c72;
  --light-bg: #f6f7fc;
  --white: #ffffff;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--dark);
  line-height: 1.55;
  background: var(--white);
}

a { color: inherit; }

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  z-index: 100;
}

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

.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-link img { height: 52px; width: auto; }

nav.main-nav { display: flex; align-items: center; gap: 28px; }
nav.main-nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.95rem;
}
nav.main-nav a:hover { color: var(--blue-bright); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.phone-link {
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-yellow {
  background: var(--yellow);
  color: var(--dark);
}
.btn-yellow:hover { box-shadow: 0 6px 16px rgba(245, 230, 74, 0.5); }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-blue {
  background: var(--blue-bright);
  color: var(--white);
}
.btn-blue:hover { box-shadow: 0 6px 16px rgba(42, 47, 214, 0.4); }

.mobile-toggle { display: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 100%);
  color: var(--white);
  padding: 72px 0 88px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 28px;
  max-width: 52ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-photo {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }

/* Simple page hero (About Us, etc.) */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 100%);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.page-hero h1 { font-size: 2.5rem; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 60ch; margin: 0 auto; }

/* Sections */
section { padding: 72px 0; }
.section-eyebrow {
  color: var(--blue-bright);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.section-title {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--dark);
}
.section-lead {
  color: var(--gray);
  max-width: 68ch;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.bg-light { background: var(--light-bg); }

/* Programs */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  text-align: center;
}
.program-photo {
  width: 200px;
  height: 200px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-bright);
  overflow: hidden;
}
.program-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.program-photo-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--blue); }
.program-photo-card p { color: var(--gray); font-size: 0.9rem; }

/* Conditions ticker */
.ticker-band {
  background: var(--blue);
  overflow: hidden;
  padding: 20px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 55s linear infinite;
}
.ticker-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 16px;
  white-space: nowrap;
}
.ticker-content span:not(.ticker-dot) {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ticker-dot { color: var(--yellow); font-size: 1.1rem; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* Who We Help */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.audience-card {
  background: var(--white);
  border: 1px solid #ececf5;
  border-radius: var(--radius);
  padding: 32px;
  text-align: left;
}
.audience-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eef0ff;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.audience-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.audience-card .audience-sub {
  display: block;
  color: var(--blue-bright);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.audience-card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 20px; }
.audience-card a.btn { padding: 10px 20px; font-size: 0.9rem; }

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-photo {
  aspect-ratio: 831 / 1182;
  max-width: 340px;
  margin: 0 auto;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-bright);
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transform-origin: top; }
.about-copy p { color: var(--gray); margin-bottom: 18px; font-size: 1rem; }
.about-copy p:last-child { margin-bottom: 0; }

/* Location + Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.info-card {
  background: var(--white);
  border: 1px solid #ececf5;
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
.info-card h3 { color: var(--blue); margin-bottom: 12px; font-size: 1.1rem; }
.info-card p { color: var(--gray); margin-bottom: 6px; }
.info-card a { color: var(--blue-bright); font-weight: 700; text-decoration: none; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #ececf5;
  height: 260px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

form#contact-form {
  background: var(--white);
  border: 1px solid #ececf5;
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #dcdeee;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--light-bg);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  background: var(--white);
}
.form-row textarea { resize: vertical; min-height: 110px; }
form#contact-form .btn { width: 100%; border: none; }

#form-success,
#form-error {
  display: none;
  padding: 16px 18px;
  border-radius: 10px;
  font-weight: 600;
  margin-top: 16px;
}
#form-success {
  background: #eafaf1;
  border: 1px solid #b7ebc9;
  color: #146c33;
}
#form-error {
  background: #fdecea;
  border: 1px solid #f3b7b0;
  color: #9c2b22;
}
#form-error a { color: inherit; text-decoration: underline; }

button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Footer */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
footer .footer-brand { display: flex; align-items: center; gap: 12px; }
footer .footer-brand img { height: 36px; filter: brightness(0) invert(1); }
footer p { font-size: 0.85rem; }
footer a { text-decoration: none; color: rgba(255,255,255,0.85); }
footer a:hover { color: var(--yellow); }

@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
  .programs-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .header-cta .phone-link { display: none; }
}
