/* =========================================================
   Blå Razor Akademin - Vintage Retro CSS Theme
   Modern, responsive, unmistakably vintage/retro, flexbox-only
   ========================================================= */

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

:root {
  /* Brand Colors */
  --primary: #1E3A5F;
  --secondary: #0A2233;
  --accent: #F4B942;
  /* Vintage/Retro Palette */
  --retro-red: #C1440E;
  --retro-blue: #3B5D76;
  --retro-cream: #F8F4E3;
  --retro-brown: #7C5C36;
  --retro-green: #A3B18A;
  --retro-orange: #F28C28;
  --retro-shadow: rgba(60, 40, 20, 0.12);
  /* Typography */
  --font-display: 'Pacifico', 'Montserrat', cursive;
  --font-heading: 'Montserrat', 'IBM Plex Mono', sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  /* Spacing */
  --section-margin: 60px;
  --section-padding: 40px 20px;
  --card-gap: 24px;
  --card-margin-bottom: 20px;
  --container-max: 1100px;
  /* Effects */
  --transition: 0.25s cubic-bezier(.4,1,.7,1);
  --border-radius: 12px;
  --border-radius-lg: 22px;
  --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="%23F8F4E3"/><circle cx="20" cy="20" r="2" fill="%23F4B942"/><circle cx="0" cy="0" r="2" fill="%23C1440E"/><circle cx="40" cy="40" r="2" fill="%237C5C36"/></svg>');
}

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

body {
  font-family: var(--font-body);
  color: var(--secondary);
  background: var(--pattern-url) repeat;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

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

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 0;
}

.section {
  margin-bottom: var(--section-margin);
  padding: var(--section-padding);
  background: rgba(255,255,255,0.92);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  position: relative;
}

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.5em;
  letter-spacing: 0.01em;
  text-shadow: 1px 2px 0 var(--retro-cream), 0 2px 8px var(--retro-shadow);
}
h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--retro-red);
  margin-bottom: 0.5em;
  letter-spacing: 0.04em;
}
h2 {
  font-size: 1.7rem;
  color: var(--retro-blue);
  font-family: var(--font-heading);
  margin-bottom: 0.5em;
}
h3 {
  font-size: 1.2rem;
  color: var(--retro-brown);
  font-family: var(--font-heading);
}
h4, h5, h6 {
  font-size: 1rem;
  color: var(--primary);
}
p, ul, ol, li {
  font-family: var(--font-body);
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.7em;
}
strong {
  color: var(--retro-red);
  font-weight: 700;
}
a {
  color: var(--retro-blue);
  text-decoration: underline;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--accent);
  text-decoration: none;
}

.cta {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent) 80%, var(--retro-orange) 100%);
  color: var(--secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.7em 2.2em;
  border-radius: 32px;
  box-shadow: 0 4px 16px var(--retro-shadow);
  border: 2px solid var(--retro-brown);
  letter-spacing: 0.04em;
  text-shadow: 1px 1px 0 #fff;
  margin-top: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.cta:hover, .cta:focus {
  background: linear-gradient(90deg, var(--retro-orange) 80%, var(--accent) 100%);
  color: var(--retro-red);
  transform: translateY(-2px) scale(1.04) rotate(-1deg);
  box-shadow: 0 8px 32px var(--retro-shadow);
}

/* =====================
   HEADER & NAVIGATION
   ===================== */
header {
  background: var(--primary);
  border-bottom: 6px solid var(--accent);
  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: 0;
  min-height: 72px;
}
header img {
  height: 48px;
  margin-right: 24px;
  filter: drop-shadow(0 2px 4px var(--retro-shadow));
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
nav a {
  font-family: var(--font-heading);
  color: var(--accent);
  font-size: 1rem;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
nav a.cta {
  background: var(--accent);
  color: var(--primary);
  border: 2px solid var(--retro-brown);
  margin-left: 12px;
  box-shadow: 0 2px 8px var(--retro-shadow);
}
nav a:hover, nav a:focus {
  background: var(--retro-orange);
  color: var(--secondary);
}
nav a.cta:hover, nav a.cta:focus {
  background: var(--retro-red);
  color: #fff;
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--primary);
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--retro-shadow);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--retro-orange);
  color: var(--retro-red);
  transform: scale(1.08) rotate(-5deg);
}

/* =====================
   MOBILE MENU OVERLAY
   ===================== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, var(--retro-cream) 80%, var(--accent) 100%);
  z-index: 9999;
  padding: 32px 24px 24px 24px;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(.7,1.6,.5,1), opacity 0.3s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: var(--retro-red);
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-self: flex-end;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px var(--retro-shadow);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--retro-orange);
  color: var(--primary);
  transform: scale(1.08) rotate(5deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 12px;
}
.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary);
  background: none;
  padding: 12px 0;
  border-radius: 0;
  border-bottom: 1px dashed var(--retro-brown);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--retro-red);
  background: var(--accent);
}

/* =====================
   MAIN SECTIONS & FLEX LAYOUTS
   ===================== */
section {
  margin-bottom: var(--section-margin);
  padding: var(--section-padding);
  background: rgba(255,255,255,0.92);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  position: relative;
}

.feature-grid, .team-grid, .blog-post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 0;
}
.feature-grid > div, .team-grid > div, .blog-post-grid > div {
  flex: 1 1 260px;
  min-width: 220px;
  background: var(--retro-cream);
  border: 2px solid var(--retro-brown);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px var(--retro-shadow);
  padding: 24px 18px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid > div:hover, .team-grid > div:hover, .blog-post-grid > div:hover {
  box-shadow: 0 8px 32px var(--retro-shadow);
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
  border-color: var(--accent);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--retro-cream);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  border: 2px solid var(--retro-brown);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 32px var(--retro-shadow);
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
  border-color: var(--accent);
}

.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: #fffbe6;
  border: 2px solid var(--retro-orange);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px var(--retro-shadow);
  margin-bottom: 20px;
  max-width: 420px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card p {
  color: var(--secondary);
  font-size: 1.1rem;
  font-family: var(--font-mono);
  margin-bottom: 0.3em;
}
.testimonial-card span {
  color: var(--retro-brown);
  font-size: 0.98rem;
  font-family: var(--font-heading);
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px var(--retro-shadow);
  border-color: var(--accent);
}

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

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}
.faq-accordion > div {
  background: var(--retro-cream);
  border: 2px solid var(--retro-green);
  border-radius: var(--border-radius);
  padding: 18px 16px;
  box-shadow: 0 2px 8px var(--retro-shadow);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.faq-accordion > div:hover {
  box-shadow: 0 8px 32px var(--retro-shadow);
  border-color: var(--accent);
}

.search-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.search-bar input[type="text"] {
  padding: 10px 14px;
  border-radius: 8px;
  border: 2px solid var(--retro-blue);
  font-size: 1rem;
  font-family: var(--font-body);
  background: #fff;
  transition: border-color var(--transition);
}
.search-bar input[type="text"]:focus {
  border-color: var(--accent);
  outline: none;
}

.categories-filter {
  margin: 18px 0 0 0;
  font-family: var(--font-mono);
  color: var(--retro-brown);
  font-size: 1rem;
}

.featured-post {
  background: var(--retro-green);
  color: var(--primary);
  border-radius: var(--border-radius);
  padding: 18px 16px;
  margin-top: 24px;
  box-shadow: 0 2px 8px var(--retro-shadow);
}
.featured-post h3 {
  color: var(--retro-red);
  font-family: var(--font-display);
}
.featured-post a {
  color: var(--retro-red);
  font-weight: bold;
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 40px 0 0 0;
  border-top: 6px solid var(--accent);
  box-shadow: 0 -2px 12px var(--retro-shadow);
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-menu, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-menu a, .footer-social a {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  transition: color var(--transition);
}
.footer-menu a:hover, .footer-social a:hover {
  color: var(--retro-orange);
}
.footer-brand img {
  height: 48px;
  filter: drop-shadow(0 2px 4px var(--retro-shadow));
}
.footer-contact p {
  color: #fffbe6;
  font-size: 0.98rem;
  margin: 0 0 4px 0;
}
.footer-copyright {
  width: 100%;
  text-align: center;
  color: #fffbe6;
  font-size: 0.95rem;
  margin-top: 24px;
  padding-bottom: 16px;
}

/* =====================
   COOKIE CONSENT BANNER
   ===================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99999;
  background: linear-gradient(90deg, var(--retro-cream) 80%, var(--accent) 100%);
  color: var(--secondary);
  box-shadow: 0 -2px 16px var(--retro-shadow);
  padding: 24px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border-top: 4px solid var(--accent);
  animation: cookieBannerIn 0.7s cubic-bezier(.7,1.6,.5,1);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0;
  font-size: 1rem;
  color: var(--secondary);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 8px;
}
.cookie-banner button {
  font-family: var(--font-heading);
  font-size: 1rem;
  border-radius: 24px;
  border: 2px solid var(--retro-brown);
  padding: 8px 22px;
  margin: 0;
  background: var(--accent);
  color: var(--primary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  box-shadow: 0 2px 8px var(--retro-shadow);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--retro-orange);
  color: var(--retro-red);
  transform: scale(1.04) rotate(-2deg);
}
.cookie-banner .cookie-settings {
  background: #fffbe6;
  color: var(--retro-brown);
  border: 2px dashed var(--retro-orange);
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: var(--retro-orange);
  color: var(--primary);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 100000;
  background: rgba(30,58,95,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: var(--retro-cream);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 32px var(--retro-shadow);
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cookieModalIn 0.5s cubic-bezier(.7,1.6,.5,1);
}
@keyframes cookieModalIn {
  from { transform: scale(0.85) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-content h2 {
  font-family: var(--font-display);
  color: var(--retro-red);
  margin-bottom: 0.5em;
}
.cookie-modal-content .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-modal-content label {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 1rem;
}
.cookie-modal-content input[type="checkbox"] {
  accent-color: var(--accent);
  width: 20px;
  height: 20px;
}
.cookie-modal-content .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--retro-red);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--retro-orange);
  color: var(--primary);
  transform: scale(1.08) rotate(5deg);
}

/* =====================
   RESPONSIVE DESIGN
   ===================== */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .feature-grid > div, .team-grid > div, .blog-post-grid > div {
    flex: 1 1 100%;
    min-width: 180px;
  }
  .container {
    padding: 0 8px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  header .container {
    flex-direction: row;
    gap: 0;
    min-height: 56px;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .feature-grid, .team-grid, .blog-post-grid {
    flex-direction: column;
    gap: 20px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card {
    max-width: 100%;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-copyright {
    text-align: left;
    padding-bottom: 8px;
  }
  .cookie-modal-content {
    min-width: 90vw;
    padding: 24px 10px 18px 10px;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  .section {
    padding: 24px 4px;
  }
  .cookie-banner {
    padding: 16px 4px 8px 4px;
  }
}

/* =====================
   MICRO-INTERACTIONS
   ===================== */
button, .cta, .mobile-menu-toggle, .mobile-menu-close, .cookie-modal-close {
  outline: none;
}
button:focus-visible, .cta:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible, .cookie-modal-close:focus-visible {
  box-shadow: 0 0 0 3px var(--accent);
}

/* =====================
   VINTAGE/RETRO DECORATIVE ELEMENTS
   ===================== */
.section:before {
  content: '';
  display: block;
  position: absolute;
  top: -18px; left: 24px;
  width: 60px; height: 12px;
  background: repeating-linear-gradient(90deg, var(--accent), var(--accent) 10px, var(--retro-orange) 10px, var(--retro-orange) 20px);
  border-radius: 8px 8px 0 0;
  opacity: 0.7;
  z-index: 1;
}
.section:after {
  content: '';
  display: block;
  position: absolute;
  bottom: -18px; right: 24px;
  width: 60px; height: 12px;
  background: repeating-linear-gradient(90deg, var(--retro-blue), var(--retro-blue) 10px, var(--retro-green) 10px, var(--retro-green) 20px);
  border-radius: 0 0 8px 8px;
  opacity: 0.7;
  z-index: 1;
}

/* =====================
   MISCELLANEOUS
   ===================== */
ul, ol {
  padding-left: 1.5em;
}
li {
  margin-bottom: 0.3em;
}

/* Hide scrollbars for overlays */
.mobile-menu, .cookie-modal {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.mobile-menu::-webkit-scrollbar, .cookie-modal::-webkit-scrollbar {
  display: none;
}

/* =====================
   END OF CSS
   ===================== */
