/* ==========================================================
   CARE Family Counselling & Children's Wellness Center
   Main Stylesheet
   ========================================================== */

:root {
  --navy: #2E3192;
  --lavender: #9B7BD3;
  --marigold: #F4B400;
  --butter: #FFE79A;
  --ivory: #FFFDF8;
  --white: #FFFFFF;
  --gold-soft: #F9D76E;
  --text: #2B2B2B;
  --border: #EEE7D8;
  --footer-bg: #F4F1FA;

  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI', Arial, Helvetica, sans-serif;

  --radius: 14px;
  --shadow: 0 6px 24px rgba(46, 49, 146, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ivory);
  line-height: 1.6;
  font-size: 16px;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 { font-size: clamp(28px, 5vw, 44px); }
h2 { font-size: clamp(24px, 4vw, 32px); }
h3 { font-size: 20px; }

p { margin: 0 0 16px; }

.eyebrow {
  color: var(--marigold);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  letter-spacing: .5px;
  margin-bottom: 6px;
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: #23256f; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1ebc59; transform: translateY(-2px); }
.btn-gold { background: var(--marigold); color: var(--white); }
.btn-gold:hover { background: #d99e00; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 46px; width: auto; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
}
.brand-text span { color: var(--lavender); font-weight: 400; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  border-bottom-color: var(--marigold);
}
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none;
  background: none; border: none;
  font-size: 26px; color: var(--navy);
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px;
    gap: 14px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn-outline { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--lavender) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 90px 0 100px;
}
.hero::after {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  background: var(--gold-soft);
  opacity: .15;
  border-radius: 50%;
  right: -120px; top: -100px;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--white); max-width: 720px; }
.hero p.lead { font-size: 19px; max-width: 620px; opacity: .95; }
.hero .eyebrow { color: var(--butter); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero-actions .btn-outline { border-color: var(--white); color: var(--white); }
.hero-actions .btn-outline:hover { background: var(--white); color: var(--navy); }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-alt { background: var(--white); }
.section-header { max-width: 680px; margin-bottom: 40px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card .icon { font-size: 30px; margin-bottom: 12px; display: block; }

.card-service h3 { margin-bottom: 8px; }
.card-service .q { color: var(--lavender); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }

/* ---------- Team / psychologist profile ---------- */
.profile {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 36px;
  border: 1px solid var(--border);
}
.profile img {
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 1/1;
}
.profile .specialties {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 10px 0 18px;
}
.profile .specialties span {
  background: var(--footer-bg);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}
.profile blockquote {
  border-left: 3px solid var(--marigold);
  margin: 18px 0 0;
  padding-left: 16px;
  color: #4a4a4a;
  font-style: italic;
}
@media (max-width: 700px) {
  .profile { grid-template-columns: 1fr; }
  .profile img { max-width: 180px; margin: 0 auto; }
}

/* ---------- Events ---------- */
.event-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.event-card img { height: 180px; width: 100%; object-fit: cover; background: var(--footer-bg); }
.event-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.event-date-badge {
  display: inline-block;
  background: var(--marigold);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  width: fit-content;
}
.event-card.past .event-date-badge { background: var(--lavender); }
.event-card.past { opacity: .85; }
.tabs { display: flex; gap: 12px; margin-bottom: 30px; }
.tab-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}
.tab-btn.active { background: var(--navy); color: var(--white); }
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: #777;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 14px;
}
.faq-item summary {
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: '+ '; color: var(--marigold); font-weight: 900; }
.faq-item[open] summary::before { content: '– '; }
.faq-item p { margin-top: 12px; margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 18px;
  background: var(--ivory);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--lavender);
  outline-offset: 1px;
}
textarea { min-height: 120px; resize: vertical; }

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 600;
}
.alert-success { background: #E8F7EE; color: #1c7a3d; border: 1px solid #b7e6c6; }
.alert-error { background: #FDEAEA; color: #a13030; border: 1px solid #f1bcbc; }

/* ---------- Why choose us icons ---------- */
.feature { text-align: center; }
.feature .icon-circle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--footer-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin: 0 auto 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  padding: 50px 0 20px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 { margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  font-size: 13px;
  color: #666;
  text-align: center;
}

/* ---------- Floating WhatsApp button ---------- */
.float-whatsapp {
  position: fixed;
  bottom: 22px; right: 22px;
  background: #25D366;
  color: var(--white);
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  z-index: 200;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
