/* =========================================================================
   Tamana Rehman — Clinical Psychologist
   Design System — sage/neutral-green primary, beige/lavender/dusty-blue accents
   ========================================================================= */

@import url('../assets/fonts/fonts.css');

:root {
  /* ---- Color palette ---- */
  --sage-900: #3E4A36;
  --sage-800: #4B5940;
  --sage-700: #5F6E52;
  --sage-600: #74845F;
  --sage-500: #8A9A7A;
  --sage-400: #A3B292;
  --sage-300: #C1CDAF;
  --sage-200: #DCE3D2;
  --sage-100: #EEF1E7;

  --beige-100: #F8F3EA;
  --beige-200: #F1EAD9;
  --beige-300: #E8DFC9;

  --lavender-300: #D3CBE3;
  --lavender-400: #B7ACCC;
  --lavender-600: #8D7FAE;

  --blue-300: #C3D4DB;
  --blue-400: #90AAB8;
  --blue-600: #5D7B8B;

  --ink-900: #2F2E29;
  --ink-700: #4A483F;
  --ink-500: #6B6858;
  --ink-300: #918D7B;

  --card: #FFFDF8;
  --white: #FFFFFF;

  /* ---- Typography ---- */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Karla', 'Segoe UI', -apple-system, sans-serif;

  /* ---- Spacing / shape ---- */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-soft: 0 10px 30px -12px rgba(62, 74, 54, 0.22);
  --shadow-lift: 0 18px 45px -16px rgba(62, 74, 54, 0.30);

  --container-w: 1160px;
  --section-pad: clamp(4rem, 8vw, 7rem);

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

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
section[id] { scroll-margin-top: 6rem; }
@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; scroll-behavior: auto !important; }
  .btn:hover, .contact__action:hover { transform: none; }
  .gallery__item:hover img { transform: none; }
}

body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

body {
  font-family: var(--font-body);
  background: var(--beige-100);
  color: var(--ink-900);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--sage-900);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.6vw, 2.85rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-800);
}
.eyebrow::before {
  content: '';
  width: 26px; height: 1px;
  background: var(--sage-500);
  display: inline-block;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-700);
  max-width: 62ch;
}

/* ---- Layout helpers ---- */
.container {
  width: min(100% - 3rem, var(--container-w));
  margin-inline: auto;
}
.section { padding-block: var(--section-pad); position: relative; }
.section--tint { background: var(--sage-100); }
.section--deep { background: var(--sage-900); color: var(--beige-100); }
.section--deep h2, .section--deep h3 { color: var(--beige-100); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: 2rem; }
@media (min-width: 780px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.8em;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--sage-700);
  color: var(--beige-100);
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { background: var(--sage-800); box-shadow: var(--shadow-lift); }

.btn--ghost {
  background: transparent;
  color: var(--sage-800);
  border-color: var(--sage-400);
}
.btn--ghost:hover { background: var(--sage-100); border-color: var(--sage-600); }

.btn--on-dark {
  background: var(--beige-100);
  color: var(--sage-900);
}
.btn--on-dark:hover { background: var(--white); }

.btn--sm { padding: 0.7em 1.35em; font-size: 0.88rem; }

.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ---- Cards ---- */
.card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(62, 74, 54, 0.06);
}

.tag {
  display: inline-block;
  padding: 0.3em 0.9em;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag--sage { background: var(--sage-200); color: var(--sage-800); }
.tag--lavender { background: var(--lavender-300); color: #51486e; }
.tag--blue { background: var(--blue-300); color: var(--blue-600); }

/* ---- Reveal-on-scroll ---- */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---- Decorative organic blobs ---- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  z-index: 0;
  opacity: 0.55;
}

/* ---- Scrollbar (subtle) ---- */
::selection { background: var(--sage-300); color: var(--sage-900); }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(248, 243, 234, 0.86);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 8px 30px -18px rgba(62,74,54,0.35);
  padding: 0.7rem 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--sage-900);
  font-weight: 600;
}
.nav__mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--sage-700);
  color: var(--beige-100);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.nav__mark svg { width: 22px; height: 22px; }
.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sage-800);
}
.nav__links a { position: relative; padding: 0.2rem 0; }
.nav__links a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: -3px;
  height: 2px; background: var(--sage-500);
  transition: right 0.3s var(--ease);
}
.nav__links a:hover::after { right: 0; }
.nav__cta { display: none; }
.nav__toggle {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--sage-100);
  border: none;
}
.nav__toggle span {
  position: relative;
  width: 18px; height: 2px;
  background: var(--sage-800);
  display: block;
}
.nav__toggle span::before, .nav__toggle span::after {
  content: '';
  position: absolute; left: 0;
  width: 18px; height: 2px;
  background: var(--sage-800);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}

.nav__mobile {
  position: static;
  width: min(100% - 3rem, var(--container-w));
  margin-inline: auto;
  padding: 6rem 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--sage-900);
}
html.js .nav__mobile {
  position: fixed;
  inset: 0;
  width: auto;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: 1.7rem;
  background: var(--beige-100);
  z-index: 99;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
html.js .nav__mobile.is-open { transform: translateY(0); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  padding-top: clamp(7rem, 14vw, 10rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 940px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: 2rem; }
}
.hero__eyebrow { margin-bottom: 1.3rem; }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 em {
  font-style: italic;
  color: var(--sage-600);
}
.hero__lede { margin-bottom: 2.2rem; }
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.4rem;
}
.hero__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero__figure {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
}
.hero__figure-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-lift);
}
.hero__figure-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__figure-ring {
  position: absolute;
  inset: -18px;
  border: 1.5px solid var(--sage-400);
  border-radius: calc(var(--radius-lg) + 18px);
  z-index: -1;
}
.hero__badge {
  position: absolute;
  bottom: -1.4rem;
  left: -1.4rem;
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 1rem 1.3rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 230px;
}
.hero__badge svg { width: 28px; height: 28px; color: var(--sage-600); flex-shrink: 0; }
.hero__badge strong { display: block; font-size: 0.9rem; color: var(--sage-900); }
.hero__badge span { font-size: 0.78rem; color: var(--ink-500); }

/* =========================================================================
   ABOUT
   ========================================================================= */
.about__inner {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
.about__text p + p { margin-top: 1.1rem; }
.about__stats {
  display: flex;
  gap: 2.2rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}
.about__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--sage-700);
}
.about__stat span { font-size: 0.85rem; color: var(--ink-500); }

/* =========================================================================
   APPROACH (framework pillars)
   ========================================================================= */
.pillar-card {
  position: relative;
}
.pillar-card__icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 1.3rem;
  background: var(--sage-200);
  color: var(--sage-800);
}
.pillar-card__icon svg { width: 26px; height: 26px; }
.pillar-card:nth-of-type(2) .pillar-card__icon { background: var(--lavender-300); color: var(--lavender-600); }
.pillar-card:nth-of-type(3) .pillar-card__icon { background: var(--blue-300); color: var(--blue-600); }
.pillar-card:nth-of-type(4) .pillar-card__icon { background: var(--beige-300); color: var(--sage-800); }
.pillar-card h3 { margin-bottom: 0.6rem; }
.pillar-card p { color: var(--ink-700); font-size: 0.98rem; }

/* =========================================================================
   WHO I WORK WITH
   ========================================================================= */
.audience {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .audience { grid-template-columns: repeat(4, 1fr); } }
.audience__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.6rem 1rem;
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.audience__icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 0.9rem;
  background: var(--sage-200);
  color: var(--sage-800);
}
.audience__icon svg { width: 26px; height: 26px; }
.audience__item:nth-of-type(2) .audience__icon { background: var(--lavender-300); color: var(--lavender-600); }
.audience__item:nth-of-type(3) .audience__icon { background: var(--blue-300); color: var(--blue-600); }
.audience__item:nth-of-type(4) .audience__icon { background: var(--beige-300); color: var(--sage-800); }
.audience__item span { font-weight: 700; font-size: 0.92rem; color: var(--sage-900); }

/* =========================================================================
   SERVICES
   ========================================================================= */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card__header { margin-bottom: 1.4rem; }
.service-card__rate + .service-card__rate { margin-top: 1rem; }
.service-card__rate-audience {
  display: block;
  color: var(--sage-800);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.service-card__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--sage-800);
  margin: 0.25rem 0 0.3rem;
}
.service-card__price span { font-size: 0.85rem; font-family: var(--font-body); color: var(--ink-500); font-weight: 400; }
.service-card ul { margin: 1.2rem 0 1.6rem; display: flex; flex-direction: column; gap: 0.65rem; }
.service-card li {
  display: flex; align-items: flex-start; gap: 0.6em;
  font-size: 0.95rem; color: var(--ink-700);
}
.service-card li svg { width: 1.1em; height: 1.1em; color: var(--sage-600); flex-shrink: 0; margin-top: 0.18em; }
.service-card__footnote {
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-bottom: 1.4rem;
}
.service-card .btn { margin-top: auto; align-self: flex-start; }
.service-card--highlight { border: 1.5px solid var(--sage-400); }

/* =========================================================================
   GALLERY
   ========================================================================= */
.gallery {
  columns: 1;
  gap: 1.1rem;
}
@media (min-width: 640px) { .gallery { columns: 2; } }
@media (min-width: 980px) { .gallery { columns: 3; } }
.gallery__item {
  break-inside: avoid;
  margin-bottom: 1.1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease);
}
.gallery__item:hover img { transform: scale(1.045); }
.gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.1rem 1rem;
  background: linear-gradient(to top, rgba(46, 53, 38, 0.82), transparent);
  color: var(--beige-100);
  font-size: 0.86rem;
  font-weight: 600;
}

/* =========================================================================
   CREDENTIALS / TIMELINE
   ========================================================================= */
.timeline {
  position: relative;
  padding-left: 2.1rem;
  border-left: 2px solid var(--sage-300);
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: '';
  position: absolute;
  left: -2.62rem; top: 0.2rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--sage-600);
  border: 3px solid var(--beige-100);
  box-shadow: 0 0 0 2px var(--sage-400);
}
.timeline__meta {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sage-800);
  margin-bottom: 0.3rem;
}
.timeline__item h3 { margin-bottom: 0.35rem; }
.timeline__item p { color: var(--ink-700); font-size: 0.95rem; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact {
  position: relative;
  overflow: hidden;
}
.contact__inner {
  display: grid;
  gap: 2.6rem;
  align-items: start;
}
@media (min-width: 900px) { .contact__inner { grid-template-columns: 1.1fr 0.9fr; } }
.contact__actions { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.contact__action {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: rgba(248, 243, 234, 0.08);
  border: 1px solid rgba(248, 243, 234, 0.18);
  border-radius: var(--radius-md);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.contact__action:hover { background: rgba(248, 243, 234, 0.14); transform: translateY(-2px); }
.contact__action svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--sage-300); }
.contact__action strong { display: block; font-size: 1rem; }
.contact__action span { font-size: 0.82rem; opacity: 0.75; }

.crisis-note {
  margin-top: 2.4rem;
  padding: 1.3rem 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(248, 243, 234, 0.07);
  border: 1px solid rgba(248, 243, 234, 0.16);
  font-size: 0.86rem;
  line-height: 1.65;
}
.crisis-note strong { color: var(--beige-100); }

@media (max-width: 420px) {
  .container { width: min(100% - 2rem, var(--container-w)); }
  .btn { white-space: normal; justify-content: center; text-align: center; }
  .service-card { padding: 1.6rem; }
  .service-card .btn { width: 100%; }
}

@media (min-width: 900px) {
  .nav__mobile, html.js .nav__mobile { display: none; }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  background: var(--sage-900);
  color: rgba(248, 243, 234, 0.72);
  padding-block: 2.6rem;
  font-size: 0.86rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.footer__links { display: flex; gap: 1.6rem; }

/* =========================================================================
   MISC
   ========================================================================= */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--sage-900); color: var(--beige-100);
  padding: 0.8rem 1.2rem; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2.5px solid var(--blue-600); outline-offset: 3px; }
