/*
Theme Name: Trestone Marketing Group
Theme URI: https://trestonemarketinggroup.com
Author: Trestone Marketing Group
Description: Modern one-page theme featuring 20 for Change™. Hardened header + mobile navigation (v2.1).
Version: 2.1.0
License: GNU General Public License v2 or later
Text Domain: trestone
*/

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

:root {
  --primary: #0f766e;
  --primary-dark: #0d5c56;
  --accent: #14b8a6;
  --gold: #d4a017;
  --dark: #0f172a;
  --gray: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; }

p {
  color: var(--gray);
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray);
}

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

.nav .nav-highlight {
  color: var(--primary);
  font-weight: 700;
  position: relative;
}

.nav .nav-highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.3);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}

.btn-gold:hover {
  background: #b8860b;
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* Hero – 20 for Change featured */
.hero {
  padding: 140px 0 90px;
  background: linear-gradient(145deg, #0f172a 0%, #0f766e 55%, #0d9488 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.25) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.hero .section-label {
  color: #5eead4;
}

.hero h1 {
  color: white;
  margin-bottom: 0.5rem;
}

.hero h1 span {
  color: #5eead4;
}

.hero .tagline {
  font-size: 1.35rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  margin-bottom: 1.25rem;
}

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-stat strong {
  display: block;
  font-size: 1.6rem;
  color: #5eead4;
}

.hero-stat span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}

/* Sections common */
section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-header p {
  margin-top: 0.75rem;
}

/* Challenge Tiers */
.tiers {
  background: var(--light);
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.tier-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

.tier-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.tier-card.bronze { border-color: #cd7f32; }
.tier-card.silver { border-color: #a8a9ad; }
.tier-card.gold { border-color: var(--gold); }

.tier-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.tier-card.bronze .tier-badge { background: #fef3c7; color: #92400e; }
.tier-card.silver .tier-badge { background: #f1f5f9; color: #475569; }
.tier-card.gold .tier-badge { background: #fef9c3; color: #854d0e; }

.tier-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.tier-card p {
  font-size: 0.98rem;
}

/* How it works */
.how-it-works {
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step-card {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}

.step-card h4 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.step-card p {
  font-size: 0.9rem;
}

/* About / Founder */
.about {
  background: var(--light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.25rem;
}

.founder-quote {
  background: var(--primary);
  color: white;
  padding: 1.75rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
  font-style: italic;
  font-size: 1.15rem;
}

.founder-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.9;
}

.values-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.value-pill {
  background: white;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

/* Causes */
.causes {
  background: var(--white);
}

.causes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.cause-card {
  background: var(--light);
  padding: 1.75rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  transition: transform 0.2s;
}

.cause-card:hover {
  transform: translateY(-4px);
}

.cause-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.cause-card p {
  font-size: 0.95rem;
}

/* Who we serve */
.serve {
  background: var(--light);
}

.serve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.serve-item {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.serve-item h4 {
  color: var(--primary);
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.serve-item p {
  font-size: 0.92rem;
}

/* Contact */
.contact {
  background: linear-gradient(145deg, #0f172a 0%, #0f766e 100%);
  color: white;
}

.contact .section-label {
  color: #5eead4;
}

.contact h2 {
  color: white;
}

.contact p {
  color: rgba(255,255,255,0.85);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-details {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  color: rgba(255,255,255,0.9);
}

.contact-item strong {
  color: #5eead4;
}

.contact-form {
  background: white;
  padding: 2.25rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--light);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Footer */
.site-footer {
  background: #0a0f1a;
  color: rgba(255,255,255,0.7);
  padding: 50px 0 30px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  max-width: 300px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
}

.footer-links h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid,
  .contact-wrapper,
  .tiers-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    gap: 1rem;
  }

  .nav.active a {
    color: var(--dark);
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 120px 0 70px;
  }

  section {
    padding: 70px 0;
  }

  .values-mini {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 1.25rem;
  }
}

/* === Hardened mobile navigation (v2.1) === */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--dark);
  padding: 8px 10px;
  z-index: 1001;
}

@media (max-width: 900px) {
  .mobile-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 1.25rem 1.5rem 1.75rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    z-index: 999;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .nav.active {
    display: flex !important;
  }

  .nav a {
    color: var(--dark) !important;
    padding: 0.85rem 0.5rem;
    font-size: 1.05rem;
    border-bottom: 1px solid #f1f5f9;
  }

  .nav a:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
    text-align: center;
  }

  .nav .nav-highlight::after {
    display: none;
  }

  .header-inner {
    position: relative;
  }
}

/* Ensure body doesn't jump when menu opens */
body.menu-open {
  overflow: hidden;
}
