/* ==========================================================================
   Mental Wellness — Demonstration Website
   Design system + component styles
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --navy: #102b46;
  --navy-800: #17395a;
  --teal: #167d80;
  --teal-600: #136a6d;
  --teal-700: #0f5a5c;
  --mint: #e5f5f1;
  --mint-200: #d2ece6;
  --paleblue: #eff8fb;
  --cream: #fff9f1;
  --white: #ffffff;
  --body: #465767;
  --muted: #6b7c8a;
  --line: #e4edf1;

  --shadow-sm: 0 2px 8px rgba(16, 43, 70, 0.06);
  --shadow: 0 12px 30px rgba(16, 43, 70, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 43, 70, 0.12);

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --container: 1180px;
  --gutter: 24px;

  --font: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

img {
  object-fit: cover;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--teal-700);
}

h1,
h2,
h3,
h4 {
  font-family: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.05rem, 5vw, 3.35rem);
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid rgba(22, 125, 128, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -80px;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  padding: 12px 22px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 200;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section--tight {
  padding: clamp(40px, 5vw, 64px) 0;
}

.bg-mint {
  background: var(--mint);
}
.bg-cream {
  background: var(--cream);
}
.bg-paleblue {
  background: var(--paleblue);
}
.bg-navy {
  background: var(--navy);
  color: #cfe0ec;
}
.bg-navy h2,
.bg-navy h3 {
  color: #fff;
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(34px, 4vw, 56px);
  text-align: center;
}

.section-head p {
  font-size: 1.05rem;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.eyebrow--light {
  color: #7fd8d3;
}

.text-teal {
  color: var(--teal);
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(22, 125, 128, 0.28);
}
.btn-primary:hover {
  background: var(--teal-700);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(22, 125, 128, 0.34);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: #cbdae2;
}
.btn-outline:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--teal-700);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover {
  background: var(--mint);
  color: var(--teal-700);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 11px 18px;
  font-size: 0.88rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--teal);
  font-size: 0.94rem;
}
.link-arrow .arw {
  transition: transform 0.2s var(--ease);
}
.link-arrow:hover .arw {
  transform: translateX(4px);
}

/* ---------- 5. Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(16, 43, 70, 0.08);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-text strong {
  color: var(--navy);
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text small {
  font-size: 0.57rem;
  letter-spacing: 0.15em;
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
}

.nav {
  margin-left: auto;
}

.nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--navy);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-link:hover {
  background: var(--mint);
  color: var(--teal-700);
}

.nav-link.is-active {
  color: var(--teal);
  background: var(--mint);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.icon-btn:hover {
  background: var(--mint);
  color: var(--teal-700);
  border-color: var(--mint-200);
}

.hamburger {
  display: none;
  width: 46px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Search drawer */
.search-bar {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 16px 0;
}

.search-bar.is-open {
  display: block;
  animation: slideDown 0.28s var(--ease);
}

.search-form {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin-inline: auto;
}

.search-form input {
  flex: 1;
}

/* Mobile nav */
@media (max-width: 1024px) {
  .nav {
    position: fixed;
    inset: 78px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 14px var(--gutter) 22px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
      visibility 0.25s;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
  }

  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }

  .nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    display: block;
    padding: 14px 16px;
    font-size: 1.02rem;
    border-radius: 12px;
  }

  .hamburger {
    display: flex;
  }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--paleblue) 0%, #ffffff 78%);
  padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 7vw, 96px);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
  top: -80px;
  right: -60px;
}

.hero::after {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--cream) 0%, transparent 72%);
  bottom: -90px;
  left: -70px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero p.lead {
  font-size: 1.1rem;
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 30px;
}

.trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 26px;
}

.trust-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--navy);
}

.trust-points svg {
  width: 22px;
  height: 22px;
  color: var(--teal);
  flex-shrink: 0;
}

.hero-media {
  position: relative;
  isolation: isolate;
}

.hero-media .frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4;
}

.hero-media .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: auto -22px -22px auto;
  width: 62%;
  height: 72%;
  background: linear-gradient(135deg, var(--mint), var(--paleblue));
  border-radius: var(--radius-lg);
  z-index: -1;
}

.hero-note {
  position: absolute;
  left: -14px;
  bottom: 26px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: var(--shadow);
  font-family: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive;
  color: var(--teal-700);
  font-size: 1.02rem;
  transform: rotate(-3deg);
  border: 1px solid var(--mint-200);
}

.hero-badge {
  position: absolute;
  right: -10px;
  top: 26px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  max-width: 190px;
}

.hero-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(22, 125, 128, 0.16);
  flex-shrink: 0;
}

/* ---------- 7. Quick service icons row ---------- */
.quick-services {
  padding: 0 0 clamp(40px, 5vw, 60px);
  margin-top: -34px;
  position: relative;
  z-index: 5;
}

.quick-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  text-align: center;
  padding: 16px 10px;
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.quick-item:hover {
  background: var(--mint);
  color: var(--teal-700);
  transform: translateY(-3px);
}

.quick-item svg {
  width: 30px;
  height: 30px;
  color: var(--teal);
}

/* ---------- 8. Stats bar ---------- */
.stats {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 46px) clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.stats::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  top: -120px;
  background: radial-gradient(circle, rgba(22, 125, 128, 0.5), transparent 70%);
  border-radius: 50%;
}

.stat {
  position: relative;
  text-align: center;
}

.stat svg {
  width: 26px;
  height: 26px;
  color: #7fd8d3;
  margin: 0 auto 8px;
}

.stat .num {
  display: block;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat .lbl {
  display: block;
  font-size: 0.82rem;
  color: #a9c3d6;
  margin-top: 4px;
}

.stats-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 16px;
  font-style: italic;
}

/* ---------- 9. Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--mint-200);
}

.card .icon-round {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--teal);
  margin-bottom: 18px;
}

.card .icon-round svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.card .link-arrow {
  margin-top: auto;
}

.card--accent {
  background: linear-gradient(160deg, var(--paleblue), #fff);
}

/* Feature list with ticks */
.ticks {
  display: grid;
  gap: 16px;
  margin: 22px 0 28px;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.97rem;
}

.ticks svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--teal);
}

/* ---------- 10. About split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 66px);
  align-items: center;
}

.split-media {
  position: relative;
  isolation: isolate;
}

.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.split-media .accent-block {
  position: absolute;
  left: -20px;
  bottom: -20px;
  width: 46%;
  height: 46%;
  background: linear-gradient(135deg, var(--mint), var(--paleblue));
  border-radius: var(--radius-lg);
  z-index: -1;
}

.float-card {
  position: absolute;
  right: -14px;
  bottom: 22px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 230px;
}

.float-card .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal);
}

.float-card .txt {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

/* ---------- 11. Team cards ---------- */
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.team-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--mint);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.team-card:hover .team-photo img {
  transform: scale(1.04);
}

.team-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-body h3 {
  margin-bottom: 2px;
  font-size: 1.14rem;
}

.team-role {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.team-body p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.team-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  flex-wrap: wrap;
}

.team-actions .btn {
  flex: 1;
  min-width: 120px;
}

/* ---------- 12. Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  position: relative;
  counter-reset: step;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step .step-num {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.step p {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
}

/* ---------- 13. Testimonials ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial .quote-mark {
  font-size: 3rem;
  line-height: 0.6;
  color: var(--mint-200);
  font-family: Georgia, serif;
  margin-bottom: 10px;
}

.testimonial p {
  color: var(--navy);
  font-size: 1.02rem;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.testimonial .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--mint);
  display: grid;
  place-items: center;
  color: var(--teal);
  font-weight: 800;
}

.testimonial .who b {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
}

.testimonial .who small {
  color: var(--muted);
  font-size: 0.78rem;
}

/* ---------- 14. Resource cards ---------- */
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.post-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mint);
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.post-card:hover .post-thumb img {
  transform: scale(1.05);
}

.post-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--paleblue);
  color: var(--teal-700);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.post-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.post-body p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.post-body .link-arrow {
  margin-top: auto;
}

/* ---------- 15. Wellbeing banner ---------- */
.wellbeing {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.wellbeing img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.wellbeing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(16, 43, 70, 0.86),
    rgba(22, 125, 128, 0.78)
  );
  z-index: 1;
}

.wellbeing .container {
  position: relative;
  z-index: 2;
}

.wellbeing h2 {
  color: #fff;
}

.wellbeing p {
  color: #e2eef3;
  max-width: 620px;
  margin-inline: auto;
}

.wellbeing .quote {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.12rem;
  color: #bff0ec;
  margin: 22px auto 30px;
}

.wellbeing .cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 16. Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--paleblue), #fff);
  padding: clamp(40px, 6vw, 76px) 0 clamp(30px, 4vw, 48px);
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 14px;
}

.breadcrumb a {
  color: var(--teal);
  font-weight: 600;
}

/* ---------- 17. Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}

.field .req {
  color: #c0392b;
}

input,
select,
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--navy);
  background: #fbfdfe;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

input::placeholder,
textarea::placeholder {
  color: #9aa9b6;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 125, 128, 0.13);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #d9534f;
  background: #fdf5f5;
}

.error-msg {
  display: none;
  color: #c0392b;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 6px;
}

.field.has-error .error-msg {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
}

.check {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--body);
}

.check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--teal);
}

.pw-wrap {
  position: relative;
}

.pw-wrap input {
  padding-right: 88px;
}

.pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}

.pw-toggle:hover {
  background: var(--mint);
}

.form-success {
  display: none;
  background: var(--mint);
  border: 1px solid var(--mint-200);
  border-radius: var(--radius);
  padding: 20px 22px;
  color: var(--teal-700);
  margin-bottom: 20px;
}

.form-success.show {
  display: block;
  animation: slideDown 0.35s var(--ease);
}

.form-success h3 {
  margin: 0 0 6px;
  color: var(--teal-700);
  font-size: 1.05rem;
}

.form-success ul {
  margin-top: 10px;
  font-size: 0.9rem;
}

.form-success li {
  padding: 3px 0;
}

.form-success b {
  color: var(--navy);
}

/* ---------- 18. Auth pages ---------- */
.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.auth-visual {
  position: relative;
  color: #fff;
  padding: clamp(34px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.auth-visual img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(16, 43, 70, 0.82),
    rgba(22, 125, 128, 0.7)
  );
  z-index: 1;
}

.auth-visual .inner {
  position: relative;
  z-index: 2;
}

.auth-visual h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.auth-visual p {
  color: #dceaf0;
  max-width: 34ch;
}

.auth-visual .badges {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.auth-visual .badges span {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 600;
}

.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(30px, 5vw, 60px) clamp(22px, 4vw, 54px);
  background: #fff;
}

.auth-form {
  width: 100%;
  max-width: 430px;
}

.auth-form .brand {
  margin-bottom: 26px;
}

.auth-form h1 {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  margin-bottom: 6px;
}

.auth-form .sub {
  color: var(--muted);
  margin-bottom: 26px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  margin: 24px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.oauth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.oauth-btn:hover {
  background: var(--paleblue);
  border-color: var(--mint-200);
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- 19. Contact ---------- */
.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.contact-info-card .icon-round {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--mint);
  color: var(--teal);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-info-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.map-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  min-height: 320px;
  background: linear-gradient(135deg, var(--mint), var(--paleblue));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
}

.map-placeholder svg {
  width: 60px;
  height: 60px;
  color: var(--teal);
  margin: 0 auto 12px;
}

.map-placeholder p {
  color: var(--navy);
  font-weight: 700;
  margin: 0;
}

.map-placeholder small {
  color: var(--muted);
  font-style: italic;
}

/* ---------- 20. Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #b9cddd;
  padding: clamp(48px, 6vw, 76px) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px 30px;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.site-footer .brand-text strong {
  color: #fff;
}
.site-footer .brand-text small {
  color: #7fd8d3;
}

.site-footer .brand {
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.92rem;
  max-width: 34ch;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #b9cddd;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #fff;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #cfe0ec;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.social-row a:hover {
  background: var(--teal);
  color: #fff;
}

.social-row svg {
  width: 17px;
  height: 17px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 12px;
  align-items: flex-start;
}

.footer-contact svg {
  width: 17px;
  height: 17px;
  color: #7fd8d3;
  flex-shrink: 0;
  margin-top: 3px;
}

.disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 44px;
  padding: 22px 0 0;
  font-size: 0.82rem;
  color: #90a8bc;
  line-height: 1.7;
}

.crisis-notice {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(127, 216, 211, 0.3);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.84rem;
  color: #d5e6ef;
  margin-top: 16px;
}

.crisis-notice strong {
  color: #7fd8d3;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 22px;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: #b9cddd;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ---------- 21. Back to top & modal ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(22, 125, 128, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    visibility 0.25s;
  z-index: 90;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--teal-700);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 43, 70, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.3s var(--ease);
  position: relative;
}

.modal-overlay.show .modal {
  transform: translateY(0) scale(1);
}

.modal .success-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal);
  display: grid;
  place-items: center;
}

.modal .success-icon svg {
  width: 38px;
  height: 38px;
}

.modal h3 {
  font-size: 1.4rem;
}

.modal .summary {
  text-align: left;
  background: var(--paleblue);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 18px 0 22px;
  font-size: 0.9rem;
}

.modal .summary div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}

.modal .summary div:last-child {
  border-bottom: none;
}

.modal .summary span:first-child {
  color: var(--muted);
}

.modal .summary span:last-child {
  color: var(--navy);
  font-weight: 700;
  text-align: right;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--paleblue);
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal-close:hover {
  background: var(--mint);
}

/* ---------- 22. Article / prose ---------- */
.prose {
  max-width: 760px;
  margin-inline: auto;
}

.prose h2 {
  margin-top: 40px;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
}

.prose h3 {
  margin-top: 28px;
}

.prose p,
.prose li {
  font-size: 1.05rem;
  color: var(--body);
}

.prose ul.bullets {
  list-style: disc;
  padding-left: 24px;
  margin: 16px 0;
}

.prose ul.bullets li {
  margin-bottom: 8px;
}

.prose blockquote {
  border-left: 4px solid var(--teal);
  background: var(--mint);
  border-radius: 0 14px 14px 0;
  padding: 16px 22px;
  margin: 24px 0;
  color: var(--navy);
  font-style: italic;
}

.callout {
  background: var(--cream);
  border: 1px solid #f3e6d3;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.callout strong {
  color: var(--navy);
}

.article-hero {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.article-hero img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-top: 28px;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---------- 23. Misc ---------- */
.notice-strip {
  background: var(--cream);
  border: 1px dashed #e8d9c2;
  color: #8a6d43;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.85rem;
  text-align: center;
}

.mini-note {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-list span {
  background: var(--paleblue);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
}

/* ---------- 24. Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 25. Responsive ---------- */
@media (max-width: 1100px) {
  .quick-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .hero-inner,
  .split,
  .auth {
    grid-template-columns: 1fr;
  }
  .hero-media {
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .auth-visual {
    min-height: 320px;
  }
  .split-media .accent-block {
    display: none;
  }
  .hero-badge {
    display: none;
  }
}

@media (max-width: 720px) {
  .header-actions .btn-primary {
    display: none;
  }
  .quick-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .trust-points {
    gap: 12px 18px;
  }
  .contact-layout {
    grid-template-columns: 1fr !important;
  }
  .oauth-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .quick-row {
    overflow-x: auto;
    grid-auto-flow: column;
    grid-auto-columns: 46%;
    grid-template-columns: none;
    scroll-snap-type: x mandatory;
  }
  .quick-item {
    scroll-snap-align: start;
  }
  .hero-note {
    left: 8px;
  }
}

/* ---------- 26. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 27. Print ---------- */
@media print {
  .site-header,
  .back-to-top,
  .site-footer .social-row {
    display: none;
  }
}
