/* ============================================
   Eagle's Nest Storage — Main Stylesheet
   Brand green: #2E7031 (from unit signage reference)
   Logo: images/logo.jpg (white-bg JPG — transparent PNG pending)
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #2E7031;
  --green-dark: #1A4220;
  --gold:       #C8922A;
  --text:       #222222;
  --muted:      #555555;
  --light-bg:   #f5f4f0;
  --border:     #ddd;
  --white:      #ffffff;
  --placeholder-note: #b05000;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- PLACEHOLDER BANNER ---- */
.placeholder-banner {
  background: #fff3cd;
  border-bottom: 2px solid #ffc107;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-family: Arial, sans-serif;
  color: var(--placeholder-note);
}

/* ---- HEADER / NAV ---- */
header {
  background: var(--green-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo-area {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
  background: #fff;
  border-radius: 4px;
  padding: 4px 10px;
}

nav a {
  color: var(--white);
  margin-left: 28px;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

nav a:hover { color: var(--gold); text-decoration: none; }
nav a.active { color: var(--gold); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, #3a8040 100%);
  color: var(--white);
  padding: 72px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 32px;
  color: rgba(255,255,255,0.88);
  font-family: Arial, sans-serif;
}

.btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.88; text-decoration: none; }

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

/* ---- SECTION BASICS ---- */
section { padding: 60px 24px; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.9rem;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.section-sub {
  color: var(--muted);
  font-family: Arial, sans-serif;
  margin-bottom: 40px;
}

/* ---- UNIT CARDS ---- */
.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.unit-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
}

.unit-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--light-bg);
}

.unit-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.unit-type-badge {
  display: inline-block;
  background: var(--light-bg);
  color: var(--green);
  font-size: 0.75rem;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
  font-weight: bold;
}

.unit-type-badge.climate { background: #e8f4fd; color: #1565c0; }
.unit-type-badge.outdoor { background: #f3e5d0; color: #8b4513; }

.unit-card h3 {
  font-size: 1.3rem;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.unit-card .unit-desc {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 16px;
}

.unit-price {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--green);
  margin-bottom: 4px;
}

.unit-price.placeholder {
  color: var(--placeholder-note);
  font-size: 1rem;
  font-style: italic;
}

.unit-count {
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---- FEATURES STRIP ---- */
.features { background: var(--light-bg); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.feature-item { text-align: center; }

.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.feature-item h4 {
  font-size: 1rem;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 0.88rem;
  font-family: Arial, sans-serif;
  color: var(--muted);
}

/* ---- CTA BAND ---- */
.cta-band {
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 52px 24px;
}

.cta-band h2 { font-size: 1.9rem; margin-bottom: 12px; }
.cta-band p { font-family: Arial, sans-serif; margin-bottom: 28px; opacity: 0.9; }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-item h3 {
  font-size: 1.05rem;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.faq-item p {
  font-family: Arial, sans-serif;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-block h3 {
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-bottom: 16px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  display: inline-block;
}

.contact-block p, .contact-block address {
  font-style: normal;
  font-family: Arial, sans-serif;
  color: var(--muted);
  line-height: 2;
  font-size: 0.95rem;
}

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

.hours-table { width: 100%; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 0.9rem; }
.hours-table td { padding: 6px 0; color: var(--muted); }
.hours-table td:first-child { color: var(--text); font-weight: bold; width: 140px; }

.pay-bill-box {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  text-align: center;
  margin-top: 32px;
}

.pay-bill-box p {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ---- MAP PLACEHOLDER ---- */
.map-placeholder {
  background: #e8ede8;
  border: 1px solid var(--border);
  border-radius: 6px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--muted);
  font-family: Arial, sans-serif;
}

.map-placeholder span { font-size: 2rem; margin-bottom: 8px; }
.map-placeholder p { font-size: 0.85rem; }

/* ---- FOOTER ---- */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.75);
  padding: 40px 24px 24px;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 32px;
}

footer h4 { color: var(--white); margin-bottom: 12px; font-size: 0.95rem; }
footer p, footer address { font-style: normal; line-height: 2; }
footer a { color: var(--gold); }
footer a:hover { text-decoration: underline; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* ---- HAMBURGER BUTTON ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Animate to X when open */
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---- MOBILE NAV DRAWER ---- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--green-dark);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    z-index: 99;
  }

  .nav-open nav {
    max-height: 300px;
    padding: 12px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  nav a {
    margin: 0;
    padding: 12px 24px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: block;
  }

  nav a:last-child { border-bottom: none; }

  nav a.active {
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding-bottom: 12px;
  }

  /* Layout adjustments */
  .hero { padding: 52px 20px; }
  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: 1rem; }

  section { padding: 44px 20px; }

  .section-title { font-size: 1.6rem; }

  .features-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.45rem; }
  .hero p { font-size: 0.95rem; }
  .btn { padding: 12px 20px; font-size: 0.9rem; }
  .btn-group { flex-direction: column; align-items: center; }

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

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

  .section-title { font-size: 1.4rem; }

  .cta-band h2 { font-size: 1.5rem; }
  .cta-band .btn-group { flex-direction: column; align-items: center; }
}

/* ---- PAYMENT COMING SOON MODAL ----
   TODO: Remove this block when online payment goes live.
   Steps: delete .modal-overlay and .modal-box rules, remove modal HTML and
   script from all 4 pages, update .pay-bill-link hrefs to the real payment URL.
   ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-overlay[aria-hidden="true"] { display: none; }

.modal-box {
  background: var(--white);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.modal-box h2 {
  font-size: 1.6rem;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.modal-box p {
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.modal-box .btn { min-width: 120px; }
