/* palette: aubergine-copper */
:root {
  --primary-color: #2D1B50;
  --secondary-color: #4A2F7A;
  --accent-color: #A06830;
  --background-color: #F5F0FF;
  --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: 'DM Serif Display', Georgia, serif;
  --alt-font: 'Open Sans', sans-serif;
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--main-font);
  color: var(--primary-color);
  font-weight: 700;
}

h1 {
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.1;
}

h2 {
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.2;
}

h3 {
  font-size: clamp(18px, 2.8vw, 28px);
}

p {
  font-size: clamp(14px, 1.6vw, 17px);
}

img {
  max-width: 100%;
  height: auto;
}

/* Header style */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  position: relative;
  z-index: 1000;
}

.header-inner .logo img {
  max-height: 40px;
}

/* CSS burger & navigation for mobile-first */
.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1010;
}

.burger-btn .bar {
  width: 100%;
  height: 2px;
  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: #ffffff;
  padding: 24px;
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.site-nav ul {
  list-style: none;
}

.site-nav a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--accent-color);
}

#menu-toggle:checked ~ .site-nav {
  display: block;
}

#menu-toggle:checked ~ .burger-btn .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#menu-toggle:checked ~ .burger-btn .bar:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked ~ .burger-btn .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 768px) {
  .burger-btn {
    display: none;
  }
  .site-nav {
    display: flex !important;
    position: static;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }
  .site-nav ul {
    flex-direction: row;
  }
}

/* STARTUP-GRADIENT Preset Rules */
section {
  padding: 72px 16px;
}

@media (min-width: 1024px) {
  section {
    padding: 80px 24px;
  }
}

h1 .grad, .hero h1 span {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  border-radius: var(--radius-md);
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent-color) 50%, transparent);
  transition: transform 0.15s, box-shadow 0.15s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 35px color-mix(in srgb, var(--accent-color) 70%, transparent);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: var(--radius-md);
  transition: transform 0.15s, background-color 0.15s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline:hover {
  transform: translateY(-2px);
  background-color: rgba(45, 27, 80, 0.05);
}

.icon-bg {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  border-radius: 12px;
  padding: 12px;
}

/* Card Styling with Animation Hover */
.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Hero Variant: noise-mesh */
.hero-section {
  min-height: 82vh;
  background: radial-gradient(circle at 10% 20%, rgba(74, 47, 122, 0.3) 0%, transparent 50%), 
              radial-gradient(circle at 90% 80%, rgba(160, 104, 48, 0.3) 0%, transparent 50%), 
              radial-gradient(circle at 50% 50%, rgba(45, 27, 80, 0.2) 0%, transparent 70%), 
              var(--background-color);
  position: relative;
  padding: 80px 16px;
}

.hero-subtitle {
  max-width: 600px;
  color: var(--text-color);
}

/* Scroll reveal sections */
@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%;
}

/* Section 1: Testimonial Wall */
.testimonial-wall-section {
  background-color: #ffffff;
  min-height: 500px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stars {
  color: var(--accent-color);
  font-size: 1.25rem;
}

/* Section 2: Stats Counter with @property */
@property --count {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}

.stats-counter-section {
  background-color: var(--primary-color);
  min-height: 300px;
}

.stat-num {
  --target: 80;
  font-size: clamp(3rem, 8vw, 6rem);
  font-family: var(--main-font);
  color: var(--accent-color);
  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 3: Expert Quote with background image */
.expert-quote-section {
  min-height: 320px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 96px 16px;
}

.expert-quote-section .overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(45, 27, 80, 0.85);
}

.quote-icon {
  font-size: 6rem;
  color: var(--accent-color);
  opacity: 0.4;
  line-height: 0.8;
  font-family: var(--main-font);
}

.expert-quote-section blockquote {
  font-family: var(--main-font);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-style: italic;
  line-height: 1.4;
}

/* Section 4: Topic Overview Cards */
.topic-overview-section {
  min-height: 460px;
  background-color: var(--background-color);
}

.topic-card {
  transition: transform 0.25s, box-shadow 0.25s;
}

/* Section 5: About/Values */
.values-section {
  min-height: 380px;
  background-color: #ffffff;
}

.value-card {
  border-top: 4px solid var(--accent-color);
}

/* Section 6: Contact & FAQ */
.contact-faq-section {
  background-color: var(--background-color);
}

.contact-info-block {
  background-color: var(--primary-color);
  color: #ffffff;
}

.contact-info-block h3 {
  color: #ffffff;
}

.contact-form-block input, 
.contact-form-block textarea {
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  color: var(--text-color);
}

.contact-form-block input:focus, 
.contact-form-block textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.faq-item {
  border-left: 4px solid var(--accent-color);
}

/* Footer style */
.site-footer {
  background-color: var(--primary-color);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer img {
  max-height: 40px;
  filter: brightness(0) invert(1);
}

.footer-nav a {
  color: #ffffff;
  opacity: 0.8;
  text-decoration: none;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--accent-color);
}