/* ============================================
   WALK EASY K9 — Site Styles
   Colors: Purple Slate, Midnight Slate, Lavender Mist, Electric Amber
   Voice: Calm confidence. Premium authority. BMW M-Series DNA.
   ============================================ */

/* --- Tokens --- */
:root {
  --purple-slate: #5C5770;
  --midnight-slate: #2A2D42;
  --lavender-mist: #EDE8F0;
  --electric-amber: #FF8F00;
  --white: #FFFFFF;
  --light-bg: #F7F5F9;
  --text-primary: #211F28;
  --text-secondary: #5C5770;
  --text-on-dark: #EDE8F0;
  --amber-hover: #E68200;
  --max-width: 1140px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--electric-amber); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--amber-hover); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--midnight-slate);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--electric-amber);
  margin-bottom: 0.75rem;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

.section-dark {
  background: var(--midnight-slate);
  color: var(--text-on-dark);
}
.section-dark h2, .section-dark h3 { color: var(--lavender-mist); }

.section-purple {
  background: var(--purple-slate);
  color: var(--text-on-dark);
}
.section-purple h2, .section-purple h3 { color: var(--lavender-mist); }

.section-light {
  background: var(--light-bg);
}

/* --- Navigation --- */
.site-nav {
  background: var(--midnight-slate);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--purple-slate);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img {
  height: 45px;
  width: auto;
  
}

.footer-brand img {
  height: 50px;
  width: auto;
  
  margin-bottom: 0.5rem;
}

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

.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--lavender-mist);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  padding: 0.25rem 0;
}
.nav-links a:hover { color: var(--electric-amber); }
.nav-links a.nav-cta {
  background: var(--electric-amber);
  color: var(--midnight-slate);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 700;
}
.nav-links a.nav-cta:hover { background: var(--amber-hover); color: var(--midnight-slate); }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--lavender-mist);
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--midnight-slate);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 2px solid var(--purple-slate);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; }
}

/* --- Hero --- */
.hero {
  background: var(--purple-slate);
  padding: 6rem 0 5rem;
  text-align: center;
}

.hero h1 {
  color: var(--lavender-mist);
  margin-bottom: 1.25rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero .amber-bar {
  width: 80px;
  height: 4px;
  background: var(--electric-amber);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.hero p {
  color: var(--lavender-mist);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 2.25rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-amber {
  background: var(--electric-amber);
  color: var(--midnight-slate);
}
.btn-amber:hover { background: var(--amber-hover); color: var(--midnight-slate); }

.btn-outline {
  background: transparent;
  color: var(--lavender-mist);
  border: 2px solid var(--lavender-mist);
}
.btn-outline:hover {
  background: var(--lavender-mist);
  color: var(--midnight-slate);
}

.btn-dark {
  background: var(--midnight-slate);
  color: var(--lavender-mist);
}
.btn-dark:hover { background: var(--purple-slate); }

/* --- Cards / Grid --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: 6px;
  padding: 2rem;
  border: 1px solid rgba(92, 87, 112, 0.1);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 20px rgba(33, 31, 40, 0.08); }

.card-dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(237, 232, 240, 0.1);
  border-radius: 6px;
  padding: 2rem;
}

.card h3 .module-num {
  color: var(--electric-amber);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.25rem;
  letter-spacing: 0.08em;
}

/* --- Two-column sections --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- Lists --- */
.check-list {
  list-style: none;
  padding: 0;
}
.check-list li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--electric-amber);
  font-weight: 700;
}

.x-list {
  list-style: none;
  padding: 0;
}
.x-list li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  opacity: 0.7;
}
.x-list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #C0392B;
  font-weight: 700;
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid rgba(92, 87, 112, 0.15);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--midnight-slate);
  padding: 1.25rem 2rem 1.25rem 0;
  cursor: pointer;
  position: relative;
  line-height: 1.4;
}
.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--electric-amber);
  transition: transform 0.2s;
}
.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
}
.faq-answer p {
  padding-bottom: 1.25rem;
  color: var(--text-secondary);
}

/* --- Footer --- */
.site-footer {
  background: var(--midnight-slate);
  color: var(--text-on-dark);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand p {
  color: rgba(237, 232, 240, 0.6);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.footer-links a {
  color: var(--lavender-mist);
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 1; color: var(--electric-amber); }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(237, 232, 240, 0.1);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(237, 232, 240, 0.4);
}

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* --- Hero Logo --- */
.hero-logo {
  max-width: 300px;
  margin: 0 auto 2rem;
}

/* --- Blog --- */
.blog-card {
  background: var(--white);
  border-radius: 6px;
  padding: 2rem;
  border: 1px solid rgba(92, 87, 112, 0.1);
  transition: box-shadow 0.2s;
  display: block;
  text-decoration: none;
  color: var(--text-primary);
}
.blog-card:hover { box-shadow: 0 4px 20px rgba(33, 31, 40, 0.08); color: var(--text-primary); }
.blog-card .blog-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.blog-card h3 { color: var(--midnight-slate); transition: color 0.2s; }
.blog-card:hover h3 { color: var(--electric-amber); }
.blog-card p { color: var(--text-secondary); font-size: 0.95rem; }

.blog-post-header {
  text-align: center;
  margin-bottom: 3rem;
}
.blog-post-header .blog-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.blog-post-content { max-width: 720px; margin: 0 auto; }
.blog-post-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.5rem; }
.blog-post-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; }

/* --- Utility --- */
.text-center { text-align: center; }
.text-amber { color: var(--electric-amber); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }
.max-prose { max-width: 680px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
