/* ==========================================================================
   TD Wellbeing & Support Services — shared stylesheet
   Palette: teal #1F6E7E · gold #C9A24B · cream #F6F3EC · navy #143246
   Type: Fraunces (display serif) + Source Sans 3 (body)
   ========================================================================== */

:root {
  --teal: #1F6E7E;
  --teal-dark: #17545F;
  --gold: #C9A24B;
  --gold-soft: #EFE3C2;
  --gold-line: #e6d7ab;
  --cream: #F6F3EC;
  --navy: #143246;
  --ink: #143246;
  --muted: #5A6670;
  --line: #E4DED0;
  --white: #ffffff;

  --maxw: 1120px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20,50,70,.04), 0 2px 8px rgba(20,50,70,.05);
  --shadow-md: 0 6px 18px rgba(20,50,70,.08), 0 2px 6px rgba(20,50,70,.05);
  --shadow-lg: 0 18px 44px rgba(20,50,70,.16);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; display: block; }

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

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .02em;
  margin-bottom: .9rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d8b262; color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-ghost:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246,243,236,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(246,243,236,0.95);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  transition: padding .3s var(--ease);
}
.site-header.scrolled .nav { padding: 8px 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img.logo { height: 54px; width: auto; transition: height .3s var(--ease); }
.site-header.scrolled .brand img.logo { height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: 'Fraunces', serif; font-size: 1.02rem; color: var(--navy); }
.brand-text .sub { display: flex; align-items: center; gap: 8px; font-size: .72rem; color: var(--muted); margin-top: 3px; }
.brand-text .sub img { height: 26px; width: auto; }

.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  color: var(--navy); font-weight: 600; font-size: .9rem; white-space: nowrap;
  padding: 8px 12px; border-radius: 999px; text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-links a:hover { background: var(--gold-soft); }
.nav-links a.active { color: var(--teal); }
.nav-links a.cta { background: var(--teal); color: #fff; }
.nav-links a.cta:hover { background: var(--teal-dark); }

.menu-btn {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 50px; height: 50px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; flex: none;
}
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-panel {
  display: none; flex-direction: column; gap: 6px;
  padding: 6px 24px 22px; border-top: 1px solid var(--line);
  max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
}
.mobile-panel a {
  color: var(--navy); font-weight: 600; padding: 13px 16px; border-radius: 12px;
  font-size: 1.05rem; text-decoration: none;
}
.mobile-panel a:hover { background: var(--gold-soft); }
.mobile-panel a.cta { background: var(--teal); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 60ch; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.18; margin: 0 0 .4em; }
.section-head p { font-size: 1.12rem; color: var(--muted); margin: 0; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }

.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); color: #cdd7dd; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-gold { background: var(--gold-soft); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.08; margin: 0 0 .5em; color: var(--navy); }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; bottom: -20px; left: -20px; background: #fff;
  border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px; max-width: 240px;
}
.hero-badge img { height: 46px; width: auto; }
.hero-badge span { font-size: .82rem; color: var(--muted); font-weight: 600; line-height: 1.3; }

/* ---------- Trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.trust .card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.trust .card h3 { font-size: 1.15rem; margin: 0 0 .3em; color: var(--navy); }
.trust .card p { margin: 0; color: var(--muted); font-size: .98rem; }
.trust .tag { font-size: .78rem; font-weight: 700; color: var(--teal); display: block; margin-bottom: .5rem; }

/* ---------- Service cards (interactive) ---------- */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.card-service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; text-align: left; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative; font: inherit; color: inherit; width: 100%;
}
.card-service:hover, .card-service:focus-visible {
  transform: translateY(-6px); box-shadow: var(--shadow-md);
  border-color: var(--gold); outline: none;
}
.card-service .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--gold-soft);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card-service .icon svg { width: 24px; height: 24px; stroke: var(--teal); }
.card-service h3 { font-size: 1.22rem; margin: 0 0 .35em; color: var(--navy); }
.card-service p { margin: 0 0 1rem; color: var(--muted); font-size: .98rem; }
.card-service .more { font-size: .9rem; font-weight: 700; color: var(--teal); display: inline-flex; align-items: center; gap: 6px; }
.card-service .more svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.card-service:hover .more svg { transform: translateX(4px); }

/* ---------- Approach / list blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; flex: none; margin-top: 2px; stroke: var(--teal); }
.bg-navy .check-list svg { stroke: var(--gold); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step .num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-family: 'Fraunces',serif; font-weight: 600; margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin: 0; color: var(--navy); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 1.1rem; color: var(--navy);
  padding: 22px 44px 22px 0; position: relative;
}
.faq-q::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease);
}
.faq-item.open .faq-q::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { color: var(--muted); padding: 0 0 22px; margin: 0; }

/* ---------- Channel card (Resources) ---------- */
.channel-card {
  display: grid; grid-template-columns: 260px 1fr; gap: 0; align-items: stretch;
  max-width: 880px; margin: 0 auto; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.channel-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.channel-logo { background: var(--navy); display: grid; place-items: center; padding: 28px; }
.channel-logo img { width: 100%; max-width: 200px; height: auto; border-radius: 18px; }
.channel-body { padding: 32px 34px; }
.channel-tag {
  display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700;
  color: #c0392b; letter-spacing: .02em; margin-bottom: .7rem;
}
.channel-tag svg { width: 20px; height: 20px; }
.channel-body h3 { font-size: 1.5rem; margin: 0 0 .4em; color: var(--navy); }
.channel-body p { color: var(--muted); margin: 0 0 1.1rem; }
.channel-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--teal); }
.channel-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.channel-card:hover .channel-link svg { transform: translate(3px,-3px); }
@media (max-width: 620px) {
  .channel-card { grid-template-columns: 1fr; }
  .channel-logo { padding: 30px; }
  .channel-logo img { max-width: 150px; }
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem,3.4vw,2.6rem); margin: 0 0 .4em; }
.cta-band p { max-width: 54ch; margin: 0 auto 1.8rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 42px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--cream); color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,110,126,.14); background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.contact-aside ul { list-style: none; padding: 0; margin: 0; }
.contact-aside li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-aside li:last-child { border-bottom: 0; }
.contact-aside strong { color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c6cd; padding: 56px 0 28px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-grid h4 { color: #fff; font-family: 'Source Sans 3',sans-serif; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-grid a { color: #b9c6cd; text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px;
  font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: center;
}
.footer-bottom img { height: 30px; width: auto; }
.footer-badge { display: flex; align-items: center; gap: 8px; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(20,50,70,.55); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease);
  padding: 20px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: #fff; border-radius: var(--radius-lg); max-width: 520px; width: 100%;
  padding: 38px 34px; box-shadow: var(--shadow-lg); position: relative;
  transform: translateY(16px) scale(.98); transition: transform .35s var(--ease);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--gold-soft); display: grid; place-items: center; margin-bottom: 18px; }
.modal .icon svg { width: 26px; height: 26px; stroke: var(--teal); }
.modal h3 { font-size: 1.5rem; margin: 0 0 .4em; color: var(--navy); }
.modal p { color: var(--muted); }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: var(--cream); cursor: pointer; display: grid; place-items: center; color: var(--navy);
  transition: background .2s var(--ease);
}
.modal-close:hover { background: var(--gold-soft); }
.modal-close svg { width: 18px; height: 18px; }
.modal .btn { margin-top: 10px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
}
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 460px; }
  .cards, .trust { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 60px 0 56px; }
}
@media (max-width: 620px) {
  .cards, .trust, .steps { grid-template-columns: 1fr; }
  .brand-text .sub { display: none; }
  .hero-badge { left: 12px; bottom: 12px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
