/* CSS Variables */
:root {
  --primary-color: #3A3F4A;
  --secondary-color: #525C6B;
  --accent-color: #C0305A;
  --background-color: #F7F8FA;
  --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: 0px; 
  --radius-md: 0px; 
  --radius-lg: 0px; 
  --radius-xl: 0px;
  --main-font: 'Merriweather', serif;
  --alt-font: 'Roboto', sans-serif;
}

/* Animations CSS @property */
@property --count {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}

@property --bar {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}

@property --deg {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}

/* General Styles */
* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  font-family: var(--alt-font);
  color: var(--text-color);
  background-color: var(--background-color);
  scroll-behavior: smooth;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--main-font);
}

p {
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.7;
}

/* SWISS-GRID PRESET STYLES (Copied Literally) */
section{padding:56px 16px;margin:0} @media(min-width:1024px){section{padding:64px 24px}} body{background:#fff} h2{font-size:clamp(2rem,5vw,3.5rem);font-weight:900;line-height:0.9;letter-spacing:-0.03em;text-transform:uppercase} .card{border-top:4px solid var(--primary-color);border-radius:0;padding:24px;box-shadow:none} .label,.tag,.badge{font-size:0.7rem;letter-spacing:0.2em;text-transform:uppercase;color:var(--primary-color);font-weight:700} .btn{background:var(--primary-color);color:#fff;border-radius:0;font-weight:700;text-transform:uppercase;letter-spacing:0.08em}

/* Custom SWISS-GRID modifications */
.card {
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
}

.btn {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  padding: 0 24px;
  transition: transform .15s, box-shadow .15s;
  text-align: center;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.badge {
  color: var(--accent-color);
}

/* Header & Menu CSS-only Burger */
header {
  background: var(--background-color);
  border-bottom: 2px solid var(--border-color);
  position: relative;
  z-index: 1000;
}

.header-inner {
  height: 80px;
}

.logo img {
  height: 40px;
  width: auto;
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1010;
}

.burger-btn .bar {
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  transition: transform 0.3s, opacity 0.3s;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--background-color);
  border-bottom: 2px solid var(--border-color);
  padding: 24px;
  z-index: 999;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav ul li a {
  font-family: var(--main-font);
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-decoration: none;
}

#menu-toggle:checked ~ .site-nav {
  display: block;
}

#menu-toggle:checked ~ .burger-btn .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

#menu-toggle:checked ~ .burger-btn .bar:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked ~ .burger-btn .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (min-width: 768px) {
  .burger-btn {
    display: none;
  }
  .site-nav {
    display: flex !important;
    position: static;
    border: none;
    padding: 0;
  }
  .site-nav ul {
    flex-direction: row;
    gap: 24px;
  }
}

/* HERO SECTION (stats-anchored) */
.hero-section {
  padding: 0;
  margin: 0;
  min-height: 83vh;
  display: flex;
  flex-direction: column;
}

.hero-top {
  flex: 1;
  background-image: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('./img/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 16px;
}

.hero-top h1 {
  font-size: clamp(32px, 6vw, 64px);
  max-width: 900px;
}

.hero-stats-bar {
  background: var(--primary-color);
  padding: 32px 16px;
  width: 100%;
}

/* Stats Counter Animation */
.stat-num {
  font-size: clamp(36px, 5vw, 56px);
  font-family: var(--main-font);
  font-weight: 900;
  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); }
}

/* Section specific styling */
.section-progress {
  min-height: 380px;
}

/* Progress Bar Animation */
.bar-track {
  background: var(--border-color);
  height: 12px;
  border-radius: 0;
  overflow: hidden;
}

.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;
}

@keyframes fill-bar {
  from { --bar: 0; }
  to { --bar: var(--pct); }
}

/* CSS Donut Charts */
.section-donuts {
  min-height: 400px;
}

.donut-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
}

.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%;
}

.donut-inner {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: var(--primary-color);
}

@keyframes fill-donut {
  from { --deg: 0; }
  to { --deg: var(--target-deg); }
}

/* Stats Counter Section */
.section-stats {
  min-height: 300px;
  background: var(--secondary-color);
}

/* Comparison Table */
.section-comparison {
  min-height: 400px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

th, td {
  padding: 16px;
  border: 1px solid var(--border-color);
}

th {
  background: var(--primary-color);
  color: #fff;
  font-family: var(--main-font);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.05em;
}

tr:nth-child(even) {
  background-color: var(--background-color);
}

/* Testimonials */
.section-testimonials {
  min-height: 400px;
}

.stars {
  color: #F1C40F;
  font-size: 18px;
}

/* Contact + FAQ */
.section-contact-faq {
  background: var(--background-color);
}

.section-contact-faq input[type="text"],
.section-contact-faq input[type="email"],
.section-contact-faq input[type="tel"],
.section-contact-faq textarea {
  border-radius: 0;
  border: 1px solid var(--border-color);
}

/* FAQ style override to be open */
.faq-item {
  background: #fff;
  padding: 24px;
  border-top: 3px solid var(--primary-color);
}

/* Footer styling */
footer {
  background: var(--dark-color);
  color: #F0F0F0;
  border-top: 4px solid var(--primary-color);
}

footer img {
  filter: brightness(0) invert(1);
  height: 36px;
}

footer a {
  color: #F0F0F0;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* 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%;
}

/* Cascade Animation for Cards */
.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: 0.12s; }
.card:nth-child(3) { animation-delay: 0.24s; }
.card:nth-child(4) { animation-delay: 0.36s; }