/* palette: golden-rose */
:root {
  --primary-color: #8C7000;
  --secondary-color: #B09000;
  --accent-color: #C2185B;
  --background-color: #FFFBE0;
  --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: 6px; 
  --radius-md: 12px; 
  --radius-lg: 20px; 
  --radius-xl: 32px;
  --main-font: 'Montserrat', sans-serif;
  --alt-font: 'Poppins', sans-serif;
}

/* Base resets & typography */
body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background-color: #FFFFFF;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--main-font);
}

/* BOLD-GEOMETRIC literal rules copied literally */
section{padding:56px 16px;margin:0} 
@media(min-width:1024px){section{padding:64px 24px}} 
#hero{clip-path:polygon(0 0,100% 0,100% 92%,0 100%)} 
section:nth-child(even){clip-path:polygon(0 3%,100% 0,100% 97%,0 100%)} 
.btn{width:100%;max-width:360px;display:block;margin:0 auto} 
h2{font-size:clamp(2rem,5vw,3.2rem)}

/* Custom Geometric styles */
.card {
  border: 3px solid var(--primary-color);
  box-shadow: 6px 6px 0 var(--primary-color);
  border-radius: 0;
  background: white;
  transition: transform .25s, box-shadow .25s;
}
.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 var(--accent-color);
}

/* Button override for geometric feel */
.btn {
  border: 3px solid var(--dark-color);
  box-shadow: 4px 4px 0 var(--dark-color);
  border-radius: 0;
  transition: transform .15s, box-shadow .15s;
  text-transform: uppercase;
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--dark-color);
}
.btn-primary {
  background-color: var(--accent-color);
  color: white;
}
.btn-outline {
  background-color: transparent;
  border-color: white;
  color: white;
  box-shadow: 4px 4px 0 white;
}
.btn-outline:hover {
  box-shadow: 2px 2px 0 white;
  color: var(--accent-color);
  background-color: white;
}

/* Header & CSS-only Burger */
.site-header {
  background-color: white;
  border-bottom: 4px solid var(--primary-color);
}
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--secondary-color);
  z-index: 999;
  padding: 1.5rem;
  border-bottom: 4px solid var(--dark-color);
}
.site-nav ul {
  list-style: none;
}
.nav-link {
  font-family: var(--main-font);
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  display: block;
  padding: 0.5rem 0;
}
.nav-link:hover {
  color: var(--dark-color);
}
#menu-toggle:checked ~ .site-nav {
  display: block;
}
.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}
.burger-btn .bar {
  height: 3px;
  width: 100%;
  background-color: var(--dark-color);
  transition: all 0.3s ease;
}
#menu-toggle:checked ~ .burger-btn .bar:first-child {
  transform: translateY(9px) rotate(45deg);
}
#menu-toggle:checked ~ .burger-btn .bar:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked ~ .burger-btn .bar:last-child {
  transform: translateY(-9px) rotate(-45deg);
}

@media(min-width:768px) {
  .burger-btn {
    display: none;
  }
  .site-nav {
    display: flex !important;
    position: static;
    background: transparent;
    padding: 0;
    border: none;
  }
  .nav-link {
    color: var(--dark-color);
  }
  .nav-link:hover {
    color: var(--accent-color);
  }
}

/* Hero scroll-peek implementation */
.hero {
  min-height: calc(80vh - 80px);
  position: relative;
  background-image: url('./img/bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: visible;
  z-index: 2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(140, 112, 0, 0.85) 0%, rgba(194, 24, 91, 0.85) 100%);
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 800px;
  line-height: 1.7;
}

/* ANIMATIONS (CSS-only @property Chrome 115+) */
@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)} }

/* Progress-bars */
@property --bar { syntax:'<integer>'; initial-value:0; inherits:false; }
.bar-fill {
  width: calc(var(--bar) * 1%);
  animation: fill-bar 1.5s ease-out forwards;
  animation-timeline: view(); 
  animation-range: entry 0% entry 50%;
  background: var(--accent-color); 
  height:16px; 
  border-radius:0;
}
@keyframes fill-bar { from{--bar:0} to{--bar:var(--pct)} }
.bar-track { 
  background: #E5E7EB; 
  border: 2px solid var(--dark-color);
  padding: 2px;
  border-radius:0; 
  overflow:hidden; 
}

/* Donut-charts */
@property --deg { syntax:'<integer>'; initial-value:0; inherits:false; }
.donut {
  width:120px; 
  height:120px; 
  border-radius:50%;
  border: 3px solid var(--dark-color);
  background: conic-gradient(var(--accent-color) calc(var(--deg)*1deg), #E5E7EB 0);
  animation: fill-donut 2s ease-out forwards;
  animation-timeline: view(); 
  animation-range: entry 0% entry 60%;
}
.donut-inner {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 50%;
  border: 3px solid var(--dark-color);
}
@keyframes fill-donut { from{--deg:0} to{--deg:var(--target-deg)} }

/* Scroll-reveal */
@keyframes reveal-up { from{opacity:0;transform:translateY(32px)} to{opacity:1;transform:translateY(0)} }
.reveal {
  animation: reveal-up linear both;
  animation-timeline: view(); 
  animation-range: entry 0% entry 30%;
}

/* Next section margin merge for scroll-peek */
#progress {
  margin-top: -1px;
  position: relative;
  z-index: 3;
}