/* Palette: forest-amber */
: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: 6px; 
  --radius-md: 12px; 
  --radius-lg: 20px; 
  --radius-xl: 32px;
  --main-font: 'Playfair Display', serif;
  --alt-font: 'Roboto', sans-serif;
}

/* Base Styles & Mobile First Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: var(--alt-font);
  color: var(--text-color);
  line-height: 1.7;
  font-size: clamp(14px, 4vw, 18px);
  scroll-behavior: smooth;
}

body {
  background: #F8FAFC;
}

h1, h2, h3, h4 {
  font-family: var(--main-font);
  color: var(--dark-color);
  margin-top: 0;
}

h1 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
}

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 {
  margin-bottom: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* TECH-CARD Style Preset implementation */
section {
  padding: 56px 16px;
  margin: 0;
}

@media(min-width: 1024px) {
  section {
    padding: 64px 24px;
  }
}

.card {
  background: #fff;
  border: none;
  border-top: 3px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 10px 30px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-tag, .card-label {
  font-size: 0.7rem;
  font-family: monospace;
  letter-spacing: 0.12em;
  color: var(--accent-color);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

h1, h2 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
  transition: transform .15s, box-shadow .15s;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background: var(--secondary-color);
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Header & Nav */
.site-header {
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1000;
}

.site-header img {
  height: 40px;
  width: auto;
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.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: var(--secondary-color);
  z-index: 999;
  padding: 20px;
}

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  display: block;
  padding: 8px 0;
}

#menu-toggle:checked ~ .site-nav {
  display: block;
}

#menu-toggle:checked ~ .burger-btn .bar:first-child {
  transform: translateY(8.5px) rotate(45deg);
}

#menu-toggle:checked ~ .burger-btn .bar:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked ~ .burger-btn .bar:last-child {
  transform: translateY(-8.5px) rotate(-45deg);
}

@media (min-width: 768px) {
  .burger-btn {
    display: none;
  }
  .site-nav {
    display: flex !important;
    position: static;
    background: transparent;
    padding: 0;
  }
  .site-nav ul {
    flex-direction: row;
    gap: 24px;
  }
  .site-nav a {
    color: var(--text-color);
  }
  .site-nav a:hover {
    color: var(--primary-color);
  }
}

/* Hero Variant: cinematic-bottom-left */
.hero-section {
  position: relative;
  min-height: 90vh;
  background-image: url('./img/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 48px 16px;
}

@media(min-width: 1024px) {
  .hero-section {
    background-attachment: fixed;
    padding: 64px 48px;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
  text-align: left;
}

.hero-title {
  color: #fff;
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 600px;
}

/* Testimonial Wall Section */
.testimonial-wall-section {
  background: var(--background-color);
}

.testimonial-wall {
  display: block;
  column-gap: 20px;
}

@media(min-width: 768px) {
  .testimonial-wall {
    columns: 2;
  }
}

.testimonial-card {
  break-inside: avoid;
  margin-bottom: 20px;
  padding: 24px;
}

.stars {
  color: var(--accent-color);
  margin-bottom: 12px;
}

.testimonial-text {
  font-style: italic;
  font-size: 0.95rem;
}

.testimonial-author {
  margin-top: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
}

.testimonial-author strong {
  color: var(--dark-color);
}

.testimonial-author span {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Stats Counter Section */
@property --count { 
  syntax: '<integer>'; 
  initial-value: 0; 
  inherits: false; 
}

.stats-counter-section {
  background: var(--primary-color);
  min-height: 280px;
}

.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);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  font-family: var(--main-font);
}

.stat-num::after { 
  content: counter(n); 
}

@keyframes count-up { 
  from { --count: 0; } 
  to { --count: var(--target); } 
}

.stat-suffix {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  font-family: var(--main-font);
}

.stat-label {
  margin-top: 8px;
  font-size: 0.95rem;
}

/* Expert Quote Section */
.expert-quote-section {
  background: #fff;
  min-height: 320px;
  display: flex;
  align-items: center;
}

.quote-icon {
  font-size: 6rem;
  color: var(--accent-color);
  opacity: 0.3;
  line-height: 1;
  height: 50px;
}

.expert-quote {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-style: italic;
  max-width: 820px;
  margin: 0 auto 24px;
  font-family: var(--main-font);
}

.quote-author strong {
  display: block;
  font-size: 1.1rem;
}

.quote-author span {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Topic Overview Cards Section */
.topic-overview-section {
  background: #F8FAFC;
}

.overview-card {
  padding: 32px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.overview-card h3 {
  margin-top: 8px;
  margin-bottom: 16px;
}

.overview-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.overview-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.overview-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.image-featured-card {
  border-top: none !important;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 94, 32, 0.95) 0%, rgba(27, 94, 32, 0.4) 100%);
}

/* About/Values Section */
.about-values-section {
  background: var(--background-color);
  min-height: 380px;
}

.value-block {
  padding: 24px;
}

.value-icon {
  color: var(--primary-color);
  margin-bottom: 16px;
}

.value-block h3 {
  margin-bottom: 12px;
}

/* Contact + FAQ Section */
.contact-faq-section {
  background: #fff;
  border-top: 1px solid var(--border-color);
}

.contact-icon {
  color: var(--primary-color);
}

.form-input {
  border: 1px solid var(--border-color);
  background: #F8FAFC;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.15);
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  color: var(--primary-color);
}

/* Footer */
.site-footer {
  background: var(--dark-color);
  color: #F5F5F5;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.site-footer img {
  filter: brightness(0) invert(1);
  height: 35px;
}

.footer-nav a {
  color: #F5F5F5;
  opacity: 0.8;
  text-decoration: none;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--accent-color);
}

/* Scroll Reveal Animation (CSS-only) */
@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%;
}

/* Helper Titles */
.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.85;
}