/* =========================
   LEVEL VAULT AKADEMIE
   Vintage Retro CSS Theme
   ========================= */

/* 1. FONT IMPORTS (Vintage/Retro) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;500&family=Quicksand:wght@700&family=Roboto+Slab:wght@400;700&display=swap');

:root {
  /* Brand Colors */
  --primary: #223B54;
  --secondary: #F8F9FA;
  --accent: #1B874B;
  --accent-dark: #15713C;
  /* Vintage Retro Palette */
  --retro-yellow: #F9E79F;
  --retro-orange: #F5C16C;
  --retro-red: #D96B5A;
  --retro-blue: #4A90A4;
  --retro-brown: #A67C52;
  --retro-cream: #FFF8E1;
  --retro-green: #B6C867;
  --retro-shadow: rgba(34, 59, 84, 0.10);
  /* Typography */
  --font-display: 'Montserrat', 'Quicksand', 'Roboto Slab', serif;
  --font-body: 'Roboto', Arial, sans-serif;
  /* Spacing */
  --section-mb: 60px;
  --section-py: 40px;
  --container-max: 1200px;
  --border-radius: 14px;
  --card-radius: 18px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --shadow: 0 4px 24px var(--retro-shadow);
  --pattern-url: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="40" height="40" fill="%23F9E79F"/><circle cx="20" cy="20" r="2" fill="%23A67C52"/><circle cx="0" cy="0" r="2" fill="%23A67C52"/><circle cx="40" cy="40" r="2" fill="%23A67C52"/></svg>');
}

html {
  box-sizing: border-box;
  font-size: 18px;
  background: var(--retro-cream);
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-body);
  color: var(--primary);
  background: var(--pattern-url), var(--retro-cream);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* ===============
   LAYOUT CONTAINERS
   =============== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  background: var(--secondary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

/* ===============
   HEADER & NAVIGATION
   =============== */
header {
  background: var(--retro-yellow);
  border-bottom: 4px solid var(--retro-brown);
  box-shadow: 0 2px 12px var(--retro-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 24px;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
nav a {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition);
}
nav a:hover, nav a:focus {
  color: var(--accent);
}

.cta-btn {
  background: linear-gradient(90deg, var(--accent) 60%, var(--retro-green) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  border: none;
  border-radius: 30px;
  padding: 12px 32px;
  margin-left: 18px;
  box-shadow: 0 2px 8px var(--retro-shadow);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--accent-dark) 60%, var(--retro-green) 100%);
  transform: translateY(-2px) scale(1.04) rotate(-1deg);
  box-shadow: 0 6px 18px var(--retro-shadow);
}

/* ===============
   MOBILE NAVIGATION
   =============== */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 16px;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px var(--retro-shadow);
  z-index: 120;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent-dark);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, var(--retro-yellow) 80%, var(--retro-orange) 100%);
  box-shadow: 0 8px 32px var(--retro-shadow);
  z-index: 200;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(.77,0,.18,1), opacity 0.3s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  align-items: flex-start;
  padding: 40px 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 1024px) {
  header .container nav,
  header .container .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===============
   SECTIONS & FLEX LAYOUTS
   =============== */
section {
  margin-bottom: var(--section-mb);
  padding: var(--section-py) 0;
  position: relative;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--retro-yellow);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 20px;
  min-width: 260px;
  flex: 1 1 320px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px var(--retro-shadow);
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--retro-cream);
  border-left: 6px solid var(--retro-brown);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px var(--retro-shadow);
  margin-bottom: 20px;
  max-width: 600px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 32px var(--retro-shadow);
  border-left: 6px solid var(--accent);
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.08rem;
  font-family: var(--font-body);
  margin: 0 0 4px 0;
}
.testimonial-card span {
  color: var(--retro-brown);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}
.testimonial-card div {
  color: var(--accent);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--retro-yellow);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  margin-bottom: 20px;
  min-width: 220px;
  flex: 1 1 260px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--retro-yellow);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  margin-bottom: 20px;
  min-width: 220px;
  flex: 1 1 260px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid > div:hover {
  box-shadow: 0 8px 32px var(--retro-shadow);
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
}

/* ===============
   TYPOGRAPHY
   =============== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  font-weight: 700;
}
h1 {
  font-size: 2.4rem;
  text-shadow: 1px 2px 0 var(--retro-yellow), 0 2px 8px var(--retro-shadow);
  margin-bottom: 12px;
}
h2 {
  font-size: 1.7rem;
  color: var(--accent);
  margin-bottom: 10px;
}
h3 {
  font-size: 1.2rem;
  color: var(--retro-brown);
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1.08rem;
  color: var(--primary);
}
p, ul, ol, li {
  font-family: var(--font-body);
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 8px;
}
ul, ol {
  padding-left: 22px;
  margin-bottom: 12px;
}
ul li, ol li {
  margin-bottom: 6px;
  position: relative;
}
ul li::before {
  content: '\25A0';
  color: var(--retro-brown);
  font-size: 0.7em;
  margin-right: 8px;
  position: absolute;
  left: -18px;
  top: 2px;
}
a {
  color: var(--accent);
  text-decoration: underline;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--accent-dark);
}
strong {
  font-weight: 700;
  color: var(--retro-red);
}

/* ===============
   BUTTONS
   =============== */
button, .cta-btn {
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  border-radius: 30px;
  padding: 12px 32px;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  outline: none;
}
button:active, .cta-btn:active {
  transform: scale(0.98);
}

/* ===============
   FOOTER
   =============== */
footer {
  background: var(--retro-yellow);
  border-top: 4px solid var(--retro-brown);
  box-shadow: 0 -2px 12px var(--retro-shadow);
  padding: 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  gap: 24px;
  padding: 32px 20px 18px 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
}
.brand-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: center;
}
.brand-contact img {
  height: 40px;
  width: auto;
}
.brand-contact div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.98rem;
  color: var(--primary);
}
.footer-copy {
  text-align: center;
  color: var(--retro-brown);
  font-size: 0.95rem;
  margin-top: 10px;
}

/* ===============
   COOKIE CONSENT BANNER
   =============== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: linear-gradient(90deg, var(--retro-yellow) 80%, var(--retro-orange) 100%);
  color: var(--primary);
  box-shadow: 0 -2px 18px var(--retro-shadow);
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 1rem;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  opacity: 1;
  transition: opacity 0.4s, transform 0.4s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-text {
  flex: 1 1 60%;
  font-family: var(--font-body);
  color: var(--primary);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px var(--retro-shadow);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--accent-dark);
}
.cookie-btn.reject {
  background: var(--retro-red);
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #b94c3a;
}
.cookie-btn.settings {
  background: var(--retro-brown);
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #7d5a36;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 400;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(34,59,84,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--retro-cream);
  border-radius: 22px;
  box-shadow: 0 8px 32px var(--retro-shadow);
  padding: 36px 28px 28px 28px;
  max-width: 420px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalIn 0.5s cubic-bezier(.77,0,.18,1);
}
@keyframes modalIn {
  from { transform: translateY(60px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: var(--retro-yellow);
  border-radius: 14px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background var(--transition);
  border: 2px solid var(--retro-brown);
}
.cookie-modal .cookie-toggle:checked {
  background: var(--accent);
}
.cookie-modal .cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 4px var(--retro-shadow);
}
.cookie-modal .cookie-toggle:checked:before {
  transform: translateX(16px);
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  min-width: 110px;
}

/* ===============
   RESPONSIVE DESIGN
   =============== */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
  .content-wrapper {
    padding: 22px 10px;
  }
  .feature-grid, .card-container, .content-grid {
    gap: 16px;
  }
  .brand-contact {
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  .container {
    padding: 0 4vw;
  }
  .content-wrapper {
    padding: 16px 4vw;
    gap: 14px;
  }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-grid > div, .card {
    min-width: 0;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 14px;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
    padding: 10px 4vw;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 10px 14px 10px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .cookie-modal {
    padding: 18px 8px 14px 8px;
    max-width: 98vw;
  }
}

/* ===============
   RETRO DECORATIVE ELEMENTS
   =============== */
section::before {
  content: '';
  display: block;
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.07;
  background: var(--pattern-url) repeat;
  z-index: 0;
}
.content-wrapper {
  position: relative;
  z-index: 1;
}

/* ===============
   MICRO-INTERACTIONS
   =============== */
.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card:active, .feature-grid > div:active, .testimonial-card:active {
  transform: scale(0.98);
}

/* ===============
   FORMS (Newsletter, Contact)
   =============== */
input, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--retro-brown);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--retro-cream);
  color: var(--primary);
  margin-bottom: 14px;
  width: 100%;
  transition: border-color var(--transition);
}
input:focus, textarea:focus {
  border-color: var(--accent);
  outline: none;
}

/* ===============
   ACCESSIBILITY
   =============== */
:focus {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

/* ===============
   PRINT STYLES
   =============== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff !important; }
  .content-wrapper { box-shadow: none !important; }
}
