/* RedeGlanz Vintage Retro CSS Theme */

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

:root {
  /* Brand Colors */
  --primary: #133A5E;
  --secondary: #E0C068;
  --accent: #FFFFFF;
  /* Vintage Retro Palette */
  --retro-red: #C1440E;
  --retro-blue: #3B5D76;
  --retro-cream: #F5E9DA;
  --retro-brown: #7C5C36;
  --retro-green: #A3B18A;
  --retro-orange: #E07A5F;
  --retro-shadow: rgba(60, 40, 20, 0.10);
  /* Typography */
  --font-display: 'DM Serif Display', 'Montserrat', serif;
  --font-body: 'Roboto', 'Quicksand', Arial, sans-serif;
  /* Spacing */
  --section-mb: 60px;
  --section-py: 40px;
  --section-px: 20px;
  --card-gap: 24px;
  --card-mb: 20px;
  --flex-gap: 20px;
  --testimonial-gap: 20px;
  --feature-gap: 15px;
  /* Shadows */
  --shadow-card: 0 4px 16px var(--retro-shadow);
  --shadow-btn: 0 2px 8px var(--retro-shadow);
  /* Border Radius */
  --radius-card: 14px;
  --radius-btn: 24px;
  /* Z-Index */
  --z-cookie: 9999;
  --z-mobile-menu: 9998;
}

html {
  box-sizing: border-box;
  font-size: 18px;
  scroll-behavior: smooth;
  background: var(--retro-cream);
}
*, *: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.6;
  letter-spacing: 0.01em;
}

/* 2. LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

section {
  margin-bottom: var(--section-mb);
  padding: var(--section-py) var(--section-px);
  background: var(--accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  position: relative;
}

/* 3. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.5em;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.2rem;
  font-weight: 700;
  text-shadow: 1px 2px 0 var(--secondary), 0 2px 8px var(--retro-shadow);
  color: var(--retro-red);
}
h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--retro-blue);
  border-bottom: 2px dashed var(--secondary);
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 0.7em;
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--retro-brown);
}
h4, h5, h6 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}
p, ul, ol, address, blockquote {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 1em;
}
blockquote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--retro-orange);
  border-left: 4px solid var(--secondary);
  padding-left: 16px;
  margin: 0 0 1em 0;
}
ul, ol {
  padding-left: 1.2em;
  margin-top: 0;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
  position: relative;
}
li::before {
  content: '\2022';
  color: var(--retro-orange);
  font-size: 1.2em;
  position: absolute;
  left: -1.2em;
  top: 0.1em;
}
address {
  font-style: normal;
  background: var(--retro-green);
  color: var(--primary);
  padding: 12px 18px;
  border-radius: 8px;
  margin-bottom: 1em;
  box-shadow: 0 2px 8px var(--retro-shadow);
}
a {
  color: var(--retro-red);
  text-decoration: underline dotted;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--retro-blue);
  text-decoration: underline wavy;
}

/* 4. HEADER & NAVIGATION */
header {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 2px 12px var(--retro-shadow);
  position: relative;
  z-index: 10;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  min-height: 72px;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px var(--retro-shadow));
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.main-nav .cta-btn {
  background: var(--secondary);
  color: var(--primary);
  font-weight: bold;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-btn);
  padding: 10px 24px;
  margin-left: 12px;
  text-shadow: 0 1px 0 var(--accent);
  border: 2px solid var(--retro-brown);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.main-nav .cta-btn:hover, .main-nav .cta-btn:focus {
  background: var(--retro-orange);
  color: var(--accent);
  box-shadow: 0 4px 16px var(--retro-shadow);
}

/* Hamburger Button */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  margin-left: 18px;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--retro-orange);
  color: var(--accent);
}

/* 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(--secondary) 100%);
  z-index: var(--z-mobile-menu);
  padding: 32px 24px 24px 24px;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  box-shadow: 0 0 0 100vw rgba(19,58,94,0.12);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: var(--retro-orange);
  color: var(--accent);
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--retro-red);
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--primary);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px dashed var(--retro-brown);
  transition: color 0.2s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--retro-orange);
}

/* 5. FOOTER */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 32px 0 16px 0;
  border-top: 6px double var(--secondary);
  font-size: 0.95rem;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--secondary);
  text-decoration: underline dotted;
  font-family: var(--font-display);
  font-size: 1rem;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--retro-orange);
}
footer p {
  text-align: center;
  margin: 0;
  color: var(--accent);
}

/* 6. FLEXBOX LAYOUTS (MANDATORY PATTERNS) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--card-gap);
}
.card {
  background: var(--retro-cream);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--card-mb);
  padding: 24px 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 320px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px var(--retro-shadow);
  transform: translateY(-4px) scale(1.02);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--flex-gap);
  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: var(--testimonial-gap);
  padding: 20px;
  background: var(--retro-cream);
  border-left: 8px solid var(--retro-orange);
  border-radius: var(--radius-card);
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  color: var(--primary);
  font-family: var(--font-body);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 32px var(--retro-shadow);
  border-left-color: var(--retro-red);
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.05rem;
  margin: 0 0 0.5em 0;
}
.testimonial-card span {
  color: var(--retro-brown);
  font-size: 0.98rem;
  font-style: italic;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--feature-gap);
  background: var(--retro-green);
  padding: 18px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--retro-shadow);
  margin-bottom: 20px;
}

/* Custom Grids for Features/Benefits */
.feature-grid, .benefits-grid, .trainer-profiles, .image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div, .benefits-grid > div, .trainer-profiles > div {
  flex: 1 1 260px;
  min-width: 220px;
  background: var(--retro-cream);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 16px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-grid > div:hover, .benefits-grid > div:hover, .trainer-profiles > div:hover {
  box-shadow: 0 8px 32px var(--retro-shadow);
  transform: translateY(-4px) scale(1.02);
}
.image-gallery {
  gap: 20px;
  margin-bottom: 20px;
}
.image-gallery img {
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--retro-shadow);
  width: 100%;
  max-width: 260px;
  height: auto;
  object-fit: cover;
  background: var(--retro-green);
  border: 3px solid var(--secondary);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.image-gallery img:hover, .image-gallery img:focus {
  box-shadow: 0 8px 32px var(--retro-shadow);
  border-color: var(--retro-orange);
}

/* 7. BUTTONS & CTA */
.cta-btn, .btn, button, input[type="submit"] {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: bold;
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--retro-brown);
  border-radius: var(--radius-btn);
  padding: 12px 32px;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  display: inline-block;
  margin-top: 8px;
}
.cta-btn:hover, .cta-btn:focus, .btn:hover, .btn:focus, button:hover, button:focus, input[type="submit"]:hover, input[type="submit"]:focus {
  background: var(--retro-orange);
  color: var(--accent);
  border-color: var(--retro-red);
  box-shadow: 0 8px 32px var(--retro-shadow);
}

/* 8. SPECIAL ELEMENTS */
.benefits-list ul {
  background: var(--retro-green);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 0 0 1em 0;
  box-shadow: 0 2px 8px var(--retro-shadow);
}
.course-categories, .categories-filter {
  background: var(--retro-brown);
  color: var(--accent);
  border-radius: 8px;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-top: 8px;
  margin-bottom: 12px;
  display: inline-block;
}
.contact-info-snippet {
  background: var(--retro-green);
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 16px;
  box-shadow: 0 2px 8px var(--retro-shadow);
}
.map img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--retro-shadow);
  margin-top: 12px;
}

/* 9. COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-cookie);
  background: linear-gradient(90deg, var(--retro-cream) 80%, var(--secondary) 100%);
  color: var(--primary);
  box-shadow: 0 -2px 16px var(--retro-shadow);
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  animation: slideUp 0.6s cubic-bezier(.77,0,.18,1);
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 8px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: bold;
  border-radius: var(--radius-btn);
  border: 2px solid var(--retro-brown);
  padding: 10px 22px;
  cursor: pointer;
  background: var(--secondary);
  color: var(--primary);
  box-shadow: var(--shadow-btn);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cookie-banner button.accept {
  background: var(--retro-green);
  color: var(--primary);
  border-color: var(--retro-brown);
}
.cookie-banner button.reject {
  background: var(--retro-orange);
  color: var(--accent);
  border-color: var(--retro-red);
}
.cookie-banner button.settings {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--retro-brown);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--retro-red);
  color: var(--accent);
  border-color: var(--retro-orange);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: calc(var(--z-cookie) + 1);
  background: rgba(19,58,94,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s cubic-bezier(.77,0,.18,1);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: var(--retro-cream);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 32px var(--retro-shadow);
  padding: 32px 24px 24px 24px;
  max-width: 420px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: popIn 0.5s cubic-bezier(.77,0,.18,1);
}
@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h2 {
  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 .cookie-category label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal-content .cookie-category input[type="checkbox"] {
  accent-color: var(--retro-orange);
  width: 20px;
  height: 20px;
}
.cookie-modal-content .cookie-category.essential label {
  font-weight: bold;
  color: var(--retro-brown);
}
.cookie-modal-content .cookie-category.essential input[type="checkbox"] {
  accent-color: var(--retro-green);
}
.cookie-modal-content .cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--retro-orange);
  color: var(--accent);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background 0.2s, color 0.2s;
}
.cookie-modal-content .cookie-modal-close:hover, .cookie-modal-content .cookie-modal-close:focus {
  background: var(--retro-red);
  color: var(--accent);
}
.cookie-modal-content .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal-content button {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: bold;
  border-radius: var(--radius-btn);
  border: 2px solid var(--retro-brown);
  padding: 10px 22px;
  cursor: pointer;
  background: var(--secondary);
  color: var(--primary);
  box-shadow: var(--shadow-btn);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cookie-modal-content button.save {
  background: var(--retro-green);
  color: var(--primary);
  border-color: var(--retro-brown);
}
.cookie-modal-content button.cancel {
  background: var(--retro-orange);
  color: var(--accent);
  border-color: var(--retro-red);
}
.cookie-modal-content button:hover, .cookie-modal-content button:focus {
  background: var(--retro-red);
  color: var(--accent);
  border-color: var(--retro-orange);
}

/* 10. RESPONSIVE DESIGN */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 14px;
  }
  .footer-nav {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  .container {
    padding: 0 8px;
  }
  section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
  .feature-grid, .benefits-grid, .trainer-profiles, .image-gallery, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }
  .map img {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  .logo img {
    height: 36px;
  }
  .cookie-modal-content {
    padding: 18px 6px 12px 6px;
  }
}

/* 11. MICRO-INTERACTIONS */
.cta-btn, .btn, button, input[type="submit"] {
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s, transform 0.1s;
}
.cta-btn:active, .btn:active, button:active, input[type="submit"]:active {
  transform: scale(0.97);
}
.card:active, .feature-grid > div:active, .benefits-grid > div:active {
  transform: scale(0.98);
}

/* 12. UTILITY CLASSES */
.hide {
  display: none !important;
}

/* 13. ACCESSIBILITY FOCUS */
a:focus, button:focus, .cta-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px dashed var(--retro-orange);
  outline-offset: 2px;
}

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