/*
Theme Name: Healing Waters Foundation
Theme URI: https://healingwatersfoundation.ca
Author: Custom
Author URI: https://healingwatersfoundation.ca
Description: Custom theme for Healing Waters Foundation – accessible aquatic therapy nonprofit.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: healing-waters
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --blue-dark:    #6e99c0;
  --blue-mid:     #5f97bb;
  --blue-light:   #88a9c3;
  --blue-pale:    #e3ebf2;
  --blue-wash:    #e3ebf2;
  --white:        #ffffff;
  --off-white:    #f5f7fa;
  --text-dark:    #191919;
  --text-mid:     #22292f;
  --text-light:   #88a9c3;
  --accent:       #2b4257;
  --border:       #88a9c3;
  --shadow:       0 4px 24px rgba(110,153,192,0.15);
  --shadow-hover: 0 8px 36px rgba(110,153,192,0.25);
  --radius:       16px;
  --radius-sm:    10px;
  --font-main:    'Calibri', 'Segoe UI', Arial, sans-serif;
  --font-heading: 'Calibri', 'Segoe UI', Arial, sans-serif;
  --transition:   0.22s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--blue-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
ul { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--blue-dark);
  line-height: 1.25;
  font-weight: 700;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 80px 0; }
.section--tight { padding: 52px 0; }
.section--alt { background: var(--blue-wash); }

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

.btn {
  display: inline-block;
  background: var(--blue-mid);
  color: var(--white);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 34px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  letter-spacing: 0.02em;
}
.btn:hover {
  background: var(--blue-dark);
  color: var(--white);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  border: 2px solid var(--blue-mid);
  color: var(--blue-mid);
}
.btn--outline:hover {
  background: var(--blue-mid);
  color: var(--white);
}
.btn--ghost {
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.32);
  color: var(--white);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
/* ── Two-row header ─────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(26,74,122,0.07);
}

/* Row 1: Brand bar */
.header-brand-bar {
  background: var(--white);
  width: 100%;
  border-bottom: 1px solid var(--blue-pale);
  overflow: hidden;
}
.header-brand-bar .container {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: -8px;
  margin-bottom: -8px;
}
.header-brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  width: 100%;
}
.header-brand-img {
  height: 165px;
  width: auto;
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.header-brand-text {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
}
.header-brand-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Row 2: Nav bar */
.header-nav-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-nav-bar .container {
  padding-top: 0;
  padding-bottom: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  gap: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-mid);
  padding: 8px 28px;
  border-radius: 50px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-mid);
  background: var(--blue-pale);
}
.nav-links .btn {
  padding: 9px 28px;
  font-size: 1.08rem;
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO / BANNER
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 55%, var(--blue-light) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/program-1.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.22;
  filter: saturate(0.7);
}

/* Subtle wave overlay at bottom */
.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;
  color: var(--white);
  max-width: 700px;
  padding: 80px 0 120px;
}

.hero-logo-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}
.hero-logo-wrap img {
  height: 90px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.hero-logo-text {
  color: var(--white);
}
.hero-logo-text .hl-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.95;
  line-height: 1.2;
}
.hero-logo-text .hl-sub {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 3px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.18;
}
.hero p {
  font-size: 1.13rem;
  opacity: 0.92;
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   MISSION & VISION
   ============================================================ */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
}

.mission-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 42px 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-mid), var(--blue-light));
}
.mission-card h2 {
  font-size: 1.5rem;
  color: var(--blue-dark);
  margin-bottom: 16px;
}
.mission-card p {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.75;
}

.vision-bullets {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vision-bullets li {
  padding-left: 20px;
  position: relative;
  color: var(--text-mid);
  font-size: 0.97rem;
  line-height: 1.6;
}
.vision-bullets li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--blue-light);
  font-size: 0.6em;
  top: 6px;
}

/* ============================================================
   PROGRAMS / INITIATIVE CARDS  (Glenrose style)
   ============================================================ */
.section-heading {
  text-align: center;
  margin-bottom: 52px;
}
.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--blue-dark);
  margin-bottom: 10px;
}
.section-heading p {
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.programs-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
  margin: 0 auto;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.program-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.program-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: 50% 22%;
}

.program-card__body {
  padding: 28px 26px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.program-card__tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 8px;
}
.program-card__title {
  font-size: 1.18rem;
  color: var(--blue-dark);
  margin-bottom: 12px;
  font-weight: 700;
}
.program-card__desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}
.program-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--blue-mid);
  transition: gap var(--transition), color var(--transition);
}
.program-card__link:hover {
  color: var(--blue-dark);
  gap: 10px;
}
.program-card__link::after { content: '→'; }

/* ============================================================
   STATS / NUMBERS
   ============================================================ */
.stats-section {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  color: var(--white);
  padding: 72px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
.stat-item__number {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item__label {
  font-size: 0.95rem;
  opacity: 0.82;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 18px;
  left: 26px;
  font-size: 4rem;
  color: var(--blue-pale);
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-card__text {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 20px;
  padding-top: 28px;
  font-style: italic;
}
.testimonial-card__author {
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 0.92rem;
}
.testimonial-card__role {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* ============================================================
   MEET THE TEAM
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.team-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.team-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.team-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}
.team-card:hover .team-card__img {
  transform: scale(1.04);
}

.team-card__body {
  padding: 24px 24px 28px;
}
.team-card__name {
  font-size: 1.2rem;
  color: var(--blue-dark);
  margin-bottom: 4px;
}
.team-card__role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.team-card__bio {
  font-size: 0.94rem;
  color: var(--text-mid);
  line-height: 1.72;
}
.team-card__toggle {
  margin-top: 14px;
  background: none;
  border: none;
  color: var(--blue-mid);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}
.team-card__toggle:hover { color: var(--blue-dark); }
.team-card__full-bio {
  display: none;
  margin-top: 10px;
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.72;
}
.team-card__full-bio.open { display: block; }

/* ============================================================
   EVENTS & TRAINING
   ============================================================ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 34px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-left: 5px solid var(--blue-mid);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.event-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.event-card__tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.event-card__title {
  font-size: 1.25rem;
  color: var(--blue-dark);
  font-weight: 700;
}
.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.event-card__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-mid);
  font-weight: 600;
}
.event-card__meta-icon {
  font-size: 1rem;
}
.event-card__desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  flex: 1;
}
.event-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.event-card__price {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--blue-dark);
}

/* Template placeholder card */
.event-card--template {
  border-left-color: var(--border);
  background: var(--blue-wash);
}
.event-card--template .event-card__title {
  color: var(--text-light);
}
.template-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
  background: var(--border);
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
}

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

.footer-brand img {
  height: 60px;
  width: auto;
  margin-bottom: 18px;
}
.footer-brand p {
  font-size: 0.93rem;
  line-height: 1.75;
  max-width: 340px;
}
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 54px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.1rem;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.footer-social a:hover {
  background: var(--blue-mid);
  transform: translateY(-2px);
  color: var(--white);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.93rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.55;
}
.footer-bottom a {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
}
.footer-bottom a:hover { color: var(--white); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  color: var(--white);
  padding: 60px 0 54px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 10px;
}
.page-hero p {
  opacity: 0.82;
  font-size: 1.05rem;
  max-width: 500px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .programs-grid,
  .team-grid,
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 2fr); gap: 20px; }
  .mission-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .programs-grid,
  .team-grid,
  .testimonials-grid,
  .events-grid,
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 54px; left: 0; right: 0; background: var(--white); padding: 16px 18px 24px; border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px rgba(26,74,122,0.10); z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-inner { justify-content: flex-end; }
  .header-brand-title { font-size: 1.1rem; white-space: normal; }
  .header-brand-img { height: 64px; }
  .hero { min-height: 70vh; }
  .hero-logo-wrap img { height: 60px; }
  .hero-logo-text .hl-title { font-size: 1.1rem; }
  .section { padding: 52px 0; }
}
