/* --------------------------------------------------
   Elixirra Adventures – Luxury Premium CSS Theme
   Author: Senior CSS Developer & UI Designer
   -------------------------------------------------- */

/* 1. FONT IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
  /* Brand Colors */
  --color-primary: #224261;
  --color-secondary: #E9EFF6;
  --color-bg: #fff;
  --color-accent: #1BA97B;
  --color-accent-dark: #13795A;
  --color-gold: #C9A14A;
  --color-gold-light: #F6E7C1;
  --color-grey: #F5F6FA;
  --color-dark: #1A2633;
  --color-text: #222;
  --color-muted: #6B7A8F;
  --color-shadow: rgba(34, 66, 97, 0.08);
  --color-shadow-dark: rgba(34, 66, 97, 0.16);
  --color-error: #D7263D;
  /* Typography */
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  /* Spacing */
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 32px;
  --shadow: 0 4px 24px var(--color-shadow);
  --shadow-lg: 0 8px 32px var(--color-shadow-dark);
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --transition-fast: 0.15s cubic-bezier(.4,0,.2,1);
  --header-height: 80px;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.7;
  font-size: 1rem;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(120deg, #f8fafc 0%, #e9eff6 100%);
}

/* 2. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 0.7em;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin-bottom: 0.5em;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 0.5em;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4em;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 0.3em;
}
p, ul, ol {
  margin-top: 0;
  margin-bottom: 1.1em;
  color: var(--color-text);
  font-size: 1rem;
}
strong {
  color: var(--color-primary);
  font-weight: 600;
}
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--color-gold);
  text-decoration: underline;
}

/* 3. LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* 4. HEADER & NAVIGATION */
header {
  background: var(--color-bg);
  box-shadow: 0 2px 16px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 24px;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 24px;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
nav a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
nav a:hover, nav a:focus {
  color: var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
}

.cta-primary {
  display: inline-block;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-accent-dark) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px var(--color-shadow);
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  margin-left: 16px;
  text-shadow: 0 1px 2px rgba(34,66,97,0.08);
  position: relative;
  overflow: hidden;
}
.cta-primary:after {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(201,161,74,0.15) 0%, rgba(27,169,123,0.10) 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg, var(--color-accent-dark) 0%, var(--color-gold) 100%);
  color: #fff;
  box-shadow: 0 4px 24px var(--color-shadow-dark);
  transform: translateY(-2px) scale(1.03);
}
.cta-primary:hover:after, .cta-primary:focus:after {
  opacity: 1;
}

/* 5. MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 16px;
  transition: color var(--transition);
  z-index: 120;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-gold);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,66,97,0.98);
  z-index: 200;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  animation: mobileMenuSlideIn 0.35s cubic-bezier(.4,0,.2,1);
}
@keyframes mobileMenuSlideIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-gold);
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 24px 32px 0 0;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  align-items: flex-start;
  margin: 40px 0 0 40px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
}

/* 6. HERO SECTION */
.hero-section {
  background: linear-gradient(120deg, var(--color-secondary) 0%, var(--color-bg) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 60px;
  padding: 60px 0 60px 0;
  position: relative;
  overflow: hidden;
}
.hero-section .container {
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.hero-section .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 20px;
}
.hero-section h1 {
  font-size: 2.7rem;
  color: var(--color-primary);
  margin-bottom: 0.3em;
  text-shadow: 0 2px 8px rgba(201,161,74,0.07);
}
.hero-section p {
  font-size: 1.2rem;
  color: var(--color-muted);
  margin-bottom: 1.2em;
}

/* 7. FEATURE GRID & CARDS */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 20px;
  justify-content: space-between;
}
.feature-grid > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1.5px solid var(--color-gold-light);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  position: relative;
}
.feature-grid > div:before {
  content: '';
  display: block;
  position: absolute;
  left: 18px; top: 18px;
  width: 24px; height: 3px;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-accent-dark) 100%);
  border-radius: 2px;
  opacity: 0.18;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 8px 32px var(--color-shadow-dark);
  border-color: var(--color-gold);
  transform: translateY(-4px) scale(1.03);
}
.feature-grid h3 {
  color: var(--color-gold);
  font-size: 1.1rem;
  margin-bottom: 0.2em;
}
.feature-grid p {
  color: var(--color-muted);
  font-size: 1rem;
}

/* 8. GALLERY SLIDER */
.gallery-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 10px;
  justify-content: flex-start;
}
.gallery-slider > div {
  background: var(--color-secondary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 20px 18px;
  min-width: 220px;
  max-width: 340px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.gallery-slider > div:hover {
  box-shadow: 0 6px 24px var(--color-shadow-dark);
  transform: translateY(-2px) scale(1.02);
}
.gallery-slider strong {
  color: var(--color-accent-dark);
}

/* 9. TESTIMONIALS */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border-left: 5px solid var(--color-gold);
  color: var(--color-dark);
  font-size: 1.08rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 32px var(--color-shadow-dark);
  border-left: 5px solid var(--color-accent-dark);
}
.testimonial-card p {
  color: var(--color-dark);
  margin: 0 0 0.2em 0;
  font-style: italic;
}
.testimonial-card span {
  color: var(--color-muted);
  font-size: 0.98rem;
  font-family: var(--font-body);
}

/* 10. FLEXBOX LAYOUTS (MANDATORY PATTERNS) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px var(--color-shadow-dark);
  transform: translateY(-2px) scale(1.02);
}
.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;
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* 11. FOOTER */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 40px 0 24px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-menu a {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  transition: color var(--transition);
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #fff;
  text-decoration: underline;
}
.contact-info {
  color: #fff;
  font-size: 0.98rem;
  opacity: 0.85;
  margin-bottom: 8px;
  text-align: center;
}
.brand-logo img {
  height: 38px;
  width: auto;
  margin-top: 8px;
}

/* 12. LISTS */
ul, ol {
  padding-left: 1.2em;
}
ul li, ol li {
  margin-bottom: 0.5em;
  color: var(--color-text);
  font-size: 1rem;
}
ul li strong, ol li strong {
  color: var(--color-gold);
}

/* 13. RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .container {
    max-width: 900px;
  }
  .feature-grid > div, .gallery-slider > div {
    min-width: 180px;
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
  .feature-grid, .gallery-slider, .content-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  header .container {
    flex-direction: row;
    gap: 12px;
    padding: 0 10px;
  }
  nav {
    display: none;
  }
  .cta-primary {
    margin-left: 0;
    margin-top: 8px;
    font-size: 1rem;
    padding: 10px 20px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid, .gallery-slider, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .gallery-slider > div {
    min-width: 0;
    max-width: 100%;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .hero-section {
    padding: 36px 0;
  }
  footer {
    padding: 28px 0 16px 0;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .hero-section h1 {
    font-size: 1.5rem;
  }
  .footer-menu {
    gap: 12px;
    flex-direction: column;
    align-items: center;
  }
  .brand-logo img {
    height: 28px;
  }
}

/* 14. COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 -2px 24px var(--color-shadow-dark);
  border-top: 3px solid var(--color-gold);
  z-index: 300;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  font-size: 1rem;
  animation: cookieBannerSlideIn 0.5s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieBannerSlideIn {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner__text {
  flex: 1 1 60%;
  color: var(--color-primary);
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: none;
  padding: 10px 22px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px var(--color-shadow);
}
.cookie-btn.accept {
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-accent-dark) 100%);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: linear-gradient(90deg, var(--color-accent-dark) 0%, var(--color-gold) 100%);
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-accent-dark);
  border: 2px solid var(--color-accent-dark);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-accent-dark);
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-gold);
  color: #fff;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 10px;
    font-size: 0.98rem;
  }
  .cookie-banner__actions {
    gap: 10px;
  }
}

/* 15. COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34,66,97,0.85);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
  animation: cookieModalFadeIn 0.4s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 48px var(--color-shadow-dark);
  padding: 38px 32px 28px 32px;
  max-width: 420px;
  width: 90vw;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: cookieModalPopIn 0.4s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieModalPopIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--color-gold);
  margin-bottom: 0.5em;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
}
.cookie-modal .cookie-toggle {
  width: 38px;
  height: 22px;
  background: var(--color-secondary);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
  border: 1.5px solid var(--color-accent-dark);
}
.cookie-modal .cookie-toggle[aria-checked="true"] {
  background: var(--color-accent-dark);
}
.cookie-modal .cookie-toggle .toggle-knob {
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px var(--color-shadow);
  transition: left var(--transition);
}
.cookie-modal .cookie-toggle[aria-checked="true"] .toggle-knob {
  left: 18px;
}
.cookie-modal .cookie-category.essential label {
  color: var(--color-muted);
  font-style: italic;
}
.cookie-modal .cookie-category.essential .cookie-toggle {
  opacity: 0.5;
  pointer-events: none;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  color: var(--color-gold);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  color: var(--color-accent-dark);
}
@media (max-width: 480px) {
  .cookie-modal {
    padding: 18px 8px 18px 8px;
    max-width: 98vw;
  }
}

/* 16. MICRO-INTERACTIONS & TRANSITIONS */
button, .cta-primary, .cookie-btn, .cookie-modal-close, .mobile-menu-toggle, .mobile-menu-close {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

/* 17. FORM ELEMENTS (for kontakt page) */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-secondary);
  padding: 10px 14px;
  margin-bottom: 16px;
  width: 100%;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 1px 4px var(--color-shadow);
  transition: border-color var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-gold);
  outline: none;
}
label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
  display: block;
}

/* 18. MISC */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold-light);
  border-radius: 8px;
}

/* 19. ACCESSIBILITY */
:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* 20. LUXURY DETAILS */
.section, .card, .feature-grid > div, .gallery-slider > div, .testimonial-card {
  border: 1.5px solid var(--color-gold-light);
  box-shadow: var(--shadow);
}

/* 21. Z-INDEX LAYERS */
header { z-index: 100; }
.mobile-menu { z-index: 200; }
.cookie-banner { z-index: 300; }
.cookie-modal-overlay { z-index: 400; }

/* 22. PREVENT OVERLAPPING */
.section, .card, .feature-grid > div, .gallery-slider > div, .testimonial-card {
  margin-bottom: 20px;
}

/* 23. PRINT STYLES */
@media print {
  header, footer, .cookie-banner, .cookie-modal-overlay, .mobile-menu { display: none !important; }
  body { background: #fff !important; }
}
