/* CSS Variables & Palette */
:root {
  --primary-color: #1C2A35;
  --secondary-color: #37474F;
  --accent-color: #00695C;
  --background-color: #F5F8F8;
  --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: 8px; 
  --radius-lg: 12px;
  --main-font: 'Lora', 'Playfair Display', 'Georgia', serif;
  --alt-font: 'Roboto', sans-serif;
}

/* Base Styles */
body, html {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--alt-font);
  font-size: clamp(14px, 4vw, 17px);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Typography Scale */
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); line-height: 1.3; }
p { font-size: clamp(14px, 1.6vw, 17px); }

/* Retro-Classic Preset Requirements (Copied literally & expanded) */
section {
  padding: 56px 16px;
  margin: 0;
}
@media (min-width: 1024px) {
  section {
    padding: 64px 24px;
  }
}
h1, h2, h3 {
  font-family: "Playfair Display", "Georgia", serif;
}
.card {
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
  background-color: #FFFFFF;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.15);
}
.btn {
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  background: transparent;
  color: var(--primary-color);
  font-family: var(--alt-font);
  font-weight: 700;
  padding: 12px 24px;
  display: inline-block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s, color 0.15s;
  cursor: pointer;
  min-height: 44px;
}
.btn:hover {
  transform: translateY(-2px);
  background-color: var(--primary-color);
  color: #FFFFFF;
}
hr {
  border: none;
  text-align: center;
  margin: 24px 0;
}
hr::before {
  content: "— * —";
  display: block;
  font-size: 1.2rem;
  color: var(--accent-color);
}

/* Custom Dashed Border Helper */
.border-dashed-custom {
  border: 2px dashed var(--primary-color) !important;
}

/* Header & CSS-Only Burger Navigation */
header {
  background-color: #FFFFFF;
  border-bottom: 2px solid var(--primary-color);
  padding: 16px 0;
  position: relative;
  z-index: 1000;
}
.logo img {
  max-height: 40px;
  width: auto;
}
.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}
.burger-btn .bar {
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #FFFFFF;
  border-bottom: 2px solid var(--primary-color);
  box-shadow: var(--shadow-md);
  z-index: 999;
}
.site-nav ul {
  display: flex;
  flex-direction: column;
  padding: 16px;
}
.site-nav ul li {
  margin: 8px 0;
}
.site-nav ul li a {
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.site-nav ul li a:hover {
  color: var(--accent-color);
}

/* Burger Activation Magic */
#menu-toggle:checked ~ .site-nav {
  display: block !important;
}
#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;
    background-color: transparent;
    border-bottom: none;
    box-shadow: none;
  }
  .site-nav ul {
    flex-direction: row;
    padding: 0;
  }
  .site-nav ul li {
    margin: 0 16px;
  }
}

/* Hero Bento Grid Layout */
.hero-bento {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-color: #FFFFFF;
}
.bento-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
}
.bento-cell {
  padding: 24px;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.bento-main {
  background-color: var(--primary-color);
  color: #FFFFFF;
  min-height: 320px;
}
.bento-img {
  background-size: cover;
  background-position: center;
  min-height: 240px;
}
.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.badge {
  background-color: var(--accent-color);
  color: #FFFFFF;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
}
.bento-accent-cell {
  background-color: var(--accent-color);
  color: #FFFFFF;
}
.bento-secondary-cell {
  background-color: var(--secondary-color);
  color: #FFFFFF;
}
.bento-light-cell {
  background-color: var(--background-color);
  color: var(--text-color);
}
.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-color);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.bento-main .kicker {
  color: #A7FFEB;
}

@media (min-width: 1024px) {
  .bento-container {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 20px;
  }
  .bento-main {
    grid-column: span 2;
    grid-row: span 2;
    padding: 48px;
  }
  .bento-img {
    grid-column: span 1;
    grid-row: span 2;
  }
}

/* Animations (CSS-Only @property) */
@property --count {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}
.stat-num {
  --target: 100;
  animation: count-up 2s ease-out forwards;
  animation-timeline: view();
  animation-range: entry 0% entry 60%;
  counter-reset: n var(--count);
  display: inline-block;
}
.stat-num::after {
  content: counter(n);
}
@keyframes count-up {
  from { --count: 0; }
  to { --count: var(--target); }
}
.stat-unit {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 2px;
}

/* 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%;
}

/* Myth vs Fact Styles */
.bg-red-50-custom {
  background-color: rgba(239, 68, 68, 0.04);
  border-color: #EF4444 !important;
}
.bg-green-50-custom {
  background-color: rgba(34, 197, 94, 0.04);
  border-color: #22C55E !important;
}
.label-myth {
  color: #EF4444;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.label-fact {
  color: #22C55E;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* How It Works Step Numbers */
.step-num {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--accent-color);
  opacity: 0.15;
  position: absolute;
  top: 10px;
  right: 20px;
  line-height: 1;
}

/* Numbered Facts Index */
.fact-index {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--accent-color);
  line-height: 1;
}
.border-l-4-accent {
  border-left: 6px solid var(--accent-color) !important;
}

/* Checklist Styles */
.check-icon {
  color: var(--accent-color);
  font-weight: 900;
  font-size: 1.25rem;
}

/* Quote Section */
.quote-section {
  background-color: var(--primary-color);
  position: relative;
  padding: 80px 24px;
}
.quote-mark {
  font-size: 6rem;
  color: var(--accent-color);
  opacity: 0.3;
  display: block;
  line-height: 0.5;
  margin-bottom: -20px;
}

/* Forms & FAQ Section */
.btn-submit {
  background-color: var(--accent-color);
  color: #FFFFFF;
  border-color: var(--accent-color);
}
.btn-submit:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
input, textarea {
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  font-family: var(--alt-font);
  transition: border-color 0.2s;
}
input:focus, textarea:focus {
  border-color: var(--accent-color);
  outline: none;
}

/* Footer styling */
footer {
  background-color: var(--primary-color);
  color: #E5E7EB;
  padding: 48px 16px;
  text-align: center;
  border-top: 4px solid var(--accent-color);
}
footer a {
  color: #FFFFFF;
  transition: color 0.2s;
}
footer a:hover {
  color: var(--accent-color);
}
footer img[alt="logo"] {
  filter: brightness(0) invert(1);
  margin: 0 auto;
}

/* Hero CTA Custom styling */
.btn-hero {
  background-color: var(--accent-color);
  color: #FFFFFF;
  border-color: var(--accent-color);
}
.btn-hero:hover {
  background-color: #FFFFFF;
  color: var(--primary-color);
  border-color: #FFFFFF;
}