/* ==========================================================================
   Mahira Family Counselling & Mediation — Design System
   Palette: deep teal (trust/calm) + dusty rose (warmth) + sage + warm ivory
   Type: Fraunces (display) + Karla (body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Karla:wght@400;500;600;700&display=swap');

:root {
  /* Color tokens */
  --ink: #1F2937;
  --ink-soft: #4B5A66;
  --bg: #FAF7F2;
  --bg-alt: #F1ECE3;
  --surface: #FFFFFF;
--teal: #1F5F73;
--teal-dark: #163C49;
--teal-tint: #E1EDF1;
  --rose: #C08575;
  --rose-dark: #A66B5C;
  --rose-tint: #F5E9E5;
  --sage: #A8C3A0;
  --gold: #D4A574;
  --border: #E3DCD0;
  --shadow: 0 10px 30px -12px rgba(31, 41, 55, 0.18);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', -apple-system, sans-serif;

  /* Layout */
  --max-width: 1140px;
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--teal-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-dark);
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--rose);
  border-radius: 2px;
}

/* Focus visibility (accessibility) */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Signature element: the "connecting thread" — echoes the logo's two
   figures joined into a heart. Used as a section divider throughout.
   ========================================================================== */

.thread-divider {
  width: 100%;
  height: 40px;
  display: block;
}
.thread-divider path {
  stroke: var(--rose);
  stroke-width: 2;
  fill: none;
  opacity: 0.55;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(192, 133, 117, 0.6);
}
.btn-primary:hover { background: var(--rose-dark); }

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

.btn-outline {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
}
.btn-outline:hover { background: var(--teal); color: #fff; }

.btn-block { width: 100%; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--teal-dark);
}
.brand svg { width: 34px; height: 34px; }
.brand-logo { width: 92px; height: 92px; object-fit: contain; }
.footer-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: #fff;
  border-radius: 10px;
  padding: 5px;
  flex-shrink: 0;
}
.footer-logo-badge .brand-logo { width: 100%; height: 100%; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--teal);
  border-color: var(--rose);
}

.nav-cta { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.nav-cta .btn { white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav { flex-wrap: wrap; justify-content: flex-start; }
  .brand { font-size: 0.98rem; gap: 8px; margin-right: auto; }
  .brand-logo { width: 65px; height: 65px; }
  .nav-toggle { margin-left: 12px; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; border-bottom: 1px solid var(--border); border-left: 3px solid transparent; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { border-left-color: var(--rose); border-bottom-color: var(--border); }
  .nav-toggle { display: block; }
  .nav-cta { width: 100%; justify-content: center; margin-top: 14px; }
  .nav-cta .btn span.btn-text-long { display: none; }
}

@media (min-width: 861px) and (max-width: 1080px) {
  .nav { padding: 16px 20px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 0.88rem; }
  .nav-cta { margin-left: 12px; }
  .nav-cta .btn { padding: 12px 20px; font-size: 0.88rem; }
}


/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 90px 0 70px;
}
.hero::after {
  content: '';
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,165,116,0.18), transparent 70%);
}
.hero-inner {
  max-width: 720px;
  position: relative;
}
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before { background: var(--gold); }
.hero h1 { color: #fff; }
.hero p.lead {
  color: rgba(255,255,255,0.86);
  font-size: 1.1rem;
  max-width: 620px;
}
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

/* ==========================================================================
   Sections / cards
   ========================================================================== */

.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-teal { background: var(--teal-dark); color: #fff; }
.section-teal h2 { color: #fff; }
.section-teal p { color: rgba(255,255,255,0.78); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.icon-badge {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--teal-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon-badge svg { width: 26px; height: 26px; stroke: var(--teal); }
.card.rose .icon-badge { background: var(--rose-tint); }
.card.rose .icon-badge svg { stroke: var(--rose-dark); }
.card.sage .icon-badge { background: #EEF4EC; }
.card.sage .icon-badge svg { stroke: #5C7A54; }

.card a.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--teal); font-size: 0.92rem; margin-top: 6px;
}

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  padding: 34px 0;
}
.trust-item { display: flex; align-items: center; gap: 12px; flex: 1 1 220px; }
.trust-item svg { width: 30px; height: 30px; stroke: var(--rose-dark); flex-shrink: 0; }
.trust-item strong { display: block; color: var(--teal-dark); font-family: var(--font-display); font-size: 1.05rem; }
.trust-item span { font-size: 0.88rem; color: var(--ink-soft); }

/* ==========================================================================
   Illustration blocks (CSS/SVG based, no stock photos)
   ========================================================================== */

.illustration {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.illustration.teal { background: linear-gradient(140deg, var(--teal-tint), #fff); }
.illustration.rose { background: linear-gradient(140deg, var(--rose-tint), #fff); }
.illustration svg { width: 60%; height: 60%; }

.portrait-frame {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  position: relative;
  background: var(--teal-tint);
  box-shadow: var(--shadow);
}
.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--teal-dark);
  margin-bottom: 8px;
}
.field .hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
textarea, select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--teal); }
textarea { resize: vertical; min-height: 110px; }

.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-pill {
  position: relative;
}
.choice-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-pill label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
  margin: 0;
}
.choice-pill input:checked + label {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.choice-pill input:focus-visible + label { outline: 3px solid var(--teal); outline-offset: 2px; }

.session-type-group { display: flex; gap: 14px; flex-wrap: wrap; }
.session-type-card { position: relative; flex: 1 1 160px; }
.session-type-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.session-type-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  margin: 0;
}
.session-type-card label strong { color: var(--teal-dark); font-size: 0.95rem; }
.session-type-card label span { font-size: 0.8rem; color: var(--ink-soft); }
.session-type-card input:checked + label {
  border-color: var(--rose);
  background: var(--rose-tint);
}
.session-type-card input:focus-visible + label { outline: 3px solid var(--teal); outline-offset: 2px; }

.form-msg {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 0.92rem;
}
.form-msg.success { background: #E4F1E1; color: #2E5C29; border: 1px solid #BCDCB4; }
.form-msg.error { background: #FBE7E4; color: #97372A; border: 1px solid #F2C4BC; }

/* ==========================================================================
   Star rating input
   ========================================================================== */

.star-input { display: flex; flex-direction: row-reverse; gap: 4px; justify-content: flex-end; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label {
  font-size: 2rem;
  color: var(--border);
  cursor: pointer;
  transition: color 0.12s;
  margin: 0;
  line-height: 1;
}
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label {
  color: var(--gold);
}
.star-input input:focus-visible + label { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.star-display { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; }

/* ==========================================================================
   Reviews carousel
   ========================================================================== */

.reviews-carousel { position: relative; padding: 0 60px; }
.reviews-track-wrap { overflow: hidden; }
.reviews-track {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  transition: transform 0.35s ease;
}


.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 0 calc(50% - 12px);
  min-width: 0;
  box-sizing: border-box;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.review-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.review-card:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.review-card .quote-mark { font-family: var(--font-display); font-size: 2.4rem; color: var(--rose); line-height: 0.5; opacity: 0.5; }
.review-card p {
  color: var(--ink);
  font-size: 0.96rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-more-hint { font-size: 0.78rem; color: var(--rose-dark); font-weight: 700; }

@media (max-width: 720px) {
  .review-card { flex: 0 0 100%; }
  .reviews-carousel { padding: 0 44px; }
}
.review-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.review-meta strong { color: var(--teal-dark); font-size: 0.88rem; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.15s, border-color 0.15s;
}
.carousel-btn:hover { background: var(--teal); border-color: var(--teal); }
.carousel-btn:hover svg { stroke: #fff; }
.carousel-btn svg { width: 20px; height: 20px; stroke: var(--teal-dark); }
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-btn:disabled:hover { background: var(--surface); border-color: var(--border); }
.carousel-btn:disabled:hover svg { stroke: var(--teal-dark); }

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; background: var(--border); cursor: pointer; padding: 0;
}
.carousel-dots button[aria-current="true"] { background: var(--rose); width: 22px; border-radius: 999px; }

.no-reviews {
  text-align: center;
  padding: 50px 20px;
  color: var(--ink-soft);
  font-style: italic;
}

.review-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.review-modal[hidden] { display: none; }
.review-modal-backdrop { position: absolute; inset: 0; background: rgba(31, 41, 55, 0.55); }
.review-modal-box {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.review-modal-box p { color: var(--ink); margin: 14px 0; }
.review-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-alt);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
}
.review-modal-close:hover { background: var(--border); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.82);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand span { font-family: var(--font-display); color: #fff; font-size: 1.1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--teal-dark);
}
.faq-icon { width: 20px; height: 20px; stroke: var(--rose-dark); flex-shrink: 0; transition: transform 0.2s ease; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 22px;
}
.faq-answer p { margin: 0 0 18px; }
.faq-item.open .faq-answer { max-height: 400px; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge {
  display: inline-block;
  background: var(--sage);
  color: #2E4527;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}