/* =========================
   LEVEL GURU VINTAGE RETRO STYLE CSS
   ========================= */

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

:root {
  /* Brand Colors */
  --primary: #25416C;
  --secondary: #489FB5;
  --accent: #F0F4F9;
  /* Vintage/Retro Palette */
  --retro-yellow: #F6E27A;
  --retro-orange: #F7A072;
  --retro-brown: #A67C52;
  --retro-green: #7FB285;
  --retro-red: #D7263D;
  --retro-blue: #3B5D7A;
  --retro-bg: #FFF8F0;
  --retro-shadow: 0 4px 24px rgba(166,124,82,0.08), 0 2px 8px rgba(39,65,108,0.06);
  /* Typography */
  --font-display: 'Montserrat', 'Roboto Slab', 'Pacifico', cursive;
  --font-body: 'Open Sans', Arial, sans-serif;
  --font-vintage: 'Pacifico', 'Roboto Slab', serif;
  /* Spacing */
  --section-mb: 60px;
  --section-py: 40px;
  --section-px: 20px;
  --container-max: 1200px;
  --border-radius: 18px;
  --card-radius: 14px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: var(--font-body);
  color: var(--primary);
  background: var(--retro-bg);
  margin: 0;
  min-height: 100vh;
  line-height: 1.7;
}

/* ========== 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 {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: var(--retro-yellow);
  border-bottom: 4px solid var(--retro-brown);
  box-shadow: 0 2px 8px rgba(39,65,108,0.06);
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 24px;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.03em;
  position: relative;
  transition: color var(--transition);
}
.main-nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--retro-orange);
  transition: width var(--transition);
  position: absolute;
  left: 0; bottom: -4px;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--retro-red);
}
.main-nav a:hover:after,
.main-nav a:focus:after {
  width: 100%;
}

.btn-primary {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  background: linear-gradient(90deg, var(--retro-orange) 60%, var(--retro-yellow) 100%);
  color: var(--primary);
  border: none;
  border-radius: var(--border-radius);
  padding: 12px 32px;
  box-shadow: 0 2px 8px rgba(39,65,108,0.08);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.04em;
  margin-left: 24px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  z-index: 1;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, var(--retro-yellow) 60%, var(--retro-orange) 100%);
  color: var(--retro-red);
  box-shadow: 0 4px 16px rgba(247,160,114,0.15);
  transform: translateY(-2px) scale(1.03);
}

.btn-secondary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  background: var(--retro-blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 20px;
  margin-left: 12px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 6px rgba(39,65,108,0.07);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--retro-red);
  color: #fff;
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  background: var(--retro-red);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 20px;
  top: 18px;
  z-index: 110;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.mobile-menu-toggle:active {
  background: var(--retro-orange);
  transform: scale(0.96);
}
.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 rgba(39,65,108,0.18);
  z-index: 2000;
  transform: translateX(-100vw);
  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(--retro-red);
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--retro-blue);
  transform: scale(1.1);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 40px 0 0 40px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--retro-red);
}

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

/* ========== SECTIONS & SPACING ========== */
section {
  margin-bottom: var(--section-mb);
  padding: var(--section-py) var(--section-px);
  background: none;
  position: relative;
}
section:nth-child(even) {
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: var(--retro-shadow);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--retro-blue);
  margin: 0 0 12px 0;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.6rem;
  font-family: var(--font-vintage), var(--font-display);
  color: var(--retro-red);
  text-shadow: 2px 2px 0 var(--retro-yellow), 0 2px 8px rgba(39,65,108,0.08);
  margin-bottom: 10px;
}
h2 {
  font-size: 2rem;
  color: var(--retro-brown);
  font-family: var(--font-display);
  margin-bottom: 8px;
}
h3 {
  font-size: 1.25rem;
  color: var(--retro-blue);
  font-family: var(--font-display);
}
p, ul, ol, li {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 10px;
}
ul, ol {
  padding-left: 24px;
}
strong {
  color: var(--retro-red);
  font-weight: 700;
}

/* ========== FLEXBOX LAYOUTS ========== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.feature-grid > div {
  flex: 1 1 260px;
  min-width: 240px;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--retro-shadow);
  padding: 28px 22px;
  margin-bottom: 20px;
  border: 2px solid var(--retro-yellow);
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 8px 32px rgba(166,124,82,0.18);
  transform: translateY(-4px) scale(1.03);
  border-color: var(--retro-orange);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--retro-shadow);
  padding: 24px 20px;
  border: 2px solid var(--retro-yellow);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px rgba(166,124,82,0.18);
  border-color: var(--retro-orange);
}

.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-yellow);
  border-radius: var(--card-radius);
  box-shadow: var(--retro-shadow);
  margin-bottom: 20px;
  border: 2px solid var(--retro-brown);
  max-width: 600px;
  color: var(--primary);
  font-size: 1.1rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card p {
  color: var(--primary);
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 0;
}
.testimonial-card span {
  color: var(--retro-red);
  font-weight: 700;
  font-size: 1rem;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 32px rgba(166,124,82,0.18);
  border-color: var(--retro-orange);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========== TABLES (RETRO STYLE) ========== */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--retro-shadow);
  margin: 24px 0 20px 0;
  overflow: hidden;
}
thead {
  background: var(--retro-yellow);
}
th, td {
  padding: 16px 14px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  border-bottom: 1px solid var(--retro-yellow);
}
th {
  font-family: var(--font-display);
  color: var(--retro-blue);
  font-size: 1.1rem;
}
tr:last-child td {
  border-bottom: none;
}

/* ========== FOOTER ========== */
footer {
  background: var(--retro-brown);
  color: #fff;
  padding: 40px 0 20px 0;
  margin-top: 60px;
  border-top: 4px solid var(--retro-yellow);
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--retro-yellow);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--retro-orange);
}
.footer-contact {
  text-align: center;
  color: #fff;
  font-size: 1rem;
}
footer small {
  color: var(--retro-yellow);
  font-size: 0.95rem;
  margin-top: 10px;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--retro-yellow);
  color: var(--primary);
  box-shadow: 0 -2px 16px rgba(39,65,108,0.08);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px 20px;
  z-index: 3000;
  font-size: 1.05rem;
  animation: cookieBannerIn 0.6s cubic-bezier(.77,0,.18,1);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  margin: 0 2px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-banner .accept {
  background: var(--retro-green);
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--retro-blue);
}
.cookie-banner .reject {
  background: var(--retro-red);
  color: #fff;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--retro-orange);
}
.cookie-banner .settings {
  background: var(--retro-yellow);
  color: var(--primary);
  border: 2px solid var(--retro-brown);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--retro-orange);
  color: #fff;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(39,65,108,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(39,65,108,0.18);
  padding: 36px 32px 28px 32px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookieModalIn 0.5s cubic-bezier(.77,0,.18,1);
}
@keyframes cookieModalIn {
  from { transform: scale(0.92) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-content h2 {
  font-size: 1.5rem;
  color: var(--retro-brown);
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--primary);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--retro-green);
  width: 20px; height: 20px;
}
.cookie-category .essential {
  color: var(--retro-brown);
  font-weight: 700;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal-actions .save {
  background: var(--retro-green);
  color: #fff;
}
.cookie-modal-actions .save:hover, .cookie-modal-actions .save:focus {
  background: var(--retro-blue);
}
.cookie-modal-actions .cancel {
  background: var(--retro-yellow);
  color: var(--primary);
  border: 2px solid var(--retro-brown);
}
.cookie-modal-actions .cancel:hover, .cookie-modal-actions .cancel:focus {
  background: var(--retro-orange);
  color: #fff;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .container {
    padding: 0 10px;
  }
  .main-nav {
    display: none;
  }
  .btn-primary {
    margin-left: 0;
  }
}
@media (max-width: 900px) {
  .feature-grid > div {
    min-width: 180px;
    padding: 20px 12px;
  }
  .testimonial-card {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  .container {
    padding: 0 6px;
  }
  .content-wrapper {
    gap: 18px;
  }
  section {
    padding: 28px 6px;
    margin-bottom: 36px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div {
    min-width: 0;
    width: 100%;
    padding: 18px 10px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    padding: 14px 10px;
    font-size: 1rem;
  }
  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    padding: 18px 8px;
    font-size: 0.98rem;
  }
  .cookie-modal-content {
    padding: 22px 8px 18px 8px;
    min-width: 0;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .btn-primary, .btn-secondary {
    font-size: 0.98rem;
    padding: 10px 16px;
  }
}

/* ========== MICRO-INTERACTIONS & EFFECTS ========== */
a, button {
  outline: none;
  transition: box-shadow var(--transition), color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}
a:focus-visible, button:focus-visible {
  box-shadow: 0 0 0 3px var(--retro-orange);
}

/* ========== RETRO PATTERNS & DECORATIVE ELEMENTS ========== */
section:nth-child(odd) {
  background: repeating-linear-gradient(135deg, var(--retro-yellow) 0 8px, var(--retro-bg) 8px 16px);
  border-radius: var(--border-radius);
  box-shadow: var(--retro-shadow);
}

/* ========== MISCELLANEOUS ========== */
::-webkit-scrollbar {
  width: 10px;
  background: var(--retro-yellow);
}
::-webkit-scrollbar-thumb {
  background: var(--retro-brown);
  border-radius: 8px;
}

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