/* =========================
   Global Reset & Base
   ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #e6eae6;

  background-image: url('assets/images/mountain-8330401_1280.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;          /* crop to fill without stretching */
  background-attachment: scroll;   /* static for mobile by default */
  min-height: 100vh;
}

/* ================= DESKTOP FIXED BACKGROUND ================= */
@media (min-width: 769px) {
  body {
    background-attachment: fixed;   /* parallax effect on desktop only */
  }
}



a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   Header / Navigation
   ========================= */

header {
  background-color: #13251c;
  color: #e6f2ea;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1f3a2c;
}

header h1 {
  font-size: 1.7rem;
  font-weight: 700;
}

nav a {
  margin-left: 1.5rem;
  font-weight: 600;
  color: #cfe6da;
  transition: color 0.25s ease;
}

nav a:hover {
  color: #9fe0b8;
}

/* =========================
   Hero Section
   ========================= */

.hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: linear-gradient(
    135deg,
    #0f1a14 0%,
    #183528 50%,
    #1f4735 100%
  );
  color: #e9f4ee;
  position: relative;      /* Ensure z-index works */
  /*z-index: 1;              /* Makes sure button appears above background */
  min-height: 300px;       /* Ensure section is tall enough to show content */
}



.hero h2 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 2.2rem;
  color: #cfe6da;
}

.hero a {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  background-color: #e65c00;
  color: #e9f4ee;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.hero a:hover {
  background-color: #f97316;
  transform: translateY(-2px);
}

/* Hero button styling 
.hero-btn {
  display: inline-block;       /* Like a button
  padding: 1rem 2rem;
  margin: 1rem 0;
  border-radius: 14px;
  background-color: #13251c;
  color: #cfe6da;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.5s ease;
}*/

.hero-btn {
  display: inline-block;       /* Like a button */
  padding: 1rem 2rem;
  margin: 1rem 0;
  border-radius: 14px;
  background-color: #2f6f4e;   /* Matches your theme */
  color: #e9f4ee;
  font-weight: 600;
  text-decoration: none;       /* Remove underline */
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  cursor: pointer;             /* Make it feel clickable */
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.5s ease;
}

.hero-btn:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.45);
  background-color: #3e8b63;
  color: #ffffff;
}



/* =========================
   Sections
   ========================= */

section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  color: #e6f2ea;
}

/* =========================
   Feature Cards
   ========================= */

/* =========================
   Feature Cards Layout
   ========================= */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 0 auto;
  padding: 1rem;
}

/* =========================
   Card Base Styles
   ========================= */
.feature-card {
  background-color: #13251c;
  border-radius: 14px;
  padding: 2rem;
  flex: 1 1 260px;              /* responsive width */
  max-width: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid #1f3a2c;
  text-decoration: none;         /* remove underline for links */
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.5s ease,
    border-color 0.5s ease;
  z-index: 0;
}

/* =========================
   Card Hover Effect
   ========================= */
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

/* =========================
   Card Typography
   ========================= */
.feature-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  color: #dfdfdf;
}

.feature-card p {
  color: #cfe6da;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* =========================
   Link Styles
   ========================= */
.feature-card a {
  color: #bdbdbd;
  font-weight: 600;
  transition: color 0.3s ease;
}

.feature-card a:hover {
  text-decoration: underline;
}

/* =========================
   Wildfire Accent Cards
   ========================= */
.feature-card.wildfire {
  transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 1s ease-in-out,
    border-color 1s ease-in-out,
    color 0.5s ease;
}

.feature-card.wildfire:hover {
  background-color: #3b0f0f;  /* deep ember red */
  border-color: #a83232;
}

.feature-card.management {
  transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 1s ease-in-out,
    border-color 1s ease-in-out,
    color 0.5s ease;
}

.feature-card.management:hover {
  background-color: #102f3d;  /* deep ember red */
  border-color: #3271a8;
}

.feature-card.pine-beetle {
  transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 1s ease-in-out,
    border-color 1s ease-in-out,
    color 0.5s ease;
}

.feature-card.pine-beetle:hover {
  background-color: #103d1a;  /* deep ember red */
  border-color: #32a859;
}

.feature-card.wildfire:hover h3 {
  color: #ff9b9b;
}

.feature-card.wildfire:hover p,
.feature-card.wildfire:hover a {
  color: #ffd6d6;
}

/* =========================
   Responsive Improvements
   ========================= */
@media (max-width: 600px) {
  .feature-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


/* =========================
   Fade-in Animations
   ========================= */

.fade-in {
  opacity: 0;              /* invisible initially */
  transform: translateY(20px);
  transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
}

.fade-in.appear {
  opacity: 1;              /* fully visible */
  transform: translateY(0);
}


/* =========================
   Footer
   ========================= */

footer {
  background-color: #13251c;
  color: #cfe6da;
  text-align: center;
  padding: 2.2rem 1rem;
  margin-top: 4rem;
  font-size: 0.9rem;
  border-top: 1px solid #1f3a2c;
}

footer a {
  color: #9fe0b8;
}

footer a:hover {
  text-decoration: underline;
}


/* ================= MOBILE BACKGROUND FIX ================= */

.portal-dropdown {
  position: fixed;
  z-index: 2147483647 !important;
  isolation: isolate;
  pointer-events: auto;

  /* THIS is the key */
  transform: translateZ(0);
  will-change: transform;
}


/* ── Modal overlay ── */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* ── Modal card ── */
.modal {
  background: #13251c;
  border: 1px solid #2f6f4e;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  padding: 2.5rem 2rem 2rem;
  position: relative;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  color: #e9f4ee;
}
#modal-overlay.visible .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #cfe6da;
  font-size: 1.1rem;
  transition: background 0.15s;
}
.modal-close:hover { background: rgba(47, 111, 78, 0.3); }

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(47, 111, 78, 0.25);
  color: #7ecba1;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ecba1;
}

.modal h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.modal p {
  font-size: 0.9rem;
  color: #cfe6da;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-primary {
  flex: 1;
  background: #2f6f4e;
  color: #e9f4ee;
  border: none;
  border-radius: 100px;
  padding: 0.75rem 1.25rem;
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  flex: 1;
  background: transparent;
  color: #cfe6da;
  border: 1px solid #2f6f4e;
  border-radius: 100px;
  padding: 0.75rem 1.25rem;
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-ghost:hover { background: rgba(47, 111, 78, 0.2); }

.modal-divider {
  height: 1px;
  background: rgba(47, 111, 78, 0.4);
  margin: 1.5rem 0 1rem;
}
.modal-footnote {
  font-size: 0.75rem;
  color: #cfe6da;
  opacity: 0.5;
  text-align: center;
}