/* ============================================================
   HAPPY CARE FOUNDATION — Main Stylesheet
   Brand colors extracted from official logo:
     Navy    : #1E4A73  (primary text, nav, footer)
     Magenta : #C62D7A  (primary CTA, highlights)
     Green   : #A8C43A  (secondary accents, icons)
     Teal    : #2EAFCF  (links, info)
     Yellow  : #F0C43A  (badges, callouts)
     Slate   : #58708B  (cards, muted UI)
     White   : #FFFFFF
     Off-white: #F7FAFC
   ============================================================ */

/* ---- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: #1E4A73;
  background: #FFFFFF;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: #2EAFCF; text-decoration: none; transition: color .2s; }
a:hover { color: #C62D7A; }

ul { list-style: none; }

/* ---- CSS Variables ---------------------------------------- */
:root {
  --navy:      #1E4A73;
  --navy-dark: #132f4c;
  --magenta:   #C62D7A;
  --magenta-dk:#9e1f61;
  --green:     #A8C43A;
  --green-dk:  #7d9428;
  --teal:      #2EAFCF;
  --teal-dk:   #1f8caa;
  --yellow:    #F0C43A;
  --slate:     #58708B;
  --slate-lt:  #EEF4F8;
  --white:     #FFFFFF;
  --off-white: #F7FAFC;
  --shadow:    0 4px 20px rgba(30,74,115,.10);
  --radius:    10px;
  --transition: .25s ease;
}

/* ---- Typography ------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--navy);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { margin-bottom: 1rem; }
.lead { font-size: 1.15rem; color: var(--slate); }

/* ---- Layout helpers --------------------------------------- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section    { padding: 80px 0; }
.section--alt { background: var(--off-white); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: var(--white); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }

.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform .15s;
  letter-spacing: .02em;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--magenta);
  color: var(--white);
  border-color: var(--magenta);
}
.btn-primary:hover {
  background: var(--magenta-dk);
  border-color: var(--magenta-dk);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
}

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

.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-teal:hover {
  background: var(--teal-dk);
  border-color: var(--teal-dk);
  color: var(--white);
}

.btn-green {
  background: var(--green);
  color: var(--navy);
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-dk);
  border-color: var(--green-dk);
  color: var(--white);
}

.btn-sm { padding: .5rem 1.4rem; font-size: .85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ---- Navigation ------------------------------------------- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(30,74,115,.10);
  transition: background var(--transition);
}

#site-header.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 20px rgba(30,74,115,.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.nav-logo img {
  height: 52px;
  width: auto;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-text span:first-child {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}
.nav-logo-text span:last-child {
  font-size: .72rem;
  color: var(--slate);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: var(--navy);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .02em;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--magenta);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--magenta); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--magenta); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta { margin-left: .5rem; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--slate-lt);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--navy);
  font-weight: 500;
  padding: .7rem 5%;
  border-bottom: 1px solid var(--slate-lt);
}
.nav-mobile a:hover { color: var(--magenta); background: var(--off-white); }
.nav-mobile .btn { margin: 1rem 5% 0; display: block; text-align: center; }

/* ---- Hero Section ----------------------------------------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(30,74,115,.88) 0%, rgba(198,45,122,.62) 100%),
    url('../images/hero-bg.jpg') center/cover no-repeat;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(168,196,58,.15) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(46,175,207,.15) 0%, transparent 50%),
                    radial-gradient(circle at 60% 80%, rgba(240,196,58,.10) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(168,196,58,.25);
  border: 1px solid rgba(168,196,58,.5);
  color: var(--green);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero-content h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero-content h1 span { color: var(--yellow); }
.hero-content .lead { color: rgba(255,255,255,.88); margin-bottom: 2rem; font-size: 1.1rem; }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-scroll {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.7);
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero-scroll svg { width: 20px; height: 20px; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ---- Impact Stats bar ------------------------------------- */
#stats-bar {
  background: var(--navy);
  padding: 0;
}
.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 2.25rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-label {
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .03em;
}

/* ---- Section headings ------------------------------------- */
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: .6rem;
}
.section-title { margin-bottom: 1rem; }
.section-subtitle { color: var(--slate); max-width: 600px; font-size: 1rem; }
.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ---- Cards ------------------------------------------------ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(30,74,115,.15);
}
.card-img { height: 200px; object-fit: cover; width: 100%; }
.card-body { padding: 1.5rem; }
.card-tag {
  display: inline-block;
  background: var(--slate-lt);
  color: var(--teal);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}
.card-body h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.card-body p  { color: var(--slate); font-size: .9rem; margin-bottom: 1rem; }

/* ---- Service icons ---------------------------------------- */
.service-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.6rem;
}
.icon-magenta { background: rgba(198,45,122,.12); color: var(--magenta); }
.icon-teal    { background: rgba(46,175,207,.12);  color: var(--teal); }
.icon-green   { background: rgba(168,196,58,.15);  color: var(--green-dk); }
.icon-yellow  { background: rgba(240,196,58,.15);  color: #b88c00; }
.icon-navy    { background: rgba(30,74,115,.10);   color: var(--navy); }

/* ---- Testimonial ------------------------------------------ */
.testimonial-card {
  background: var(--white);
  border-left: 4px solid var(--magenta);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.testimonial-card blockquote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.7;
}
.testimonial-card blockquote::before { content: '\201C'; color: var(--magenta); font-size: 2rem; line-height: 0; vertical-align: -.4em; margin-right: .15em; }
.testimonial-card blockquote::after  { content: '\201D'; color: var(--magenta); font-size: 2rem; line-height: 0; vertical-align: -.4em; margin-left: .15em; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--slate-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--slate);
  flex-shrink: 0;
}
.author-info strong { display: block; color: var(--navy); font-size: .9rem; }
.author-info span   { color: var(--slate); font-size: .8rem; }

/* ---- Impact / Program strip ------------------------------ */
.program-strip {
  display: flex;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.program-strip-item {
  flex: 1;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition);
}
.program-strip-item:nth-child(1) { background: var(--navy); }
.program-strip-item:nth-child(2) { background: var(--magenta); }
.program-strip-item:nth-child(3) { background: var(--teal); }
.program-strip-item:nth-child(4) { background: var(--green-dk); }
.program-strip-item h4, .program-strip-item p { color: var(--white); }
.program-strip-item p { font-size: .85rem; opacity: .85; margin-bottom: 0; }
.program-strip-item:hover { filter: brightness(1.12); }

/* ---- Donate CTA band -------------------------------------- */
.donate-band {
  background: linear-gradient(135deg, var(--magenta) 0%, var(--navy) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.donate-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(168,196,58,.2), transparent 60%),
              radial-gradient(circle at 70% 50%, rgba(46,175,207,.15), transparent 60%);
}
.donate-band .container { position: relative; z-index: 1; }
.donate-band h2, .donate-band p { color: var(--white); }
.donate-band p { font-size: 1.1rem; opacity: .9; max-width: 600px; margin: 0 auto 2rem; }

/* ---- Footer ----------------------------------------------- */
#site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img { height: 56px; margin-bottom: 1rem; }
.footer-brand p { font-size: .88rem; line-height: 1.7; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--magenta); color: var(--white); }

.footer-col h5 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--teal); }

.footer-contact-item {
  display: flex;
  gap: .6rem;
  margin-bottom: .75rem;
  font-size: .88rem;
  align-items: flex-start;
}
.footer-contact-item i { color: var(--teal); margin-top: .1rem; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.45); margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.55); font-size: .8rem; }
.footer-bottom a:hover { color: var(--teal); }

/* ---- Page Hero (inner pages) ------------------------------ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dk) 100%);
  padding: 120px 0 60px;
  text-align: center;
  color: var(--white);
}
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero .lead { color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-content: center;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ---- Form styles ------------------------------------------ */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .4rem;
}
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid #d4dde8;
  border-radius: 8px;
  font-size: .95rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46,175,207,.15);
}
.form-control::placeholder { color: #a0aec0; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ---- Accordion -------------------------------------------- */
.accordion-item {
  border: 1.5px solid #e2eaf2;
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
}
.accordion-btn {
  width: 100%;
  background: var(--white);
  border: none;
  text-align: left;
  padding: 1.1rem 1.5rem;
  font-size: .98rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}
.accordion-btn:hover { background: var(--off-white); }
.accordion-btn i { transition: transform var(--transition); color: var(--teal); }
.accordion-btn.open i { transform: rotate(180deg); }
.accordion-body {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--slate);
  font-size: .95rem;
  line-height: 1.7;
}
.accordion-body.open { display: block; }

/* ---- Utility badges --------------------------------------- */
.badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.badge-magenta { background: rgba(198,45,122,.12); color: var(--magenta); }
.badge-teal    { background: rgba(46,175,207,.12);  color: var(--teal-dk); }
.badge-green   { background: rgba(168,196,58,.15);  color: var(--green-dk); }
.badge-yellow  { background: rgba(240,196,58,.2);   color: #8a6c00; }
.badge-navy    { background: rgba(30,74,115,.10);   color: var(--navy); }

/* ---- Progress bar ----------------------------------------- */
.progress-wrap { margin-bottom: 1rem; }
.progress-label { display: flex; justify-content: space-between; font-size: .82rem; color: var(--slate); margin-bottom: .4rem; }
.progress-bar-bg { height: 8px; background: var(--slate-lt); border-radius: 50px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 50px; background: var(--magenta); transition: width 1.2s ease; }

/* ---- Divider --------------------------------------------- */
.divider {
  width: 60px; height: 4px;
  background: var(--magenta);
  border-radius: 2px;
  margin: .75rem 0 1.5rem;
}
.divider-center { margin: .75rem auto 1.5rem; }
.divider-teal { background: var(--teal); }
.divider-green { background: var(--green); }

/* ---- Scroll to top --------------------------------------- */
#scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--magenta);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  box-shadow: 0 4px 14px rgba(198,45,122,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), background var(--transition);
  z-index: 900;
}
#scroll-top.visible { opacity: 1; pointer-events: all; }
#scroll-top:hover { background: var(--magenta-dk); }

/* ---- Animations ------------------------------------------ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- Responsive ------------------------------------------ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-item:nth-child(1), .stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,.1); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 60px 0; }
  .program-strip { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1); }
  h1 { font-size: 1.85rem; }
}
