:root {
  --petrol-900: #082a2e;
  --petrol-800: #0d3b40;
  --petrol-700: #11484e;
  --petrol-600: #186068;
  --ivory: #f5efe2;
  --ivory-soft: #faf6ec;
  --paper: #fffdf8;
  --amber: #d99a4e;
  --amber-deep: #b9772f;
  --ink: #1b2b2c;
  --muted: #5d6f6f;
  --line: rgba(13, 59, 64, 0.14);
  --shadow: 0 22px 50px -28px rgba(8, 42, 46, 0.55);
  --serif: "Frank Ruhl Libre", "Times New Roman", serif;
  --sans: "Heebo", "Segoe UI", Arial, sans-serif;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; }

a { color: inherit; }

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

.skip-link {
  position: absolute;
  right: -999px;
  top: 0;
  background: var(--petrol-800);
  color: var(--ivory);
  padding: .6rem 1rem;
  z-index: 100;
  border-radius: 0 0 0 8px;
}
.skip-link:focus { right: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .85rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; }
.brand-text { font-family: var(--serif); font-size: 1.18rem; color: var(--petrol-800); }
.brand-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--paper) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 50%, var(--amber) 0 40%, transparent 41%),
    var(--petrol-800);
  box-shadow: inset 0 0 0 2px var(--petrol-800);
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 0; padding: 0;
}
.nav-links a { text-decoration: none; color: var(--ink); font-size: .98rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--amber-deep); }
.nav-cta {
  background: var(--petrol-800);
  color: var(--ivory) !important;
  padding: .5rem 1.05rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--petrol-700); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--petrol-800); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(217, 154, 78, .16), transparent 55%),
    linear-gradient(160deg, var(--ivory-soft), var(--paper) 70%);
  border-bottom: 1px solid var(--line);
}
.hero-iris {
  position: absolute;
  inset: auto auto -40% 60%;
  width: 70vw; height: 70vw;
  max-width: 760px; max-height: 760px;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 50% 50%,
      rgba(13, 59, 64, 0.05) 0 2px,
      transparent 2px 26px);
  border-radius: 50%;
  opacity: .8;
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.6rem, 6vw, 5.5rem) 1.4rem clamp(2.6rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.eyebrow {
  margin: 0 0 1rem;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber-deep);
  font-weight: 700;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); color: var(--petrol-900); font-weight: 900; }
.role {
  margin: .65rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--petrol-700);
}
.lede {
  margin: 1.3rem 0 0;
  max-width: 34ch;
  font-size: 1.12rem;
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s, color .2s, box-shadow .2s;
}
.btn-primary { background: var(--petrol-800); color: var(--ivory); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--petrol-700); transform: translateY(-2px); }
.btn-ghost { border-color: var(--petrol-800); color: var(--petrol-800); }
.btn-ghost:hover { background: var(--petrol-800); color: var(--ivory); transform: translateY(-2px); }

.hero-facts {
  list-style: none;
  margin: 2.6rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem 2.6rem;
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-family: var(--serif); font-size: 1.2rem; color: var(--petrol-800); }
.hero-facts span { font-size: .9rem; color: var(--muted); }

.hero-portrait {
  margin: 0;
  position: relative;
}
.hero-portrait img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1.5px solid var(--amber);
  border-radius: 18px;
  z-index: -1;
  opacity: .7;
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 1.4rem;
}
.section-tint { max-width: none; background: var(--ivory-soft); border-block: 1px solid var(--line); }
.section-tint > * { max-width: var(--maxw); margin-inline: auto; }
.section-dark { max-width: none; background: var(--petrol-900); color: var(--ivory); }
.section-dark > * { max-width: var(--maxw); margin-inline: auto; }
.section-dark h2 { color: var(--ivory); }
.section-dark .section-index { color: var(--amber); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.4rem;
}
.section-index {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--amber-deep);
  font-weight: 700;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--petrol-900); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.about-lead p { margin: 0 0 1.1rem; font-size: 1.1rem; }
.about-lead strong { color: var(--petrol-700); }
.about-meta {
  margin: 0;
  display: grid;
  gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem;
}
.about-meta div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.about-meta div:last-child { padding-bottom: 0; border-bottom: 0; }
.about-meta dt { color: var(--muted); }
.about-meta dd { margin: 0; font-weight: 700; color: var(--petrol-800); }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-mark {
  font-size: 1.9rem;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.3rem; color: var(--petrol-800); margin-bottom: .6rem; }
.card p { margin: 0; color: var(--muted); }

/* ---------- Publications ---------- */
.pub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.pub {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem 1.8rem;
}
.pub-year {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--amber-deep);
}
.pub-cite { margin: 0 0 .4rem; font-size: 1.05rem; }
.pub-venue { margin: 0 0 .5rem; color: var(--muted); }
.pub-link { color: var(--petrol-700); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--amber); padding-bottom: 1px; }
.pub-link:hover { color: var(--amber-deep); }

/* ---------- Clinics ---------- */
.clinics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.clinic {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem;
  border-top: 4px solid var(--petrol-700);
}
.clinic h3 { font-size: 1.5rem; color: var(--petrol-900); }
.clinic-fund { margin: .3rem 0 1rem; color: var(--amber-deep); font-weight: 700; }
.clinic-addr { margin: 0 0 .6rem; font-size: 1.05rem; }
.clinic-note { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Appointments ---------- */
.appt {
  background: var(--ivory-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.8rem, 4vw, 3rem);
}
.appt-soon { text-align: center; max-width: 52ch; margin: 0 auto; }
.appt-soon-title { font-family: var(--serif); font-size: 1.6rem; color: var(--petrol-800); margin: 0 0 .7rem; }
.appt-soon-text { color: var(--muted); margin: 0 0 1.6rem; }

.appt-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: .95rem; color: var(--petrol-800); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-color: transparent;
}
.appt-form > .btn { grid-column: 1 / -1; justify-self: start; }
.appt-feedback { grid-column: 1 / -1; margin: 0; font-weight: 500; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.contact-item {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.6rem;
  border: 1px solid rgba(245, 239, 226, 0.18);
  border-radius: 16px;
  text-decoration: none;
  background: rgba(255,255,255,0.03);
  transition: background .2s;
}
a.contact-item:hover { background: rgba(255,255,255,0.08); }
.contact-label { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.contact-value { font-family: var(--serif); font-size: 1.3rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--petrol-900);
  color: rgba(245, 239, 226, 0.75);
  text-align: center;
  padding: 2.6rem 1.4rem 3rem;
  border-top: 1px solid rgba(245, 239, 226, 0.12);
}
.footer-name { font-family: var(--serif); color: var(--ivory); font-size: 1.15rem; margin: 0 0 .6rem; }
.footer-note { max-width: 60ch; margin: 0 auto 1rem; font-size: .92rem; }
.footer-copy { margin: 0; font-size: .85rem; opacity: .8; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .5rem 1.4rem 1rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; padding-top: .6rem; }
  .nav-links a { display: block; padding: .8rem 0; }
  .nav-cta { text-align: center; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; max-width: 320px; }
  .about-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .clinics { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .pub { grid-template-columns: 1fr; gap: .5rem; }
  .appt-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
