/* =============================================================
   Covers: index.html, teens.html, relationships.html,
           young-adults.html, fatherhood.html, depression-anxiety.html
   ============================================================= */

/* ─── Assistant font (self-hosted) ─────────────────────────── */
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/assistant-latin-ext-300-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/assistant-latin-300-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/assistant-hebrew-300-normal.woff2') format('woff2');
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/assistant-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/assistant-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/assistant-hebrew-400-normal.woff2') format('woff2');
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/assistant-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/assistant-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/assistant-hebrew-500-normal.woff2') format('woff2');
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/assistant-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/assistant-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/assistant-hebrew-600-normal.woff2') format('woff2');
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/assistant-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/assistant-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/assistant-hebrew-700-normal.woff2') format('woff2');
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

/* ─────────────────────────────────────────────────────────────
   DESIGN TOKENS
   ───────────────────────────────────────────────────────────── */

:root {
  --color-sage: #8B9E8D;
  --color-sage-light: #C8D5C9;
  --color-sage-dark: #5C7A5E;
  --color-navy: #2C3E50;
  --color-navy-dark: #1A252F;
  --color-navy-mid: #3d5268;
  --color-cream: #FAF7F4;
  --color-muted: #7A7068;
  --color-stone-warm: #F5F0EB;
  --color-stone-medium: #E8DDD4;
  --color-stone-deep: #C4B5A5;
  --color-sage-rgb: 139, 158, 141;
  --color-sage-light-rgb: 200, 213, 201;
  --color-sage-dark-rgb: 92, 122, 94;
  --color-navy-rgb: 44, 62, 80;
  --color-navy-dark-rgb: 26, 37, 47;
  --color-navy-mid-rgb: 61, 82, 104;
  --color-cream-rgb: 250, 247, 244;
  --color-muted-rgb: 122, 112, 104;
  --color-stone-warm-rgb: 245, 240, 235;
  --color-stone-medium-rgb: 232, 221, 212;
}

/* ─────────────────────────────────────────────────────────────
   1. GLOBAL / RESET
   ───────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Tailwind cannot express: linear-gradient used as a partial underline highlight */
.text-highlight {
  background: linear-gradient(transparent 52%, rgba(var(--color-sage-dark-rgb), 0.22) 52%);
  padding-bottom: 2px;
}

/* ─────────────────────────────────────────────────────────────
   2. LAYOUT UTILITIES
   ───────────────────────────────────────────────────────────── */

/* REMOVED: .section-padding — convert to Tailwind utilities on elements in HTML */
/* REMOVED: .divider / .divider-right — convert to Tailwind utilities on elements in HTML */
/* REMOVED: .reveal — convert to Tailwind utilities and data-attributes using JS */

/* ─────────────────────────────────────────────────────────────
   3. NAVIGATION — STICKY HEADER
   ───────────────────────────────────────────────────────────── */

/* Tailwind cannot express: ::after pseudo-element with dynamic dimension */
.nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: var(--color-sage);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ─────────────────────────────────────────────────────────────
   4. NAVIGATION — DROPDOWN
   ───────────────────────────────────────────────────────────── */

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  padding: 0;
  line-height: 1;
}

/* Suppress nav-link underline pseudo-element on button */
.nav-dropdown-btn::after {
  display: none;
}

.nav-dropdown:is(:hover, .dropdown-open) .nav-dropdown-btn {
  color: var(--color-sage);
}

.nav-dropdown-btn svg {
  transition: transform 0.2s ease;
}

.nav-dropdown:is(:hover, .dropdown-open) .nav-dropdown-btn svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 190px;
  background: rgba(var(--color-cream-rgb), 0.97);
  border: 1px solid rgba(var(--color-sage-rgb), 0.2);
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(var(--color-navy-rgb), 0.12);
  padding: 0.75rem 0.5rem 0.5rem;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.nav-dropdown:is(:hover, .dropdown-open) .nav-dropdown-menu {
  display: block;
}

/* Tailwind cannot express: custom sub-rem font sizing and transition on dropdown links */
.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--color-navy);
  text-decoration: none;
  border-radius: 0.6rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a:hover {
  background: rgba(var(--color-sage-rgb), 0.12);
  color: var(--color-sage);
}

/* ─────────────────────────────────────────────────────────────
   5. NAVIGATION — MOBILE HAMBURGER + OVERLAY
   ───────────────────────────────────────────────────────────── */

#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 120;
}

@media (max-width: 1023px) {
  #hamburger {
    display: flex;
  }
}

#hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Animated X state */
#hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#hamburger.open span:nth-child(2) {
  opacity: 0;
}

#hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Tailwind cannot express: fixed positioning anchored below navbar with slide animation */
#mobile-menu {
  position: fixed;
  top: 80px;
  /* matches navbar h-20 */
  right: 0;
  left: 0;
  background: var(--color-navy-dark);
  max-height: 0;
  overflow: hidden;
  z-index: 99;
  transition: max-height 0.35s ease;
}

#mobile-menu.open {
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

#mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#mobile-menu>ul>li {
  border-bottom: 1px solid rgba(var(--color-sage-rgb), 0.15);
}

#mobile-menu a {
  display: block;
  color: var(--color-cream);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

#mobile-menu a:active,
#mobile-menu a[aria-current="page"] {
  color: var(--color-sage-light);
  background: rgba(var(--color-sage-rgb), 0.08);
}

#mobile-menu>ul>li>a {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
}

#mobile-menu button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.75rem 1.25rem;
  color: var(--color-cream);
  font-size: 1rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

#mobile-menu button svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

#mobile-menu button[aria-expanded="true"] {
  color: var(--color-sage-light);
  background: rgba(var(--color-sage-rgb), 0.08);
}

#mobile-menu button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.mobile-accordion-panel {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
  transition: max-height 0.25s ease;
}

.mobile-accordion-panel.open {
  max-height: 280px;
}

.mobile-accordion-panel a {
  padding: 0.7rem 1.5rem;
  padding-inline-start: 2.75rem;
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.78;
}

.mobile-accordion-panel a:active,
.mobile-accordion-panel a[aria-current="page"] {
  opacity: 1;
}

/* ─────────────────────────────────────────────────────────────
   6. BUTTONS & CTA
   ───────────────────────────────────────────────────────────── */

@keyframes soft-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(var(--color-sage-rgb), 0.40);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(var(--color-sage-rgb), 0);
  }
}

.btn-cta {
  animation: soft-pulse 3s ease-in-out infinite;
}

/* Tailwind cannot express: complex linear gradient background with hex variable transparencies */
.credential-badge {
  background: linear-gradient(135deg,
      rgba(var(--color-sage-rgb), 0.13),
      rgba(var(--color-sage-light-rgb), 0.20));
  border: 1px solid var(--color-sage-light);
}

/* ─────────────────────────────────────────────────────────────
   7. HERO — HOMEPAGE ONLY
   ───────────────────────────────────────────────────────────── */

/* Tailwind cannot express: custom height overshoot and transform will-change optimization */
.hero-img {
  height: 110%;
  top: -5%;
  transition: transform 0.05s linear;
  will-change: transform;
}

/* Tailwind cannot express: multi-stop linear gradient with specific angle intervals */
.hero-overlay-main {
  background: linear-gradient(300deg, rgba(15, 22, 28, 0.90) 0%, rgba(26, 37, 47, 0.75) 50%, rgba(26, 37, 47, 0.55) 100%);
}

/* ─────────────────────────────────────────────────────────────
   8. DECORATIVE
   ───────────────────────────────────────────────────────────── */

/* Tailwind cannot express: responsive radial gradient dot pattern background */
.bg-pattern-dots-cream {
  background-image: radial-gradient(circle, var(--color-cream) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Base class shared by every decorative blob */
.deco-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────
   9. CARDS
   ───────────────────────────────────────────────────────────── */

/* Tailwind cannot express: complex multi-property hover transition */
.approach-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.approach-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(var(--color-navy-rgb), 0.10);
}

/* REMOVED: .gallery-img / .gallery-wrap — no gallery in current build */

/* ─────────────────────────────────────────────────────────────
   10. FAQ ACCORDION — HOMEPAGE ONLY
   ───────────────────────────────────────────────────────────── */

.faq-card {
  border: 1px solid var(--color-stone-medium);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
}

/* Sage accent stripe on the right edge */
.faq-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-sage), var(--color-sage-light));
  border-radius: 0 1rem 1rem 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.faq-card:hover {
  box-shadow: 0 6px 24px rgba(var(--color-navy-rgb), 0.07);
  border-color: var(--color-sage-light);
}

/* Tailwind cannot express: :has pseudo-class */
.faq-card:has(details[open]) {
  box-shadow: 0 8px 32px rgba(var(--color-navy-rgb), 0.11);
  border-color: var(--color-sage);
}

.faq-card:has(details[open])::after {
  opacity: 1;
}

.faq-card summary {
  transition: background 0.25s ease;
}

.faq-card:has(details[open]) summary {
  background: rgba(var(--color-sage-rgb), 0.06);
}

@keyframes faq-slide-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-answer {
  animation: faq-slide-in 0.25s ease forwards;
}

.faq-card summary:focus-visible {
  outline: auto;
  outline-offset: -3px;
}

/* ─────────────────────────────────────────────────────────────
   11. TIMELINE COMPONENT
   ───────────────────────────────────────────────────────────── */

#timeline-spine {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  pointer-events: none;
  z-index: 10;
}

#timeline-track {
  position: absolute;
  inset: 0;
  background: var(--color-stone-deep, #C4B5A5);
  opacity: 0.45;
  border-radius: 9999px;
}

#timeline-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: var(--color-sage, #8B9E8D);
  border-radius: 9999px;
}

.timeline-dot {
  position: absolute;
  left: -5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-cream, #FAF7F4);
  border: 2px solid var(--color-stone-deep, #C4B5A5);
  transition: background 0.25s ease, border-color 0.25s ease;
  z-index: 1;
}

.timeline-dot.tl-active {
  background: var(--color-sage, #8B9E8D);
  border-color: var(--color-sage, #8B9E8D);
}

.card-accent {
  box-shadow: 0 4px 24px 2px rgba(var(--color-navy-dark-rgb), 0);
  transition: box-shadow 0.5s ease;
}

.card-accent.accent-active {
  box-shadow: 0 4px 24px 2px rgba(var(--color-navy-dark-rgb), 0.13);
}

.timeline-item__number {
  color: var(--color-muted, #7A7068);
  transition: color 0.35s ease;
  font-size: 1rem;
  font-weight: 700;
}

.timeline-item__number.tl-active {
  color: var(--color-sage-dark, #5C7A5E);
}

@media (min-width: 1024px) {
  .timeline-item__number {
    font-size: 3rem;
    font-weight: 800;
  }
}

/* ─────────────────────────────────────────────────────────────
   12. COOKIE NOTICE
   ───────────────────────────────────────────────────────────── */

#cookie-notice {
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

#cookie-notice.cookie-notice--visible {
  transform: translateY(0);
  opacity: 1;
}

/* ─────────────────────────────────────────────────────────────
   REDUCED MOTION
   ───────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {

  .btn-cta,
  .faq-answer,
  [class*="animate-infinite-scroll"],
  [class*="animate-"] {
    animation: none !important;
  }

  #navbar,
  .nav-link::after,
  .nav-dropdown-btn svg,
  .nav-dropdown-menu a,
  #hamburger span,
  #mobile-menu,
  #mobile-menu a,
  #mobile-menu button,
  #mobile-menu button svg,
  .mobile-accordion-panel,
  .hero-img,
  .approach-card,
  .approach-card:hover,
  .faq-card,
  .faq-card::after,
  .faq-card summary,
  .timeline-dot,
  .timeline-item__number,
  .card-accent,
  #cookie-notice,
  [class*="transition"],
  [class*="duration"] {
    transition: none !important;
  }

  .card-accent {
    box-shadow: none;
  }
}