/* ============================================================
   Dr. Seshubabu Gosala — Design tokens
   Palette: sage & cream, calm and clinical-warm
   Type: Fraunces (display) / Inter (body) / IBM Plex Mono (data)
   Signature: concentric "focal ring" motif (optics / iris / lens)
   ============================================================ */

:root {
  --cream:        #FAF6EC;
  --cream-deep:    #F1EAD8;
  --paper:         #FFFFFF;
  --sage:          #7C8B6C;
  --sage-deep:     #465238;
  --sage-darkest:  #2E3626;
  --ink:           #2B2A24;
  --ink-soft:      #5C594C;
  --ink-faint:     #8B8776;
  --line:          #DCD5C1;
  --gold:          #B39A5C;

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --max: 1120px;
  --radius: 2px;
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--sage-deep);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--sage-darkest);
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 400; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--sage-deep); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

p { margin: 0 0 1em; }
.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 0.9em;
}

.mono-link {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary {
  background: var(--sage-deep);
  color: #fff;
}
.btn-primary:hover { background: var(--sage-darkest); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--sage-darkest);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--sage-deep); background: var(--paper); }

.btn-text {
  background: transparent;
  color: var(--sage-deep);
  padding: 13px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-small { padding: 9px 16px; font-size: 0.85rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 236, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sage-darkest);
}
.brand-mark { width: 28px; height: 28px; color: var(--sage-deep); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color var(--transition);
}
.site-nav a:not(.btn):hover { color: var(--sage-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--sage-darkest);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 64px;
}

.hero-rings {
  position: absolute;
  top: 50%;
  right: 2%;
  width: 640px;
  height: 640px;
  transform: translate(8%, -50%);
  opacity: 0.5;
  pointer-events: none;
}
.hero-rings svg { width: 100%; height: 100%; }
.ring { fill: none; stroke: var(--sage); }
.ring-1 { stroke-width: 1; opacity: 0.35; }
.ring-2 { stroke-width: 1; opacity: 0.45; }
.ring-3 { stroke-width: 1; opacity: 0.6; }
.ring-4 { stroke-width: 1; opacity: 0.8; }
.pupil { fill: var(--sage-deep); opacity: 0.8; }

.hero-inner {
  position: relative;
  padding-top: 24px;
  padding-bottom: 8px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero h1 { max-width: 15ch; margin-bottom: 0.4em; }

/* ---------- Hero portrait ---------- */

.hero-portrait {
  position: relative;
  z-index: 1;
}
.portrait-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 24px 48px rgba(46, 54, 38, 0.14);
  aspect-ratio: 4 / 5;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.portrait-caption {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--ink-faint);
  text-align: center;
}

.hero-sub {
  max-width: 52ch;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 2.2em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 3.2em;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 640px;
  padding-top: 28px;
  margin: 0;
  border-top: 1px solid var(--line);
}
.hero-stats dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.hero-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--sage-darkest);
}
.hero-stats dd a { text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.hero .reveal:nth-child(1) { transition-delay: 0.02s; }
.hero .reveal:nth-child(2) { transition-delay: 0.10s; }
.hero .reveal:nth-child(3) { transition-delay: 0.18s; }
.hero .reveal:nth-child(4) { transition-delay: 0.26s; }
.hero .reveal:nth-child(5) { transition-delay: 0.34s; }

/* ---------- Sections (generic) ---------- */

.section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }

.ring-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 1px solid var(--sage);
  position: relative;
}
.ring-mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--sage-deep);
}
.ring-mark-light { border-color: rgba(255,255,255,0.5); }
.ring-mark-light::after { background: var(--gold); }

/* ---------- About / two-col ---------- */

.about-snap { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.two-col {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
}
.col-label { position: sticky; top: 100px; align-self: start; }

.timeline { margin: 2em 0; border-top: 1px solid var(--line); }
.timeline-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-period {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--sage-deep);
}
.timeline-detail { color: var(--ink-soft); font-size: 0.96rem; }
.timeline-detail a { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 2px; }

.philosophy {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--sage-darkest);
  max-width: 46ch;
  margin-top: 1.6em;
  line-height: 1.5;
}

/* ---------- Why strip ---------- */

.why-strip { padding: 44px 0; background: var(--cream-deep); }
.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  justify-content: center;
}
.why-list li {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--sage-deep);
  padding-left: 18px;
  position: relative;
}
.why-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Expertise cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.care-card {
  background: var(--cream);
  padding: 32px 26px;
  transition: background var(--transition);
}
.care-card:hover { background: var(--paper); }
.care-icon { width: 34px; height: 34px; color: var(--sage-deep); margin-bottom: 18px; }
.care-card h3 { margin-bottom: 0.4em; }
.care-card p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }

/* ---------- Research ---------- */

.research { background: var(--sage-darkest); color: #EDEAE0; }
.research .eyebrow { color: #B9C4A8; }
.research h2 { color: #fff; }
.research .lead { color: #CBC8B9; }
.research h4 { color: #C7CFB0; }
.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
  margin-top: 2.4em;
}
.research-grid p { color: #D8D6C8; font-size: 0.96rem; }
.research-grid em { color: #fff; font-style: italic; }

.tag-list {
  list-style: none;
  margin: 0.6em 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.tag-list li {
  font-size: 0.82rem;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  color: #E4E2D4;
}

/* ---------- Patient info chips ---------- */

.chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chip-list li { margin: 0; }
.chip-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 10px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--sage-darkest);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.chip-list a:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: #fff;
}
.chip-list .chip-arrow {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}
.chip-note {
  margin-top: 1.4em;
  font-size: 0.86rem;
  color: var(--ink-faint);
}

/* ---------- Contact ---------- */

.contact { background: var(--cream-deep); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 40px;
}
.contact-address { color: var(--ink-soft); margin-bottom: 1.6em; }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2em;
  font-size: 0.94rem;
}
.hours-table th, .hours-table td {
  text-align: left;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.hours-table th { color: var(--sage-darkest); font-family: var(--font-mono); font-weight: 400; font-size: 0.82rem; }
.hours-table td { color: var(--ink-soft); }

.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-note {
  margin: 1.8em 0 0;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.contact-note a { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 2px; }

.map-frame {
  min-height: 340px;
  border: 1px solid var(--line);
  overflow: hidden;
  filter: grayscale(12%) contrast(1.02);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--sage-darkest); color: #C7C4B4; padding: 52px 0 30px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { font-family: var(--font-display); color: #fff; font-size: 1.05rem; margin: 0; }
.footer-role { font-size: 0.82rem; margin: 2px 0 0; color: #ADA995; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { font-size: 0.86rem; text-decoration: none; color: #C7C4B4; }
.footer-nav a:hover { color: #fff; }

.footer-legal { font-size: 0.78rem; color: #8C8873; margin: 0; text-align: center; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .col-label { position: static; display: flex; align-items: center; gap: 10px; }
  .col-label .eyebrow { margin: 0; }
  .research-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-rings { right: -40%; opacity: 0.4; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-portrait { order: -1; max-width: 320px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .site-nav {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    height: calc(100vh - 76px);
    height: calc(100dvh - 76px);
    background: #FAF6EC;
    background: var(--cream);
    z-index: 300;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 22px;
    overflow-y: auto;
    box-shadow: 0 16px 32px rgba(43, 42, 36, 0.12);
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a:not(.btn) { font-size: 1.05rem; }
  .nav-toggle { display: flex; }

  .hero { padding: 44px 0 48px; }
  .hero-rings { right: -55%; top: 20%; width: 560px; height: 560px; }
  .hero-stats { grid-template-columns: 1fr; gap: 18px; }

  .section { padding: 60px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .timeline-row { grid-template-columns: 1fr; gap: 4px; }
  .why-list { justify-content: flex-start; }
  .contact-card { padding: 28px; }
}
