/* Dr. Alex Cojanu, MD. Site styles. Mobile first, no external fonts. */
:root {
  --ink: #1c2833;
  --ink-soft: #4a5866;
  --navy: #1f3a4d;
  --navy-deep: #152a38;
  --sage: #3d6e68;
  --sage-soft: #e6efed;
  --sand: #f6f3ee;
  --paper: #ffffff;
  --line: #dcd6cc;
  --warn: #8a4b14;
  --warn-bg: #fbf1e4;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 35, 50, .06), 0 4px 16px rgba(20, 35, 50, .05);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--sand); color: var(--ink);
  font: 17px/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid #c9a227; outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, .h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); margin: .2em 0 .35em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3.6vw, 1.9rem); margin: 1.6em 0 .5em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }
.h4 { font-size: 1.15rem; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.small { font-size: .9rem; color: var(--ink-soft); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 64px; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); padding: 8px 0; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 600 15px/1 var(--serif); letter-spacing: .04em; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font: 600 1.05rem var(--serif); }
.brand-sub { font-size: .78rem; color: var(--ink-soft); letter-spacing: .08em; text-transform: uppercase; }
.nav-toggle { display: none; font: inherit; font-size: .95rem; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; color: var(--navy); cursor: pointer; min-height: 44px; }
.js .nav-toggle { display: inline-block; }
.site-nav { display: block; width: 100%; padding: 4px 0 16px; }
.js .site-nav { display: none; }
.js .site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.site-nav li a { display: block; padding: 12px 4px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--sand); }
.site-nav a[aria-current="page"] { color: var(--sage); font-weight: 600; }
@media (min-width: 900px) {
  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: flex; align-items: center; gap: 22px; width: auto; padding: 0; }
  .site-nav ul { display: flex; gap: 22px; margin: 0; }
  .site-nav li a { padding: 6px 0; border: 0; font-size: .97rem; }
  .header-inner { flex-wrap: nowrap; }
}

/* Buttons */
.btn { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem; border: 2px solid var(--navy); cursor: pointer; min-height: 44px; text-align: center; font-family: var(--sans); }
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--sage-soft); color: var(--navy); border-color: var(--sage-soft); }
.btn-small { padding: 8px 16px; font-size: .9rem; }
.btn-block { display: block; width: 100%; }
.card .btn + .btn { margin-top: 10px; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--paper) 0%, var(--sand) 100%); padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.hero-small { padding: 40px 0 32px; }
.hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 680px; }
.eyebrow { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); font-weight: 700; margin: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-grid { display: grid; gap: 32px; }
.hero-photo { margin: 0; max-width: 420px; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-photo figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: 10px; }
@media (min-width: 900px) {
  .hero { padding: 88px 0 72px; } .hero-small { padding: 56px 0 44px; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: center; }
  .hero-home { padding: 64px 0 60px; }
  .hero-photo { justify-self: end; }
}

/* Sections */
.section { padding: 44px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section > .wrap > h2:first-child { margin-top: 0; }
@media (min-width: 900px) { .section { padding: 68px 0; } }

/* Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } .cards-2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card h2 { margin-top: .2em; }
.svc h3 a { color: var(--navy); text-decoration: none; }
.svc h3 a::after { content: " \2192"; color: var(--sage); }
.svc { position: relative; }
.svc h3 a::before { content: ""; position: absolute; inset: 0; }
.svc:hover { border-color: var(--sage); }
.svc p { color: var(--ink-soft); font-size: .97rem; }
.cards-tall .card { display: flex; flex-direction: column; }
.cards-tall .card .btn { margin-top: auto; align-self: flex-start; }

/* Split + facts */
.split { display: grid; gap: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.3fr 1fr; align-items: start; gap: 56px; } .split h2 { margin-top: 0; } }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { background: var(--sand); border-left: 3px solid var(--sage); padding: 12px 16px; border-radius: 0 8px 8px 0; display: flex; flex-direction: column; }
.facts span { color: var(--ink-soft); font-size: .93rem; }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .steps:not(.steps-compact) { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; position: relative; padding: 18px 18px 18px 62px; background: var(--sand); border-radius: var(--radius); }
.section-alt .steps li { background: var(--sand); }
.prose .steps li { background: var(--paper); border: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 600 .95rem/1 var(--sans); }
.steps-wrap h2 { margin-top: 0; }

/* Prose + side */
.prose-grid { display: grid; gap: 32px; }
@media (min-width: 980px) { .prose-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; } .side { position: sticky; top: 96px; } }
.prose { max-width: 720px; }
.prose > h2:first-child, .prose > p:first-child + h2 { margin-top: 0; }
.prose ul, .prose ol:not(.steps) { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose ul.ticks { list-style: none; padding-left: 0; }
ul.ticks li { padding-left: 1.6em; position: relative; }
ul.ticks li::before { content: ""; position: absolute; left: .2em; top: .62em; width: .55em; height: .55em; border-radius: 50%; background: var(--sage); }
.side { display: grid; gap: 16px; }
.notice { background: var(--sage-soft); border-radius: var(--radius); padding: 14px 18px; }
.warning { background: var(--warn-bg); color: var(--warn); border-radius: var(--radius); padding: 14px 18px; }

/* Crisis */
.crisis { background: var(--warn-bg); border: 1px solid #ecd3b4; color: #5e3410; border-radius: var(--radius); padding: 14px 16px; font-size: .95rem; margin-bottom: 18px; }
.crisis a { color: #5e3410; font-weight: 700; }

/* Band */
.band { background: var(--navy); color: #fff; padding: 36px 0; }
.band-inner { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.band p { margin: 0; font: 600 1.25rem/1.35 var(--serif); }
@media (min-width: 760px) { .band-inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* About */
.about-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; } .portrait { position: sticky; top: 96px; } .about-grid .prose h2:first-child { margin-top: 0; } }
.portrait { margin: 0; max-width: 340px; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.portrait figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: 10px; }

/* Forms */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; } }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.form-note { background: var(--sage-soft); border-radius: 8px; padding: 12px 14px; font-size: .95rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.req, .opt { font-weight: 400; color: var(--ink-soft); font-size: .88rem; }
.field input, .field select { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #b9b2a6; border-radius: 8px; background: #fff; color: var(--ink); min-height: 46px; }
.field input:focus, .field select:focus { border-color: var(--sage); }
.field.check { display: flex; gap: 10px; align-items: flex-start; }
.field.check input { width: 22px; height: 22px; min-height: 0; margin-top: 3px; flex: none; }
.field.check label { font-weight: 400; color: var(--ink); margin: 0; }
.hp { position: absolute; left: -9999px; }
.contact-list li { margin-bottom: 10px; }
.contact-list .btn { margin-top: 8px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #d5dde3; padding: 44px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-name { font: 600 1.1rem var(--serif); color: #fff; margin-bottom: .4em; }
.footer-head { color: #fff; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin-bottom: 6px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; font-size: .85rem; color: #aab7c1; }
.big-links li { font: 600 1.25rem var(--serif); margin-bottom: 10px; }

/* Print: policies and notices print cleanly */
@media print {
  .site-header, .site-footer, .band, .skip, .hero-ctas, .side { display: none; }
  body { background: #fff; font-size: 11.5pt; }
  .hero { background: none; border: 0; padding: 0 0 12pt; }
  .section { padding: 0; }
  a { color: inherit; text-decoration: none; }
}
