/* doctorsaraviapsiquiatra.com
   Calm and simple: warm paper, navy ink, soft light gradients. */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-opsz.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f4ef;
  --white: #fdfcfa;
  --ink: #1b2533;
  --ink-soft: #465061;
  --muted: #6a7280;
  --accent: #8a2a33;
  --rule: rgb(27 37 51 / 0.12);

  --glow-warm: rgb(240 200 178 / 0.9);
  --glow-rose: rgb(234 205 210 / 0.8);
  --glow-blue: rgb(212 223 235 / 0.95);

  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  --text-h1: clamp(2.7rem, 1.6rem + 3.4vw, 4.6rem);
  --text-h2: clamp(2rem, 1.45rem + 1.8vw, 3rem);
  --text-h3: clamp(1.4rem, 1.25rem + 0.5vw, 1.7rem);
  --text-lead: clamp(1.1rem, 1.02rem + 0.3vw, 1.25rem);
  --text-base: clamp(1.03rem, 0.99rem + 0.15vw, 1.1rem);
  --text-small: 0.9375rem;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1180px;
  --section: clamp(3rem, 2rem + 3.5vw, 5rem);
  --header-h: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* One soft light behind the whole page (warm left, rose center, blue right). Fixed, so every section sits in it. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 46% at 22% 48%, var(--glow-warm), transparent 72%),
    radial-gradient(34% 44% at 80% 58%, var(--glow-blue), transparent 72%),
    radial-gradient(28% 36% at 52% 46%, var(--glow-rose), transparent 72%);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--white); padding: 0.75rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Button ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.5rem; border-radius: 999px;
  background: linear-gradient(180deg, #2a3850, var(--ink));
  color: var(--white); text-decoration: none; font-weight: 600; font-size: 1rem;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.12) inset, 0 12px 26px -14px rgb(27 37 51 / 0.7);
  transition: transform 250ms var(--ease), box-shadow 250ms;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgb(255 255 255 / 0.12) inset, 0 18px 32px -14px rgb(27 37 51 / 0.75); }
.btn:active { transform: none; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--sm { padding: 0.7rem 1.15rem; font-size: 0.92rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); transition: background-color 300ms, box-shadow 300ms; }
.site-header.is-scrolled { background: rgb(247 244 239 / 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--rule); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { text-decoration: none; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.005em; }
.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; font-weight: 500; transition: color 200ms; }
.nav a:not(.btn):hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero-copy { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 2.5vw, 2rem); }
.hero-name { margin: 0 0 1.25rem; font-size: var(--text-small); color: var(--muted); letter-spacing: 0.01em; }
.hero h1 { font-size: var(--text-h1); line-height: 1.04; font-variation-settings: "opsz" 72; }
.hero-lead { margin: 1.5rem 0 0; max-width: 32rem; font-size: var(--text-lead); color: var(--ink-soft); line-height: 1.6; }
.hero .btn { margin-top: 2rem; }
.hero-creds { margin: 2rem 0 0; font-size: var(--text-small); color: var(--muted); }
.hero-creds span { white-space: nowrap; }
.hero-creds span + span::before { content: "·"; margin: 0 0.6rem; color: var(--rule); color: rgb(27 37 51 / 0.3); }

/* Round portrait on a flat sand tone. Solid photo, no fades or glows behind the head. */
.hero-figure {
  position: relative; overflow: hidden; margin: 0; justify-self: end;
  width: min(100%, 440px); aspect-ratio: 1; border-radius: 50%;
  background: #e6d5c8;
}
.hero-figure img {
  /* full circle width, so the photo's cropped shoulder edges fall outside the curve */
  position: absolute; left: 50%; top: 7%; width: 100%; height: auto;
  transform: translateX(-50%);
}

/* ---------- Services ---------- */
.section-intro { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-intro h2 { font-size: var(--text-h2); }
.section-intro p { margin: 1rem 0 0; color: var(--ink-soft); font-size: var(--text-lead); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 6vw, 5rem); }
.service { padding: 2rem 0 2.25rem; border-top: 1px solid var(--rule); }
.service h3 { font-size: var(--text-h3); }
.service p { margin: 0.75rem 0 0; color: var(--ink-soft); }

/* ---------- About ---------- */
.about .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.about h2 { font-size: var(--text-h2); }
.about-text p { margin-top: 1.25rem; color: var(--ink-soft); }
.about-text p:first-of-type { margin-top: 1.5rem; }
.creds-title { font-family: var(--font-body); font-size: var(--text-small); font-weight: 600; color: var(--muted); margin-bottom: 0.25rem; }
.creds { list-style: none; margin: 0; padding: 0; }
.creds li { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.creds b { display: block; font-weight: 600; line-height: 1.35; }
.creds span { display: block; font-size: var(--text-small); color: var(--muted); }
.creds time { font-size: var(--text-small); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: 0.1rem; }
.more { margin-top: 1.25rem; }
.more summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 0.4rem 0; width: fit-content; }
.more summary:hover { color: var(--accent); }
.more[open] summary { margin-bottom: 0.5rem; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact h2 { font-size: var(--text-h2); }
.contact-lead { margin: 1rem auto 2rem; max-width: 32rem; color: var(--ink-soft); font-size: var(--text-lead); }
.contact-details { list-style: none; margin: 3rem auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.75rem; }
.contact-details li { display: grid; gap: 0.15rem; }
.contact-details small { font-size: 0.8rem; color: var(--muted); }
.contact-details a, .contact-details strong { font-weight: 600; text-decoration: none; }
.contact-details a:hover { color: var(--accent); }
.crisis { margin: 3rem auto 0; max-width: 36rem; font-size: var(--text-small); color: var(--muted); }
.crisis strong { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { padding: 2rem 0 2.5rem; font-size: 0.875rem; color: var(--muted); border-top: 1px solid var(--rule); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }

/* ---------- One gentle entrance ---------- */
.hero-copy, .hero-figure { animation: fade-up 900ms var(--ease) both; }
.hero-figure { animation-delay: 150ms; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav a:not(.btn) { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 1rem; }
  .hero-figure { width: min(88%, 360px); justify-self: center; }
  .about .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand { font-size: 1.2rem; }
  .btn--sm span { display: none; }
  .btn--sm { padding: 0.7rem; }
  .service-grid { grid-template-columns: 1fr; }
  .hero-creds span { display: block; }
  .hero-creds span + span::before { content: none; }
}
