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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0);
  backdrop-filter: blur(0px);
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding: 0.75rem 0;
}

#navbar.nav-scrolled {
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(45, 90, 56, 0.08);
  padding: 0.5rem 0;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #45723e;
  border-radius: 1px;
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  z-index: 99;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-link:hover {
  color: #45723e;
  transform: scale(1.05);
}

#menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('https://images.pexels.com/photos/8533080/pexels-photo-8533080.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 54, 25, 0.82) 0%,
    rgba(45, 90, 56, 0.72) 50%,
    rgba(69, 114, 62, 0.65) 100%
  );
}

.hero-content {
  padding: 8rem 0 6rem;
}

.hero-badge {
  animation: fadeInDown 0.8s ease both;
}

.hero h1 {
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero p {
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero > div:last-child {
  animation: fadeInUp 0.8s ease 0.45s both;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInUp 0.8s ease 0.7s both;
}

.scroll-dot {
  width: 2px;
  height: 24px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.scroll-dot::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 2px;
  animation: scrollDown 1.8s ease-in-out infinite;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(45, 90, 56, 0.15);
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(45, 90, 56, 0.1);
}

/* ===== FACILITY IMAGES ===== */
.facility-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facility-img:hover {
  box-shadow: 0 20px 40px rgba(45, 90, 56, 0.15);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollDown {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; animation: none; }
  .service-card:hover { transform: none; }
  .facility-img:hover { transform: none; }
  .scroll-dot::after { animation: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .hero h1 {
    font-size: 2.75rem;
  }
  .hero p {
    font-size: 1.05rem;
  }
  .hero-content {
    padding: 6rem 0 5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero h1 {
    font-size: 4rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 5rem;
  }
}
