/* ==========================================================================
   Dr. Chetana Nath — Clinical Psychology & Rehabilitation Practice
   Base stylesheet
   ========================================================================== */

:root {
  /* Palette */
  --ink:        #1b2b2a;
  --ink-soft:   #40514f;
  --ink-mute:   #6c7c79;
  --teal:       #2f5d5b;
  --teal-deep:  #22423f;
  --teal-lite:  #e6efec;
  --sage:       #8fb0a4;
  --clay:       #b9714f;
  --sand:       #f2ece2;
  --cream:      #fbf9f5;
  --white:      #ffffff;
  --line:       #e2dcd1;

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Space */
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --maxw: 1140px;
  --radius: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(27, 43, 42, .06), 0 2px 8px rgba(27, 43, 42, .05);
  --shadow-md: 0 4px 12px rgba(27, 43, 42, .07), 0 16px 40px rgba(27, 43, 42, .07);
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.18;
  font-weight: 600;
  margin: 0 0 .6em;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.25rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p  { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 4px; }

/* --- Layout helpers ------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 780px; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.section--teal { background: var(--teal-deep); color: #d8e5e2; }
.section--teal h2, .section--teal h3 { color: var(--white); }
.section--teal a { color: #b9d6cf; }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal);
  margin: 0 0 .9rem;
}
.section--teal .eyebrow { color: var(--sage); }
.lede { font-size: clamp(1.075rem, 1.6vw, 1.25rem); color: var(--ink-soft); }
.section--teal .lede { color: #cfe0dc; }
.center { text-align: center; }
.center .lede { margin-inline: auto; max-width: 62ch; }

/* --- Skip link ------------------------------------------------------------ */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--teal-deep); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 249, 245, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 74px;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.brand__role { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  font-size: .95rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; padding: .5rem .8rem; border-radius: 8px;
}
.nav a:hover { background: var(--teal-lite); color: var(--teal-deep); }
.nav a[aria-current="page"] { color: var(--teal-deep); font-weight: 600; }
.nav .btn { margin-left: .5rem; white-space: nowrap; }

/* The generic .nav a rules are more specific than .btn--*, so restate the
   button colours here or the CTA label disappears into its own background. */
.nav a.btn--primary { background: var(--teal); color: var(--white); }
.nav a.btn--primary:hover { background: var(--teal-deep); color: var(--white); }
.nav a.btn--ghost { color: var(--teal); }
.nav a.btn--ghost:hover { background: var(--teal-lite); color: var(--teal-deep); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; padding: .5rem .7rem; cursor: pointer; color: var(--ink);
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-family: var(--sans); }
  .nav {
    position: absolute; inset: 74px 0 auto; display: none; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--cream);
    border-bottom: 1px solid var(--line); padding: .6rem var(--gutter) 1.2rem;
    box-shadow: var(--shadow-md);
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: .8rem .4rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: .9rem 0 0; text-align: center; border-bottom: 0; }
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans); font-size: .97rem; font-weight: 600; line-height: 1;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-deep); color: var(--white); }
.btn--ghost { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--ghost:hover { background: var(--teal-lite); color: var(--teal-deep); }
.btn--light { background: var(--white); color: var(--teal-deep); }
.btn--light:hover { background: var(--sand); color: var(--teal-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.center .btn-row { justify-content: center; }

/* --- Hero ----------------------------------------------------------------- */
.hero { background: linear-gradient(175deg, var(--sand) 0%, var(--cream) 62%); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -14%; top: -28%;
  width: 46rem; height: 46rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(143,176,164,.28), rgba(143,176,164,0) 68%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; padding-block: clamp(3.25rem, 8vw, 6rem);
}
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: .4em; }
.hero h1 span { display: block; font-size: .46em; letter-spacing: .12em; text-transform: uppercase;
  font-family: var(--sans); font-weight: 600; color: var(--teal); margin-bottom: .9rem; }
.hero__card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.15rem); box-shadow: var(--shadow-md);
}
.hero__card h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.cred-list { list-style: none; margin: 0; padding: 0; }
.cred-list li {
  display: flex; gap: .7rem; align-items: flex-start;
  font-size: .95rem; padding: .6rem 0; border-bottom: 1px dashed var(--line);
}
.cred-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.cred-list svg { flex: none; margin-top: .18rem; color: var(--sage); }
.cred-list strong { color: var(--ink); font-weight: 600; }

/* --- Stat strip ----------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border-block: 1px solid var(--line); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stats > div { background: var(--white); padding: 1.6rem 1.25rem; text-align: center; }
.stats .n { font-family: var(--serif); font-size: 1.85rem; color: var(--teal); display: block; line-height: 1.1; }
.stats .l { font-size: .82rem; letter-spacing: .05em; color: var(--ink-mute); text-transform: uppercase; }

/* --- Cards ---------------------------------------------------------------- */
.grid { display: grid; gap: 1.35rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.65rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--teal-lite);
  display: grid; place-items: center; color: var(--teal); margin-bottom: 1rem;
}

.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tag {
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  background: var(--teal-lite); color: var(--teal-deep);
  padding: .32rem .7rem; border-radius: 999px;
}

/* --- Split content -------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.portrait {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--teal-lite);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}

/* --- Steps ---------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1.35rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 3.5rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sage); color: var(--teal-deep);
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
}
.step h3 { margin-bottom: .35rem; }
.step p { margin-bottom: 0; font-size: .97rem; }

/* --- FAQ ------------------------------------------------------------------ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0;
  font-family: var(--serif); font-size: 1.1rem; color: var(--ink); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--sage); font-family: var(--sans); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding-bottom: 1.3rem; max-width: 68ch; }
.faq details > div p:last-child { margin-bottom: 0; }

/* --- Contact -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-item:last-of-type { border-bottom: 0; }
.contact-item svg { flex: none; color: var(--sage); margin-top: .25rem; }
.contact-item h3 { font-size: 1rem; font-family: var(--sans); font-weight: 700; margin-bottom: .15rem; }
.contact-item p { margin-bottom: 0; font-size: .97rem; }
.contact-item a { font-weight: 500; }

.note {
  background: var(--teal-lite); border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.35rem; font-size: .95rem; color: var(--ink-soft);
}
.note strong { color: var(--ink); }
.note p:last-child { margin-bottom: 0; }

/* --- Prose (about page) --------------------------------------------------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8rem; }

.qual-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: .97rem; }
.qual-table th, .qual-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.qual-table th { font-family: var(--sans); font-weight: 700; color: var(--ink); width: 42%; }
.qual-table tr:first-child th, .qual-table tr:first-child td { border-top: 1px solid var(--line); }

/* --- Page header (inner pages) -------------------------------------------- */
.page-head { background: linear-gradient(175deg, var(--sand) 0%, var(--cream) 100%); padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.page-head h1 { margin-bottom: .35em; }
.page-head .lede { max-width: 60ch; margin-bottom: 0; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--teal-deep); color: #b6c9c5; padding-block: clamp(2.75rem, 6vw, 4rem) 2rem; font-size: .93rem; }
.site-footer a { color: #d5e5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .13em;
  text-transform: uppercase; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-brand__name { font-family: var(--serif); font-size: 1.25rem; color: #fff; margin-bottom: .35rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: .85rem; color: #90a8a3;
}

/* --- Addresses ------------------------------------------------------------ */
.footer-address {
  font-style: normal;
  line-height: 1.65;
  margin: 0 0 1rem;
}
.footer-address strong { color: #fff; font-weight: 600; }

.contact-address {
  font-style: normal;
  line-height: 1.6;
  margin: 0 0 .5rem;
  font-size: .97rem;
}
.contact-address strong { color: var(--ink); font-weight: 600; }

/* --- Booking card --------------------------------------------------------- */
.book-card {
  background: var(--teal-lite);
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.book-card p { margin-bottom: 1.1rem; }
.book-card strong { color: var(--ink); }
.book-card__note {
  margin: 1rem 0 0;
  font-size: .9rem;
  color: var(--ink-mute);
}
