/* ============================================
   Ioanna Skylitsi – Psychologist
   Editorial Serenity aesthetic
   ============================================ */

@font-face {
  font-family: 'Libertinus Serif Display';
  src: url('/assets/fonts/LibertinusSerifDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('/assets/fonts/OpenSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('/assets/fonts/OpenSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ═══════ TOKENS ═══════ */
:root {
  --bg: #FAF8F5;
  --bg-sage: #D6E2DC;
  --bg-warm: #F2EDE7;
  --bg-light: #F0EEED;
  --bg-dark: #3A3F3D;

  --ink: #3A3F3D;
  --ink-light: #707874;
  --ink-faint: #9CA39F;
  --ink-sage: #5C706A;

  --accent: #8A9A86;
  --accent-hover: #6E8369;
  --white: #FFFFFF;
  --border: #DDD9D4;

  --serif: 'Libertinus Serif Display', Georgia, 'Times New Roman', serif;
  --sans: 'Open Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --fs-xs: clamp(0.7rem, 0.2vw + 0.65rem, 0.8rem);
  --fs-sm: clamp(0.8rem, 0.2vw + 0.74rem, 0.875rem);
  --fs-base: clamp(0.9rem, 0.25vw + 0.84rem, 1rem);
  --fs-md: clamp(1rem, 0.35vw + 0.9rem, 1.125rem);
  --fs-lg: clamp(1.1rem, 0.4vw + 0.95rem, 1.25rem);
  --fs-xl: clamp(1.35rem, 1vw + 0.9rem, 1.75rem);
  --fs-2xl: clamp(1.6rem, 1.5vw + 1rem, 2.25rem);
  --fs-hero: clamp(2.8rem, 4.5vw + 0.5rem, 5.5rem);

  --lh: 1.75;
  --lh-tight: 1.08;

  --sp-xs: clamp(0.4rem, 0.8vw, 0.6rem);
  --sp-sm: clamp(0.6rem, 1.2vw, 1rem);
  --sp-md: clamp(1.25rem, 2.5vw, 2rem);
  --sp-lg: clamp(2.5rem, 5vw, 4.5rem);
  --sp-xl: clamp(4rem, 8vw, 7rem);
  --sp-2xl: clamp(5rem, 10vw, 9rem);

  --max-w: 1140px;
  --max-w-narrow: 700px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════ RESET ═══════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

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

::selection { background: var(--accent); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: var(--lh-tight);
  color: var(--ink);
}

p { max-width: 62ch; }

/* ═══════ SCROLL REVEAL ═══════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ═══════ LAYOUT ═══════ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.container--narrow { max-width: var(--max-w-narrow); }

.section { padding-block: var(--sp-xl); }
.section--sage { background: var(--bg-sage); }
.section--warm { background: var(--bg-warm); }
.section--light { background: var(--bg-light); }
.section--dark { background: var(--bg-dark); color: var(--bg); }
.section--dark h2, .section--dark h3 { color: var(--bg); }

/* ═══════ SKIP LINK ═══════ */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  padding: 0.5rem 1rem; background: var(--ink); color: var(--white);
  z-index: 1000; font-size: var(--fs-sm);
}
.skip-link:focus { top: 1rem; }

/* ═══════ DIVIDER ═══════ */
.divider {
  width: 48px;
  height: 1px;
  background: var(--ink-faint);
  margin-block: var(--sp-sm);
}
.divider--center { margin-inline: auto; }
.divider--accent { background: var(--accent); }

/* ═══════════════════════════════
   HEADER
   ═══════════════════════════════ */
#site-header { min-height: 56px; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  transition: box-shadow 0.3s var(--ease);
}

.header.is-scrolled {
  box-shadow: 0 1px 0 var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.header__logo {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1vw + 0.6rem, 1.3rem);
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.header__logo:hover { color: var(--ink); }

/* Hamburger */
.header__menu-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer;
  z-index: 110;
}
.header__menu-icon,
.header__menu-icon::before,
.header__menu-icon::after {
  display: block; width: 18px; height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.header__menu-icon { position: relative; }
.header__menu-icon::before, .header__menu-icon::after {
  content: ''; position: absolute; left: 0;
}
.header__menu-icon::before { top: -5px; }
.header__menu-icon::after { top: 5px; }

.header__menu-toggle[aria-expanded="true"] .header__menu-icon { background: transparent; }
.header__menu-toggle[aria-expanded="true"] .header__menu-icon::before { top: 0; transform: rotate(45deg); }
.header__menu-toggle[aria-expanded="true"] .header__menu-icon::after { top: 0; transform: rotate(-45deg); }

/* ═══════ MOBILE NAV ═══════ */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg);
  z-index: 105;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  visibility: hidden; opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.nav.is-open { visibility: visible; opacity: 1; pointer-events: auto; }

.nav__list {
  display: flex; flex-direction: column;
  gap: 0.1rem; text-align: center;
}
.nav__item { position: relative; }

.nav__link {
  display: block;
  padding: 0.55rem 1.5rem;
  font-family: var(--sans);
  font-size: var(--fs-md);
  color: var(--ink-light);
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease);
}
.nav__link:hover, .nav__link--active { color: var(--ink); }

.nav__submenu { display: flex; flex-direction: column; }
.nav__submenu .nav__link {
  font-size: var(--fs-sm);
  padding: 0.3rem 1.5rem;
  color: var(--ink-faint);
}

/* ═══════ DESKTOP NAV ═══════ */
@media (min-width: 1024px) {
  .header__menu-toggle { display: none; }
  .nav {
    position: static; width: auto; height: auto; background: none;
    visibility: visible; opacity: 1; pointer-events: auto;
    display: flex; flex-direction: row;
  }
  .nav__list { flex-direction: row; gap: 0; align-items: center; }
  .nav__link {
    font-size: var(--fs-xs);
    padding: 0.4rem 0.55rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
  }
  .nav__link::after {
    content: '';
    position: absolute; bottom: 0.2rem; left: 0.55rem; right: 0.55rem;
    height: 1px; background: var(--ink);
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.35s var(--ease);
  }
  .nav__link:hover::after, .nav__link--active::after {
    transform: scaleX(1); transform-origin: left;
  }

  /* Dropdown */
  .nav__item--has-children { padding-bottom: 8px; margin-bottom: -8px; }
  .nav__submenu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: var(--white); border: 1px solid var(--border);
    min-width: 210px; padding: 0.5rem 0;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease);
    z-index: 120;
  }
  .nav__item:hover .nav__submenu,
  .nav__item:focus-within .nav__submenu {
    opacity: 1; visibility: visible; pointer-events: auto;
  }
  .nav__submenu .nav__link {
    font-size: var(--fs-xs); padding: 0.4rem 1.2rem;
    text-align: left; text-transform: none; letter-spacing: 0.01em;
  }
  .nav__submenu .nav__link::after { display: none; }
  .nav__submenu .nav__link:hover { background: var(--bg-light); }

  .nav__item--has-children > .nav__link { padding-right: 1.2rem; }
  .nav__item--has-children > .nav__link::before {
    content: '';
    position: absolute; right: 0.3rem; top: 50%;
    width: 4px; height: 4px;
    border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
    transform: translateY(-60%) rotate(45deg);
  }
  /* remove the underline-after on dropdown parent since we have the arrow */
  .nav__item--has-children > .nav__link::after { display: none; }
}

/* ═══════════════════════════════
   HERO – full-bleed split
   ═══════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100svh - 56px);
  background: var(--bg);
}
.hero__image {
  position: relative;
  min-height: 50vh;
  overflow: hidden;
}
.hero__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero__content {
  display: flex; flex-direction: column;
  justify-content: center;
  padding: var(--sp-lg) 1.5rem var(--sp-lg);
  gap: var(--sp-sm);
  max-width: 600px;
}

.hero__eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero h1 {
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero__subtitle {
  font-family: var(--serif);
  font-size: var(--fs-lg);
  color: var(--ink-light);
  display: flex; align-items: center; gap: 0.8rem;
}
.hero__subtitle::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--ink-faint);
  flex-shrink: 0;
}
.hero__text {
  color: var(--ink-light);
  font-size: var(--fs-sm);
  line-height: var(--lh);
}
.hero__meta {
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}

@media (min-width: 768px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero__image { min-height: auto; }
  .hero__content { padding: var(--sp-xl) var(--sp-lg); }
}

/* ═══════════════════════════════
   PAGE HERO (subpages)
   ═══════════════════════════════ */
.page-hero {
  padding: var(--sp-xl) 0 var(--sp-lg);
  text-align: center;
}
.page-hero h1 {
  font-size: var(--fs-2xl);
  max-width: 22em;
  margin-inline: auto;
  margin-bottom: var(--sp-sm);
}
.page-hero__subtitle {
  color: var(--ink-light);
  max-width: 52ch;
  margin-inline: auto;
  font-size: var(--fs-base);
  line-height: var(--lh);
}

/* ═══════════════════════════════
   CARDS
   ═══════════════════════════════ */
.cards-grid {
  display: grid; gap: 1px;
  grid-template-columns: 1fr;
  background: var(--border);
}
.cards-grid > * { background: var(--white); }

@media (min-width: 600px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column;
  padding: var(--sp-md) var(--sp-md) var(--sp-md);
  transition: background 0.3s var(--ease);
}
.card:hover { background: var(--bg); }

.card__title {
  font-family: var(--serif);
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-xs);
}
.card__text {
  color: var(--ink-light);
  font-size: var(--fs-sm);
  line-height: 1.65;
  flex: 1;
}
.card__link {
  margin-top: var(--sp-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-sage);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.5em;
  align-self: flex-start;
}
.card__link span {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.card__link:hover span { transform: translateX(4px); }

/* ═══════════════════════════════
   PRICING
   ═══════════════════════════════ */
.pricing-grid {
  display: grid; gap: var(--sp-md);
  grid-template-columns: 1fr;
}
@media (min-width: 550px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

.pricing-card {
  padding: var(--sp-lg) var(--sp-md);
  border: 1px solid var(--border);
  text-align: center;
  transition: border-color 0.3s var(--ease);
}
.pricing-card:hover { border-color: var(--accent); }

.pricing-card__title {
  font-family: var(--serif);
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-xs);
}
.pricing-card__price {
  font-family: var(--serif);
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-xs);
}
.pricing-card__detail {
  color: var(--ink-light);
  font-size: var(--fs-sm);
}

/* ═══════════════════════════════
   BUTTONS
   ═══════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.8rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: all 0.3s var(--ease);
}
.btn--primary {
  background: var(--accent); color: var(--white);
}
.btn--primary:hover {
  background: var(--accent-hover); color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(138, 154, 134, 0.3);
}
.btn--outline {
  background: transparent; color: var(--ink);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--accent); background: var(--bg-light);
}

.micro-text {
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  margin-top: var(--sp-xs);
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════
   CTA SECTION
   ═══════════════════════════════ */
.cta-section {
  text-align: center;
  padding-block: var(--sp-2xl);
}
.cta-section h2 { margin-bottom: var(--sp-sm); }
.cta-section p { margin-inline: auto; margin-bottom: var(--sp-md); }

/* ═══════════════════════════════
   CONTENT SECTIONS
   ═══════════════════════════════ */
.content-section { padding-block: var(--sp-lg); }
.content-section + .content-section { padding-top: 0; }
.content-section h2 { margin-bottom: var(--sp-sm); }
.content-section p {
  margin-bottom: var(--sp-sm); color: var(--ink-light);
}
.content-section p:last-child { margin-bottom: 0; }

.highlight-text {
  font-family: var(--serif);
  font-size: var(--fs-lg);
  color: var(--ink);
  line-height: 1.5;
}

/* ═══════════════════════════════
   CONTENT LIST
   ═══════════════════════════════ */
.content-list {
  display: flex; flex-direction: column;
  gap: 0.5rem; margin-block: var(--sp-sm);
}
.content-list li {
  padding-left: 1.3rem; position: relative;
  color: var(--ink-light); font-size: var(--fs-sm);
}
.content-list li::before {
  content: ''; position: absolute; left: 0; top: 0.65em;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
}

/* ═══════════════════════════════
   NOTE / INCLUSIVITY
   ═══════════════════════════════ */
.note {
  font-size: var(--fs-sm); color: var(--ink-light);
  border-left: 1px solid var(--border);
  padding-left: var(--sp-sm);
}

.inclusivity {
  padding: var(--sp-md);
  background: var(--bg-light);
  margin-top: var(--sp-md);
}
.inclusivity p {
  font-size: var(--fs-base); color: var(--ink);
  max-width: 52ch;
}

/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */
#site-footer { min-height: 80px; }

.footer {
  background: var(--bg-dark);
  color: rgba(250, 248, 245, 0.7);
}
.footer h4, .footer a { color: rgba(250, 248, 245, 0.85); }
.footer a:hover { color: rgba(250, 248, 245, 1); }

.footer__main { padding-block: var(--sp-lg); }
.footer__grid {
  display: grid; gap: var(--sp-md);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

.footer__brand {
  display: flex; flex-direction: column; gap: var(--sp-sm);
}
.footer__brand-name {
  font-family: var(--serif);
  font-size: var(--fs-xl);
  color: rgba(250, 248, 245, 0.95);
}
.footer__brand p { font-size: var(--fs-sm); line-height: 1.6; }

.footer__heading {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-sm);
  color: rgba(250, 248, 245, 0.5);
}
.footer__links {
  display: flex; flex-direction: column; gap: 0.4rem;
}
.footer__links a, .footer__links p { font-size: var(--fs-sm); }

.footer__contact-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-sm);
}
.footer__contact-item svg {
  width: 13px; height: 13px; flex-shrink: 0;
  stroke: rgba(250, 248, 245, 0.5);
}

.footer__social { margin-top: var(--sp-sm); }
.footer__social a {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: var(--fs-sm);
}
.footer__social svg { width: 14px; height: 14px; }

.footer__bottom {
  padding: var(--sp-sm) 0;
  border-top: 1px solid rgba(250, 248, 245, 0.08);
}
.footer__bottom p {
  font-size: 0.7rem;
  opacity: 0.35;
  letter-spacing: 0.03em;
}

/* ═══════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════════════════════════
   PRINT
   ═══════════════════════════════ */
@media print {
  .header, .nav, .btn, #site-footer { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
}
