/* ============================================================
   Site 0058 - Forest Ecology Theme
   Colors: Forest Green #166534 + Gold #d4a574 / #b8860b
   ============================================================ */

/* --- Tailwind Custom Config Overrides --- */
:root {
  --forest-dark: #0d3b1e;
  --forest: #166534;
  --forest-light: #1a7a3e;
  --gold: #d4a574;
  --gold-dark: #b8860b;
  --gold-light: #e8cfa0;
  --wood: #8b5e3c;
  --wood-light: #c4a882;
  --cream: #fef9f0;
  --leaf-green: #228b22;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: #f9faf5;
  color: #333;
  overflow-x: hidden;
}

/* --- Leaf Decoration Elements --- */
.leaf-decor {
  position: relative;
}

.leaf-decor::before {
  content: '\f06c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  color: var(--gold);
  opacity: 0.3;
  font-size: 2rem;
  transform: rotate(-30deg);
  pointer-events: none;
}

.leaf-decor-left::before {
  content: '\f06c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  color: var(--gold);
  opacity: 0.4;
  font-size: 1.5rem;
  pointer-events: none;
}

.leaf-decor-right::after {
  content: '\f06c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  color: var(--gold);
  opacity: 0.4;
  font-size: 1.5rem;
  pointer-events: none;
}

/* Floating leaves animation */
.floating-leaves {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-leaf {
  position: absolute;
  color: var(--gold);
  opacity: 0.15;
  animation: floatLeaf 8s ease-in-out infinite;
}

.floating-leaf:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; font-size: 2rem; }
.floating-leaf:nth-child(2) { top: 20%; left: 15%; animation-delay: 1.5s; font-size: 1.5rem; }
.floating-leaf:nth-child(3) { top: 15%; right: 10%; animation-delay: 3s; font-size: 2.2rem; }
.floating-leaf:nth-child(4) { top: 30%; right: 20%; animation-delay: 4.5s; font-size: 1.3rem; }
.floating-leaf:nth-child(5) { bottom: 25%; left: 8%; animation-delay: 2s; font-size: 1.8rem; }
.floating-leaf:nth-child(6) { bottom: 15%; right: 12%; animation-delay: 5s; font-size: 2rem; }

@keyframes floatLeaf {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(5deg); }
  50% { transform: translateY(-8px) rotate(-3deg); }
  75% { transform: translateY(-20px) rotate(8deg); }
}

/* --- Gold Border Cards --- */
.gold-border-card {
  border: 2px solid var(--gold);
  border-radius: 12px;
  position: relative;
  background: linear-gradient(135deg, #f0fdf4 0%, #fef9f0 100%);
  transition: all 0.3s ease;
}

.gold-border-card:hover {
  border-color: var(--gold-dark);
  box-shadow: 0 8px 30px rgba(212, 165, 116, 0.25);
  transform: translateY(-4px);
}

.gold-border-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}

/* --- Green Gradient Cards --- */
.green-gradient-card {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: #fff;
  border-radius: 12px;
  border: 1px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.green-gradient-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212,165,116,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.green-gradient-card-light {
  background: linear-gradient(135deg, var(--forest-light) 0%, var(--forest) 100%);
  color: #fff;
  border-radius: 12px;
  border: 1px solid var(--gold);
}

/* --- Gold Accent Top Border --- */
.gold-top-accent {
  border-top: 3px solid var(--gold);
  position: relative;
}

.gold-top-accent::before {
  content: '\f06c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 1rem;
  background: #fff;
  padding: 0 8px;
}

/* --- Branch FAQ Accordion --- */
.branch-faq {
  list-style: none;
  padding: 0;
}

.branch-faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.branch-faq-question {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  cursor: pointer;
  background: linear-gradient(135deg, #f0fdf4 0%, #fef9f0 100%);
  border: 1px solid #e0d5c0;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 600;
  color: var(--forest-dark);
}

.branch-faq-question:hover {
  border-color: var(--gold);
  background: linear-gradient(135deg, #e8f5e9 0%, #fef5e7 100%);
}

.branch-faq-question .branch-icon {
  margin-right: 12px;
  color: var(--gold);
  font-size: 1.1rem;
  transition: transform 0.4s ease;
}

.branch-faq-item.active .branch-faq-question .branch-icon {
  transform: rotate(90deg);
  color: var(--forest);
}

.branch-faq-question .branch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-left: auto;
  margin-right: 12px;
  transition: all 0.3s ease;
}

.branch-faq-item.active .branch-faq-question .branch-dot {
  background: var(--forest);
  box-shadow: 0 0 8px rgba(22, 101, 52, 0.4);
}

.branch-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  background: #fff;
  border-left: 3px solid var(--gold);
  border-right: 1px solid #e0d5c0;
  border-bottom: 1px solid #e0d5c0;
  border-radius: 0 0 8px 8px;
  margin-top: -4px;
}

.branch-faq-item.active .branch-faq-answer {
  max-height: 300px;
}

.branch-faq-answer-content {
  padding: 0 1.5rem 1rem 1.5rem;
  color: #555;
  line-height: 1.8;
}

.branch-faq-item.active .branch-faq-question {
  border-radius: 8px 8px 0 0;
  border-bottom-color: transparent;
}

/* Branch connecting line */
.branch-faq-question::before {
  content: '';
  position: absolute;
  left: 24px;
  bottom: -4px;
  width: 2px;
  height: 4px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.branch-faq-item.active .branch-faq-question::before {
  opacity: 1;
}

/* --- Navbar --- */
.nav-forest {
  background: rgba(13, 59, 30, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--gold);
}

.nav-link-forest {
  position: relative;
  color: #ccc;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
}

.nav-link-forest:hover,
.nav-link-forest.active {
  color: var(--gold);
}

.nav-link-forest::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link-forest:hover::after,
.nav-link-forest.active::after {
  width: 60%;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(13, 59, 30, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--gold);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 1rem 1.5rem;
  color: #ccc;
  border-bottom: 1px solid rgba(212, 165, 116, 0.1);
  transition: all 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--gold);
  background: rgba(212, 165, 116, 0.05);
}

/* --- Hero --- */
.hero-forest {
  position: relative;
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest) 50%, #0a2a15 100%);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 2px 4px 8px rgba(0,0,0,0.4);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gold-light);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border: 2px solid var(--gold);
  color: var(--gold);
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin: 0 0.5rem;
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--forest-dark);
  box-shadow: 0 4px 20px rgba(212, 165, 116, 0.4);
}

.hero-cta-primary {
  background: var(--gold);
  color: var(--forest-dark);
  border-color: var(--gold);
}

.hero-cta-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #fff;
}

/* --- Feature Cards --- */
.feature-icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: rgba(212, 165, 116, 0.15);
  color: var(--gold);
  border: 2px solid var(--gold);
  margin: 0 auto 1rem;
}

/* --- Stats --- */
.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--forest) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: #666;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* --- Testimonial Cards --- */
.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  border-top: 4px solid var(--gold);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}

.testimonial-stars {
  color: var(--gold-dark);
}

/* --- CTA Banner --- */
.cta-banner-forest {
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest) 40%, var(--gold-dark) 100%);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner-forest::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.03)' d='M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
  pointer-events: none;
}

.cta-leaf-decor {
  position: absolute;
  color: rgba(255,255,255,0.08);
  font-size: 8rem;
  pointer-events: none;
}

.cta-leaf-decor.left { left: -30px; top: 20px; transform: rotate(-30deg); }
.cta-leaf-decor.right { right: -30px; bottom: 20px; transform: rotate(30deg); }

/* --- Footer --- */
.footer-forest {
  background: var(--forest-dark);
  color: #ccc;
  padding: 3rem 2rem 1.5rem;
  border-top: 3px solid var(--gold);
}

.footer-forest h4 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-forest a {
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-forest a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(212, 165, 116, 0.2);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: #888;
}

/* --- Scroll Animations --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Download Page Cards --- */
.download-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  border: 2px solid var(--gold);
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--forest), var(--gold), var(--forest));
}

.download-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(22, 101, 52, 0.2);
}

.download-card.featured {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: #fff;
  border-color: var(--gold);
}

.download-card.featured::before {
  background: linear-gradient(90deg, var(--gold), #fff, var(--gold));
}

/* --- About Page Timeline --- */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--forest), var(--gold), var(--forest));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  padding-right: 3rem;
  text-align: right;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding-left: 3rem;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--forest);
  top: 0;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -11px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -11px;
}

.timeline-item::before {
  content: '\f06c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 16px;
  color: var(--forest);
  font-size: 0.9rem;
  opacity: 0.5;
}

.timeline-item:nth-child(odd)::before {
  right: 30px;
}

.timeline-item:nth-child(even)::before {
  left: 30px;
}

/* --- Contact Form --- */
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 1rem;
  background: #fafafa;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
  background: #fff;
}

.contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--forest-dark);
}

.contact-submit-btn {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: #fff;
  padding: 0.85rem 3rem;
  border: 2px solid var(--gold);
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.contact-submit-btn:hover {
  background: var(--gold);
  color: var(--forest-dark);
  box-shadow: 0 4px 20px rgba(212, 165, 116, 0.4);
}

/* --- Wood Texture Background --- */
.wood-bg {
  background: linear-gradient(90deg, #8b5e3c 0%, #a0724d 25%, #8b5e3c 50%, #7a5230 75%, #8b5e3c 100%);
}

/* --- Animal Icon Badge --- */
.animal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(212, 165, 116, 0.12);
  color: var(--gold);
  font-size: 1.4rem;
  border: 1px solid rgba(212, 165, 116, 0.3);
}

/* --- Gold Divider --- */
.gold-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1rem auto;
  border-radius: 2px;
}

/* --- Section Titles --- */
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--forest-dark);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: #777;
  margin-bottom: 3rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta {
    display: block;
    margin: 0.5rem auto;
    max-width: 250px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 3rem !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    text-align: left !important;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 11px;
    right: auto;
  }

  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    left: 30px;
    right: auto;
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: 1.6rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}
