/* Resetowanie styli */
@import url('https://fonts.googleapis.com/css2?family=Gentium+Book+Plus:wght@400;700&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Gentium Book Plus', 'Noto Serif', Georgia, 'Times New Roman', Times, serif;
  color: #333;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

/* Globalny font dla wszystkich elementów interaktywnych */
button, input, select, textarea {
  font-family: inherit;
}

/* Mobile touch improvements - CRITICAL FIX */
@media (max-width: 768px) {
  /* Force all interactive elements to be clickable */
  button, a, [role="button"], .menu-nav-link, .transparent-menu-btn, 
  .quick-menu-btn, .mobile-menu-toggle, .back-to-top, .toggle-btn,
  input[type="button"], input[type="submit"] {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
  }
  
  /* Specific fixes for common interactive elements */
  .menu-nav-link, .mobile-category-link {
    min-height: 44px;
  }
  
  /* Ensure buttons have proper touch targets and are tappable */
  button, .transparent-menu-btn {
    min-height: 44px;
    position: relative;
  }
  
  /* Allow text selection in content areas */
  p, span, h1, h2, h3, h4, h5, h6, .small-dish-description, 
  .featured-dish-description, .contact-info p, label {
    -webkit-user-select: text;
    user-select: text;
  }
}

/* Customizacja paska przewijania */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #0055A4;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00AEEF;
}

body {
  scrollbar-color: #0055A4 #f1f1f1;
  font-size: 16px;
  line-height: 1.6;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Nagłówki - zdefiniowane w fonts.css */

/* Navbar/Banner */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: transparent;
  transition: all 0.3s ease;
  z-index: 1000;
  width: 100%;
}

/* Dark semi-transparent navbar for non-index pages */
body:not(.homepage) .navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* For index page, only when scrolled */
.navbar.scrolled {
  background-color: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 0 5%;
  position: relative;
  gap: 20px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-logo img {
  height: 200px;
  width: auto;
}

.navbar-menu {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.hamburger-line {
  display: block;
  height: 3px;
  width: 100%;
  background-color: rgba(0, 40, 80, 0.95);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile Menu Sidebar */
.mobile-menu-sidebar {
  position: fixed;
  top: 0;
  right: -80%;
  width: 80%;
  height: 100vh;
  background-color: rgba(0, 40, 80, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 60px 0 20px;
  display: none;
}

.mobile-menu-sidebar.active {
  right: 0;
  display: block;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: white;
}

.mobile-menu-content {
  padding: 0 20px;
}

.mobile-menu-logo {
  text-align: center;
  margin-bottom: 30px;
}

.mobile-menu-logo img {
  max-width: 120px;
  height: auto;
}

.mobile-menu-links {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-links li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-links li:last-child {
  border-bottom: none;
}

.mobile-menu-links a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  display: block;
  transition: color 0.3s ease;
}

.mobile-menu-links a.active,
.mobile-menu-links a:hover {
  color: #FFC107;
}

.mobile-menu-categories {
  margin-top: 20px;
}

.mobile-menu-categories h3 {
  font-size: 20px;
  color: white;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-category-link {
  display: block;
  padding: 10px 15px;
  margin-bottom: 5px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.mobile-category-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFC107;
}

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
  margin-left: 20px;
  flex-shrink: 0;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 2px solid rgba(0, 40, 80, 0.2);
  padding: 8px 15px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Gentium Book Plus', serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 40, 80, 0.95);
}

.language-btn:hover {
  background: rgba(0, 40, 80, 0.05);
  border-color: rgba(0, 40, 80, 0.4);
  transform: translateY(-2px);
}

.language-btn .flag-icon {
  font-size: 18px;
  line-height: 1;
}

.language-btn .lang-text {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Dla scrolled navbar i non-homepage */
.navbar.scrolled .language-btn,
body:not(.homepage) .navbar .language-btn {
  color: rgba(0, 40, 80, 0.95);
  border-color: rgba(0, 40, 80, 0.2);
}

.navbar.scrolled .language-btn:hover,
body:not(.homepage) .navbar .language-btn:hover {
  background: rgba(0, 40, 80, 0.05);
  border-color: rgba(0, 40, 80, 0.4);
}

/* Mobile language switcher */
.mobile-language-switcher {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
}

.mobile-language-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Gentium Book Plus', serif;
  font-size: 16px;
  font-weight: 600;
  color: white;
  width: 100%;
  justify-content: center;
}

.mobile-language-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.mobile-language-btn .flag-icon {
  font-size: 20px;
  line-height: 1;
}

.navbar-menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 40px;
}

.navbar-menu ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  position: relative;
  padding: 8px 0;
}

.navbar-menu ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

/* Navbar colors when scrolled or not on homepage */
body:not(.homepage) .navbar .navbar-menu ul li a,
.navbar.scrolled .navbar-menu ul li a {
  color: #001C33;
}

body:not(.homepage) .navbar .navbar-menu ul li a::after,
.navbar.scrolled .navbar-menu ul li a::after {
  background-color: #001C33;
}

.navbar-menu ul li a:hover::after {
  width: 100%;
}

.navbar-menu ul li a.active {
  font-weight: 700;
}

.navbar-menu ul li a.active::after {
  width: 100%;
}

/* Zawartość główna */
main {
  margin: 0 auto;
  min-height: 60vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Sekcja kafelków nawigacyjnych */
.tiles-section {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 100vw;
  margin-top: 0;
  margin-bottom: 0;
  background: url('../assets/wzorki.jpg') center center;
  background-size: cover;
  color: #000000;
  overflow: hidden;
}

.tiles-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: -1;
}

.section-title {
  font-size: 2.5rem;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  font-weight: 600;
  z-index: 1;
  padding-top: 30px;
}

.section-title i {
  margin-right: 10px;
  color: #0055A4;
  font-size: 2rem;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, #00AEEF, white, #00AEEF);
  z-index: 1;
}

.tiles-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  max-width: 100vw;
  padding: 0;
  margin: 0;
  background-color: #001C33;
  overflow: hidden;
}

.tile-card {
  position: relative;
  width: 100%;
  padding-top: 70%; 
  overflow: hidden;
  text-decoration: none;
  display: block;
  background-color: #001C33;
  transition: all 0.3s ease;
  z-index: 1;
}

.tile-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  z-index: 1;
  pointer-events: none;
}

.tile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.tile-card:hover .tile-overlay {
  background: rgba(0, 85, 164, 0.7); /* Jaśniejszy niebieski przy najechaniu */
}

.tile-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 2px;
  width: 90%;
  text-transform: uppercase;
  transition: all 0.3s ease;
  margin: 0;
  padding: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 3;
}

/* Animacja kafelków */
@keyframes tileFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tile-card {
  animation: tileFadeIn 0.8s ease forwards;
  opacity: 0;
}

.tile-card:nth-child(1) {
  animation-delay: 0.2s;
}

.tile-card:nth-child(2) {
  animation-delay: 0.4s;
}

.tile-card:nth-child(3) {
  animation-delay: 0.6s;
}

.tile-card:hover .tile-title {
  transform: translate(-50%, -50%) scale(1.1);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Efekt skalowania zdjęcia w tle - z użyciem <img> */
.tile-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tile-card:hover .tile-img {
  transform: scale(1.1);
}

/* Dodajemy subtelny border glow effect przy hover */
.tile-card:hover {
  box-shadow: 0 0 30px rgba(0, 85, 164, 0.4);
  z-index: 5;
}

/* Stylizacja dla linku zewnętrznego */
.external-link .tile-title i {
  font-size: 1rem;
  margin-left: 8px;
  opacity: 0.8;
  vertical-align: super;
  transition: all 0.3s ease;
}

.external-link:hover .tile-title i {
  transform: translateX(3px) translateY(-3px);
  opacity: 1;
}

/* Sekcja Menu Tiles
---------------------------------------------- */

@media (max-width: 992px) {
  .tiles-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tile-card:nth-child(3) {
    grid-column: 1 / span 2;
  }
}

@media (max-width: 768px) {
  .tiles-section {
    margin-top: -20px;
    padding: 30px 0 0;
  }
  
  .tile-card .tile-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 25px;
  }
  
  .section-title i {
    font-size: 1.7rem;
  }
  
  /* Hide desktop language switcher on mobile */
  .language-switcher {
    display: none;
  }
  
  /* Show hamburger menu */
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Hide desktop menu */
  .navbar-menu {
    display: none;
  }
}

@media (max-width: 576px) {
  .tiles-container {
    grid-template-columns: 1fr;
  }
  
  .tile-card:nth-child(3) {
    grid-column: 1;
  }
  
  .tile-card {
    padding-top: 40%; /* Zmniejszona wysokość kafelka na mobilnych */
  }
  
  .tile-card .tile-title {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }
  
  .section-title:after {
    bottom: -10px;
    width: 60px;
  }
  
  .section-title i {
    font-size: 1.5rem;
  }
}

/* Sekcja Odwiedź nas */
.visit-us-section {
  padding: 80px 0;
  background: #f8f8f8;
  background-size: cover;
  position: relative;
}

.visit-us-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.visit-us-container {
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background-color: white;
  position: relative;
  z-index: 2;
}

.visit-us-info {
  flex: 0 0 40%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #f5f8fb;
}

.map-container {
  flex: 0 0 60%;
  height: 500px;
}

.address-box {
  margin-bottom: 30px;
}

.address-box h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #001C33;
  display: flex;
  align-items: center;
  gap: 10px;
}

.address-box p {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.contact-details {
  margin: 20px 0;
  padding-top: 15px;
  border-top: 1px solid #eaeaea;
}

.contact-details p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.contact-details a {
  color: #0055A4;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: #00AEEF;
  text-decoration: underline;
}

.contact-details i {
  color: #0055A4;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.hours {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eaeaea;
}

.hours h4 {
  font-size: 18px;
  color: #001C33;
  margin-bottom: 10px;
}

.hours p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 15px;
}

.hours span {
  font-weight: 600;
  color: #0055A4;
}

.directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #0055A4;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 85, 164, 0.3);
  margin-top: 20px;
  align-self: flex-start;
}

.directions-btn:hover {
  background-color: #00AEEF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 85, 164, 0.4);
}

.directions-btn i {
  font-size: 18px;
}

@media (max-width: 992px) {
  .visit-us-container {
    flex-direction: column-reverse;
  }
  
  .visit-us-info,
  .map-container {
    flex: 0 0 100%;
  }
  
  .map-container {
    height: 300px;
  }
  
  .visit-us-section {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  .visit-us-info {
    padding: 25px;
  }
  
  .map-container {
    height: 250px;
  }
  
  .hours p {
    flex-direction: column;
  }
  
  .directions-btn {
    width: 100%;
    justify-content: center;
  }
  
  .visit-us-section {
    padding: 40px 0;
  }
}

/* Footer */
.footer {
  background: #001C33;
  color: white;
  padding: 70px 0 20px;
  position: relative;
  overflow: hidden;
}


.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  margin-bottom: 50px;
  text-align: center;
  position: relative;
}

.footer-logo::after {
  content: "";
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.footer-logo img {
  height: 190px;
  width: auto;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.footer-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 60px;
}

.footer-section {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.footer-section h4 {
  color: white;
  margin-bottom: 25px;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

.footer-section h4::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
}

.footer-section p {
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.3px;
}

.footer-contact {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer-contact::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #FFC107;
  transition: width 0.3s ease;
}

.footer-contact:hover::after {
  width: 100%;
}

.footer-hours {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  padding-top: 30px;
  text-align: center;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 25px;
  margin-bottom: 25px;
}

.social-links a {
  color: white;
  text-decoration: none;
  transition: all 0.3s;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #FFC107, #00AEEF);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.social-links a:hover::before {
  opacity: 1;
}

.social-links a i {
  position: relative;
  z-index: 1;
}

.social-links a:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1.2px;
  font-size: 1.05rem;
  margin-top: 10px;
  font-weight: 300;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-logo {
    margin-left: 0;
  }

  .navbar-logo img {
    height: 100px;
  }
  
  /* Show mobile menu toggle and hide regular menu */
  .mobile-menu-toggle {
    display: flex;
  }
  
  .navbar-menu {
    display: none;
  }
  
  /* Mobile menu visibility - overlay should stay hidden until active */
  /* .mobile-menu-overlay visibility is controlled by .active class only */
  /* No need to override display:block on mobile - it should stay display:none until .active */
  
  /* Hamburger animation when active */
  .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .footer {
    padding: 50px 0 20px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 40px;
  }
  
  .footer-section {
    padding: 0;
    margin-bottom: 10px;
  }
  
  .footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.4rem;
  }
  
  .footer-section p {
    font-size: 1rem;
  }
  
  .footer-logo {
    margin-bottom: 40px;
  }
  
  .footer-logo img {
    height: 90px;
  }
  
  .social-links {
    gap: 20px;
  }
  
  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .footer-bottom p {
    font-size: 0.95rem;
  }
}
