/* =========================================================
   Nadia Jemiai — Psychotherapy & Counselling
   Brand: deep petrol teal #0E5F5C (primary) / #093E3B (hover)
   Type:  Literata (display) · Figtree (body, Avenir Next kin)
   ========================================================= */

/* ---------- self-hosted fonts (SIL OFL) — no third-party requests ---------- */
@font-face {
  font-family: 'Figtree';
  src: url('../assets/fonts/figtree-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Literata';
  src: url('../assets/fonts/literata-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #0E5F5C;          /* primary brand accent — logo, buttons, header & footer */
  --teal-ink: #0E5F5C;      /* teal text on white */
  --teal-deep: #093E3B;     /* hover / pressed */
  --ink: #22403E;
  --ink-soft: #486663;
  --paper: #FFFFFF;
  --mist: #F6FAF9;
  --seaglass: #E9F3F2;
  --line: #D9E8E6;
  --radius: 14px;
  --wrap: 1080px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: 'Figtree', 'Avenir Next', 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.narrow-p { max-width: 720px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: 'Literata', Georgia, serif;
  font-weight: 500;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }

.eyebrow {
  font-family: 'Figtree', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin: 0 0 1.1em;
}

.lead { font-size: 1.14rem; color: var(--ink-soft); max-width: 34em; }

/* ---------- focus / skip ---------- */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--teal-deep); color: #fff; padding: 10px 18px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out),
              border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn-ghost { background: var(--mist); color: var(--teal); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal-ink); color: var(--teal-deep); }
.btn-small { padding: 9px 20px; font-size: 0.92rem; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.site-head.scrolled { border-bottom-color: transparent; background: var(--teal); }
.site-head.scrolled .brand-logo-teal { opacity: 0; }
.site-head.scrolled .brand-logo-white { opacity: 1; }
.site-head.scrolled .site-nav a:not(.btn) { color: #fff; }
.site-head.scrolled .site-nav a:not(.btn):hover { color: rgba(255, 255, 255, 0.8); }
.site-head.scrolled .site-nav .btn-primary { background: #fff; color: var(--teal-deep); border-color: #fff; }
.site-head.scrolled .site-nav .btn-primary:hover { background: var(--seaglass); border-color: var(--seaglass); }
.site-head.scrolled .nav-toggle-bar,
.site-head.scrolled .nav-toggle-bar::before,
.site-head.scrolled .nav-toggle-bar::after { background: #fff; }
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 20px;
}
.brand { position: relative; display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 42px; width: auto; display: block; transition: opacity .25s ease; }
.brand-logo-white { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.site-nav ul {
  list-style: none; display: flex; align-items: center;
  gap: 26px; margin: 0; padding: 0;
}
.site-nav a:not(.btn) {
  font-weight: 500; font-size: 0.98rem; text-decoration: none; color: var(--ink);
}
.site-nav a:not(.btn):hover { color: var(--teal-deep); }

.nav-toggle {
  display: none; background: none; border: none; padding: 10px; cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 24px; height: 2px; background: var(--ink);
  position: relative; content: ""; transition: transform .2s ease;
}
.nav-toggle-bar::before { position: absolute; top: -7px; }
.nav-toggle-bar::after { position: absolute; top: 7px; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 100%); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center; gap: 48px;
  padding-top: clamp(48px, 9vh, 96px);
  padding-bottom: clamp(32px, 6vh, 64px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-mark { display: flex; justify-content: center; }
.tangram {
  width: min(360px, 78%);
  height: auto;
  filter: drop-shadow(0 18px 32px rgba(14, 95, 92, 0.18));
}
.tangram polygon {
  fill: var(--teal);
  transform-box: fill-box;
  transform-origin: center;
}

/* pieces assemble on load */
@keyframes settle {
  from { opacity: 0; transform: var(--drift) rotate(var(--spin)); }
  60%  { opacity: 1; }
  to   { opacity: 1; transform: none; }
}
.tangram .p1 { --drift: translate(-46px, -30px); --spin: -22deg; }
.tangram .p2 { --drift: translate(24px, -44px);  --spin: 14deg; }
.tangram .p3 { --drift: translate(52px, -18px);  --spin: 26deg; }
.tangram .p4 { --drift: translate(58px, 22px);   --spin: -18deg; }
.tangram .p5 { --drift: translate(-38px, 34px);  --spin: 10deg; }
.tangram .p6 { --drift: translate(40px, 42px);   --spin: -14deg; }
.tangram .p7 { --drift: translate(-20px, 52px);  --spin: 20deg; }
.tangram polygon { animation: settle 0.95s var(--ease-out) both; }
.tangram .p1 { animation-delay: 0.05s; }
.tangram .p2 { animation-delay: 0.14s; }
.tangram .p3 { animation-delay: 0.23s; }
.tangram .p4 { animation-delay: 0.32s; }
.tangram .p5 { animation-delay: 0.41s; }
.tangram .p6 { animation-delay: 0.50s; }
.tangram .p7 { animation-delay: 0.59s; }
@media (prefers-reduced-motion: reduce) {
  .tangram polygon { animation: none; opacity: 1; transform: none; }
}

.trust-strip {
  display: flex; flex-wrap: wrap; gap: 10px 0;
  padding-top: 18px; padding-bottom: 6px;
  color: var(--ink-soft); font-size: 0.95rem; font-weight: 500;
}
.trust-strip span { display: inline-flex; align-items: center; }
.trust-strip span + span::before {
  content: ""; width: 7px; height: 7px; margin: 0 16px;
  background: var(--teal);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  opacity: 0.65; flex: none;
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 9vh, 96px) 0; }
.section-tint { background: var(--seaglass); padding-top: 44px; }
#about { padding-top: 34px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* about */
.section h2 { margin: 0 0 24px; }
.about-grid { display: flex; align-items: flex-start; gap: 32px; margin-bottom: 40px; }
.about-portrait img {
  width: 260px; height: 260px; object-fit: cover; border-radius: var(--radius);
  border: 4px solid var(--seaglass);
  box-shadow: 0 10px 24px rgba(14, 95, 92, 0.16);
  flex: none;
}
.about-copy { max-width: 680px; }

.background-block { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
.background-block h3 { margin-top: 0.4em; }
.bg-text p { max-width: 62ch; }

.help-heading { margin: 0.4em 0 6px; }
.help-tags {
  list-style: none; padding: 0; margin: 0;
  columns: 2; column-gap: 40px;
}
.help-tags li {
  position: relative; padding: 8px 0 8px 26px; font-size: 0.98rem; color: var(--ink);
  border-bottom: 1px solid var(--line); break-inside: avoid;
}
.help-tags li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 11px; height: 11px; background: var(--teal);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* approach */
.modality-pills {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding: 0; margin: 10px 0 26px;
}
.modality-pills li {
  font-weight: 600; font-size: 0.95rem; color: #fff; text-align: center;
  background: var(--teal); padding: 10px 14px; border-radius: 999px;
}

/* sessions & fees */
.fee-cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin: 34px 0 48px;
}
.fee-card {
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; text-align: center;
}
.fee-figure {
  font-family: 'Literata', Georgia, serif;
  font-size: 1.7rem; font-weight: 600; color: var(--teal);
  margin: 0 0 4px; line-height: 1.2;
}
.fee-label { font-size: 0.93rem; color: var(--ink-soft); margin: 0; }

.first-session p { max-width: 62ch; }
.first-session p + p { margin-top: 14px; }

/* qualifications */
.qual-list { list-style: none; padding: 0; margin: 0 0 20px; }
.qual-list li {
  position: relative; padding: 9px 0 9px 30px;
  border-bottom: 1px solid var(--line);
}
.qual-list li:last-child { border-bottom: none; }
.qual-list li::before {
  content: ""; position: absolute; left: 2px; top: 19px;
  width: 12px; height: 12px; background: var(--teal);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.languages-note { color: var(--ink-soft); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-email a { font-family: 'Literata', Georgia, serif; font-size: 1.2rem; font-weight: 600; }

.contact-form {
  background: var(--mist); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
}
.contact-form label {
  display: block; font-weight: 600; font-size: 0.92rem;
  margin: 16px 0 6px; color: var(--ink);
}
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 14px;
}
.contact-form input:focus-visible, .contact-form textarea:focus-visible {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 95, 92, 0.18);
}
.contact-form button { margin-top: 20px; width: 100%; }
.hp { position: absolute; left: -5000px; height: 0; width: 0; opacity: 0; }
.form-status { min-height: 1.4em; margin: 12px 0 0; font-weight: 500; color: var(--teal-deep); }
.privacy-note { font-size: 0.85rem; color: var(--ink-soft); margin: 14px 0 0; }

/* ---------- footer ---------- */
.site-foot { background: var(--teal); color: #E6F2F1; margin-top: 20px; }
.foot-inner { padding-top: 44px; padding-bottom: 40px; text-align: center; }
.foot-mark { margin: 0 auto 16px; width: 56px; height: auto; fill: #E6F2F1; display: block; }
.foot-inner p { margin: 0 0 8px; }
.foot-small { font-size: 0.85rem; opacity: 0.75; }
.foot-link { color: #E6F2F1; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-mark { order: -1; }
  .tangram { width: min(230px, 60%); }
  .fee-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none; padding: 10px 24px 20px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 16px; }
  .brand-logo { height: 36px; }
  /* mobile dropdown panel is white — keep its links readable when header is teal */
  .site-head.scrolled .site-nav a:not(.btn) { color: var(--ink); }
  .site-head.scrolled .site-nav a:not(.btn):hover { color: var(--teal-deep); }
  .site-head.scrolled .site-nav .btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
  .about-grid { flex-direction: column; }
  .background-block { display: block; }
  .help-heading { margin: 30px 0 6px; }
  .help-tags { columns: 2; }
  .hero .eyebrow span { display: block; }
  .hero .eyebrow .eyebrow-sep { display: none; }
  .trust-strip { flex-direction: column; align-items: flex-start; gap: 8px; }
  .trust-strip span::before {
    content: ""; width: 7px; height: 7px; margin: 0 12px 0 0;
    background: var(--teal); clip-path: polygon(0 0, 100% 50%, 0 100%); opacity: 0.65; flex: none;
  }
  .modality-pills { grid-template-columns: repeat(2, 1fr); }
  .eyebrow { font-size: 0.95rem; }
  .about-portrait img { width: 100%; max-width: 340px; height: auto; aspect-ratio: 1 / 1; }
  .fee-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .fee-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .help-tags { columns: 2; column-gap: 20px; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
