/* ===========================================================
   jgoehle.com — Professional ASC Books
   Clean, professional theme
   =========================================================== */

:root {
  --navy:    #0f2c4d;
  --navy-2:  #163a63;
  --blue:    #1f5f9e;
  --blue-lt: #e8f0f9;
  --gold:    #c8a24a;
  --ink:     #1d2733;
  --muted:   #5a6878;
  --line:    #e2e8f0;
  --bg:      #f7f9fc;
  --white:   #ffffff;
  --radius:  10px;
  --shadow:  0 6px 24px rgba(15, 44, 77, 0.10);
  --shadow-sm: 0 2px 8px rgba(15, 44, 77, 0.08);
  --max:     1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

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

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin-bottom: 0.6em;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 70ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.98rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--gold); color: #2a2208; }
.btn--primary:hover { background: #d6b258; box-shadow: var(--shadow-sm); }
.btn--solid { background: var(--blue); color: #fff; }
.btn--solid:hover { background: var(--navy-2); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 40px; height: 40px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: Georgia, serif; font-weight: 700; color: var(--navy); font-size: 1.15rem; }
.brand__tag { font-size: 0.72rem; color: var(--muted); letter-spacing: .04em; }

.nav-links { display: flex; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 6px;
}
.nav-links a:hover { background: var(--blue-lt); text-decoration: none; color: var(--navy); }
.nav-links a.active { color: var(--blue); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; font-size: 1.5rem; color: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--blue) 130%);
  color: #fff;
  padding: 84px 0;
}
.hero h1 { color: #fff; font-size: 2.8rem; max-width: 16ch; }
.hero .lead { color: #cfe0f1; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero__books { display: flex; gap: 20px; justify-content: center; }
.hero__books .cover { width: 190px; box-shadow: 0 14px 40px rgba(0,0,0,.35); transform: rotate(-3deg); }
.hero__books .cover:last-child { transform: rotate(3deg); margin-top: 28px; }

/* ---------- Book cards ---------- */
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.book-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.book-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.book-card__cover { padding: 28px 28px 0; display: grid; place-items: center; }
.book-card__cover .cover { height: 240px; width: auto; box-shadow: var(--shadow); border-radius: 4px; }
.book-card h3 { font-size: 1.3rem; }
.book-card__sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 1em; }
.book-card .btn-row { margin-top: auto; padding-top: 12px; }

/* ---------- Feature list ---------- */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.features li { position: relative; padding-left: 32px; }
.features li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--blue); font-weight: 800;
  background: var(--blue-lt);
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.8rem;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card h3 { display: flex; align-items: center; gap: 10px; }
.card__icon { color: var(--gold); font-size: 1.4rem; }

/* ---------- Book detail layout ---------- */
.book-detail { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.book-detail__cover .cover { width: 100%; box-shadow: var(--shadow); border-radius: 6px; }
.book-detail__buy { margin-top: 22px; display: grid; gap: 10px; }
.meta-list { list-style: none; padding: 0; margin: 22px 0 0; font-size: 0.92rem; }
.meta-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.meta-list li span:first-child { color: var(--muted); }
.meta-list li span:last-child { font-weight: 600; text-align: right; }

.pagehead {
  background: var(--navy);
  color: #fff;
  padding: 56px 0;
}
.pagehead h1 { color: #fff; }
.pagehead p { color: #cfe0f1; margin: 0; }

/* ---------- Stats / trust band ---------- */
.band { background: var(--blue-lt); }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; text-align: center; }
.stat__num { font-family: Georgia, serif; font-size: 2.4rem; color: var(--navy); font-weight: 700; }
.stat__label { color: var(--muted); font-size: 0.92rem; }

/* ---------- Contact / forms ---------- */
.form-grid { display: grid; gap: 18px; max-width: 620px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field textarea, .field select {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,95,158,.15);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #c4d3e3;
  padding: 56px 0 28px;
  margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: -apple-system, sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { color: #c4d3e3; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: #8ba3bd;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center-narrow { max-width: 760px; margin: 0 auto; }

/* ---------- Author photo ---------- */
.author-photo {
  display: block;
  width: 220px;
  height: 220px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  border: 4px solid var(--white);
  outline: 1px solid var(--line);
  margin: 4px auto 18px;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  vertical-align: middle;
}
.badge--soon { background: #fdf1d6; color: #8a6d1c; border: 1px solid #ecd9a4; }
.badge--avail { background: var(--blue-lt); color: var(--blue); border: 1px solid #cfe0f1; }
.badge--new { background: #e7f6ec; color: #1d7a44; border: 1px solid #c2e6cf; }

.cover-wrap { position: relative; display: inline-block; }
.cover-wrap .badge {
  position: absolute; top: 12px; right: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

/* button disabled / coming-soon look */
.btn--soon {
  background: #eef2f7; color: #6b7787; border-color: #dde4ec; cursor: default;
}
.btn--soon:hover { transform: none; background: #eef2f7; }

/* ---------- Edition blocks (book detail) ---------- */
.edition {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.edition--feature { border-color: #ecd9a4; border-width: 2px; background: #fffdf8; }
.edition__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.edition__head h3 { margin: 0; font-size: 1.15rem; }
.edition__meta { color: var(--muted); font-size: 0.9rem; margin: 2px 0 12px; }
.edition .btn-row { margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero__grid, .grid-2, .book-grid, .footer-grid, .book-detail, .grid-3, .stats { grid-template-columns: 1fr; }
  .hero__books { margin-top: 30px; }
  .book-detail__cover { max-width: 260px; margin: 0 auto; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; border-radius: 6px; }
  .nav-toggle { display: block; }
  .stats { gap: 28px; }
  .footer-bottom { flex-direction: column; }
}
