/* Import Heritage-Luxury Elegant Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Roboto:wght@300;400;500;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,700;1,8..60,400&display=swap');

:root {
  --primary-color: #1B5E20;
  --secondary-color: #2E7D32;
  --accent-color: #E8A020;
  --background-color: #F2FAF2;
  --dark-color: #111111;
  --text-color: #333333;
  --border-color: rgba(0,0,0,0.12);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.16);
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 2px;
  --radius-xl: 2px;
  --main-font: 'Source Serif 4', Georgia, serif;
  --alt-font: 'Roboto', sans-serif;
}

/* Base Reset & Typography Scale */
body {
  font-family: var(--alt-font);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Source Serif 4', Georgia, serif;
  color: var(--dark-color);
}

h1 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
  line-height: 0.9;
}

h2 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 600;
}

p {
  font-size: clamp(14px, 1.6vw, 17px);
}

/* HERITAGE-LUXURY Preset Style (Copied Literally) */
section{padding:80px 16px} @media(min-width:1024px){section{padding:96px 24px}} .section-kicker{font-size:0.7rem;letter-spacing:0.25em;text-transform:uppercase;color:var(--accent-color);display:block;margin-bottom:12px} h1,h2{font-family:"Playfair Display","Source Serif 4",Georgia,serif} h1{line-height:0.9} .card{border:1px solid var(--accent-color);box-shadow:none;border-radius:2px} hr{border:none;border-top:1px solid var(--accent-color);max-width:60px;margin:24px auto}

/* Layout Elements */
.reveal {
  animation: reveal-up linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

#gallery, #stats {
  background: #1B5E20;
}


@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header & CSS Burger Menu */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 1000;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 2px solid var(--primary-color);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}

.site-nav ul li a {
  display: block;
  padding: 12px 24px;
  font-weight: 500;
  color: var(--text-color);
  transition: color 0.2s;
}

.site-nav ul li a:hover {
  color: var(--primary-color);
}

#menu-toggle:checked ~ .site-nav {
  display: block;
}

/* Burger Animation */
.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.burger-btn .bar {
  width: 100%;
  height: 2px;
  background-color: var(--dark-color);
  transition: transform 0.3s, opacity 0.3s;
}

#menu-toggle:checked ~ .burger-btn .bar:first-child {
  transform: translateY(8px) rotate(45deg);
}

#menu-toggle:checked ~ .burger-btn .bar:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked ~ .burger-btn .bar:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

/* Desktop Navigation */
@media (min-width: 768px) {
  .burger-btn {
    display: none;
  }
  .site-nav {
    display: flex !important;
    position: static;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
  }
  .site-nav ul {
    flex-direction: row;
    padding: 0;
    gap: 8px;
  }
  .site-nav ul li a {
    padding: 8px 16px;
  }
}

/* HERO Variant: scroll-peek */
.hero-section {
  min-height: calc(85vh - 80px);
  background-image: url('./img/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -1px; /* Peek Overlap */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.85) 0%, rgba(17, 17, 17, 0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Buttons & Touch Targets */
.btn {
  padding: 12px 28px;
  font-weight: 600;
  font-size: 15px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
  border-radius: var(--radius-sm);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--accent-color);
  color: #111111;
}

.btn-primary:hover {
  background-color: #d18d16;
}

.btn-outline {
  border: 1px solid #ffffff;
  color: #ffffff;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Cards & Hover Effects */
.card {
  background: #ffffff;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
}

/* Stats Counter Animation */
@property --count {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}

.stat-num {
  --target: 80;
  animation: count-up 2s ease-out forwards;
  animation-timeline: view();
  animation-range: entry 0% entry 60%;
  counter-reset: n var(--count);
}

.stat-num::after {
  content: counter(n) "%";
}

@keyframes count-up {
  from {
    --count: 0;
  }
  to {
    --count: var(--target);
  }
}

/* Footer style */
footer {
  background-color: var(--dark-color);
  color: #ffffff;
}

footer img[alt="logo"] {
  filter: brightness(0) invert(1);
}

/* Strict Grid Layouts (Mobile-First) */
@media (min-width: 768px) {
  .grid-cols-1 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}