/* ============================================================
   RemoveDwightCarlson.com — Formal / Legal calm theme
   Palette: deep navy, ivory paper, muted gold accent
   ============================================================ */

:root {
  --navy-900: #10192a;
  --navy-800: #16213a;
  --navy-700: #1e2b47;
  --navy-600: #2a3a5c;
  --ivory: #f7f5f0;
  --ivory-dark: #efece4;
  --gold: #b08d3e;
  --gold-light: #d4b56a;
  --ink: #232a35;
  --ink-soft: #4a5464;
  --white: #ffffff;
  --line: #ddd8cc;
  --serif-display: "Playfair Display", Georgia, serif;
  --serif-body: "Source Serif 4", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --shadow-soft: 0 2px 10px rgba(16, 25, 42, 0.06);
  --shadow-card: 0 6px 24px rgba(16, 25, 42, 0.09);
  --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--serif-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--serif-display); color: var(--navy-900); line-height: 1.25; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: #9a7a30;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(176, 141, 62, 0.35);
}
.btn-outline {
  border-color: var(--navy-700);
  color: var(--navy-700);
  background: transparent;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy-800);
  transform: translateY(-2px);
}
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--navy-800);
}
.btn-lg { padding: 16px 38px; font-size: 1rem; }
.btn-xl { padding: 20px 48px; font-size: 1.15rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(16, 25, 42, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.brand-mark {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  background: var(--gold);
  color: var(--white);
  padding: 8px 10px;
  border-radius: 3px;
  line-height: 1;
}
.brand-text {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}
.brand-dot { color: var(--gold-light); }

.main-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.main-nav a {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.main-nav a:hover {
  color: var(--white);
  border-color: var(--gold);
}
.header-cta { padding: 10px 22px; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(150deg, rgba(16, 25, 42, 0.97) 0%, rgba(30, 43, 71, 0.94) 55%, rgba(42, 58, 92, 0.92) 100%),
    var(--navy-900);
  color: var(--white);
  padding: 170px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 420px; height: 420px;
  border: 1px solid rgba(212, 181, 106, 0.18);
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border: 1px solid rgba(212, 181, 106, 0.12);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-kicker {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 22px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 600;
  max-width: 880px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-sub {
  margin-top: 18px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}
.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
  padding-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  max-width: 760px;
}
.hero-stats li { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--serif-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.stat-label {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 8px;
}

/* ---------- Appeal ---------- */
.appeal {
  padding: 90px 0 80px;
  background: var(--ivory);
}
.appeal p { margin-bottom: 22px; color: var(--ink-soft); font-size: 1.06rem; }
.appeal strong { color: var(--ink); }
.appeal .lead { font-size: 1.25rem; color: var(--ink); }
.callout {
  font-family: var(--serif-display);
  font-size: 1.18rem;
  color: var(--navy-700) !important;
  border-left: 3px solid var(--gold);
  padding-left: 22px;
  font-style: italic;
}

/* ---------- Section heads ---------- */
.section-head { max-width: 780px; margin-bottom: 56px; }
.section-kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-note { margin-top: 14px; color: var(--ink-soft); }

/* ---------- Summary ---------- */
.summary {
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.85);
  padding: 90px 0;
}
.summary .section-kicker { color: var(--gold-light); }
.summary h2 { color: var(--white); }
.summary-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 56px;
  align-items: start;
}
.summary-text p { margin-bottom: 20px; font-size: 1.05rem; }
.summary-text strong { color: var(--white); }
.summary-facts {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.summary-facts h3 {
  color: var(--white);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.summary-facts ul { list-style: none; }
.summary-facts li {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.summary-facts li:last-child { border-bottom: 0; }
.summary-facts li span {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.summary-facts li strong { color: var(--gold-light); font-weight: 600; font-size: 0.98rem; }

/* ---------- Timeline ---------- */
.timeline { padding: 100px 0; }
.tl {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}
.tl::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 54px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--line));
}
.tl-item {
  position: relative;
  padding-left: 110px;
  margin-bottom: 64px;
}
.tl-date {
  position: absolute;
  left: 0;
  top: 4px;
  width: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.tl-day {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold-light);
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 5px var(--ivory), 0 0 0 6px var(--gold);
  line-height: 1;
}
.tl-month {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-600);
  margin-top: 8px;
  white-space: nowrap;
}
.tl-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 32px 34px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.tl-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.tl-card h3 {
  font-size: 1.28rem;
  margin-bottom: 14px;
}
.tl-card p {
  color: var(--ink-soft);
  margin-bottom: 14px;
  font-size: 1rem;
}
.tl-card p:last-of-type { margin-bottom: 0; }

.tl-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.tl-photos:not(.two) { grid-template-columns: 1fr; }
.tl-photos figure {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  background: var(--ivory-dark);
}
.tl-photos img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.25s ease;
}
.tl-photos figure:hover img { transform: scale(1.035); }

.email-log {
  list-style: none;
  margin: 18px 0 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.email-log li {
  display: grid;
  grid-template-columns: 130px 1fr;
  grid-template-areas:
    "date subject"
    "date note";
  gap: 2px 16px;
  padding: 14px 18px;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.email-log li:last-child { border-bottom: 0; }
.email-date {
  grid-area: date;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-700);
  align-self: center;
}
.email-subject {
  grid-area: subject;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}
.email-note {
  grid-area: note;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Demands ---------- */
.demands {
  background: var(--ivory-dark);
  padding: 100px 0;
}
.demand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.demand-card {
  background: var(--white);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 36px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.demand-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.demand-num {
  font-family: var(--serif-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}
.demand-card h3 { font-size: 1.22rem; margin-bottom: 12px; }
.demand-card p { color: var(--ink-soft); font-size: 0.98rem; }
.demands-intro { font-family: var(--serif-display); font-size: 1.15rem; color: var(--navy-800) !important; margin-bottom: -26px; }

/* ---------- Petition CTA ---------- */
.petition {
  background:
    linear-gradient(150deg, rgba(16, 25, 42, 0.97) 0%, rgba(30, 43, 71, 0.95) 100%),
    var(--navy-900);
  color: var(--white);
  padding: 110px 0;
  text-align: center;
}
.petition h2 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 20px; }
.petition p { max-width: 680px; margin: 0 auto 34px; color: rgba(255, 255, 255, 0.8); font-size: 1.08rem; }
.petition-note { margin-top: 26px !important; font-size: 0.9rem !important; color: rgba(255, 255, 255, 0.55) !important; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0 56px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--sans);
  font-weight: 600;
}
.footer-note, .footer-cta { font-size: 0.9rem; }
.footer-cta { color: var(--gold-light); }
.back-to-top {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 15, 25, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px 70px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 4px;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-caption {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--sans);
  font-size: 0.9rem;
  text-align: center;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 0;
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--gold); }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .summary-grid { grid-template-columns: 1fr; gap: 36px; }
  .demand-grid { grid-template-columns: 1fr; }
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--navy-900);
    padding: 20px 24px 26px;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .main-nav.open a { padding: 12px 0; font-size: 1rem; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .hero { padding: 130px 0 70px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .tl::before { left: 26px; }
  .tl-item { padding-left: 64px; }
  .tl-date { width: 54px; }
  .tl-day {
    width: 52px; height: 52px;
    font-size: 0.95rem;
    box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5px var(--gold);
  }
  .tl-month { font-size: 0.6rem; margin-top: 6px; }
  .tl-card { padding: 24px 20px; }
  .tl-photos { grid-template-columns: 1fr !important; }
  .tl-photos img { height: 200px; }
  .email-log li { grid-template-columns: 1fr; grid-template-areas: "date" "subject" "note"; gap: 4px; }
  .email-date { align-self: start; }
  .lightbox { padding: 20px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .btn-xl { padding: 17px 34px; font-size: 1rem; }
}
