/* palette: denim-copper */
:root {
  --primary-color: #1B3A6B;
  --secondary-color: #253F70;
  --accent-color: #A06830;
  --background-color: #EEF4FF;
  --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: 'Merriweather', serif;
  --alt-font: 'Roboto', sans-serif;
}

/* Base Styles & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--alt-font);
  background-color: var(--background-color);
  color: var(--text-color);
  overflow-x: hidden;
}

/* Typography Scale */
h1 {
  font-family: var(--main-font);
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary-color);
}

h2 {
  font-family: var(--main-font);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: 16px;
}

h3 {
  font-family: var(--main-font);
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--secondary-color);
  margin-bottom: 12px;
}

p {
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* MINIMAL-LIGHT Preset Rules */
section {
  padding: 96px 16px;
}
@media (min-width: 1024px) {
  section {
    padding: 120px 24px;
  }
}
body {
  font-weight: 300;
  line-height: 1.9;
}
.card {
  border: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border-radius: 16px;
  background-color: #ffffff;
  padding: 24px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.btn {
  border-radius: 999px;
  padding: 14px 36px;
  display: inline-block;
  font-family: var(--alt-font);
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  min-height: 44px;
}
.btn:hover {
  transform: translateY(-2px);
}
section + section {
  border: none;
}

/* Colors & Specific Button Styles */
.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
  border: none;
}
.btn-primary:hover {
  background-color: #8c5824;
}
.btn-full {
  width: 100%;
}

/* Header */
header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 40px;
  width: auto;
  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(--primary-color);
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 2px;
}

/* Mobile Nav Styles */
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  box-shadow: var(--shadow-md);
  padding: 24px;
  z-index: 99;
}
.site-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.site-nav a:hover {
  color: var(--accent-color);
}

/* Burger Trigger Checkbox */
#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);
}

/* Desktop Header Adjustments */
@media (min-width: 768px) {
  .burger-btn {
    display: none;
  }
  .site-nav {
    display: flex !important;
    position: static;
    box-shadow: none;
    padding: 0;
    background-color: transparent;
  }
  .site-nav ul {
    flex-direction: row;
    gap: 24px;
  }
  .site-nav a {
    font-size: 0.95rem;
  }
}

/* Common Layout Containers */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
}
.bg-light {
  background-color: #ffffff;
}
.center-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px auto;
}
.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-color);
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}
.section-desc {
  color: #666666;
}

/* HERO (editorial-bleed) */
.hero-editorial {
  background-color: #ffffff;
  min-height: 85vh;
  display: flex;
  align-items: center;
}
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 0.95;
  margin-bottom: 32px;
  font-weight: 700;
}
.accent-text {
  color: var(--accent-color);
}
.editorial-divider {
  border-top: 2px solid var(--dark-color);
  margin-bottom: 32px;
  width: 100%;
}
.editorial-columns {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.editorial-col p {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.8;
  color: #444444;
}
.hero-cta-wrapper {
  margin-top: 32px;
}
.hero-cta-wrapper .btn {
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .editorial-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

/* SECTION 1: Progress Bars with Side Image */
.progress-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.side-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.bar-group {
  margin-bottom: 24px;
}
.bar-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 500;
}
.bar-label {
  font-size: 0.95rem;
}
.bar-pct-text {
  color: var(--accent-color);
}

@media (min-width: 1024px) {
  .progress-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
  }
}

/* CSS @property for Progress Bar Animation */
@property --bar {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}
.bar-track {
  background-color: var(--border-color);
  border-radius: 999px;
  overflow: hidden;
  height: 12px;
}
.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-color: var(--accent-color);
  height: 100%;
  border-radius: 999px;
}
@keyframes fill-bar {
  from { --bar: 0; }
  to { --bar: var(--pct); }
}

/* SECTION 2: CSS Donut Charts */
.donut-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.donut-card {
  text-align: center;
  padding: 40px 24px;
}
.donut-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

@property --deg {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}
.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;
  display: flex;
  align-items: center;
  justify-content: center;
}
.donut-inner {
  width: 96px;
  height: 96px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary-color);
  position: absolute;
}
@keyframes fill-donut {
  from { --deg: 0; }
  to { --deg: var(--target-deg); }
}

@media (min-width: 768px) {
  .donut-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* SECTION 3: Stats Counter Banner (Uses bg.jpg) */
.stats-banner {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.text-white h2 {
  color: #ffffff;
}
.kicker-white {
  color: #ffca85;
}
.desc-white {
  color: #e0e6f0;
}
.stats-counter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: center;
  margin-top: 56px;
}
.stat-counter-card {
  color: #ffffff;
}
.stat-number-wrapper {
  font-family: var(--main-font);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  color: #ffca85;
  margin-bottom: 12px;
}
.stat-suffix {
  font-size: 2.5rem;
  margin-left: 4px;
}
.stat-label {
  font-size: 1.1rem;
  color: #f5f5f5;
  max-width: 280px;
  margin: 0 auto;
}

@property --count {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}
.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); }
}

@media (min-width: 768px) {
  .stats-counter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* SECTION 4: Comparison Table */
.table-container {
  overflow-x: auto;
  padding: 0;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}
.comparison-table th, .comparison-table td {
  padding: 18px 24px;
}
.comparison-table th {
  background-color: var(--primary-color);
  color: #ffffff;
  font-family: var(--main-font);
  font-weight: 600;
}
.comparison-table th:first-child {
  border-top-left-radius: 16px;
}
.comparison-table th:last-child {
  border-top-right-radius: 16px;
}
.comparison-table tr:nth-child(even) {
  background-color: #f9fbff;
}
.comparison-table td {
  border-bottom: 1px solid var(--border-color);
}
.aspect-title {
  font-weight: 500;
  color: var(--secondary-color);
}
.positive {
  color: #1e7e34;
  font-weight: 400;
}
.negative {
  color: #bd2130;
  font-weight: 300;
}

/* SECTION 5: Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.testimonial-card {
  padding: 32px;
}
.stars {
  color: #f39c12;
  margin-bottom: 16px;
  font-size: 1.2rem;
}
.testimonial-text {
  font-style: italic;
  color: #555555;
  margin-bottom: 20px;
}
.author-name {
  font-weight: 700;
  color: var(--primary-color);
}
.author-meta {
  font-size: 0.85rem;
  color: #888888;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .testimonial-card:nth-child(4) {
    grid-column: span 1;
  }
}

/* SECTION 6: Contact & FAQ */
.contact-faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 96px;
}
.contact-info-block h2 {
  margin-bottom: 24px;
}
.contact-intro {
  color: #666666;
  margin-bottom: 32px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  font-size: 1.5rem;
  background-color: var(--background-color);
  padding: 12px;
  border-radius: 50%;
  line-height: 1;
}
.contact-item h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.contact-item p {
  color: #555555;
  margin-bottom: 0;
}

/* Styled Form */
.styled-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-weight: 500;
  font-size: 0.9rem;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--alt-font);
  font-size: 0.95rem;
  background-color: #fafafa;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-color);
  outline: none;
  background-color: #ffffff;
}
.form-checkbox-group {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.form-checkbox-group input {
  margin-top: 4px;
  cursor: pointer;
}
.form-checkbox-group label {
  font-size: 0.85rem;
  color: #666666;
  line-height: 1.5;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .contact-faq-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

/* FAQ Block */
.faq-block {
  border-top: 1px solid var(--border-color);
  padding-top: 96px;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.faq-item {
  background-color: #ffffff;
  padding: 32px;
}
.faq-item h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--primary-color);
}
.faq-item p {
  color: #666666;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Scroll Reveal Animation */
@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%;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #e0e6f0;
  padding: 64px 16px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
footer img[alt="logo"] {
  filter: brightness(0) invert(1);
  height: 40px;
  width: auto;
}
.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-nav a {
  color: #e0e6f0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: #ffca85;
}
.footer-copy {
  font-size: 0.85rem;
  color: #a0b2d6;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .footer-nav ul {
    flex-direction: row;
    gap: 24px;
  }
}