/* ============================================================
   Dr Elena Theophilidou — surgical practice site
   Palette: deep navy (from practice logo), ivory, aged brass accent
   Type: Fraunces (display) + IBM Plex Sans (body/UI)
   ============================================================ */

:root {
  --ink: #16213f;
  --ink-soft: #48546b;
  --ivory: #f5f5f1;
  --ivory-dim: #eceeec;
  --navy: #14319c;
  --navy-deep: #0b2068;
  --brass: #a9863f;
  --line: #dcdfe3;
  --white: #ffffff;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1160px;
  --measure: 640px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  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 32px; }
.measure { max-width: var(--measure); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 245, 241, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  height: 34px;
  width: auto;
}

.brand-text {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--navy-deep);
}
.brand-text span { color: var(--brass); }

.nav { display: flex; gap: 34px; align-items: center; }

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav a:hover { color: var(--navy-deep); border-color: var(--brass); }

.nav .btn { padding: 9px 20px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav.open { max-height: 420px; }
  .nav a { padding: 16px 32px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 16px 32px; }
}

/* ---------- hero: full-bleed photo, split layout ---------- */
.hero {
  position: relative;
  border-top: none;
  padding: 0;
  display: flex;
  min-height: 620px;
  overflow: hidden;
}

.hero-photo-wrap {
  flex: 1 1 56%;
  position: relative;
  overflow: hidden;
  background: var(--ivory-dim);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 34% center;
}

.hero-panel-wrap {
  flex: 1 1 44%;
  display: flex;
  align-items: center;
  background: var(--ivory);
  padding: 56px clamp(24px, 4vw, 56px);
}

.hero-panel {
  max-width: 480px;
}

.eyebrow { font-size: 0.92rem; color: var(--navy); margin: 0 0 18px; font-weight: 500; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 2.6vw, 2.5rem);
  line-height: 1.14;
  margin: 0 0 20px;
  color: var(--navy-deep);
}

.hero .role { font-size: 1.02rem; color: var(--ink-soft); margin: 0 0 28px; }

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.trust-badge {
  font-size: 0.78rem;
  color: var(--navy-deep);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 30px;
}

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  border: 1px solid transparent;
}
.btn-primary { background: var(--navy-deep); color: var(--white); }
.btn-primary:hover { background: var(--navy); }
.btn-ghost { border-color: var(--ink-soft); color: var(--ink); }
.btn-ghost:hover { border-color: var(--navy-deep); color: var(--navy-deep); }

@media (max-width: 900px) {
  .hero { flex-direction: column; min-height: 0; }
  .hero-photo-wrap { flex: none; height: 340px; }
  .hero-photo { object-position: 38% 22%; }
  .hero-panel-wrap { padding: 36px 24px 44px; }
  .hero-panel { max-width: 100%; }
}


/* ---------- section scaffolding ---------- */
section { padding: 84px 0; border-top: 1px solid var(--line); }

.section-head { display: grid; grid-template-columns: 220px 1fr; gap: 40px; margin-bottom: 46px; }
.section-head h2 { font-family: var(--serif); font-weight: 500; font-size: 1.85rem; color: var(--navy-deep); margin: 0; }
.section-kicker { color: var(--brass); font-size: 0.9rem; padding-top: 6px; }

@media (max-width: 700px) { .section-head { grid-template-columns: 1fr; gap: 8px; } }

.section-body { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
@media (max-width: 700px) {
  .section-body { grid-template-columns: 1fr; }
  .section-body > .spacer { display: none; }
}

p { margin: 0 0 18px; color: var(--ink-soft); }

/* ---------- about ---------- */
#about { background: var(--white); }

/* ---------- conditions grid ---------- */
.conditions-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 860px) { .conditions-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .conditions-list { grid-template-columns: 1fr; } }

.condition-item { background: var(--ivory); padding: 26px 26px; }
.condition-item h3 { font-family: var(--serif); font-weight: 500; font-size: 1.02rem; margin: 0 0 8px; color: var(--navy-deep); }
.condition-item p { font-size: 0.93rem; margin: 0; }

/* ---------- what to expect (genuine step sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

.step { position: relative; padding-top: 40px; }
.step::before {
  content: attr(data-step);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--brass);
  border-top: 1px solid var(--brass);
  padding-top: 10px;
  width: 32px;
}
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; margin: 0 0 8px; color: var(--navy-deep); }
.step p { font-size: 0.93rem; margin: 0; }

/* ---------- recognition strip ---------- */
.recognition-strip { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 0.9rem; color: var(--ink-soft); }
.recognition-strip li { list-style: none; }

/* ---------- contact ---------- */
#contact { background: var(--navy-deep); color: var(--ivory); border-top: none; }
#contact .section-kicker { color: #b9c3e6; }
#contact h2 { color: var(--ivory); }
#contact p { color: #ccd2ea; }

.contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--navy);
  padding: 40px;
  border-radius: 4px;
}

.contact-detail dt { font-size: 0.82rem; color: #b9c3e6; margin-bottom: 4px; }
.contact-detail dd { margin: 0 0 22px; font-family: var(--serif); font-size: 1.25rem; }
.contact-detail dd a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--brass); }
.contact-detail dd a:hover { color: var(--brass); }
.contact-card .btn-primary { background: var(--brass); }
.contact-card .btn-primary:hover { background: #97742f; }

/* ---------- footer ---------- */
footer {
  padding: 28px 0;
  background: var(--navy-deep);
  color: #93a0c9;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
