:root {
  /* Meta Mastery Palette - No Blue Allowed */
  --bg-canvas: #faf6ef;       /* Warm cream base */
  --bg-surface: #ffffff;      /* Pure white for elevated cards */
  --bg-section-alt: #f1ebd9;  /* Slightly darker cream for banding */
  
  --accent-primary: #c2562e;  /* Terracotta */
  --accent-primary-hover: #a14422;
  --accent-secondary: #6b7a3a; /* Olive */
  
  --text-primary: #2b211a;    /* Brown text */
  --text-muted: #574b42;      /* Lighter brown text */
  
  --border-radius-global: 20px;
  --border-radius-pill: 50px;
  
  --shadow-base: 0 8px 24px -6px rgba(43, 33, 26, 0.08);
  --shadow-hover: 0 16px 40px -8px rgba(43, 33, 26, 0.15);
  
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --font-stack: "Trebuchet MS", "Segoe UI", "Helvetica Neue", sans-serif;
  --max-width: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-stack);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Header & Nav - Strict Left Align per rules */
header {
  background-color: var(--bg-canvas);
  padding: 1.5rem 0;
  position: relative; /* Static/relative per rules, moving out of view */
  z-index: 100;
  border-bottom: 2px solid var(--bg-section-alt);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-primary);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1;
}

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-surface);
  padding: 2rem;
  box-shadow: var(--shadow-base);
  z-index: 99;
}
.mobile-nav.active { display: block; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.mobile-nav a { text-decoration: none; color: var(--text-primary); font-size: 1.25rem; font-weight: 700; }

/* Global Layout & Sections */
main { min-height: 80vh; }

.section-band {
  width: 100%;
  padding: 6rem 1.5rem;
  position: relative;
}
.section-alt {
  background-color: var(--bg-section-alt);
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
  padding: 8rem 1.5rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.content-wrapper {
  max-width: 72ch;
  margin: 0 auto;
}

h1, h2, h3 { line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; letter-spacing: -1px; }
h2 { font-size: 2.25rem; color: var(--accent-secondary); }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.5rem; font-size: 1.125rem; color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent-primary);
  color: var(--bg-canvas);
  padding: 1rem 2rem;
  border-radius: var(--border-radius-pill);
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-kinetic);
  font-size: 1.125rem;
}
.btn:hover {
  background-color: var(--accent-primary-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px -5px rgba(194, 86, 46, 0.4);
}
.btn-secondary { background-color: var(--accent-secondary); }
.btn-secondary:hover { background-color: #55622e; box-shadow: 0 10px 20px -5px rgba(107, 122, 58, 0.4); }

/* Hero Section */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 4rem 1.5rem;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(43,33,26,0.6) 0%, rgba(250,246,239,0.9) 100%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}
.hero-content h1 { color: var(--bg-canvas); text-shadow: 0 4px 12px rgba(0,0,0,0.3); margin-bottom: 1.5rem; }
.hero-content p { color: var(--bg-canvas); font-size: 1.25rem; margin-bottom: 2rem; font-weight: 600; }
.hero-content .btn { margin-top: 1rem; }

/* Grid & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.card {
  background-color: var(--bg-surface);
  border-radius: var(--border-radius-global);
  padding: 2.5rem;
  box-shadow: var(--shadow-base);
  transition: all 0.5s var(--ease-kinetic);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.card-img-wrap {
  margin: -2.5rem -2.5rem 1.5rem -2.5rem;
  overflow: hidden;
  border-radius: var(--border-radius-global) var(--border-radius-global) 0 0;
}
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card h3 { color: var(--accent-primary); }

/* Image Assets styling */
.img-fluid {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-global);
  margin: 2rem 0;
  object-fit: cover;
}
.img-aspect-wide { aspect-ratio: 16/9; }

/* Pathway / Step-by-Step Lists */
.pathway {
  position: relative;
  padding-left: 2.5rem;
  margin: 3rem 0;
}
.pathway::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background-color: var(--accent-secondary);
  opacity: 0.3;
}
.pathway-step {
  position: relative;
  margin-bottom: 2.5rem;
}
.pathway-step::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--accent-secondary);
  border: 4px solid var(--bg-canvas);
}
.pathway-step h4 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--text-primary); }

/* Accordion details */
details {
  background: var(--bg-surface);
  border-radius: var(--border-radius-global);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-base);
  overflow: hidden;
}
summary {
  padding: 1.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--accent-primary);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-secondary);
}
details[open] summary::after { content: '-'; }
.details-content { padding: 0 1.5rem 1.5rem; color: var(--text-muted); }

/* Forms & Tools */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.form-control {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2d9c8;
  border-radius: var(--border-radius-global);
  background-color: var(--bg-canvas);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  transition: border-color 0.3s;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
}
textarea.form-control { min-height: 150px; resize: vertical; }
.tool-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

/* Deck List Rows Component */
.deck-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: var(--bg-surface);
  border-radius: var(--border-radius-global);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-base);
  transition: transform 0.3s;
}
.deck-row:hover { transform: translateX(10px); }
.deck-info h4 { margin-bottom: 0.25rem; color: var(--accent-secondary); }
.deck-info p { margin-bottom: 0; font-size: 0.9rem; }
.deck-badge {
  background: var(--bg-section-alt);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Footer */
footer {
  background-color: var(--text-primary);
  color: var(--bg-canvas);
  padding: 4rem 1.5rem 2rem;
  clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-col h4 { color: var(--accent-secondary); margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col a { color: #d0c8b6; text-decoration: none; transition: color 0.3s; }
.footer-col a:hover { color: var(--bg-canvas); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #4a3c30;
  text-align: center;
  font-size: 0.9rem;
  color: #a39b8c;
}

/* Scroll Animation Utility */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-kinetic);
}
.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .section-band { padding: 4rem 1.5rem; }
  .section-alt { padding: 5rem 1.5rem; clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%); }
  .hero { clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%); }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
