/* Chennai RR Medicos — plain, quiet site: white ground, one sans, ink + one green accent */
:root {
  --ink: #1C2B3A;
  --muted: #56606B;
  --line: #E3E8E5;
  --green: #2E7D5B;
  --tint: #F1F4F2;
  --bg: #FFFFFF;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
}
a { color: var(--ink); }
a:hover { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
h1, h2, h3, p, dl, dd { margin: 0; }

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

/* Header + nav */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 24px; }
.wordmark { text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding-block: 6px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; text-decoration-color: var(--green); }
.nav a.order { color: var(--green); font-weight: 600; }

main { animation: page-in .6s ease-out both; }
@keyframes page-in { from { opacity: .4; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Page openings */
.page-title { padding-block: 72px 48px; display: flex; flex-direction: column; gap: 20px; }
.page-title h1 { max-width: 14em; font-weight: 600; font-size: clamp(36px, 5vw, 60px); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
.lead { max-width: 36em; font-size: 20px; color: var(--muted); }
.more { align-self: flex-start; font-weight: 600; text-underline-offset: 6px; }

/* Home: headline + directors' note */
.intro { padding-block: 88px 80px; display: flex; flex-wrap: wrap; gap: 40px 96px; }
.intro h1 { flex: 1 1 300px; max-width: 9em; font-weight: 600; font-size: clamp(40px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.note { flex: 1.3 1 440px; min-width: 0; max-width: 32em; display: flex; flex-direction: column; gap: 18px; font-size: 20px; }
.signoff { margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; }
.signoff p { font-size: 16px; line-height: 1.5; }
.signoff small { font-size: 14px; color: var(--muted); }

.band { border-top: 1px solid var(--line); }
.band > .wrap { padding-block: 56px; }
.stats { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.stats > div { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stats strong { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.stats span { color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px 48px; }
.cta p { font-size: clamp(22px, 2.6vw, 28px); font-weight: 500; letter-spacing: -0.01em; max-width: 24em; }
.cta p a { color: var(--green); }

/* Two-column sections (About, FAQ) */
.split { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.split > h2 { flex: 1 1 220px; font-size: 19px; font-weight: 600; }
.split > .body { flex: 3 1 480px; min-width: 0; max-width: 42em; display: flex; flex-direction: column; gap: 16px; }

.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rows > li, .rows > div { display: flex; flex-wrap: wrap; gap: 4px 32px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.rows .k { flex: 0 0 220px; color: var(--muted); }
.rows .v { flex: 1 1 260px; min-width: 0; font-variant-numeric: tabular-nums; }
.rows .yr { flex: 0 0 96px; font-weight: 600; }

/* Principals */
.finder { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; margin-bottom: 20px; }
.finder label { display: block; font-size: 15px; font-weight: 500; }
.finder input { font: inherit; color: var(--ink); background: #FFFFFF; border: 0; border-bottom: 1px solid #AFB9B3; border-radius: 0; padding: 8px 0; min-height: 44px; width: min(360px, 100%); }
.finder input:focus { border-bottom-color: var(--green); outline: none; }
.co-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 32px; border-top: 1px solid var(--line); }
.co-grid li { padding-block: 12px; border-bottom: 1px solid var(--line); }

/* Contact */
.contact-head { padding-block: 72px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; }
.contact-head h1 { font-weight: 600; font-size: clamp(36px, 5vw, 60px); line-height: 1.06; letter-spacing: -0.03em; }
.contact-head .addr { font-size: 19px; color: var(--muted); max-width: 26em; }
.email-big { font-size: clamp(20px, 2.4vw, 26px); font-weight: 500; color: var(--green); overflow-wrap: anywhere; }
.boxes { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-block: 16px 96px; }
.box { flex: 1 1 400px; min-width: 0; background: var(--tint); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.box h2 { font-size: 22px; font-weight: 600; }
.box .hint { margin-top: -8px; color: var(--muted); font-size: 15px; }
.box form { display: flex; flex-direction: column; gap: 18px; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld label { font-size: 15px; font-weight: 500; }
.fld label span { font-weight: 400; color: var(--muted); }
.fld input, .fld textarea { font: inherit; color: var(--ink); background: #FFFFFF; border: 1px solid #D5DCD8; border-radius: 6px; padding: 10px 12px; min-height: 44px; width: 100%; }
.fld textarea { resize: vertical; }
.fld input:focus, .fld textarea:focus { border-color: var(--green); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn { align-self: flex-start; appearance: none; font: inherit; font-weight: 600; cursor: pointer; background: var(--ink); color: #FFFFFF; border: 0; border-radius: 6px; min-height: 46px; padding: 0 24px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.linkbtn { appearance: none; font: inherit; font-size: 15px; cursor: pointer; background: transparent; border: 0; padding: 6px 0; min-height: 40px; color: var(--muted); text-decoration: underline; text-underline-offset: 5px; }
.status { font-size: 15px; }
.status.err { color: #A12C2C; }
.status.ok { color: var(--green); font-weight: 600; }

/* FAQ */
.faq dt { font-weight: 600; font-size: 18px; padding-top: 20px; }
.faq dd { color: var(--muted); padding-bottom: 20px; border-bottom: 1px solid var(--line); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 28px 40px; font-size: 14px; color: var(--muted); }
.site-footer .legal { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 520px) { .intro { padding-block: 48px 56px; } .box { padding: 24px; } }
@media (prefers-reduced-motion: reduce) { main { animation: none; } }
