/* ============================================================
   Dr. Irina Koyfman — Author & Speaker Hub
   Shared stylesheet
   ============================================================ */

:root {
  --teal-50: #e1f5ee;
  --teal-600: #0f6e56;
  --teal-700: #0b5444;
  --purple-50: #eeedfe;
  --purple-600: #3c3489;
  --coral-50: #faece7;
  --coral-600: #993c1d;
  --ink: #1d2321;
  --ink-soft: #4a534f;
  --muted: #6b746f;
  --line: rgba(29, 35, 33, 0.12);
  --bg: #ffffff;
  --bg-soft: #f6f4ef;
  --bg-band: #f1efe8;
  --accent: #0f6e56;
  --accent-dark: #0b5444;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 3px rgba(29, 35, 33, 0.06), 0 8px 24px rgba(29, 35, 33, 0.05);
  --serif: "Georgia", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 760px; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.9rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-light { background: #fff; color: var(--accent-dark); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal-50); color: var(--teal-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em;
}
.brand .name { font-size: 1rem; }
.brand .name small { display: block; font-size: 0.68rem; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a { color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a.active { color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.band { background: var(--bg-band); }
.band-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 0 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 0.6rem; }
.hero .lead { margin-bottom: 1.8rem; max-width: 32ch; }
/* Centered heroes: keep the width-constrained lead aligned in the middle */
.hero .center .lead { margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--teal-50), var(--purple-50));
  display: flex; align-items: flex-end; justify-content: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-portrait .ph-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--teal-700); font-family: var(--serif); font-size: 1.1rem; text-align: center; padding: 1.5rem; opacity: 0.7;
}
.cred-strip { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 2rem; font-size: 0.85rem; color: var(--muted); }
.cred-strip span { display: inline-flex; align-items: center; gap: 0.4rem; }
.cred-strip .dot { color: var(--accent); }

/* ---------- Featured book ---------- */
.feature {
  display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem; box-shadow: var(--shadow);
}
.book-cover {
  aspect-ratio: 2 / 3; border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.4rem; position: relative;
  box-shadow: 0 10px 30px rgba(29,35,33,0.16);
}
.book-cover .ttl { font-family: var(--serif); font-weight: 700; line-height: 1.25; }
.book-cover .sub { font-size: 0.72rem; margin-top: 0.6rem; opacity: 0.85; line-height: 1.4; }
.book-cover .byline { position: absolute; bottom: 1.1rem; font-size: 0.72rem; letter-spacing: 0.05em; opacity: 0.9; }
.cover-coral { background: linear-gradient(165deg, #f7d9cc, #e8a98f); color: var(--coral-600); }
.cover-teal { background: linear-gradient(165deg, #cdeee2, #8fd3bd); color: var(--teal-700); }
.cover-purple { background: linear-gradient(165deg, #dedbfb, #b5aef0); color: var(--purple-600); }
.badge {
  display: inline-block; background: var(--coral-50); color: var(--coral-600);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.3rem 0.75rem; border-radius: 999px; margin-bottom: 0.9rem;
}
.feature h2 { font-size: 1.7rem; }
.feature .subtitle { font-size: 1.05rem; color: var(--ink-soft); font-style: italic; margin-bottom: 1rem; }

/* ---------- Book grid ---------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; }
.book-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.book-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.book-card .card-cover { padding: 2rem 1.5rem; display: flex; justify-content: center; }
.book-card .card-cover .book-cover { width: 150px; }
.book-card .card-body { padding: 0 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.book-card h3 { margin-bottom: 0.4rem; }
.book-card p { font-size: 0.92rem; color: var(--ink-soft); flex: 1; }
.book-card .card-link { font-weight: 600; font-size: 0.9rem; color: var(--accent-dark); margin-top: 0.5rem; }

/* ---------- Feature tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.tile .ico { width: 44px; height: 44px; border-radius: 11px; background: var(--teal-50); color: var(--teal-700);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 0.9rem; }
.tile h3 { font-size: 1.05rem; }
.tile p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ---------- Topics list ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.topic {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 1.1rem 1.3rem;
}
.topic h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.topic p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem; color: var(--ink); background: #fff; transition: border 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.8rem; }

/* ---------- Inline signup ---------- */
.signup { display: flex; gap: 0.6rem; flex-wrap: wrap; max-width: 460px; }
.signup input { flex: 1; min-width: 200px; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.95rem; }
.signup input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.12); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #fff; border-radius: var(--radius); padding: clamp(2.2rem, 5vw, 3.5rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 52ch; margin: 0 auto 1.6rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; text-align: center; }
.stat .num { font-size: 2.4rem; font-weight: 700; color: var(--accent); font-family: var(--serif); }
.stat .lbl { font-size: 0.9rem; color: var(--muted); }

/* ---------- Bio ---------- */
.bio-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: start; }
.bio-portrait { aspect-ratio: 4/5; border-radius: var(--radius); background: linear-gradient(160deg, var(--purple-50), var(--teal-50)); box-shadow: var(--shadow); display:flex; align-items:center; justify-content:center; color: var(--teal-700); font-family: var(--serif); padding: 1.5rem; text-align: center; }
.bio-body p { font-size: 1.05rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.78); padding: 3rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: #fff; }
.footer-brand .name { font-weight: 600; color: #fff; font-size: 1.05rem; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: 0.92rem; }
.footer-social { display: flex; gap: 1rem; font-size: 1.3rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2rem; padding-top: 1.3rem; font-size: 0.82rem; color: rgba(255,255,255,0.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .bio-grid, .grid-2 { grid-template-columns: 1fr; }
  .hero-portrait, .bio-portrait { max-width: 360px; margin: 0 auto; }
  .feature { grid-template-columns: 1fr; text-align: center; }
  .feature .book-cover { max-width: 200px; margin: 0 auto; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 0.5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 1.5rem; width: 100%; }
  .nav-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
}
