/* =========================
   Arctic Escape Vintage Retro CSS
   ========================= */

/* 1. Vintage Retro Color Palette (with brand colors as base) */
:root {
  --primary: #1D3557; /* Brand Primary */
  --secondary: #457B9D; /* Brand Secondary */
  --accent: #F1FAEE; /* Brand Accent */
  --retro-orange: #E07A5F;
  --retro-yellow: #F2CC8F;
  --retro-green: #81B29A;
  --retro-brown: #A47149;
  --retro-cream: #FFF8E7;
  --retro-blue: #3D5A80;
  --retro-shadow: rgba(52, 34, 18, 0.12);
  --text-dark: #2D1E2F;
  --text-light: #FFF8E7;
  --border-radius: 14px;
  --section-bg: #FFF8E7;
  --card-bg: #F1FAEE;
  --pattern-dot: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="%23E07A5F"/></svg>');
  --transition: 0.25s cubic-bezier(.4,1.4,.6,1);
}

/* 2. Typography: Vintage-inspired fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap'); /* For accent headings */

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--section-bg);
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 18px;
  letter-spacing: 0.03em;
  font-weight: 900;
}
h1 {
  font-size: 2.3rem;
  font-family: 'Pacifico', 'Montserrat', cursive, sans-serif;
  color: var(--retro-orange);
  text-shadow: 1px 2px 0 var(--retro-yellow), 0 2px 8px var(--retro-shadow);
}
h2 {
  font-size: 1.6rem;
  color: var(--retro-blue);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-bottom: 3px dotted var(--retro-yellow);
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 28px;
}
h3 {
  font-size: 1.2rem;
  color: var(--retro-brown);
  font-weight: 700;
}
h4 {
  font-size: 1.08rem;
  color: var(--retro-green);
  font-weight: 700;
}

p, ul, ol, blockquote {
  margin-bottom: 18px;
}

blockquote {
  font-family: 'Pacifico', cursive, sans-serif;
  color: var(--retro-orange);
  background: var(--retro-yellow);
  border-left: 6px solid var(--retro-brown);
  padding: 18px 24px;
  border-radius: var(--border-radius);
  margin: 0 0 24px 0;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px var(--retro-shadow);
}

ul, ol {
  padding-left: 24px;
}

/* 3. Layout Containers */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--section-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px var(--retro-shadow);
  position: relative;
}

/* 4. Flexbox Patterns */
.card-container, .destination-cards, .guide-cards, .tip-cards, .story-cards, .team-profiles, .testimonial-list, .image-grid, .image-carousel, .featured-articles, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

.card, .destination-cards > div, .guide-cards > div, .tip-cards > div, .story-cards > div, .team-profiles > div, .featured-articles > div, .feature-grid > div {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--retro-shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  min-width: 220px;
  flex: 1 1 260px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover, .destination-cards > div:hover, .guide-cards > div:hover, .tip-cards > div:hover, .story-cards > div:hover, .team-profiles > div:hover, .featured-articles > div:hover, .feature-grid > div:hover {
  transform: translateY(-6px) scale(1.03) rotate(-1deg);
  box-shadow: 0 8px 24px var(--retro-shadow);
  z-index: 2;
}

.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);
  color: var(--text-dark);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--retro-shadow);
  margin-bottom: 20px;
  min-width: 220px;
  flex: 1 1 260px;
  font-size: 1.05rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px var(--retro-shadow);
  transform: scale(1.02) rotate(1deg);
}

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

/* 5. Header & Navigation */
header {
  background: var(--retro-blue);
  border-bottom: 6px double var(--retro-yellow);
  box-shadow: 0 2px 8px var(--retro-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}
header nav {
  display: flex;
  gap: 20px;
}
header nav a {
  color: var(--retro-yellow);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
header nav a:hover, header nav a:focus {
  background: var(--retro-orange);
  color: var(--text-light);
}
.cta-button {
  background: var(--retro-orange);
  color: var(--text-light);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  margin-left: 10px;
  box-shadow: 0 2px 8px var(--retro-shadow);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  position: relative;
  z-index: 1;
}
.cta-button:hover, .cta-button:focus {
  background: var(--retro-yellow);
  color: var(--retro-orange);
  transform: scale(1.04) rotate(-2deg);
}

/* 6. Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: var(--retro-yellow);
  color: var(--retro-orange);
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--retro-shadow);
  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-yellow);
  transform: scale(1.08) rotate(8deg);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--retro-blue);
  color: var(--retro-yellow);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 24px 24px 24px;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(.6,1.4,.4,1), opacity 0.3s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: var(--retro-yellow);
  color: var(--retro-orange);
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 24px;
  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-orange);
  color: var(--retro-yellow);
  transform: scale(1.08) rotate(-8deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  color: var(--retro-yellow);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 10px 0;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--retro-orange);
  color: var(--text-light);
}

/* 7. Hero & Section Patterns */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--section-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px var(--retro-shadow);
  position: relative;
  overflow: hidden;
}
section::before {
  content: '';
  display: block;
  position: absolute;
  top: -30px; left: -30px;
  width: 120px; height: 120px;
  background: var(--pattern-dot);
  opacity: 0.12;
  z-index: 0;
}
section .container, section .content-wrapper {
  position: relative;
  z-index: 1;
}

/* 8. Feature/Filter/Category Buttons */
.feature-grid > div, .region-filters button, .guide-filters button, .category-icons span {
  background: var(--retro-yellow);
  color: var(--retro-brown);
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 22px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px var(--retro-shadow);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  display: inline-block;
}
.region-filters button:hover, .guide-filters button:hover, .category-icons span:hover {
  background: var(--retro-orange);
  color: var(--text-light);
  transform: scale(1.06) rotate(-2deg);
}
.region-filters, .guide-filters, .category-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

/* 9. Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--retro-cream);
  border-radius: 8px;
  padding: 10px 16px;
  box-shadow: 0 2px 8px var(--retro-shadow);
  margin-bottom: 20px;
}
.search-bar label {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--retro-brown);
  font-weight: 700;
}
.search-bar input[type="text"] {
  border: 2px solid var(--retro-yellow);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  background: var(--accent);
  color: var(--primary);
  outline: none;
  transition: border-color var(--transition);
}
.search-bar input[type="text"]:focus {
  border-color: var(--retro-orange);
}

/* 10. Map View, Editor Picks, Accordions, FAQ */
.map-view, .editor-picks, .accordion-faq, .faq-list {
  background: var(--retro-cream);
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px var(--retro-shadow);
  margin-bottom: 20px;
}
.accordion-faq > div, .faq-list > div {
  margin-bottom: 18px;
}
.accordion-faq h4, .faq-list h4 {
  cursor: pointer;
  color: var(--retro-orange);
  font-weight: 700;
  margin-bottom: 6px;
  transition: color var(--transition);
}
.accordion-faq h4:hover, .faq-list h4:hover {
  color: var(--retro-brown);
}

/* 11. Image Grids & Carousels */
.image-grid, .image-carousel {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.image-grid > div, .image-carousel > div {
  background: var(--retro-green);
  color: var(--text-light);
  border-radius: 8px;
  padding: 32px 20px;
  min-width: 180px;
  flex: 1 1 180px;
  text-align: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px var(--retro-shadow);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
}
.image-grid > div:hover, .image-carousel > div:hover {
  background: var(--retro-orange);
  color: var(--retro-yellow);
  transform: scale(1.04) rotate(-2deg);
}

/* 12. Quote Overlay */
.quote-overlay {
  background: var(--retro-yellow);
  border-radius: 8px;
  padding: 18px 24px;
  margin-top: 20px;
  box-shadow: 0 2px 8px var(--retro-shadow);
  font-family: 'Pacifico', cursive, sans-serif;
  color: var(--retro-orange);
  font-size: 1.1rem;
  text-align: center;
}

/* 13. Footer */
footer {
  background: var(--retro-blue);
  color: var(--retro-yellow);
  padding: 36px 0 18px 0;
  border-top: 6px double var(--retro-yellow);
  box-shadow: 0 -2px 8px var(--retro-shadow);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
footer nav {
  display: flex;
  gap: 18px;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--retro-yellow);
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
footer nav a:hover, footer nav a:focus {
  background: var(--retro-orange);
  color: var(--text-light);
}
footer .contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.98rem;
  color: var(--retro-yellow);
  justify-content: center;
}
footer p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--retro-yellow);
}

/* 14. Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--retro-yellow);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 16px 16px 16px;
  box-shadow: 0 -2px 16px var(--retro-shadow);
  z-index: 99999;
  animation: cookie-slide-in 0.6s cubic-bezier(.6,1.4,.4,1);
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0 0 8px 0;
  font-size: 1rem;
  color: var(--text-dark);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button {
  background: var(--retro-orange);
  color: var(--text-light);
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 22px;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--retro-shadow);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--retro-brown);
  color: var(--retro-yellow);
  transform: scale(1.04);
}
.cookie-banner .cookie-settings {
  background: var(--retro-green);
  color: var(--text-light);
}
.cookie-banner .cookie-settings:hover {
  background: var(--retro-orange);
  color: var(--retro-yellow);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(29,53,87,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal .modal-content {
  background: var(--retro-yellow);
  color: var(--text-dark);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 24px var(--retro-shadow);
  padding: 36px 28px 28px 28px;
  max-width: 420px;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modal-pop-in 0.5s cubic-bezier(.6,1.4,.4,1);
}
@keyframes modal-pop-in {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal .modal-content h3 {
  margin-top: 0;
  color: var(--retro-orange);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--retro-brown);
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--retro-orange);
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-category .always-on {
  color: var(--retro-green);
  font-weight: 700;
  font-size: 0.98rem;
  margin-left: 6px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal .modal-actions button {
  background: var(--retro-orange);
  color: var(--text-light);
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 22px;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--retro-shadow);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cookie-modal .modal-actions button:hover, .cookie-modal .modal-actions button:focus {
  background: var(--retro-brown);
  color: var(--retro-yellow);
  transform: scale(1.04);
}

/* 15. Miscellaneous & Utility */
a {
  color: var(--retro-orange);
  text-decoration: underline;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--retro-brown);
}
strong {
  color: var(--retro-brown);
  font-weight: 700;
}

/* 16. Responsive Design (Mobile-First) */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
    padding: 0 10px;
  }
  .card, .destination-cards > div, .guide-cards > div, .tip-cards > div, .story-cards > div, .team-profiles > div, .featured-articles > div, .feature-grid > div {
    min-width: 180px;
    flex: 1 1 180px;
    padding: 18px 12px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 8px;
  }
  header nav {
    display: none;
  }
  .cta-button {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .card-container, .destination-cards, .guide-cards, .tip-cards, .story-cards, .team-profiles, .testimonial-list, .image-grid, .image-carousel, .featured-articles, .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card {
    min-width: 0;
    width: 100%;
  }
  .region-filters, .guide-filters, .category-icons {
    flex-direction: column;
    gap: 10px;
  }
  section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  .cookie-modal .modal-content {
    padding: 18px 8px 18px 8px;
    max-width: 98vw;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 4px;
  }
  .card, .destination-cards > div, .guide-cards > div, .tip-cards > div, .story-cards > div, .team-profiles > div, .featured-articles > div, .feature-grid > div {
    padding: 12px 6px;
  }
  .search-bar {
    flex-direction: column;
    gap: 6px;
    padding: 8px 6px;
  }
  .cookie-banner {
    padding: 14px 4px 8px 4px;
  }
}

/* 17. Accessibility & Focus States */
:focus {
  outline: 2px dashed var(--retro-orange);
  outline-offset: 2px;
}

/* 18. Hide scroll on mobile menu open */
body.mobile-menu-open {
  overflow: hidden;
}

/* 19. Decorative Patterns (optional) */
section.patterned {
  background-image: var(--pattern-dot);
  background-repeat: repeat;
  background-size: 80px 80px;
  opacity: 0.98;
}

/* 20. Prevent Overlapping & Ensure Spacing */
.card, .destination-cards > div, .guide-cards > div, .tip-cards > div, .story-cards > div, .team-profiles > div, .featured-articles > div, .feature-grid > div, .testimonial-card {
  margin-bottom: 20px;
}

/* 21. Z-index for overlays */
.mobile-menu, .cookie-modal, .cookie-banner {
  z-index: 9999;
}

/* 22. Hide mobile menu by default */
.mobile-menu {
  display: flex;
}

/* 23. Hide cookie modal by default */
.cookie-modal {
  display: flex;
}

/* 24. Hide cookie banner if not needed (JS will toggle) */
.cookie-banner.hide {
  display: none !important;
}

/* 25. Hide cookie modal if not open */
.cookie-modal:not(.open) {
  display: none !important;
}
