/* Ported from src/index.css (custom utilities + component styles).
   Fonts (Inter + Playfair Display) are loaded via <link> in the page head. */

html {
  scroll-behavior: smooth;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal (replaces the React useReveal hook + Tailwind @layer utilities) */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Hero slideshow */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
  background-size: cover;
  background-position: center;
}
.slide.active { opacity: 1; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #0B5D1E; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #E67E22; }

/* Section divider */
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #0B5D1E, #E67E22);
  border-radius: 2px;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #0B5D1E, #E67E22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass card */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Timeline line — centre vertical gradient (desktop only, matching the dots
   which are `hidden md:block`). On mobile the cards stack full-width. */
@media (min-width: 768px) {
  .timeline-line::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #0B5D1E, #E67E22);
    transform: translateX(-50%);
  }
}

/* Gallery lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* WhatsApp pulse */
@keyframes whatsapp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-pulse { animation: whatsapp-pulse 2s infinite; }

/* Certification badge shimmer */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.cert-shimmer {
  background: linear-gradient(90deg, transparent 25%, rgba(255, 255, 255, 0.3) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* ── Navbar: transparent over hero (top) → solid white on scroll ──
   Mirrors the source's `scrolled` conditional classes. */
#navbar { background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent); }
#navbar.scrolled { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); }

/* Logo pill */
.nav-logo { background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(12px); border-color: rgba(255, 255, 255, 0.3); }
.nav-logo:hover { background: rgba(255, 255, 255, 0.3); }
#navbar.scrolled .nav-logo { background: rgba(243, 244, 246, 0.6); border-color: #e5e7eb; backdrop-filter: none; }
#navbar.scrolled .nav-logo:hover { background: #f3f4f6; }

/* Language switcher container */
.nav-langwrap { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }
#navbar.scrolled .nav-langwrap { background: #f3f4f6; border-color: #d1d5db; }

/* Language switcher buttons */
.lang-btn { color: rgba(255, 255, 255, 0.8); }
.lang-btn:hover { color: #ffffff; background: rgba(255, 255, 255, 0.1); }
#navbar.scrolled .lang-btn { color: #374151; }
#navbar.scrolled .lang-btn:hover { color: #111827; background: #e5e7eb; }
.lang-btn.is-active, #navbar.scrolled .lang-btn.is-active { background: #E67E22; color: #ffffff; }

/* Hamburger */
.nav-ham { color: #ffffff; }
.nav-ham:hover { background: rgba(255, 255, 255, 0.1); }
#navbar.scrolled .nav-ham { color: #374151; }
#navbar.scrolled .nav-ham:hover { background: #e5e7eb; }

/* Menu dropdown panel */
.nav-menu { background: #094f1a; border-color: rgba(255, 255, 255, 0.1); }
#navbar.scrolled .nav-menu { background: #ffffff; border-color: #e5e7eb; }

/* Menu links */
.menu-link { color: rgba(255, 255, 255, 0.85); }
.menu-link:hover { color: #ffffff; background: rgba(255, 255, 255, 0.1); }
.menu-link.is-active-link { color: #fab54e; background: rgba(255, 255, 255, 0.1); }
#navbar.scrolled .menu-link { color: #374151; }
#navbar.scrolled .menu-link:hover { color: #111827; background: #f9fafb; }
#navbar.scrolled .menu-link.is-active-link { color: #E67E22; background: #fff7ed; }

/* Lightbox hidden state must beat the base `display:flex` above (and Tailwind's
   .hidden, which loads earlier). Without this the lightbox shows on page load. */
.lightbox-overlay.hidden { display: none !important; }

/* Police-quote: hide empty paragraph slots (paragraph count differs per language) */
.quote-p:empty { display: none; }

/* Mission & Vision — subtle plus-pattern overlay (matches source, opacity applied on wrapper) */
.mission-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
