/* palette: brick-emerald */
:root {
  --primary-color: #8B3A1E;
  --secondary-color: #B04E28;
  --accent-color: #1B5E20;
  --background-color: #FAF0EC;
  --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: 'Nunito', sans-serif;
  --alt-font: 'Noto Sans', sans-serif;
}

/* Base Styles */
body, html {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--alt-font);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--main-font);
  color: var(--dark-color);
  font-weight: 700;
}

h1 {
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.1;
  font-weight: 900;
}

h3 {
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 600;
}

p {
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
}

/* BOLD-GEOMETRIC Presets */
section {
  padding: 56px 16px;
  margin: 0;
  position: relative;
  background-color: #ffffff;
}

@media(min-width: 1024px) {
  section {
    padding: 64px 24px;
  }
}

#hero {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  min-height: 84vh;
}

section:nth-child(even) {
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
  background-color: var(--background-color);
}

.btn {
  width: 100%;
  max-width: 360px;
  display: block;
  margin: 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform .15s, box-shadow .15s;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 4px 4px 0 var(--dark-color);
}

.btn-primary:hover {
  box-shadow: 6px 6px 0 var(--dark-color);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
}

.kicker {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--secondary-color);
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

/* Header & Burger Menu */
header {
  background-color: #ffffff;
  border-bottom: 3px solid var(--primary-color);
  position: relative;
  z-index: 1000;
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1010;
}

.burger-btn .bar {
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 3px solid var(--primary-color);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.site-nav ul li a {
  display: block;
  padding: 12px;
  color: var(--dark-color);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

#menu-toggle:checked ~ .site-nav {
  display: block;
}

#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: 1024px) {
  .burger-btn {
    display: none;
  }
  .site-nav {
    display: flex !important;
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
  }
  .site-nav ul {
    flex-direction: row;
    padding: 0;
    gap: 20px;
  }
  .site-nav ul li a {
    border: none;
    padding: 8px 12px;
  }
  .site-nav ul li a:hover {
    color: var(--primary-color);
  }
}

/* HERO: noise-mesh */
#hero {
  background: radial-gradient(circle at 20% 30%, rgba(139, 58, 30, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(27, 94, 32, 0.15) 0%, transparent 50%),
              var(--background-color);
  padding: 100px 16px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 600px;
  font-size: clamp(16px, 2vw, 20px);
  opacity: 0.9;
}

/* Cards & Hover Effects */
.card {
  background: #ffffff;
  border: 3px solid var(--primary-color);
  box-shadow: 6px 6px 0 var(--primary-color);
  border-radius: var(--radius-sm);
  transition: transform .25s, box-shadow .25s;
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--primary-color);
}

.card:nth-child(1){animation-delay:0s} 
.card:nth-child(2){animation-delay:.12s}
.card:nth-child(3){animation-delay:.24s} 
.card:nth-child(4){animation-delay:.36s}

/* Animations: CSS-only (Chrome 115+) */
@property --bar { syntax: '<integer>'; initial-value: 0; inherits: false; }
@property --deg { syntax: '<integer>'; initial-value: 0; inherits: false; }
@property --count { syntax: '<integer>'; initial-value: 0; inherits: false; }

/* Progress Bars */
.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: 12px;
  border-radius: 999px;
}

@keyframes fill-bar {
  from { --bar: 0; }
  to { --bar: var(--pct); }
}

.bar-track {
  background: var(--border-color);
  border-radius: 999px;
  overflow: hidden;
  padding: 2px;
}

/* Donut Charts */
.donut {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--accent-color) calc(var(--deg) * 1deg), var(--border-color) 0);
  animation: fill-donut 2s ease-out forwards;
  animation-timeline: view();
  animation-range: entry 0% entry 60%;
  position: relative;
}

.donut-inner {
  position: absolute;
  inset: 10px;
  background: #ffffff;
  border-radius: 50%;
}

@keyframes fill-donut {
  from { --deg: 0; }
  to { --deg: var(--target-deg); }
}

/* Stats Counter */
.stats-bg {
  background-image: url('./img/bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.stat-num {
  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); }
}

/* 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%;
}

/* Comparison Table */
table {
  background: #ffffff;
  border: 3px solid var(--primary-color);
}

thead {
  background: var(--primary-color);
}

tr:nth-child(even) {
  background-color: var(--background-color);
}

th, td {
  border-bottom: 2px solid var(--border-color);
}

/* Contact & FAQ styling */
.contact-info {
  background-color: var(--primary-color);
  border: 3px solid var(--dark-color);
  box-shadow: 8px 8px 0 var(--dark-color);
}

.faq-item {
  border-left-color: var(--accent-color);
  border-left-width: 4px;
}

/* Footer Styling */
footer {
  background-color: var(--dark-color);
  color: #ffffff;
  border-top: 4px solid var(--primary-color);
}

footer img[alt="logo"] {
  filter: brightness(0) invert(1);
}

footer a {
  color: #ffffff;
  text-decoration: none;
}

footer a:hover {
  color: var(--secondary-color);
}