/*
Theme Name: Save Douglass
Description: A clean, minimal base theme built for Beaver Builder. No opinionated layout — Beaver Builder controls page content; this theme only supplies global typography, colors, and the header/footer shell.
Author: Save Douglass
Version: 1.0.0
Requires PHP: 7.4
Text Domain: savedouglass
*/

:root {
  --bg: #faf9f7;
  --fg: #1a1a18;
  --muted: #55524c;
  --accent: #a1272f;
  --accent-dark: #7d1e25;
  --line: #e4e0d8;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 400;
  margin: 0 0 0.5em;
}

a {
  color: var(--accent);
}
a:hover {
  color: var(--accent-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Site header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-title {
  font-size: 1.1rem;
  margin: 0;
}

.site-title a {
  color: var(--fg);
  text-decoration: none;
}

.primary-menu {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.primary-menu a {
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  font-size: 0.95rem;
}

.primary-menu a:hover {
  color: var(--accent);
}

/* Site footer */
.site-footer {
  padding: 24px 6vw 48px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Legacy static-site content (temporary homepage while the Beaver Builder
   redesign is in progress on a separate draft page). Scoped under
   .legacy-home so it can't leak into the theme's own header/footer. */
.legacy-home .wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 4vw;
}

.legacy-home .action-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.legacy-home .action-bar-inner {
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legacy-home .action-bar-name {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.05rem;
  white-space: nowrap;
}

.legacy-home .btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border: none;
  border-radius: 4px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease;
}
.legacy-home .btn:hover {
  background: var(--accent-dark);
  color: #fff;
}

.legacy-home .btn-bar {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.legacy-home .hero {
  padding: 12vw 6vw 4vw;
  text-align: center;
}

.legacy-home .hero h1 {
  letter-spacing: 0.01em;
  line-height: 1.1;
  font-size: clamp(3rem, 8vw, 8rem);
}

.legacy-home .hero .tagline {
  margin-top: 18px;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  color: var(--muted);
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

.legacy-home .content {
  padding-top: 4vw;
  padding-bottom: 2vw;
}

.legacy-home .content p {
  font-size: 1.05rem;
  margin: 0 0 1.3em;
}

.legacy-home .content h3 {
  font-size: 1.4rem;
  margin: 1.6em 0 0.6em;
}

.legacy-home .urgency {
  font-size: 1.1rem;
  font-weight: 600;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.legacy-home .stats {
  padding-top: 3vw;
  padding-bottom: 3vw;
}

.legacy-home .stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 640px) {
  .legacy-home .stats-grid {
    grid-template-columns: 1fr;
  }
}

.legacy-home .stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}

.legacy-home .stat-card h4 {
  margin: 0 0 14px;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.15rem;
}

.legacy-home .stat-card.douglass {
  border-top: 4px solid var(--accent);
}
.legacy-home .stat-card.highpeaks {
  border-top: 4px solid var(--line);
}

.legacy-home .stat-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legacy-home .stat-card li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.legacy-home .stat-card li:first-child {
  border-top: none;
}

.legacy-home .stat-card li strong {
  display: block;
  font-size: 1.05rem;
}

.legacy-home .countdown {
  padding-top: 4vw;
  padding-bottom: 5vw;
  text-align: center;
}

.legacy-home .countdown h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.legacy-home .countdown .date {
  color: var(--muted);
  margin-bottom: 20px;
}

.legacy-home .countdown-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.legacy-home .countdown-unit {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 84px;
  padding: 14px 10px;
}

.legacy-home .countdown-unit .num {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.legacy-home .countdown-unit .label {
  margin-top: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.legacy-home .final-cta {
  padding-top: 3vw;
  padding-bottom: 8vw;
  text-align: center;
}

.legacy-home .legacy-footer {
  padding: 24px 6vw 48px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
