/* ============================================
   noplacitastower.org — Main Stylesheet
   ============================================ */

/* --- Google Fonts loaded in HTML head --- */

:root {
  --color-primary: #2E5339;      /* Deep sage green */
  --color-primary-light: #3D6B4A;
  --color-accent: #B85C38;       /* Warm copper */
  --color-accent-light: #a9d45a;
  --color-text: #1A1A1A;
  --color-text-muted: #5A5A5A;
  --color-bg: #FFFFFF;
  --color-bg-warm: #F7F5F2;      /* Warm light gray for alternating sections */
  --color-bg-green: #EFF5F0;     /* Very light sage for callouts */
  --color-border: #D4CFC8;
  --color-border-light: #E8E4DF;
  --color-danger: #C0392B;
  --font-heading: 'Libre Baskerville', 'Georgia', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --max-width: 1120px;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
a:hover { color: var(--color-accent); }

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.4rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--color-bg-warm);
}

.section--green {
  background: var(--color-bg-green);
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-light);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav__brand:hover { color: var(--color-primary); }

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-accent);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: 0.3s;
}

/* --- Hero --- */
.hero {
  padding: 5rem 0 4rem;
  border-bottom: 3px solid var(--color-primary);
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  max-width: 720px;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* --- Countdown / Urgent Banner --- */
.urgent-banner {
  background: var(--color-primary);
  color: #fff;
  padding: 1.25rem 0;
  text-align: center;
}

.urgent-banner p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.urgent-banner strong {
  color: #FFD6A0;
}

.urgent-banner a {
  color: #FFD6A0;
}

/* --- Stats Row --- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

.stat {
  text-align: center;
  padding: 1.5rem;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat__label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: 6px;
  padding: 2rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-color: var(--color-border);
}

.card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Issue Sections --- */
.issue-block {
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border-light);
}

.issue-block:last-child {
  border-bottom: none;
}

.issue-block__label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.issue-block h2 {
  margin-bottom: 1rem;
}

.issue-block p,
.issue-block ul {
  max-width: 720px;
}

.issue-block ul {
  margin: 1rem 0 1rem 1.5rem;
  list-style: disc;
}

.issue-block ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* --- Callout Box --- */
.callout {
  background: var(--color-bg-green);
  border-left: 4px solid var(--color-primary);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}

.callout--urgent {
  background: #FFF5F0;
  border-left-color: var(--color-accent);
}

.callout p:last-child {
  margin-bottom: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-primary-light);
  color: #fff;
}

.btn--accent {
  background: var(--color-accent);
  color: #fff;
}
.btn--accent:hover {
  background: var(--color-accent-light);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-bg-green);
  color: var(--color-primary);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* --- Action Steps --- */
.action-steps {
  counter-reset: step;
}

.action-step {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border-light);
}

.action-step:last-child { border-bottom: none; }

.action-step__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.action-step__content h3 {
  margin-bottom: 0.5rem;
}

.action-step__content p {
  color: var(--color-text-muted);
}

/* --- Document List --- */
.doc-list {
  list-style: none;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border-light);
}

.doc-item:last-child { border-bottom: none; }

.doc-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-bg-green);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.doc-item__info {
  flex: 1;
}

.doc-item__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
}

.doc-item__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

.doc-item__link {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Footer --- */
.footer {
  background: var(--color-bg-warm);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.footer__text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  max-width: 400px;
}

.footer__links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
}

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

.footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem;
    gap: 1rem;
  }
  .nav__toggle { display: block; }

  .hero h1 { font-size: 2rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .stat__number { font-size: 2.2rem; }
  .section { padding: 2.5rem 0; }
  .action-step { flex-direction: column; gap: 0.75rem; }
  .footer__content { flex-direction: column; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .card-grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  .btn { text-align: center; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
