@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --dark-green: #1a5c2a;
  --mid-green: #2d7a3e;
  --lime: #8dc63f;
  --lime-light: #a8d85a;
  --white: #ffffff;
  --ash: #f4f4f2;
  --ash-dark: #e8e8e4;
  --text-dark: #1a1a1a;
  --text-mid: #444444;
  --text-light: #888888;
  --gold: #c9a84c;
  --shadow: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-sm: 0 2px 16px rgba(0,0,0,0.08);
  --radius: 4px;
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

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

img { max-width: 100%; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--lime);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.navbar.scrolled {
  height: 65px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

.nav-logo img {
  height: 55px;
  transition: var(--transition);
}

.navbar.scrolled .nav-logo img { height: 44px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 16px; right: 16px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-links a:hover { color: var(--dark-green); }
.nav-links a.active { color: var(--dark-green); font-weight: 600; }

.nav-cta {
  background: var(--dark-green) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: var(--radius) !important;
}

.nav-cta:hover { background: var(--mid-green) !important; }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark-green);
  transition: var(--transition);
}

/* ── FOOTER ── */
.footer {
  background: var(--dark-green);
  color: rgba(255,255,255,0.85);
  padding: 60px 5% 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand img { height: 60px; margin-bottom: 16px; filter: brightness(0) invert(1); }

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.social-links { display: flex; gap: 12px; }

.social-links a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--dark-green);
}

.footer-col h4 {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  padding: 5px 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}

.footer-col ul li a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--lime); padding-left: 4px; }

.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact li span:first-child { color: var(--lime); margin-top: 2px; flex-shrink: 0; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ── SECTION HEADERS ── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 12px;
  position: relative;
}

.section-tag::before,
.section-tag::after {
  content: '—';
  margin: 0 8px;
  color: var(--lime);
  opacity: 0.5;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--dark-green);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── BTN ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--dark-green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--mid-green);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,92,42,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--dark-green);
  border: 2px solid var(--dark-green);
}

.btn-outline:hover {
  background: var(--dark-green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lime {
  background: var(--lime);
  color: var(--dark-green);
}

.btn-lime:hover {
  background: var(--lime-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(141,198,63,0.4);
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  margin-top: 80px;
  height: 320px;
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--mid-green) 60%, var(--lime) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* When a banner image is set via admin panel */
.page-hero.has-bg-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero.has-bg-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,92,42,0.78) 0%, rgba(0,0,0,0.45) 100%);
  z-index: 0;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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='0.04'%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");
  z-index: 0;
}

.page-hero-content { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.breadcrumb a { color: var(--lime); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ── UTILITIES ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section { padding: 96px 5%; }
.section-alt { background: var(--ash); }

.divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--dark-green));
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    border-top: 2px solid var(--lime);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    gap: 4px;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

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

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── FADE IN ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── LOADING ── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--dark-green);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#page-loader.hidden { opacity: 0; pointer-events: none; }

.loader-logo img { height: 80px; filter: brightness(0) invert(1); animation: pulse 1.2s ease infinite; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

/* ══════════════════════════════════
   SHARED GALLERY — ALL PAGES
══════════════════════════════════ */
.gp-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 12px;
}

.gp-gallery-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: linear-gradient(135deg, var(--dark-green), var(--mid-green));
}

.gp-gallery-item:first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.gp-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gp-gallery-item:hover img { transform: scale(1.06); }

.gp-gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(26,92,42,0.65);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}

.gp-gallery-item:hover .gp-gallery-item-overlay { opacity: 1; }
.gp-gallery-item-overlay span { color: white; font-size: 1.8rem; }

.gp-gallery-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; opacity: 0.25; color: white;
}

.gallery-explore-btn { text-align: center; margin-top: 28px; }

/* ── ABOUT PAGE GALLERY (up to 40 images) ── */
.about-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.about-gallery-item {
  border-radius: 8px;
  overflow: hidden;
  height: 200px;
  background: linear-gradient(135deg, var(--dark-green), var(--mid-green));
  position: relative;
  cursor: pointer;
}

.about-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.about-gallery-item:hover img { transform: scale(1.05); }
.about-gallery-item:nth-child(5n+1) { grid-column: span 2; height: 260px; }

.about-gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(26,92,42,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}

.about-gallery-item:hover .about-gallery-item-overlay { opacity: 1; }
.about-gallery-item-overlay span { color: white; font-size: 1.6rem; }

/* ── GALLERY RESPONSIVE ── */
@media (max-width: 768px) {
  .gp-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gp-gallery-item { height: 160px; }
  .gp-gallery-item:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    height: 220px;
  }
  .about-gallery { grid-template-columns: 1fr 1fr; }
  .about-gallery-item { height: 160px; }
  .about-gallery-item:nth-child(5n+1) { grid-column: span 2; height: 200px; }
}

@media (max-width: 480px) {
  .gp-gallery-item:first-child { height: 190px; }
  .gp-gallery-item { height: 140px; }
  .about-gallery-item { height: 140px; }
  .about-gallery-item:nth-child(5n+1) { height: 170px; }
}
