/* CSS Variables & Palette */
:root {
  --primary-color: #0A2342;
  --secondary-color: #1B3A6B;
  --accent-color: #C9A227;
  --background-color: #F4F8FF;
  --dark-color: #111111;
  --text-color: #333333;
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.4);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --main-font: 'Lora', serif;
  --alt-font: 'Roboto', sans-serif;
}

/* Base DARK-PRO Theme Styles */
body, html {
  background: var(--secondary-color);
  color: #F0F0F0;
  font-family: var(--alt-font);
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-size: clamp(14px, 4vw, 18px);
  line-height: 1.7;
}

section {
  background: var(--secondary-color);
  padding: 72px 16px;
  position: relative;
}

@media (min-width: 1024px) {
  section {
    padding: 88px 24px;
  }
}

section + section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Typography Scale */
h1 {
  font-family: var(--main-font);
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  font-family: var(--main-font);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-family: var(--main-font);
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 600;
  line-height: 1.3;
}

p, .subtitle {
  color: rgba(240, 240, 240, 0.75);
}

.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-color);
  display: block;
  font-weight: 700;
}

/* Cards & Buttons */
.card {
  background: rgba(255, 255, 255, 0.06);
  border-top: 3px solid var(--accent-color);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.btn {
  font-family: var(--alt-font);
  font-weight: 700;
  border-radius: var(--radius-sm);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

.btn-outline {
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  background: transparent;
}

.btn:hover, .btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 0 24px var(--accent-color);
}

/* Header & Mobile Navigation */
header {
  background: var(--primary-color);
  position: relative;
  z-index: 1000;
}

.header-inner {
  position: relative;
}

header img[alt="logo"] {
  height: 40px;
  width: auto;
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1010;
}

.burger-btn .bar {
  height: 2px;
  width: 100%;
  background-color: #FFFFFF;
  transition: all 0.3s ease;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--primary-color);
  z-index: 999;
  padding: 16px;
  border-bottom: 2px solid var(--accent-color);
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-nav a {
  color: #FFFFFF;
  font-weight: 500;
  font-size: 0.95rem;
  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:first-child {
  transform: translateY(8px) rotate(45deg);
}

#menu-toggle:checked ~ .burger-btn .bar:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked ~ .burger-btn .bar:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .burger-btn {
    display: none;
  }
  .site-nav {
    display: flex !important;
    position: static;
    background: transparent;
    padding: 0;
    border: none;
  }
  .site-nav ul {
    flex-direction: row;
    gap: 24px;
  }
}

/* Hero layered-depth implementation */
#hero {
  min-height: 70vh;
}

.hero-layer-1 {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url('./img/bg.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(4px) brightness(0.35);
}

.hero-layer-2 {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--primary-color);
  opacity: 0.55;
  clip-path: polygon(0 12%, 100% 0, 100% 88%, 0 100%);
}

.hero-layer-3 {
  z-index: 3;
}

/* Myth vs Fact Styles */
.myth-box {
  background: rgba(239, 68, 68, 0.08);
  border-left: 4px solid #EF4444;
  border-radius: 4px;
}

.fact-box {
  background: rgba(34, 197, 94, 0.08);
  border-left: 4px solid #22C55E;
  border-radius: 4px;
}

/* How It Works step lines */
.step-number {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--accent-color);
  line-height: 1;
  opacity: 0.8;
}

@media (min-width: 1024px) {
  .steps-container::after {
    content: '';
    position: absolute;
    top: 35%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 1;
  }
}

/* Animations: Scroll-reveal & Progress-bars */
@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%;
}

@property --bar {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}

.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: 10px;
  border-radius: 999px;
}

@keyframes fill-bar {
  from { --bar: 0; }
  to { --bar: var(--pct); }
}

.bar-track {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  height: 10px;
}

/* Cascade Animation for Cards */
.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: .12s; }
.card:nth-child(3) { animation-delay: .24s; }
.card:nth-child(4) { animation-delay: .36s; }

/* Expert Quote Styles */
.quote-mark {
  font-size: 8rem;
  color: var(--accent-color);
  opacity: 0.15;
  line-height: 0.8;
  position: absolute;
  top: -40px;
  left: -20px;
  font-family: serif;
}

.image-wrapper {
  position: relative;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-color), transparent);
  opacity: 0.4;
  border-radius: var(--radius-sm);
}

/* Footer Styling */
footer img[alt="logo"] {
  filter: brightness(0) invert(1);
}

@media (max-width: 767px) {
  .footer-inner {
    text-align: center;
  }
}

.bg-gray-100,
.bg-white,
.bg-yellow-100,
.bg-blue-100,
.bg-red-100,
.bg-green-100,
.bg-gray-100 p,
.bg-white p,
.bg-yellow-100 p,
.bg-blue-100 p,
.bg-red-100 p,
.bg-green-100 p {
  color: #111A13;
}