/* AstroWeitblick Vintage Retro CSS – Mobile-first, Flexbox-only, Brand-compliant */

/* 1. FONT IMPORTS (Vintage/Retro) */
@import url('https://fonts.googleapis.com/css2?family=Spectral:wght@700&family=Open+Sans:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap'); /* For retro accent */

:root {
  /* Brand Colors */
  --primary: #29304D;
  --secondary: #BFA25A;
  --accent: #F2F2ED;
  /* Vintage Retro Palette */
  --retro-red: #C1440E;
  --retro-blue: #3B5D76;
  --retro-yellow: #F6E27A;
  --retro-green: #7A9D54;
  --retro-cream: #F9F6F0;
  --retro-brown: #7C5C38;
  --retro-orange: #E6A157;
  /* Typography */
  --font-display: 'Spectral', 'Georgia', serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --font-retro: 'Pacifico', cursive;
  /* Shadows */
  --shadow-card: 0 4px 16px rgba(44, 38, 28, 0.10);
  --shadow-btn: 0 2px 8px rgba(44, 38, 28, 0.08);
  /* Border radius */
  --radius-card: 18px;
  --radius-btn: 24px;
  /* Spacing */
  --gap-section: 60px;
  --gap-card: 24px;
  --gap-content: 20px;
  --gap-feature: 15px;
}

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(--primary);
  background: var(--retro-cream);
  margin: 0;
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* 2. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.2rem;
  text-shadow: 1px 2px 0 var(--retro-yellow), 0 2px 8px rgba(44,38,28,0.07);
  font-family: var(--font-retro), var(--font-display);
  color: var(--retro-red);
}
h2 {
  font-size: 1.5rem;
  color: var(--retro-blue);
  border-bottom: 2px dashed var(--secondary);
  padding-bottom: 0.2em;
  margin-bottom: 1em;
}
h3 {
  font-size: 1.15rem;
  color: var(--retro-brown);
  font-family: var(--font-display);
}
p, ul, ol, li, blockquote, cite {
  font-family: var(--font-body);
  color: var(--primary);
  margin-bottom: 1em;
}
blockquote {
  font-style: italic;
  color: var(--retro-brown);
  border-left: 4px solid var(--retro-orange);
  padding-left: 1em;
  margin: 0 0 0.5em 0;
  background: var(--retro-yellow);
  border-radius: 0 12px 12px 0;
}
cite {
  display: block;
  font-size: 0.95em;
  color: var(--retro-blue);
  margin-top: 0.2em;
  font-family: var(--font-retro), var(--font-body);
}

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

.section {
  margin-bottom: var(--gap-section);
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  position: relative;
}

/* 4. FLEXBOX PATTERNS */
.features-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-card);
  justify-content: space-between;
}
.features-grid > div, .card {
  flex: 1 1 260px;
  min-width: 220px;
  background: var(--retro-yellow);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  border: 2px solid var(--retro-orange);
  transition: transform 0.18s cubic-bezier(.4,1.4,.6,1), box-shadow 0.18s;
}
.features-grid > div:hover, .card:hover {
  transform: translateY(-6px) scale(1.03) rotate(-1deg);
  box-shadow: 0 8px 32px rgba(44,38,28,0.14);
  border-color: var(--secondary);
}

.card-container {
  gap: var(--gap-card);
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.content-grid {
  gap: var(--gap-content);
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--retro-cream);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  border: 2px dashed var(--retro-orange);
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(44,38,28,0.14);
  border-color: var(--secondary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* 5. HEADER & NAVIGATION */
header {
  background: var(--retro-yellow);
  border-bottom: 4px double var(--secondary);
  box-shadow: 0 2px 12px rgba(44,38,28,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 12px 18px;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 18px;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
nav a {
  font-family: var(--font-display);
  color: var(--primary);
  text-decoration: none;
  font-size: 1.05em;
  padding: 8px 14px;
  border-radius: 16px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
nav a:hover, nav a:focus {
  background: var(--retro-orange);
  color: var(--retro-cream);
}
nav .cta-primary {
  background: var(--retro-red);
  color: var(--retro-cream);
  font-family: var(--font-retro), var(--font-display);
  font-size: 1.1em;
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-btn);
  border: 2px solid var(--secondary);
  margin-left: 10px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
nav .cta-primary:hover, nav .cta-primary:focus {
  background: var(--secondary);
  color: var(--retro-red);
  box-shadow: 0 4px 16px rgba(44,38,28,0.13);
}

/* 6. MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--retro-red);
  color: var(--retro-cream);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 18px;
  box-shadow: var(--shadow-btn);
  transition: background 0.18s, color 0.18s, transform 0.18s;
  z-index: 120;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--retro-red);
  transform: scale(1.08) rotate(-6deg);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(41,48,77,0.97);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.7,1.7,.5,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: var(--retro-yellow);
  color: var(--retro-red);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  margin: 24px 24px 0 0;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--retro-red);
  color: var(--retro-yellow);
  transform: scale(1.08) rotate(6deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 48px 0 0 36px;
}
.mobile-nav a {
  color: var(--retro-yellow);
  font-family: var(--font-retro), var(--font-display);
  font-size: 1.3em;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px dashed var(--secondary);
  width: 100%;
  transition: color 0.18s, background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--retro-orange);
  background: rgba(255,255,255,0.06);
}

@media (max-width: 1024px) {
  nav {
    gap: 10px;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
}
@media (max-width: 768px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container {
    padding: 0 8px;
  }
  .section {
    padding: 28px 8px;
  }
  .features-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* 7. BUTTONS & CTA */
.cta-primary {
  display: inline-block;
  background: var(--retro-red);
  color: var(--retro-cream);
  font-family: var(--font-retro), var(--font-display);
  font-size: 1.1em;
  padding: 12px 32px;
  border-radius: var(--radius-btn);
  border: 2px solid var(--secondary);
  box-shadow: var(--shadow-btn);
  text-decoration: none;
  margin-top: 8px;
  margin-bottom: 8px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--secondary);
  color: var(--retro-red);
  box-shadow: 0 4px 16px rgba(44,38,28,0.13);
  transform: translateY(-2px) scale(1.04);
}
button, .btn {
  font-family: var(--font-retro), var(--font-display);
  background: var(--retro-orange);
  color: var(--primary);
  border: 2px solid var(--secondary);
  border-radius: var(--radius-btn);
  padding: 10px 24px;
  font-size: 1em;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
}
button:hover, .btn:hover, button:focus, .btn:focus {
  background: var(--retro-red);
  color: var(--retro-cream);
  box-shadow: 0 4px 16px rgba(44,38,28,0.13);
  transform: translateY(-2px) scale(1.04);
}

/* 8. FOOTER */
footer {
  background: var(--retro-blue);
  color: var(--retro-cream);
  padding: 40px 0 20px 0;
  border-top: 4px double var(--secondary);
  font-size: 1em;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer nav {
  flex-direction: row;
  gap: 14px;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--retro-yellow);
  font-family: var(--font-display);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 12px;
  transition: background 0.18s, color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--retro-yellow);
  color: var(--retro-blue);
}
footer .legal-links {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.95em;
}
footer .legal-links a {
  color: var(--retro-cream);
  text-decoration: underline;
  transition: color 0.18s;
}
footer .legal-links a:hover, footer .legal-links a:focus {
  color: var(--retro-yellow);
}
footer .social-media {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 0.98em;
}
footer .social-media a {
  color: var(--retro-yellow);
  text-decoration: none;
  font-family: var(--font-retro), var(--font-display);
  margin-left: 4px;
  transition: color 0.18s;
}
footer .social-media a:hover, footer .social-media a:focus {
  color: var(--retro-orange);
}
footer p {
  margin: 0;
  color: var(--retro-cream);
  font-size: 0.95em;
}

/* 9. LISTS, FORMS, MISC */
ul, ol {
  padding-left: 1.3em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}
strong {
  color: var(--retro-red);
  font-weight: 700;
}
a {
  color: var(--retro-red);
  text-decoration: underline;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: var(--retro-blue);
}

/* 10. COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--retro-yellow);
  color: var(--primary);
  box-shadow: 0 -2px 16px rgba(44,38,28,0.13);
  padding: 24px 16px 20px 16px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: cookie-slide-in 0.6s cubic-bezier(.7,1.7,.5,1);
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0;
  font-size: 1em;
  color: var(--primary);
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner button {
  font-family: var(--font-retro), var(--font-display);
  font-size: 1em;
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  border: 2px solid var(--secondary);
  background: var(--retro-orange);
  color: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.cookie-banner button.accept {
  background: var(--retro-green);
  color: var(--retro-cream);
  border-color: var(--retro-brown);
}
.cookie-banner button.reject {
  background: var(--retro-red);
  color: var(--retro-cream);
  border-color: var(--retro-brown);
}
.cookie-banner button.settings {
  background: var(--retro-yellow);
  color: var(--primary);
  border-color: var(--secondary);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--secondary);
  color: var(--retro-red);
  box-shadow: 0 4px 16px rgba(44,38,28,0.13);
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(41,48,77,0.85);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.3s;
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--retro-cream);
  color: var(--primary);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 32px rgba(44,38,28,0.18);
  padding: 36px 28px 28px 28px;
  max-width: 420px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: modal-slide-in 0.4s cubic-bezier(.7,1.7,.5,1);
}
@keyframes modal-slide-in {
  from { transform: translateY(60px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--retro-red);
  font-family: var(--font-retro), var(--font-display);
  font-size: 1.3em;
  margin-bottom: 0.5em;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  font-family: var(--font-body);
  font-size: 1em;
  color: var(--primary);
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--retro-red);
  width: 20px;
  height: 20px;
}
.cookie-modal .cookie-category.essential label {
  color: var(--retro-brown);
  font-weight: bold;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--retro-yellow);
  color: var(--retro-red);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: var(--retro-red);
  color: var(--retro-yellow);
}

/* 11. RESPONSIVE ADJUSTMENTS */
@media (max-width: 600px) {
  h1 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  .features-grid > div, .card {
    min-width: 0;
    padding: 16px 10px;
  }
  .cookie-modal {
    padding: 18px 6vw 18px 6vw;
  }
}

/* 12. RETRO DECORATIVE ELEMENTS */
.section:before {
  content: '';
  display: block;
  position: absolute;
  top: -18px; left: 24px;
  width: 48px; height: 8px;
  background: repeating-linear-gradient(90deg, var(--retro-orange), var(--retro-orange) 8px, var(--retro-yellow) 8px, var(--retro-yellow) 16px);
  border-radius: 8px;
  opacity: 0.45;
  z-index: 1;
}
.section:after {
  content: '';
  display: block;
  position: absolute;
  bottom: -18px; right: 24px;
  width: 48px; height: 8px;
  background: repeating-linear-gradient(90deg, var(--retro-blue), var(--retro-blue) 8px, var(--retro-green) 8px, var(--retro-green) 16px);
  border-radius: 8px;
  opacity: 0.35;
  z-index: 1;
}

/* Hide decorative stripes on mobile */
@media (max-width: 600px) {
  .section:before, .section:after {
    display: none;
  }
}

/* 13. ACCESSIBILITY & FOCUS */
a, button, .cta-primary, .mobile-menu-toggle, .mobile-menu-close, .close-modal {
  outline: none;
}
a:focus, button:focus, .cta-primary:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .close-modal:focus {
  box-shadow: 0 0 0 3px var(--retro-yellow), 0 0 0 6px var(--retro-red);
  outline: none;
}

/* 14. UTILITIES */
.hide {
  display: none !important;
}

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

/* END AstroWeitblick Vintage Retro CSS */
