/* ==========================================================================
   EAGLE SCOUT SERVICE PROJECT PORTFOLIO
   Palette: Forest Green, Navy Blue, Charcoal Gray, Crisp White
   Typography: Plus Jakarta Sans (Headings), Inter (Body)
   ========================================================================== */

:root {
  /* Colors */
  --forest-green: #1b3d2b;
  --forest-green-hover: #26553d;
  --forest-green-light: #eaf2ed;
  
  --navy-blue: #162846;
  --navy-blue-light: #e9eff7;
  
  --charcoal-dark: #1f2421;
  --charcoal-body: #2f353b;
  --charcoal-muted: #5f6874;
  --border-color: #e2e7e4;
  
  --white: #ffffff;
  --bg-page: #f8faf8;
  --bg-alt: #f0f4f1;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout & Spacing */
  --max-width: 1040px;
  --nav-height: 70px;
  --radius: 10px;
  --transition: 0.25s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--charcoal-body);
  background-color: var(--bg-page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--forest-green);
  background-color: var(--forest-green-light);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.section-heading h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 800;
  color: var(--charcoal-dark);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--charcoal-muted);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.nav-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal-dark);
}

.logo-badge {
  background-color: var(--forest-green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--charcoal-muted);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--forest-green);
  background-color: var(--forest-green-light);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--charcoal-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   EAGLE SCOUT BADGE STYLES
   ========================================================================== */
.nav-badge-img {
  width: 32px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15));
}

.hero-emblem-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.25rem;
}

.hero-emblem-img {
  width: 96px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
  transition: transform var(--transition);
}

.hero-emblem-img:hover {
  transform: scale(1.05) translateY(-2px);
}

.contact-badge-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.25rem;
}

.contact-badge-img {
  width: 68px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
}

.footer-badge-img {
  width: 22px;
  height: auto;
  vertical-align: middle;
  margin-right: 0.4rem;
  display: inline-block;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  transition: all var(--transition);
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--forest-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 61, 43, 0.25);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--forest-green);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 2.5rem) 0 4rem;
  color: var(--white);
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(22, 40, 70, 0.85) 0%,
    rgba(27, 61, 43, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
}

.hero-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #d1fae5;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.5rem;
}

.hero-subtitle strong {
  color: var(--white);
}

.hero-subtitle em {
  font-style: normal;
  color: #fed7aa;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  background-color: rgba(0, 0, 0, 0.25);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  width: fit-content;
  margin: 0 auto 2rem;
}

.hero-meta .dot {
  opacity: 0.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   2. THE MISSION (About Section)
   ========================================================================== */
.grid-two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.info-block {
  margin-bottom: 1.75rem;
}

.info-block:last-child {
  margin-bottom: 0;
}

.info-block h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-blue);
  margin-bottom: 0.4rem;
}

.info-block p {
  color: var(--charcoal-body);
  font-size: 0.975rem;
  line-height: 1.65;
}

.image-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.image-caption {
  padding: 1.15rem;
  font-size: 0.875rem;
  color: var(--charcoal-muted);
  line-height: 1.5;
}

.image-caption strong {
  color: var(--charcoal-dark);
}

/* ==========================================================================
   3. LEADERSHIP & IMPACT STATS
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.stat-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--forest-green);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--charcoal-dark);
  margin-bottom: 0.5rem;
}

.stat-sub {
  font-size: 0.825rem;
  color: var(--charcoal-muted);
  line-height: 1.45;
}

/* ==========================================================================
   4. WORK LOG & PHASES (Timeline)
   ========================================================================== */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: border-color var(--transition);
}

.timeline-step:hover {
  border-color: var(--forest-green);
}

.step-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--forest-green);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content {
  flex-grow: 1;
}

.step-date {
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy-blue);
  display: block;
  margin-bottom: 0.25rem;
}

.step-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal-dark);
  margin-bottom: 0.4rem;
}

.step-content p {
  font-size: 0.925rem;
  color: var(--charcoal-body);
  line-height: 1.55;
}

/* ==========================================================================
   5. BEFORE & AFTER GALLERY
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.photo-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform var(--transition), box-shadow var(--transition);
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.photo-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-card:hover .photo-wrap img {
  transform: scale(1.05);
}

.photo-tag {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  color: var(--white);
}

.tag-before { background-color: rgba(31, 36, 33, 0.85); }
.tag-work { background-color: rgba(22, 40, 70, 0.85); }
.tag-after { 
  background-color: rgba(27, 61, 43, 0.9);
  left: auto;
  right: 0.65rem;
}

.photo-tag.tag-right {
  left: auto;
  right: 0.65rem;
}

.photo-wrap img.img-roost {
  object-position: 25% 35%;
}

.photo-text {
  padding: 1.15rem;
}

.photo-text h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal-dark);
  margin-bottom: 0.35rem;
}

.photo-text p {
  font-size: 0.85rem;
  color: var(--charcoal-muted);
  line-height: 1.45;
}

/* ==========================================================================
   6. LEADERSHIP REFLECTION
   ========================================================================== */
.reflection-box {
  max-width: 820px;
  margin: 0 auto;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.reflection-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--forest-green);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.reflection-body h3:first-child {
  margin-top: 0;
}

.reflection-body p {
  font-size: 0.975rem;
  color: var(--charcoal-body);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.reflection-quote {
  border-left: 4px solid var(--forest-green);
  background-color: var(--bg-alt);
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-blue);
  line-height: 1.6;
  border-radius: 0 8px 8px 0;
  margin-top: 1.75rem;
}

/* ==========================================================================
   7. CONTACT & FOOTER
   ========================================================================== */
.section-contact {
  padding: 3.5rem 0;
}

.contact-card {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.contact-card h2 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--charcoal-dark);
  margin-bottom: 0.5rem;
}

.contact-desc {
  font-size: 0.95rem;
  color: var(--charcoal-muted);
  margin-bottom: 1.5rem;
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.contact-item {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--charcoal-muted);
}

.contact-val {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--charcoal-dark);
  margin-top: 2px;
}

.contact-val a {
  color: var(--forest-green);
}

.contact-val a:hover {
  text-decoration: underline;
}

.footer {
  background-color: var(--navy-blue);
  color: #cbd5e1;
  padding: 2.25rem 0;
  font-size: 0.875rem;
  text-align: center;
}

.footer-scout-info {
  color: var(--white);
  margin-bottom: 0.35rem;
}

.footer-copy {
  color: #94a3b8;
  font-size: 0.8rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-link {
    padding: 0.75rem 0.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .reflection-box {
    padding: 1.75rem 1.25rem;
  }
}

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

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.35rem;
    border-radius: 12px;
  }

  .hero-meta .dot {
    display: none;
  }

  .contact-details {
    flex-direction: column;
    gap: 1rem;
  }
}
