/* =========================
   Rimug Bolts Vintage Retro CSS
   ========================= */

/* 1. CSS Variables for Brand & Retro Palette */
:root {
  /* Brand Colors */
  --primary: #075985;
  --secondary: #FDB813;
  --accent: #F3F4F6;
  /* Retro Palette */
  --retro-red: #c1440e;
  --retro-green: #7bb661;
  --retro-blue: #3b5d7a;
  --retro-yellow: #ffe066;
  --retro-brown: #a67c52;
  --retro-cream: #fdf6e3;
  --retro-orange: #e07a5f;
  --retro-shadow: rgba(60, 40, 20, 0.12);
  /* Typography */
  --font-display: 'Montserrat', 'Futura', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-body: 'Roboto', 'Georgia', 'Times New Roman', serif;
  /* Spacing */
  --section-mb: 60px;
  --section-py: 40px;
  --section-px: 20px;
  --card-gap: 24px;
  --card-mb: 20px;
  --container-max: 1200px;
  --border-radius: 14px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* 2. Reset & Base Styles */
html {
  box-sizing: border-box;
  font-size: 18px;
  background: var(--retro-cream);
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: #2d2a26;
  background: var(--retro-cream);
  line-height: 1.7;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  border-radius: var(--border-radius);
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--retro-red);
}

/* 3. Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.6em;
  letter-spacing: 0.02em;
  text-shadow: 1px 2px 0 var(--retro-yellow), 0 2px 8px var(--retro-shadow);
}
h1 {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--retro-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--retro-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--retro-green);
}
h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--retro-brown);
}
p {
  margin-top: 0;
  margin-bottom: 1.2em;
  font-size: 1rem;
  color: #3a3327;
}
strong {
  color: var(--retro-red);
  font-weight: 700;
}

/* 4. Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 5. Section Spacing & Patterns */
section {
  margin-bottom: var(--section-mb);
  padding: var(--section-py) var(--section-px);
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 24px var(--retro-shadow);
  position: relative;
}

/* 6. Flexbox Patterns */
.card-container, .feature-grid, .destination-cards, .tour-cards, .team-grid, .gallery, .categories, .tour-filters, .region-filters, .tip-cards, .blog-cards, .faq-accordion {
  display: flex;
  flex-wrap: wrap;
  gap: var(--card-gap);
  margin-bottom: var(--card-mb);
}
.card, .feature-item, .testimonial-card, .faq-accordion > div, .blog-cards > div, .tip-cards > div, .tour-cards > div, .destination-cards > div, .team-grid > div {
  margin-bottom: var(--card-mb);
  position: relative;
  background: var(--retro-cream);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px var(--retro-shadow);
  padding: 24px 20px;
  min-width: 220px;
  flex: 1 1 260px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover, .feature-item:hover, .testimonial-card:hover, .faq-accordion > div:hover, .blog-cards > div:hover, .tip-cards > div:hover, .tour-cards > div:hover, .destination-cards > div:hover, .team-grid > div:hover {
  transform: translateY(-6px) scale(1.03) rotate(-1deg);
  box-shadow: 0 8px 32px var(--retro-shadow);
}

.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: 12px;
  padding: 20px 24px;
  background: var(--retro-yellow);
  color: #2d2a26;
  border-left: 6px solid var(--retro-red);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px var(--retro-shadow);
  font-style: italic;
  margin-bottom: 20px;
  max-width: 600px;
}
.testimonial-card p {
  color: #2d2a26;
  font-size: 1.1rem;
}
.testimonial-card span {
  color: var(--retro-brown);
  font-size: 0.98rem;
  font-style: normal;
  font-weight: 700;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* 7. Buttons & Interactions */
.btn-primary, .btn-secondary, .categories button, .tour-filters button, .region-filters button, .email-signup-form button, .cookie-btn {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 32px;
  padding: 12px 32px;
  margin: 8px 0;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--retro-shadow);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  outline: none;
  letter-spacing: 0.04em;
}
.btn-primary {
  background: linear-gradient(90deg, var(--secondary) 60%, var(--retro-orange) 100%);
  color: #2d2a26;
  text-shadow: 1px 1px 0 #fff8;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, var(--retro-orange) 60%, var(--secondary) 100%);
  color: var(--retro-red);
  transform: scale(1.05) rotate(-2deg);
}
.btn-secondary {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--secondary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--retro-blue);
  color: var(--retro-yellow);
  border-color: var(--retro-red);
  transform: scale(1.05) rotate(2deg);
}
.categories button, .tour-filters button, .region-filters button {
  background: var(--retro-yellow);
  color: var(--retro-brown);
  border: 2px solid var(--retro-brown);
  margin-right: 8px;
  margin-bottom: 8px;
  min-width: 120px;
}
.categories button.active, .tour-filters button.active, .region-filters button.active {
  background: var(--retro-red);
  color: #fff;
  border-color: var(--retro-red);
}
.categories button:hover, .tour-filters button:hover, .region-filters button:hover {
  background: var(--retro-orange);
  color: #fff;
  border-color: var(--retro-orange);
}

/* 8. Forms & Inputs */
input[type="text"], input[type="email"] {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 18px;
  border-radius: 24px;
  border: 2px solid var(--retro-brown);
  background: #fffbe7;
  margin-right: 12px;
  margin-bottom: 12px;
  outline: none;
  transition: border var(--transition), box-shadow var(--transition);
}
input[type="text"]:focus, input[type="email"]:focus {
  border-color: var(--retro-red);
  box-shadow: 0 0 0 2px var(--retro-yellow);
}
.email-signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

/* 9. Header & Navigation */
header {
  background: var(--retro-blue);
  box-shadow: 0 2px 12px var(--retro-shadow);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
header img {
  height: 48px;
  margin-right: 24px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
header nav a {
  color: var(--retro-yellow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
header nav a:hover, header nav a:focus {
  background: var(--retro-yellow);
  color: var(--retro-red);
}
header .btn-primary {
  margin-left: 24px;
  font-size: 1rem;
  padding: 10px 24px;
}
.mobile-menu-toggle {
  display: none;
  background: var(--retro-yellow);
  color: var(--retro-red);
  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;
  margin-left: 16px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--retro-orange);
  color: #fff;
  transform: scale(1.08) rotate(-8deg);
}

/* 10. Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, var(--retro-yellow) 60%, var(--retro-orange) 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 8px 32px var(--retro-shadow);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: var(--retro-red);
  color: #fff;
  border: none;
  font-size: 2.2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin: 24px 0 0 24px;
  align-self: flex-start;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--retro-shadow);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--retro-brown);
  color: var(--retro-yellow);
  transform: scale(1.08) rotate(8deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 40px 0 0 40px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--retro-red);
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 10px 0;
  border-radius: 0;
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--retro-brown);
  background: var(--retro-yellow);
}

/* 11. Footer */
footer {
  background: var(--retro-blue);
  color: var(--retro-yellow);
  padding: 32px 0 16px 0;
  border-top: 6px dotted var(--retro-yellow);
  font-family: var(--font-display);
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--retro-yellow);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
footer nav a:hover, footer nav a:focus {
  color: var(--retro-orange);
}
footer p {
  margin: 0;
  color: var(--retro-yellow);
  font-size: 0.98rem;
}

/* 12. Gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  align-items: flex-start;
}
.gallery img {
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px var(--retro-shadow);
  width: 220px;
  height: 140px;
  object-fit: cover;
  background: var(--retro-yellow);
  margin-bottom: 12px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery img:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 8px 32px var(--retro-shadow);
}

/* 13. Miscellaneous Elements */
.team-photo img {
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px var(--retro-shadow);
  margin-top: 12px;
  width: 100%;
  max-width: 420px;
}
.contact-info {
  background: var(--retro-green);
  color: #fff;
  border-radius: var(--border-radius);
  padding: 18px 24px;
  margin-top: 16px;
  margin-bottom: 16px;
  font-size: 1rem;
  box-shadow: 0 2px 12px var(--retro-shadow);
}
.contact-info strong {
  color: var(--retro-yellow);
}
.map img {
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px var(--retro-shadow);
  margin-top: 12px;
  width: 100%;
  max-width: 420px;
}

/* 14. FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-accordion > div {
  background: var(--retro-yellow);
  border-left: 6px solid var(--retro-red);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px var(--retro-shadow);
  padding: 18px 24px;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
}
.faq-accordion > div:hover {
  background: var(--retro-orange);
  box-shadow: 0 8px 32px var(--retro-shadow);
}
.faq-accordion h4 {
  margin-bottom: 0.4em;
  color: var(--retro-red);
}
.faq-accordion p {
  margin-bottom: 0;
}

/* 15. Cookie Consent Banner & Modal */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, var(--retro-yellow) 80%, var(--retro-orange) 100%);
  color: #2d2a26;
  font-family: var(--font-display);
  font-size: 1.05rem;
  box-shadow: 0 -2px 16px var(--retro-shadow);
  z-index: 99999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  gap: 24px;
  animation: cookie-slide-in 0.6s cubic-bezier(.4,0,.2,1);
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0;
  color: #2d2a26;
  font-size: 1.05rem;
}
.cookie-btn {
  margin-left: 12px;
  min-width: 120px;
  background: var(--retro-red);
  color: #fff;
  border: 2px solid var(--retro-brown);
  border-radius: 32px;
  padding: 10px 24px;
  font-weight: 700;
  transition: background var(--transition), color var(--transition), border var(--transition);
}
.cookie-btn.settings {
  background: var(--retro-yellow);
  color: var(--retro-brown);
  border-color: var(--retro-brown);
}
.cookie-btn.accept {
  background: var(--retro-green);
  color: #fff;
  border-color: var(--retro-green);
}
.cookie-btn.reject {
  background: var(--retro-red);
  color: #fff;
  border-color: var(--retro-red);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--retro-orange);
  color: #fff;
  border-color: var(--retro-orange);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(60,40,20,0.45);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(.4,0,.2,1);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: var(--retro-cream);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px var(--retro-shadow);
  padding: 36px 32px 28px 32px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modal-pop-in 0.4s cubic-bezier(.4,0,.2,1);
}
@keyframes modal-pop-in {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h3 {
  color: var(--retro-red);
  margin-bottom: 0.5em;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--retro-brown);
}
.cookie-toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--retro-yellow);
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
  border: 2px solid var(--retro-brown);
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle .slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--retro-red);
  transition: left var(--transition), background var(--transition);
}
.cookie-toggle input:checked + .slider {
  left: 22px;
  background: var(--retro-green);
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  justify-content: flex-end;
}

/* 16. Responsive Design (Mobile-First) */
@media (max-width: 1024px) {
  .container {
    max-width: 900px;
  }
  .gallery img {
    width: 160px;
    height: 100px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  .container {
    padding: 0 8px;
  }
  section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .card-container, .feature-grid, .destination-cards, .tour-cards, .team-grid, .gallery, .categories, .tour-filters, .region-filters, .tip-cards, .blog-cards, .faq-accordion {
    gap: 14px;
  }
  .card, .feature-item, .testimonial-card, .faq-accordion > div, .blog-cards > div, .tip-cards > div, .tour-cards > div, .destination-cards > div, .team-grid > div {
    min-width: 160px;
    padding: 16px 10px;
  }
  .gallery img {
    width: 110px;
    height: 70px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 14px 10px;
  }
  .email-signup-form {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 8px;
  }
  header nav {
    display: none;
  }
  header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 10px;
    gap: 12px;
    font-size: 0.98rem;
  }
  .cookie-btn {
    min-width: 100px;
    padding: 8px 16px;
    font-size: 0.98rem;
  }
  .cookie-modal-content {
    padding: 20px 8px 16px 8px;
    min-width: 90vw;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .gallery img {
    width: 80px;
    height: 50px;
  }
  .cookie-modal-content {
    min-width: 98vw;
    padding: 10px 2vw 10px 2vw;
  }
}

/* 17. Utility Classes */
.hide {
  display: none !important;
}

/* 18. Decorative Retro Patterns */
section:before {
  content: '';
  display: block;
  position: absolute;
  left: -24px;
  top: -24px;
  width: 60px;
  height: 60px;
  background: repeating-linear-gradient(135deg, var(--retro-yellow), var(--retro-yellow) 8px, var(--retro-orange) 8px, var(--retro-orange) 16px);
  opacity: 0.12;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
section:after {
  content: '';
  display: block;
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 60px;
  height: 60px;
  background: repeating-linear-gradient(45deg, var(--retro-green), var(--retro-green) 8px, var(--retro-blue) 8px, var(--retro-blue) 16px);
  opacity: 0.10;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* 19. Accessibility: Focus Styles */
a:focus, button:focus, input:focus {
  outline: 2px dashed var(--retro-red);
  outline-offset: 2px;
}

/* 20. Prevent Overlapping */
.card, .feature-item, .testimonial-card, .faq-accordion > div, .blog-cards > div, .tip-cards > div, .tour-cards > div, .destination-cards > div, .team-grid > div {
  z-index: 1;
}

/* 21. Prevent Absolute Positioning for Content */
/* Only decorative section:before/after use absolute */

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