/*
Theme Name: Troop 701
Theme URI: https://troop701sa.org
Author: Troop 701 San Antonio
Author URI: https://troop701sa.org
Description: Official website theme for Scouting America Troop 701, San Antonio, TX. A clean, responsive single-page theme built around scouting values.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: troop701
Tags: one-page, responsive, custom-colors, custom-menu
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --scout-green: #2d5a1b;
  --scout-gold: #c9952a;
  --scout-tan: #f5efe0;
  --scout-red: #8b1a1a;
  --dark: #1a1a1a;
  --light: #fafaf7;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--light);
  color: var(--dark);
  overflow-x: hidden;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  background: var(--scout-green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 1rem;
}
nav ul li a {
  display: block;
  padding: 1rem 1.2rem;
  color: #fff;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}
nav ul li a:hover {
  color: var(--scout-gold);
  background: rgba(255,255,255,0.07);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--scout-green) 0%, #1a3a0d 50%, #3a1a00 100%);
  color: white;
  text-align: center;
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.hero-logo-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}
.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.hero h1 span { color: var(--scout-gold); }
.hero .tagline {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.2rem;
  opacity: 0.85;
  margin-bottom: 0.8rem;
  color: white;
}
.hero .sub {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--scout-gold);
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat .number {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--scout-gold);
  line-height: 1;
}
.stat .label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.25rem;
}
.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-gold {
  background: var(--scout-gold);
  color: white;
}
.btn-gold:hover { background: #b8841f; transform: translateY(-2px); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* ============================================================
   SECTIONS & LAYOUT
   ============================================================ */
section { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--scout-gold);
  margin-bottom: 0.75rem;
}
h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--scout-green);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
p { line-height: 1.75; color: #444; margin-bottom: 1rem; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about { background: var(--scout-tan); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media(max-width:768px){ .about-grid { grid-template-columns: 1fr; gap: 2rem; } }

.info-card {
  background: white;
  border-left: 4px solid var(--scout-gold);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.info-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--scout-green);
  margin-bottom: 0.5rem;
}
.info-card p { font-size: 0.95rem; margin: 0; }

.rank-chart {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.rank-chart h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--scout-green);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--scout-tan);
  padding-bottom: 0.75rem;
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.rank-row:last-child { border-bottom: none; }
.rank-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--scout-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.rank-row.eagle .rank-num { background: var(--scout-gold); }
.rank-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  color: var(--dark);
}

/* ============================================================
   SCOUTING VALUES SECTION
   ============================================================ */
#values { background: var(--scout-green); color: white; }
#values h2 { color: var(--scout-gold); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.value-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 1.75rem;
  transition: background 0.2s;
}
.value-card:hover { background: rgba(255,255,255,0.12); }
.value-card .icon { font-size: 2rem; margin-bottom: 1rem; }
.value-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--scout-gold);
  margin-bottom: 0.5rem;
}
.value-card p { font-size: 0.9rem; opacity: 0.8; margin: 0; color: white; }

/* ============================================================
   MERIT BADGES SECTION
   ============================================================ */
#merit { background: white; }
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.badge-item {
  background: var(--scout-tan);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: 'Lora', serif;
  color: var(--scout-green);
  border-left: 3px solid var(--scout-gold);
  transition: transform 0.15s;
}
.badge-item:hover { transform: translateX(4px); }
.badge-counter {
  display: inline-block;
  background: var(--scout-gold);
  color: white;
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  margin-right: 0.4rem;
}

/* ============================================================
   CAMPING SECTION
   ============================================================ */
#camping { background: var(--scout-tan); }
.camping-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media(max-width:768px){ .camping-grid { grid-template-columns: 1fr; } }
.feature-list { list-style: none; margin-top: 1rem; }
.feature-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #333;
}
.feature-list li::before {
  content: '▲';
  color: var(--scout-gold);
  font-size: 0.6rem;
  flex-shrink: 0;
}

.rose-thorn {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.rt-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 8px;
}
.rt-card.rose { background: #fff0f0; border-top: 3px solid #d44; }
.rt-card.thorn { background: #f0f5f0; border-top: 3px solid var(--scout-green); }
.rt-card.bud { background: #fffbf0; border-top: 3px solid var(--scout-gold); }
.rt-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.rt-card h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.rt-card p { font-size: 0.82rem; color: #555; margin: 0; }

/* ============================================================
   PARENTS SECTION
   ============================================================ */
#parents { background: white; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
@media(max-width:768px){ .steps-grid { grid-template-columns: 1fr; } }
.step-card {
  background: var(--scout-tan);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
}
.step-num {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--scout-gold);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.step-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--scout-green);
  margin-bottom: 1rem;
}
.step-card ul { list-style: none; }
.step-card ul li {
  font-size: 0.875rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  color: #444;
}
.step-card ul li:last-child { border-bottom: none; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact { background: var(--dark); color: white; }
#contact h2 { color: var(--scout-gold); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
@media(max-width:768px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-info-block { display: flex; flex-direction: column; gap: 1rem; }
.contact-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-row .icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.1rem; }
.contact-row .text { font-size: 0.95rem; opacity: 0.85; line-height: 1.5; }
.contact-row .text strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--scout-gold);
  margin-bottom: 0.2rem;
}

.join-box {
  background: var(--scout-green);
  border-radius: 8px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.join-box h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  color: var(--scout-gold);
}
.join-box p { font-size: 0.95rem; opacity: 0.85; margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #111;
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.08em;
}
footer a { color: var(--scout-gold); text-decoration: none; }

/* ============================================================
   UTILITY
   ============================================================ */
.gold-divider {
  width: 60px;
  height: 3px;
  background: var(--scout-gold);
  margin-bottom: 2rem;
}

.motto-banner {
  background: var(--scout-gold);
  color: white;
  text-align: center;
  padding: 1.25rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.motto-banner em { font-style: normal; opacity: 0.7; margin: 0 1rem; }
