.hero-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0;
  margin-bottom: 2rem;
  width: 100%;
}

/* ========================================
   MAIN PAGE STYLES - MODERN MINIMALIST VERSION
======================================== */

:root {
  --font-head: "Source Sans 3", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  
  /* October palette */
  --clr-diamond: #ffffff;
  --clr-silver: #bfa793;        /* piaskowe tło */
  --clr-icy-lake: #e1a93b;      /* złoty bursztyn */
  --clr-golden: #ba643d;        /* rdza wpadająca w miedź */
  --clr-sapphire: #797148;      /* oliwkowa zieleń */
  --clr-black-tie: #836239;     /* ziemista baza */
  
  --clr-deep-burgundy: #752d18;
  --clr-burnt-orange: #bd8435;
  --clr-warm-amber: #bd8435;
  --clr-golden-yellow: #e1a93b;
  --clr-lime-green: #565736;
  --clr-olive-green: #797148;
  --clr-dark-olive: #565736;
  
  --clr-autumn-orange: #bd8435;
  --clr-autumn-brown: #752d18;
  --clr-autumn-cream: #bfa793;
  --clr-autumn-gold: #e1a93b;
  
  --clr-dark: var(--clr-black-tie);
  --clr-light: var(--clr-diamond);
  --clr-accent: var(--clr-golden);
  --clr-secondary: var(--clr-sapphire);
  --clr-bg-light: var(--clr-silver);
  --clr-bg-subtle: var(--clr-icy-lake);
  --clr-bg-main: #E8E7E7;
  --clr-text-dark: #000000;
  --clr-text-light: #ffffff;
  
  --transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  background: var(--clr-bg-main);
}

/* Only hide overflow on main page */
/* Global Layout */
:root {
  --navbar-height: 70px;
}

body.main-page {
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--clr-text-dark);
  position: relative;
}

/* Loading Screen - Minimal line animation */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--clr-bg-main);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease-out;
}

.loading-screen.loaded {
  opacity: 0;
  pointer-events: none;
}

.loading-line {
  width: 100px;
  height: 1px;
  background: var(--clr-golden);
  position: relative;
  overflow: hidden;
}

.loading-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--clr-light);
  animation: loadingSlide 1.5s ease-in-out infinite;
}

@keyframes loadingSlide {
  to { left: 100%; }
}

/* Page Background */
.page-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #032221;
  z-index: 1;
}

/* Logo Container */
.logo-container {
  display: none;
  position: relative;
  margin: 0 auto 1.5rem;
  text-align: center;
  background: var(--clr-bg-main);
  padding: 1rem 1.5rem;
  border-radius: 0;
  box-shadow: none;
  border: none;
  z-index: 2;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: var(--clr-golden);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(117, 45, 24, 0.1);
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  z-index: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.top-nav .branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 1px;
}

.top-nav .branding img {
  height: 48px;
}

.top-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.top-nav-links a {
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: #fff;
  transition: color 0.2s ease;
}

.top-nav-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.hero-photo {
  position: relative;
  z-index: 5;
  width: min(80vw, 700px);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(117, 45, 24, 0.08);
  background: var(--clr-bg-main);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-text {
  max-width: 700px;
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--clr-text-dark);
  line-height: 1.6;
  background: var(--clr-bg-main);
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(117, 45, 24, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.logo-text {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 200;
  letter-spacing: 4px;
  color: var(--clr-text-dark);
  margin: 0;
}

.mobile-only {
  display: none;
}

/* Main container */
.main-container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  gap: 0;
  width: 100%;
  max-width: 100%;
}

/* Static Text Section - Hidden for restaurant */
.static-text-container {
  display: none;
}

.main-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 100;
  letter-spacing: 4px;
  margin-bottom: 0.5rem;
  color: var(--clr-text-dark);
  opacity: 0.9;
}

.main-subtitle {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 200;
  letter-spacing: 6px;
  color: var(--clr-text-dark);
  margin-bottom: 1.5rem;
}

.subtitle {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 200;
  opacity: 0.7;
  letter-spacing: 2px;
}

/* Desktop Navigation Container */
.desktop-nav-container {
  display: none;
  position: fixed;
  bottom: 4rem;
  left: 0;
  right: 0;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 4rem;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.5s forwards;
  z-index: 10;
}

/* Primary Navigation (Blue Areas) - Large Buttons - LEFT SIDE */
.primary-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Restaurant Navigation - 4 items in 2x2 grid with icons above text */
.restaurant-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 600px;
}

.primary-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--clr-text-light);
  background: var(--clr-accent);
  border: 1px solid var(--clr-border-strong);
  border-radius: 0;
  padding: 1.5rem 1rem;
  min-width: auto;
  transition: all 0.3s ease;
  position: relative;
  opacity: 0.9;
}

.primary-nav-item::before {
  display: none;
}

.primary-nav-item:hover {
  transform: translateY(-3px);
  opacity: 1;
  background: var(--clr-secondary);
}

.primary-nav-item:hover::before {
  display: none;
}

.nav-icon {
  font-size: 2rem;
  color: var(--clr-text-light);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.primary-nav-item:hover .nav-icon {
  transform: scale(1.1);
  color: var(--clr-text-light);
}

.primary-nav-item .nav-text {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  text-align: center;
}

.primary-nav-item .nav-text,
.primary-nav-item:hover .nav-text {
  color: var(--clr-text-light);
}

.primary-nav-item .nav-description {
  display: none;
}

/* Secondary Navigation (Green Area) - Smaller Buttons - RIGHT SIDE */
.secondary-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.secondary-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--clr-text-dark);
  background: var(--clr-bg-neutral);
  border: 1px solid var(--clr-border-strong);
  border-radius: 0;
  padding: 0.8rem 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  opacity: 0.9;
  min-width: 180px;
  justify-content: center;
}

.secondary-nav-item:hover {
  opacity: 1;
  background: var(--clr-bg-subtle);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.secondary-nav-item i {
  color: var(--clr-text-dark);
  font-size: 1.1rem;
}

/* Footer - minimal */
.minimal-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
  opacity: 0;
  animation: fadeIn 1s ease-out 2s forwards;
  background: #032221;
  color: #fff;
  padding: 1rem 2rem 1.5rem;
}

/* Desktop Navigation - show only on desktop */
.desktop-nav {
  display: flex;
}

/* Mobile Tiles Container - hidden on desktop */
.mobile-tiles-container {
  display: none;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.social-links a {
  color: var(--clr-text-dark);
  font-size: 1rem;
  transition: all 0.3s ease;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.social-links a:hover {
  color: var(--clr-text-dark);
  opacity: 1;
  transform: translateY(-2px);
}

.minimal-footer .social-links a {
  color: #fff;
  opacity: 0.85;
}

.minimal-footer .social-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.minimal-footer .legal-links a,
.minimal-footer .copyright {
  color: #fff;
  opacity: 0.9;
}

.contact-text {
  font-size: 0.85rem;
  font-family: var(--font-body);
  letter-spacing: 0.5px;
}

.legal-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.legal-links a {
  color: var(--clr-text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  letter-spacing: 0.5px;
}

.legal-links a:hover {
  color: var(--clr-text-dark);
  opacity: 0.8;
  text-decoration: underline;
}

.link-separator {
  color: var(--clr-text-dark);
  opacity: 0.3;
  margin: 0 0.25rem;
}

/* Page footer for subpages */
.page-footer {
  background: #032221;
  backdrop-filter: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 3rem;
  color: #fff;
}

.page-footer .legal-links {
  margin-bottom: 1rem;
}

.page-footer .legal-links a {
  color: #fff;
  opacity: 0.9;
}

.page-footer .legal-links a:hover {
  color: #fff;
  opacity: 1;
}

.page-footer .copyright {
  font-size: 0.75rem;
  color: #fff;
  opacity: 0.7;
  margin-top: 0.5rem;
}

/* Contact info display on desktop */
@media (min-width: 769px) {
  .social-links {
    flex-direction: row;
    gap: 2rem;
  }
  
  .contact-text {
    display: inline;
  }
}

.copyright {
  font-size: 0.7rem;
  opacity: 0.3;
  letter-spacing: 1px;
}

/* Modal - minimal design */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--clr-golden);
  border-radius: 0;
  padding: 3rem;
  width: 90%;
  max-width: 400px;
  position: relative;
  animation: fadeInScale 0.3s ease-out;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--clr-text-dark);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.modal-close:hover {
  color: var(--clr-text-dark);
  opacity: 1;
}

.modal-content h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--clr-text-dark);
  letter-spacing: 2px;
}

#loginForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#loginForm input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(117, 45, 24, 0.3);
  color: var(--clr-text-dark);
  padding: 0.8rem 0;
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

#loginForm input:focus {
  outline: none;
  border-bottom-color: var(--clr-golden);
}

#loginForm button {
  background: var(--clr-bg-subtle);
  color: var(--clr-text-dark);
  border: 1px solid var(--clr-border-strong);
  padding: 0.8rem;
  margin-top: 1rem;
  font-family: var(--font-head);
  font-weight: 300;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

#loginForm button:hover {
  background: var(--clr-bg-neutral);
  color: var(--clr-text-dark);
}

.login-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  opacity: 0.5;
  font-style: italic;
}

/* Animations */
@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Tiles Styles */
.mobile-tiles-container {
  position: fixed;
  bottom: 65px; /* Right above bottom bar (60px height + 5px gap) */
  left: 0;
  right: 0;
  height: auto;
  max-height: auto;
  background: transparent;
  backdrop-filter: none;
  border-top: none;
  z-index: 20;
  display: none;
  animation: slideUp 0.6s ease-out 1.5s forwards;
}

.mobile-tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem;
  height: auto;
  box-sizing: border-box;
}

/* Restaurant tiles - 4 items in 2x2 grid */
.restaurant-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Mobile Bottom Bar */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 60px;
  background: #032221;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0,0,0,0.05);
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  z-index: 30;
  gap: 1rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.mobile-bottom-bar .social-links {
  display: flex;
  gap: 1.2rem;
  margin: 0;
}

.mobile-bottom-bar .social-links a {
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  opacity: 0.9;
}

.mobile-bottom-bar .social-links a:hover {
  color: rgba(255, 255, 255, 0.8);
  opacity: 1;
}

.mobile-bottom-bar .mobile-legal-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.mobile-bottom-bar .mobile-legal-links a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}

.mobile-bottom-bar .mobile-legal-links a:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

.mobile-bottom-bar .mobile-legal-links .link-separator {
  color: var(--clr-text-light);
  opacity: 0.5;
  margin: 0 0.25rem;
}

.mobile-bottom-bar .settings-gear {
  position: relative;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-bottom-bar .settings-gear:hover {
  background: rgba(255,255,255,0.25);
  transform: rotate(90deg);
}

.mobile-bottom-bar .settings-gear i {
  color: #fff;
  font-size: 16px;
}

.mobile-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--clr-text-dark);
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  opacity: 0.9;
}

.mobile-tile::before {
  display: none;
}

.mobile-tile:hover::before {
  display: none;
}

.mobile-tile:hover {
  transform: translateY(-3px);
  opacity: 1;
}

.tile-icon {
  font-size: 1.5rem;
  color: var(--clr-text-dark);
  margin-bottom: 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.mobile-tile:hover .tile-icon {
  transform: scale(1.1);
  color: var(--clr-text-dark);
}

.tile-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.tile-content h3 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 1.5px;
  margin: 0;
  color: var(--clr-text-dark);
  transition: all 0.3s ease;
}

.mobile-tile:hover .tile-content h3 {
  color: var(--clr-text-dark);
  opacity: 0.8;
}

/* Desktop specific styles */
@media (min-width: 769px) {
  .desktop-nav-container {
    display: none !important;
  }
  
  .top-nav {
    display: flex;
  }
  
  .logo-container {
    display: none;
  }
  
  .main-container {
    padding: 0;
    width: 100%;
    max-width: 100%;
  }
  
  .hero-photo {
    width: 100%;
    max-width: none;
  }
  
  /* Hide mobile elements on desktop */
  .mobile-tiles-container,
  .mobile-bottom-bar {
    display: none !important;
  }
  
}

@media (min-width: 1025px) {
  .hero-photo {
    width: 100vw;
    max-width: none;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }
  
  .hero-photo img {
    height: 70vh;
    object-fit: cover;
  }
}

/* Responsive */
@media (max-width: 768px) {
  html.home-page,
  body.main-page {
    min-height: 100vh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }
  
  .language-switcher {
    top: 1rem;
    right: 1rem;
  }
  
  .static-text-container {
    margin-bottom: 2rem;
  }
  
  .main-title {
    font-size: 1.8rem;
  }
  
  .main-subtitle {
    font-size: 2.5rem;
  }
  
  .subtitle {
    font-size: 0.9rem;
  }
  
  /* Hide desktop navigation on mobile */
  .desktop-nav-container {
    display: none !important;
  }
  
  /* Show mobile tiles on mobile */
  .mobile-tiles-container {
    display: block;
  }
  
  /* Show mobile bottom bar on mobile */
  .mobile-bottom-bar {
    display: flex;
  }
  
  /* Hide desktop only elements on mobile */
  .desktop-only {
    display: none !important;
  }
  
  .nav-description {
    display: none;
  }
  
  
  /* Adjust main container for mobile tiles */
  .main-page .main-container {
    padding: 0;
    padding-bottom: 12rem; /* Extra space for nav bar (50px) + bottom bar (60px) + gap */
    justify-content: flex-start;
    min-height: 100vh;
    height: auto;
    overflow: visible;
    width: 100%;
    max-width: 100%;
  }
  
  .logo-container {
    display: block;
    margin-top: -2rem;
    padding: 0.75rem 1rem;
    background: var(--clr-bg-main) !important;
  }
  
  .restaurant-logo {
    max-width: 240px;
    max-height: 120px;
    background: var(--clr-bg-main);
    display: block;
  }
  
  .hero-photo {
    width: 85vw;
    border-radius: 0;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
  }
  
  .hero-block {
    margin-top: -2rem;
    gap: 0;
    margin-bottom: 2.5rem;
  }
  
  .hero-text {
    display: none;
  }
  
  .mobile-only {
    display: block;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .mobile-tiles-grid {
    padding: 1rem;
    gap: 1rem;
  }
  
  .mobile-tile {
    padding: 0.5rem;
  }
  
  .tile-icon {
    font-size: 1.3rem;
    margin-bottom: 0;
  }
  
  .tile-content h3 {
    font-size: 0.8rem;
  }
  
  .mobile-tiles-container {
    bottom: 60px;
  }
  
  .mobile-bottom-bar {
    height: 50px;
  }
  
  .mobile-tiles-container {
    bottom: 55px;
    height: auto;
  }
  
  .mobile-bottom-bar .social-links {
    gap: 1rem;
  }
  
  .mobile-bottom-bar .social-links a {
    font-size: 1rem;
  }
  
  .mobile-bottom-bar .mobile-legal-links {
    gap: 0.2rem;
  }
  
  .mobile-bottom-bar .mobile-legal-links a {
    font-size: 0.6rem;
    padding: 0.15rem 0.25rem;
  }
  
  .mobile-bottom-bar .settings-gear {
    width: 32px;
    height: 32px;
  }
  
  .mobile-bottom-bar .settings-gear i {
    font-size: 14px;
  }
}

/* Respect user's reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Consent Popup Styles */
.consent-modal-dark {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(10px);
}

.consent-modal-dark.active {
  display: flex;
}

.consent-modal-box-dark {
  background: var(--clr-secondary);
  border-radius: 0;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 1px solid var(--clr-border-strong);
  position: relative;
}

.consent-modal-box-dark h3 {
  font-family: "Source Sans 3", sans-serif;
  color: var(--clr-text-light);
  margin-bottom: 30px;
  font-size: 1.5rem;
  font-weight: 300;
  text-align: center;
}

.modal-close-dark {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--clr-text-light);
  font-size: 28px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.modal-close-dark:hover {
  transform: rotate(90deg);
}

.consent-option-dark {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  margin: 15px 0;
  background: var(--clr-accent);
  border-radius: 0;
  border: 1px solid var(--clr-border-strong);
  transition: all 0.3s ease;
}

.consent-option-dark:hover {
  background: var(--clr-secondary);
  border-color: var(--clr-border-strong);
}

.consent-option-text {
  flex: 1;
}

.consent-option-text strong {
  color: var(--clr-text-light);
  display: block;
  margin-bottom: 5px;
  font-weight: 400;
}

.consent-option-text small {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

.consent-switch {
  position: relative;
  width: 50px;
  height: 26px;
}

.consent-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.consent-switch label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--clr-bg-neutral);
  transition: 0.3s;
  border-radius: 0;
}

.consent-switch label:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #FFFFFF;
  transition: 0.3s;
  border-radius: 0;
}

.consent-switch input:checked + label {
  background: var(--clr-bg-subtle);
}

.consent-switch input:checked + label:before {
  transform: translateX(24px);
}

.consent-switch.disabled label {
  cursor: not-allowed;
  opacity: 0.5;
}

.consent-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--clr-border-strong);
}

.consent-btn-dark {
  padding: 12px 24px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-weight: 400;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  font-family: "Source Sans 3", sans-serif;
}

.consent-btn-dark.primary {
  background: var(--clr-bg-subtle);
  color: var(--clr-text-dark);
}

.consent-btn-dark.primary:hover {
  background: var(--clr-bg-neutral);
  transform: translateY(-2px);
}

.consent-btn-dark.secondary {
  background: var(--clr-secondary);
  color: var(--clr-text-light);
  border: 1px solid var(--clr-border-strong);
}

.consent-btn-dark.secondary:hover {
  background: var(--clr-accent);
  border-color: var(--clr-border-strong);
}

.consent-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: consentFadeIn 0.3s ease;
}

.consent-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.consent-popup-container {
  position: relative;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: consentSlideUp 0.4s ease;
}

.consent-popup-content {
  background: #032221;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 15px 40px rgba(0, 0, 0, 0.4),
    0 5px 15px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.08),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3),
    inset 0 0 20px rgba(0, 0, 0, 0.2);
  transform: perspective(1200px) rotateX(1deg) translateZ(20px);
  border-top: 2px solid rgba(255, 255, 255, 0.05);
  border-bottom: 2px solid rgba(0, 0, 0, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.consent-popup-title {
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--clr-text-light);
  margin-bottom: 20px;
  text-align: center;
}

.consent-popup-description {
  color: #FFFFFF;
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: center;
}

.consent-options {
  margin: 30px 0;
}

.consent-option-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.consent-option-item:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.consent-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.consent-option-info strong {
  display: block;
  color: var(--clr-text-light);
  margin-bottom: 5px;
  font-weight: 400;
}

.consent-option-info small {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

.consent-switch-wrapper {
  position: relative;
  width: 50px;
  height: 26px;
}

.consent-switch-wrapper input {
  opacity: 0;
  width: 0;
  height: 0;
}

.consent-switch-wrapper label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 13px;
}

.consent-switch-wrapper label:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #FFFFFF;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.consent-switch-wrapper input:checked + label {
  background: var(--clr-bg-subtle, #e1a93b);
}

.consent-switch-wrapper input:checked + label:before {
  transform: translateX(24px);
}

.consent-switch-wrapper.animating label {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.consent-switch-wrapper.animating label:before {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.consent-switch-wrapper.animating input:checked + label {
  background: var(--clr-bg-subtle, #e1a93b);
  box-shadow: 0 0 10px rgba(225, 169, 59, 0.5);
}

.consent-switch-wrapper.disabled label {
  cursor: not-allowed;
  opacity: 0.5;
}

.consent-popup-footer {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.consent-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 400;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  font-family: "Source Sans 3", sans-serif;
  pointer-events: auto !important;
  z-index: 10001 !important;
  position: relative;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.consent-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.consent-btn-accept-all {
  background: var(--clr-bg-subtle, #e1a93b);
  color: #000;
}

.consent-btn-accept-all:hover {
  background: #d19a2a;
  transform: translateY(-2px);
  box-shadow: 
    0 6px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.consent-btn-accept-all:active {
  transform: translateY(0px) scale(0.98);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.consent-btn-accept-selected,
.consent-btn-reject {
  background: var(--clr-accent, #ba643d);
  color: var(--clr-text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.consent-btn-accept-selected:hover,
.consent-btn-reject:hover {
  background: #a8552f;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.consent-btn-accept-selected:active,
.consent-btn-reject:active {
  transform: translateY(0px) scale(0.98);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.consent-privacy-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: var(--clr-text-light);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.consent-privacy-link:hover {
  color: var(--clr-text-light);
  opacity: 0.8;
  text-decoration: underline;
}

.consent-popup.closing {
  animation: consentFadeOut 0.3s ease forwards;
}

@keyframes consentFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes consentSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes consentFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (max-width: 768px) {
  .consent-modal-box-dark {
    padding: 30px 20px;
  }
  
  .consent-buttons {
    flex-direction: column;
  }
  
  .consent-btn-dark {
    width: 100%;
  }
  
  .consent-popup-content {
    padding: 30px 20px;
  }
  
  .consent-popup-title {
    font-size: 1.5rem;
  }
  
  .consent-popup-footer {
    flex-direction: column;
  }
  
  .consent-btn {
    width: 100%;
  }
}
