/* =========================
   TOKENS & THEME
========================= */
:root {
  --header-h: clamp(52px, 7vw, 74px);
  --blue-1: #6dce7a;
  --blue-2: #0f813b;
  --blue-3: #00ce33;
  --accent: #5fe280;
  --light: #ffffff;
  --text: #0f172a;
  --muted: #c7d3e3;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  --vh: 1vh;
}
@supports (height: 100dvh) {
  :root { --vh: 1dvh; }
}

/* =========================
   BASE STYLES
========================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Merriweather", serif;
  color: var(--text);
  background: #b1d3bc;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =========================
   HEADER / NAV
========================= */
.header {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #28a745 0%, #b6e1b1 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  padding-block: 4px;
  height: 75px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  max-width: 1400px;
  margin: 0 auto;
  height: 70px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 12px);
  text-decoration: none;
}

.logo-area img {
  height: clamp(70px, 12vw, 140px);
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}
.logo-area img:hover { transform: scale(1.05); }

.brand {
  font-family: "Merriweather", "Georgia", serif;
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  color: #000;
  line-height: 1.2;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* =========================
   NAVIGATION
========================= */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}
.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  transition: color 0.3s ease;
}
.nav a:hover { color: #fffcdb; }

/* =========================
   HAMBURGER MENU
========================= */
.menu-toggle {
  font-size: 1.8rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  display: none;
  z-index: 10001;
  backdrop-filter: blur(4px);
}

/* =========================
   HERO SECTION
========================= */
.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero video#bgVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 64, 32, 0.45);
  z-index: 1;
}

.hero-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 250, 0.93);
  border: 2px solid #22b573;
  border-radius: 18px;
  width: min(88%, 580px);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: fadeIn 1s ease-in-out;
  backdrop-filter: blur(6px);
}
.hero-card:hover {
  transform: translateY(-4px);
  transition: all 0.3s ease;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
}

.hero-logo {
  width: clamp(200px, 25vw, 180px);
  height: auto;
  margin: 0 auto 1rem;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.hero-text h1 {
  font-family: "Merriweather", serif;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: #007a33;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin: 0.5rem 0 1rem;
}

.address {
  font-family: "Poppins", sans-serif;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: #333;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.contact {
  font-family: "Poppins", sans-serif;
  color: #006b2f;
  font-weight: 600;
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  margin-bottom: 1rem;
}

.tagline {
  font-family: "Merriweather", serif;
  font-size: clamp(1rem, 3.2vw, 1.3rem);
  font-weight: 700;
  color: #003b1f;
  border-top: 2px solid #22b573;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 700px) {
  .hero-card { padding: 1.5rem; }
  .hero-logo { width: 120px; }
}

/* =========================
   FOOTER
========================= */
.footer {
  background: linear-gradient(90deg, #0c8a47, #007a33);
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 0.95rem;
}

/* =========================
   GLOBAL FIXES
========================= */
#bgVideo, body::before {
  pointer-events: none !important;
  z-index: -1 !important;
}
.header, .header-inner, .menu-toggle, .nav {
  position: relative;
  z-index: 99999 !important;
  pointer-events: auto !important;
}

/* =========================
   MOBILE NAVIGATION
========================= */
@media (max-width: 1200px) {
  .menu-toggle { display: block; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(25, 90, 50, 0.4);
    backdrop-filter: blur(12px) saturate(120%);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    padding: 1.2rem 0;
    gap: 1rem;
    animation: slideDown 0.3s ease forwards;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 100000;
  }
  .nav.open a {
    font-size: 1.1rem;
    color: #000;
    font-weight: 700;
    text-transform: capitalize;
    text-shadow: 0 1px 0 #ffffff, 0 2px 2px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, color 0.2s ease;
  }
  .nav.open a:hover {
    color: #0f5c2c;
    transform: scale(1.05);
    text-shadow: 0 1px 0 #ffffff, 0 2px 3px rgba(0, 0, 0, 0.35);
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* =========================
   DESKTOP NAVIGATION
========================= */
@media (min-width: 1201px) {
  .nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(24px, 3vw, 48px);
  }
  .nav a {
    color: #000;
    font-weight: 700;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    text-decoration: none;
    text-shadow: 0 1px 0 #ffffff, 0 2px 2px rgba(0, 0, 0, 0.25);
    transition: color 0.3s ease, transform 0.2s ease;
  }
  .nav a:hover {
    color: #0f5c2c;
    transform: translateY(-2px);
    text-shadow: 0 1px 0 #ffffff, 0 3px 3px rgba(0, 0, 0, 0.35);
  }
  .menu-toggle { display: none !important; }
}

/* =========================
   SPLASH SCREEN (Maharlikan)
========================= */
#splash {
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, #0bc746 0%, #87c48f 40%, #eaf5ed 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  overflow: hidden;
  animation: splashFadeOut 1s ease forwards;
  animation-delay: 3s; /* fades out after 3 seconds */
}

.splash-logo {
  width: clamp(120px, 20vw, 180px);
  height: auto;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
  animation: splashPopIn 1.2s ease;
}

.splash-title {
  font-family: "Merriweather", serif;
  font-weight: 700;
  color: #0f813b;
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin: 0.4rem 0;
  text-align: center;
}

.splash-subtitle {
  font-family: "Playfair Display", serif;
  color: #2b5035;
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Loader Spinner */
.loader {
  width: 45px;
  height: 45px;
  border: 4px solid #d8f3dd;
  border-top-color: #0f813b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animations */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes splashPopIn {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes splashFadeOut {
  to {
    opacity: 0;
    visibility: hidden;
    display: none;
  }
}
