/*
Theme Name: The Question of Justice
Theme URI: https://justiceworkbook.com
Author: Alysia Minor
Author URI: https://justiceworkbook.com
Description: Custom theme for The Question of Justice - a Lincoln-Douglas debate and criminal justice unit study workbook for homeschoolers. Navy / maroon / gold brand with Cormorant Garamond and Poppins.
Version: 3.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: question-of-justice
*/

:root {
  --navy: #073763;
  --navy-deep: #051f38;
  --maroon: #88232e;
  --blue: #2279b9;
  --gold: #c9a961;
  --gold-soft: #d8c089;
  --gray: #555555;
  --ink: #20272f;
  --cream: #faf7f2;
  --paper: #ffffff;
  --line: #e7e1d6;
  --shadow: 0 10px 40px rgba(7, 55, 99, 0.14);
  --shadow-sm: 0 4px 18px rgba(7, 55, 99, 0.10);
  --radius: 14px;
  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 0.4em;
  font-weight: 700;
  text-wrap: balance; /* avoid a single word stranded on the last line of headings */
}

/* Never leave one word alone on a line: pretty wrapping prevents widows. */
p, li, figcaption, blockquote, .lede, .hero-note, .portrait-caption, .review .quote, .who, .footer-news p { text-wrap: pretty; }

p { margin: 0 0 1.1em; }

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

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

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

.eyebrow {
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 0.9em;
}

.section { padding: 78px 0; }
.section--tight { padding: 52px 0; }
.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: 2.6rem; }
.section-head p { color: var(--gray); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--navy-deep); box-shadow: var(--shadow-sm); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--outline { background: transparent; color: var(--cream); border-color: rgba(201,169,97,.7); }
.btn--outline:hover { background: rgba(201,169,97,.14); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 30px 24px 16px; max-width: var(--max); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  width: 42px; height: 42px; border-radius: 8px;
  background: var(--navy); color: var(--gold);
  display: grid; place-items: center;
}
.brand .mark svg.scales { width: 27px; height: 27px; display: block; }
.brand .wordmark { height: 58px; width: auto; display: block; }
@media (max-width: 560px) { .brand .wordmark { height: 46px; } }
.brand .title { font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 1.35rem; color: var(--navy); line-height: 1; }
.brand .sub { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--maroon); text-decoration: none; }
.nav-links a.active, .nav-links li.current-menu-item a, .nav-links li.current_page_item a { color: var(--maroon); }
.nav-cta a, a.nav-cta { background: var(--gold); color: var(--navy-deep) !important; padding: 9px 18px; border-radius: 999px; font-weight: 600; }
.nav-cta a:hover, a.nav-cta:hover { background: var(--gold-soft); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--navy); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 600px at 78% 18%, rgba(34,121,185,.30), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 60%, #3a121a 130%);
  color: #f3ede1;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 12% 90%, rgba(136,35,46,.45), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  max-width: var(--max); margin: 0 auto; padding: 92px 24px 100px;
}
.hero .eyebrow { color: var(--gold); font-size: 0.9rem; }
.hero h1 {
  color: #fff; font-size: 3.1rem; margin-bottom: 0.15em; font-weight: 600;
}
.hero h1 .big {
  display: block; font-size: 5.6rem; line-height: 0.95; color: var(--gold);
  letter-spacing: 0.01em; margin-top: 0.05em;
}
.hero .lede { font-size: 1.18rem; color: #d8e2ec; max-width: 30em; margin-bottom: 0.4em; font-style: italic; font-family: "Cormorant Garamond", serif; }
.hero .season { font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.6em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-note { margin-top: 18px; font-size: 0.82rem; color: #aebccb; }

.hero-cover-wrap { position: relative; justify-self: center; }
.hero-cover {
  display: block;
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
  border: 1px solid rgba(201,169,97,.35);
  max-width: 360px;
  transform: rotate(1.5deg);
}
.hero-badge {
  position: absolute; top: -20px; right: -22px; z-index: 4;
  width: 116px; height: 116px; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, var(--gold-soft), var(--gold));
  color: var(--navy-deep);
  display: grid; place-items: center; text-align: center;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.82rem; line-height: 1.18;
  text-transform: uppercase; letter-spacing: 0.03em; padding: 16px;
  transform: rotate(-12deg);
  box-shadow: 0 10px 24px rgba(0,0,0,.4);
  border: 2px solid #fff;
}
.hero-badge::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1.5px dashed rgba(7,55,99,.45); }

/* ---------- Feature / value strip ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.55rem; margin-bottom: 0.35em; }
.card p { color: var(--gray); font-size: 0.97rem; margin-bottom: 0; }
.card .kicker { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--maroon); font-weight: 600; margin-bottom: 0.7em; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--maroon), #5e1620);
  color: #f7ece3; text-align: center; border-radius: 0;
}
.cta-band h2 { color: #fff; font-size: 2.5rem; }
.cta-band p { color: #f0d9cf; max-width: 38em; margin: 0 auto 1.6em; }
.cta-band .btn--gold { box-shadow: 0 8px 26px rgba(0,0,0,.25); }

/* ---------- Page header (interior pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  color: #eef3f8; padding: 70px 0 60px; text-align: center;
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { color: #fff; font-size: 3rem; }
.page-hero p { color: #cdd9e5; max-width: 40em; margin: 0 auto; }

/* ---------- Reading list ---------- */
.reading {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.reading .cover { width: 96px; height: auto; border-radius: 4px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); background: #f3f0ea; }
.reading .cover--placeholder {
  width: 96px; height: 140px; border-radius: 4px; border: 1px solid rgba(201,169,97,.4);
  background: linear-gradient(160deg, var(--navy), var(--maroon));
  color: var(--gold-soft); display: grid; place-items: center; text-align: center;
  font-family: "Poppins", sans-serif; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5; padding: 6px;
}
.reading-cat { font-size: 1.7rem; margin: 1.8em 0 0.7em; padding-bottom: 0.25em; border-bottom: 2px solid var(--gold); color: var(--navy); }
.reading-cat:first-of-type { margin-top: 0.5em; }
.reading h3 { font-size: 1.5rem; margin-bottom: 0.1em; }
.reading .author { color: var(--gray); font-size: 0.9rem; margin: 0 0 0.4em; }
.reading .why { color: var(--ink); font-size: 0.95rem; margin: 0; }
.reading .tag { display: inline-block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--maroon); font-weight: 600; margin-bottom: 0.4em; }
.affiliate-note { background: #fff7ea; border: 1px solid var(--gold-soft); border-radius: var(--radius); padding: 16px 22px; color: var(--gray); font-size: 0.85rem; margin-bottom: 34px; }

/* ---------- Email gate ---------- */
.gate {
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  color: #eaf1f8; border-radius: var(--radius); padding: 38px 40px; margin-bottom: 36px;
  box-shadow: var(--shadow); border: 1px solid rgba(201,169,97,.3);
}
.gate h2 { color: #fff; font-size: 1.9rem; margin-bottom: 0.2em; }
.gate p { color: #c7d6e5; font-size: 0.97rem; max-width: 46em; }
.gate-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; align-items: flex-start; }
.gate-form .field { flex: 1; min-width: 180px; }
.gate-form label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-soft); margin-bottom: 6px; }
.gate-form input {
  width: 100%; padding: 13px 15px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.96); color: var(--ink); font-family: "Poppins", sans-serif; font-size: 0.95rem;
}
.gate-form input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.gate-form .submit-wrap { align-self: stretch; display: flex; align-items: flex-end; }
.gate-form .btn { white-space: nowrap; }
.gate-error { color: #ffd0c4; font-size: 0.85rem; margin: 10px 0 0; min-height: 1em; }
.gate-fine { font-size: 0.76rem; color: #94a8bc; margin: 14px 0 0; }
.gate-success {
  background: #eef7ef; border: 1px solid #b6d9bb; border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 30px; color: #2f5d39;
}
.gate-success strong { color: #234a2b; }

/* Locked download state */
.downloads.locked { position: relative; opacity: 0.72; }
.dl .btn--locked { background: #9aa7b4; color: #fff; cursor: not-allowed; pointer-events: none; border-color: transparent; }

/* ---------- Appendix download cards ---------- */
.dl {
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--gold);
  border-radius: var(--radius); padding: 24px 28px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.dl h3 { font-size: 1.45rem; margin-bottom: 0.15em; }
.dl p { color: var(--gray); font-size: 0.93rem; margin: 0; }
.dl .meta { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--blue); font-weight: 600; }

/* ---------- Blog ---------- */
.post {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post .thumb { height: 170px; background: linear-gradient(135deg, var(--navy), var(--maroon)); position: relative; display:block; }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post .thumb span { position: absolute; bottom: 14px; left: 18px; font-family: "Cormorant Garamond", serif; color: rgba(255,255,255,.85); font-size: 1.1rem; }
.post .body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.post .date { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--maroon); font-weight: 600; margin-bottom: 0.5em; }
.post h3 { font-size: 1.5rem; margin-bottom: 0.3em; }
.post h3 a { color: var(--navy); }
.post h3 a:hover { color: var(--maroon); text-decoration: none; }
.post p { color: var(--gray); font-size: 0.93rem; flex: 1; }
.post .more { font-weight: 600; font-size: 0.88rem; color: var(--blue); margin-top: 0.6em; }

/* Single post */
.entry { max-width: 760px; margin: 0 auto; }
.entry img { border-radius: var(--radius); margin: 1.4em 0; }
.entry h2 { font-size: 2rem; margin-top: 1.4em; }
.entry h3 { font-size: 1.5rem; margin-top: 1.2em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry blockquote { border-left: 4px solid var(--gold); margin: 1.4em 0; padding: 0.3em 0 0.3em 1.2em; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.3rem; color: var(--navy); }
.pagination { display: flex; gap: 12px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); color: var(--navy); }
.pagination .current { background: var(--navy); color: #fff; }

/* Buy-the-book CTA at the bottom of every blog post */
.post-cta { max-width: 760px; margin: 48px auto 0; background: linear-gradient(135deg, var(--maroon), #5e1620); color: #f7ece3; border-radius: var(--radius); padding: 36px 34px; text-align: center; box-shadow: var(--shadow); }
.post-cta h3 { color: #fff; font-size: 1.9rem; margin-bottom: 0.3em; }
.post-cta p { color: #f0d9cf; max-width: 36em; margin: 0 auto 1.3em; }
.post-cta .btn--gold { box-shadow: 0 8px 22px rgba(0,0,0,.25); }

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.portrait { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.portrait--placeholder {
  width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy), var(--maroon));
  color: var(--gold-soft); display: grid; place-items: center; text-align: center;
  font-family: "Poppins", sans-serif; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.7; padding: 18px; border: 1px solid rgba(201,169,97,.35);
}
.portrait-caption { margin: 14px 2px 0; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.02rem; color: var(--gray); line-height: 1.4; }
.about-grid h2 { font-size: 2rem; margin-top: 1.1em; }
.about-grid h2:first-child { margin-top: 0; }
.about-card { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 22px 26px; margin-top: 22px; box-shadow: var(--shadow-sm); }
.about-card p { margin: 0; color: var(--gray); }
.edit-note { background: #fff7ea; border: 1px dashed var(--gold-soft); border-radius: 8px; padding: 6px 12px; font-size: 0.78rem; color: var(--gray); display: inline-block; }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .portrait, .portrait--placeholder { max-width: 280px; }
}

/* ---------- Reviews ---------- */
.stars { display: inline-flex; gap: 3px; color: var(--gold); margin-bottom: 12px; }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.review .quote { font-family: "Cormorant Garamond", serif; font-size: 1.32rem; line-height: 1.4; color: var(--navy); margin: 0 0 18px; }
.review .who { margin-top: auto; font-size: 0.85rem; color: var(--gray); }
.review .who strong { color: var(--maroon); font-weight: 600; }
.sample-flag { display: inline-block; background: #fff7ea; border: 1px dashed var(--gold-soft); border-radius: 8px; padding: 6px 14px; font-size: 0.78rem; color: var(--gray); margin-top: 14px; }

/* ---------- Instagram feed ---------- */
.ig-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.ig-handle { font-family: "Cormorant Garamond", serif; font-size: 1.7rem; color: var(--navy); }
.ig-handle span { color: var(--maroon); }
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ig-tile {
  aspect-ratio: 1 / 1; border-radius: 10px; border: 1px solid rgba(201,169,97,.3);
  background: linear-gradient(150deg, var(--navy), var(--maroon));
  display: grid; place-items: center; color: rgba(255,255,255,.6);
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; transition: opacity .15s ease;
}
.ig-tile:nth-child(even) { background: linear-gradient(150deg, var(--maroon), var(--navy)); }
.ig-tile:hover { opacity: 0.9; text-decoration: none; }
@media (max-width: 760px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Recommended movies ---------- */
.film-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 10px; }
.film { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.film:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.film .poster { position: relative; padding: 28px 22px 22px; min-height: 132px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(150deg, var(--navy), var(--maroon)); color: #fff; }
.film:nth-child(even) .poster { background: linear-gradient(150deg, var(--maroon), var(--navy)); }
.film .poster h3 { color: #fff; font-size: 1.5rem; margin: 0; line-height: 1.1; }
.film .poster .year { color: var(--gold-soft); font-size: 0.82rem; font-family: "Poppins", sans-serif; letter-spacing: 0.08em; margin-top: 4px; }
.film .rating { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.92); color: var(--navy-deep); font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.68rem; letter-spacing: 0.05em; padding: 4px 9px; border-radius: 6px; }
.film .body { padding: 20px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.film .theme { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--maroon); font-weight: 600; margin-bottom: 0.6em; }
.film .body p { color: var(--gray); font-size: 0.92rem; flex: 1; margin: 0 0 16px; }
.film .body .btn { align-self: flex-start; }
.film .note { font-size: 0.8rem; color: var(--gray); font-style: italic; margin: 0 0 12px; }
.film .watch { font-size: 0.8rem; color: var(--navy); margin: 0 0 14px; }
.film .watch strong { color: var(--maroon); font-weight: 600; }
.movies-note { background: #fff7ea; border: 1px solid var(--gold-soft); border-radius: var(--radius); padding: 16px 22px; color: var(--gray); font-size: 0.85rem; margin-bottom: 34px; }
@media (max-width: 900px) { .film-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .film-grid { grid-template-columns: 1fr; } }

/* ---------- Gravity Forms (matches the site styling) ---------- */
.gform_wrapper .gform_fields { display: grid; gap: 18px; }
.gform_wrapper .gfield_label { font-family: "Poppins", sans-serif; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--navy); font-weight: 600; margin-bottom: 6px; display: block; }
.gform_wrapper .ginput_container input[type=text],
.gform_wrapper .ginput_container input[type=email],
.gform_wrapper .ginput_container input[type=tel],
.gform_wrapper .ginput_container input[type=url],
.gform_wrapper .ginput_container input[type=number],
.gform_wrapper .ginput_container textarea,
.gform_wrapper .ginput_container select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); font-family: "Poppins", sans-serif; font-size: 0.95rem;
}
.gform_wrapper .ginput_container input:focus,
.gform_wrapper .ginput_container textarea:focus,
.gform_wrapper .ginput_container select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.gform_wrapper .gform_footer .gform_button,
.gform_wrapper .gform_button,
.gform_wrapper input[type=submit] {
  display: inline-block; background: var(--gold); color: var(--navy-deep);
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  padding: 15px 30px; border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.gform_wrapper .gform_button:hover,
.gform_wrapper input[type=submit]:hover { background: var(--gold-soft); transform: translateY(-2px); }
.gform_wrapper .gfield_required { color: var(--maroon); }
.gform_wrapper .gform_validation_errors,
.gform_wrapper .validation_message,
.gform_wrapper .gfield_validation_message { color: var(--maroon); font-size: 0.85rem; }
.gform_confirmation_message { background: #eef7ef; border: 1px solid #b6d9bb; border-radius: var(--radius); padding: 20px 24px; color: #2f5d39; }

/* ---------- Pre-footer CTA (repeats above the footer) ---------- */
.prefooter { background: linear-gradient(135deg, var(--maroon), #5e1620); color: #f7ece3; padding: 50px 0; }
.prefooter-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.prefooter-text h2 { color: #fff; font-size: 2rem; margin: 0 0 0.3em; }
.prefooter-text p { color: #f0d9cf; margin: 0; max-width: 34em; }
.prefooter-form { flex: 1; min-width: 300px; max-width: 480px; }
.prefooter h2, .prefooter h3, .prefooter .widget-title { color: #fff; }
.prefooter .gform_wrapper .gfield_label { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #c4d2e0; padding: 56px 0 28px; }
.site-footer .footer-widget .widget-title, .site-footer .footer-widget h2, .site-footer .footer-widget h3 { color: #fff; font-family: "Poppins", sans-serif; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 1em; }
.site-footer .footer-widget ul { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-widget li { margin-bottom: 0.6em; }
.site-footer .footer-widget a { color: #c4d2e0; }
.site-footer .footer-widget a:hover { color: var(--gold); }
.footer-news { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--maroon); border-radius: var(--radius); padding: 30px 34px; margin-bottom: 40px; }
.footer-news h4 { margin-bottom: 0.35em; }
.footer-news p { margin: 0; font-size: 0.9rem; color: #f0d9cf; max-width: 34em; }
.footer-news-form { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-news-form input { padding: 12px 15px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.96); color: var(--ink); font-family: "Poppins", sans-serif; font-size: 0.92rem; min-width: 240px; }
.footer-news-form input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.footer-news-thanks { margin: 10px 0 0; color: var(--gold-soft); font-size: 0.9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-family: "Poppins", sans-serif; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 1em; }
.site-footer a { color: #c4d2e0; font-size: 0.92rem; }
.site-footer a:hover { color: var(--gold); text-decoration: none; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6em; }
.footer-brand .title { font-family: "Cormorant Garamond", serif; font-size: 1.5rem; color: #fff; }
.footer-brand .wordmark { height: 78px; width: auto; display: block; margin: 0 0 16px; }
.footer-brand p { font-size: 0.9rem; color: #93a6ba; max-width: 28em; }
.social { display: flex; gap: 12px; margin-top: 8px; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(201,169,97,.4);
  display: grid; place-items: center; color: var(--gold);
}
.social a:hover { background: var(--gold); color: var(--navy-deep); text-decoration: none; }
.social svg { width: 19px; height: 19px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: #7e93a8; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 64px; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-cover-wrap { order: -1; margin-bottom: 14px; }
  .hero-cover { max-width: 280px; }
  .hero-badge { width: 96px; height: 96px; font-size: 0.72rem; top: -14px; right: -8px; }
  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 70px; right: 16px; background: #fff; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); gap: 16px; z-index: 60; }
  .nav-toggle { display: block; }
  .hero h1 .big { font-size: 4.2rem; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 2.3rem; }
  .hero h1 .big { font-size: 3.4rem; }
  .section-head h2 { font-size: 2rem; }
  .reading { grid-template-columns: 1fr; text-align: left; }
  .reading .cover { width: 84px; margin-bottom: 6px; }
  .dl { grid-template-columns: 1fr; }
}
