/* Mobile Styles for iTour Landing Page */

/* Hero Section Mobile Styles */
@media (max-width: 768px) {












  .hero-section .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 0.9rem;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
  }

  .hero-section .btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
  }

  .hero-section .btn-primary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
  }

  .hero-section .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
  }

  .hero-section .btn-outline-light {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  .hero-section .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
  }

  .hero-section .btn svg {
    transition: transform 0.3s ease;
  }

  .hero-section .btn:hover svg {
    transform: scale(1.1);
  }
}

/* Hero Mobile Buttons */
.hero-mobile-buttons {
  display: none;
  width: 100%;
  margin-top: 2rem;
  gap: 1rem;
  flex-direction: column;
}







/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 5rem; /* Dodatkowy odstęp dla sticky footera */
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}



/* Main Mobile Media Query */
@media (max-width: 767px) {
  /* Ukryj nagłówek w widoku mobilnym */
  .header {
    display: none;
  }
  

  
  .hero-qr-codes {
    order: 5;
  }
  
  /* Hamburger icon animation */
  .menu-toggle {
    border: none;
    box-shadow: none;
  }
  
  .menu-toggle svg {
    display: none;
  }
  
  .menu-toggle::before,
  .menu-toggle::after,
  .menu-toggle span {
    content: '';
    position: absolute;
    height: 2px;
    width: 60%;
    background-color: var(--primary);
    transition: all 0.3s ease;
  }
  
  .menu-toggle::before {
    top: 35%;
    transform: translateY(-50%);
  }
  
  .menu-toggle span {
    top: 50%;
    transform: translateY(-50%);
  }
  
  .menu-toggle::after {
    bottom: 35%;
    transform: translateY(50%);
  }
  
  .menu-toggle.active::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }
  
  .menu-toggle.active span {
    opacity: 0;
  }
  
  .hero-container {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  .hero-qr-codes {
    justify-content: center;
  }
  
  .qr-code-wrapper {
    width: 120px;
    height: 120px;
  }
  
  .qr-code-overlay {
    width: 40px;
    height: 40px;
  }
  
  .qr-code-overlay svg {
    width: 20px;
    height: 20px;
  }



  .section-title {
    /* Font-size handled by fluid typography in main CSS */
    margin-bottom: 1.5rem;
  }


  
  /* Przycisk App Store */
  .hero-mobile-buttons .app-store-btn {
    /*color: var(--primary);*/
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
  }
  
  /* Przycisk Google Play */
  .hero-mobile-buttons .google-play-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
  }

  .hero-mobile-buttons .google-play-btn::after {
    content: "dostępne wkrótce";
    position: absolute;
    top: -6px;
    right: -6px;
    background: #64748b;
    color: white;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 3px rgba(100, 116, 139, 0.3);
    z-index: 2;
  }
  

  
  /* Better readability for mobile content */
  .step-description {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  /* Ukryj obraz w sekcji hero na urządzeniach mobilnych */
  .hero-image {
    display: none;
  }
  
  /* Dostosuj układ hero section bez obrazu */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  /* Ukryj photo cards na mobile */
  .photo-cards {
    display: none;
  }

  /* Ulepszona sekcja hero bez obrazu na mobilnych urządzeniach */
  .hero {
    padding: 4rem 0 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 65%, #4f46e5 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
  }
  
  /* Logo mobilne na górze hero */
  .mobile-hero-logo {
    display: block;
    width: 120px;
    height: auto;
    margin: 0 auto 2rem auto;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.8s ease-out 0.3s forwards;
    align-self: center;
  }

  @keyframes fadeInDown {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero-content {
    max-width: 100%;
    justify-content: center;
    align-items: center;
    padding: 0;
    z-index: 1;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
    font-weight: 700;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    max-width: 90%;
    line-height: 1.5;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    max-width: 90%;
    line-height: 1.4;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 1rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
  }

  /* Mobile hero buttons */
  .hero-mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 280px;
    margin-top: 1rem;
  }

  .hero-mobile-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1rem;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    min-height: 56px;
  }

  .hero-mobile-buttons .btn:hover,
  .hero-mobile-buttons .btn:active {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
  }

  .hero-mobile-buttons .btn svg {
    width: 20px;
    height: 20px;
  }
  
  /* Powiększenie i wyróżnienie przycisków pobierania w hero */
  .hero-qr-codes {
    margin-top: 2.5rem;
  }
  
  /* Footer on mobile */
  .footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out;
  }
  
  .footer-item:first-child {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .footer-links {
    font-size: 0.9rem;
  }
  
  .footer-links li {
    margin-bottom: 0.5rem;
  }
  
  /* Mobile-friendly content */
  p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .qr-code-wrapper {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .qr-code-wrapper:active {
    transform: scale(0.95);
  }
  
  /* Ensure sufficient spacing between sections */
  section {
    margin-bottom: 1rem;
  }
  
  /* Better touch feedback on mobile */
  .btn, .nav-link {
    -webkit-tap-highlight-color: transparent;
  }
  
  .btn:active {
    transform: scale(0.98);
  }
  
  /* Better scrolling experience */
  html, body {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Usuwam dodatkowy padding z footera, który był potrzebny dla sticky footer */
  .footer {
    padding-bottom: 2rem;
  }
  

  

  

  

}

/* Super-small screens adjustments */
@media (max-width: 480px) {
  .hero-qr-codes {
    display: none;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.3;
  }
  
  /* Zapobiegaj ucięciu zawartości */
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
}

/* Extra-small screens adjustments */
@media (max-width: 380px) {
  
  .qr-code-wrapper {
    width: 150px;
    height: 150px;
  }
  

  
  /* Zmniejsz wysokość nagłówka */
  .header-container {
    height: 3.5rem;
  }
  
  /* Zmniejsz odstępy w mobilnej sekcji hero */
  .hero {
    padding: 2.5rem 0 2rem;
  }
}

/* Usuwam sekcję dla ekranów o szerokości 390px dotyczącą sticky footer */
@media (width: 390px), (max-width: 390px) {

  
  /* Zapobiegaj ucięciu zawartości */
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  .container {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }
  
  /* Photo cards mobile optimization */
  .photo-cards {
    gap: 0.5rem;
    padding: 1rem 0.5rem;
  }
  
  .card {
    border-radius: 8px;
  }
  
  .card img {
    border-radius: 8px;
  }
}

/* FAQ Mobile Styles */
@media (max-width: 767px) {
  .faq {
    padding: 2.5rem 0;
  }
  
  .faq-container {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .faq-question {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .faq-question h3 {
    font-size: 1rem;
    line-height: 1.4;
  }
  
  .faq-question svg {
    align-self: flex-end;
    margin-left: 0;
    margin-top: -2rem;
  }
  
  .faq-answer {
    padding: 0 1rem 1rem 1rem;
  }
  
  .faq-answer p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .faq {
    padding: 2rem 0;
  }
  
  .faq-question {
    padding: 0.875rem;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
  
  .faq-question h3 {
    font-size: 0.95rem;
    line-height: 1.3;
  }
  
  .faq-question svg {
    align-self: center;
    margin-top: 0;
    margin-left: 0.5rem;
  }
  
  .faq-answer {
    padding: 0 0.875rem 0.875rem 0.875rem;
  }
  
  .faq-answer p {
    font-size: 0.85rem;
  }
}

/* Testimonials Mobile Enhancement */
@media (max-width: 480px) {
  .testimonials {
    padding: 2.5rem 0;
  }
  
  .testimonials .section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  .testimonial {
    padding: 1.25rem;
    border-radius: 16px;
  }
  
  .testimonial-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }
  
  .testimonial-text::before {
    font-size: 2.5rem;
    top: -8px;
    left: -8px;
  }
  
  .testimonial-avatar {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  
  .testimonial-name {
    font-size: 0.95rem;
  }
  
  .testimonial-location {
    font-size: 0.8rem;
  }
  
  .star {
    width: 16px;
    height: 16px;
  }
}

/* Remove divider from app-intro stats on mobile */
@media (max-width: 767px) {
  .app-intro-stats {
    border-top: none;
    padding-top: 2rem;
  }
}

/* Hero typography for tablets and mobile */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
    color: #fff;
  }
  
  .hero .hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
  }
  
  /* Remove wave divider on mobile */
  .app-intro::before {
    display: none;
  }
  
  /* Fix app-intro layout on mobile - consolidate all features */
  .app-intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  
  .app-intro-phone {
    order: 1;
    margin: 0 0 2rem 0;
  }
  
  .app-intro-features {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
  }
  
  .app-intro-features.left,
  .app-intro-features.right {
    order: inherit;
    align-items: center;
    width: 100%;
  }
  
  .feature-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    justify-content: flex-start;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }
}

/* Extra mobile optimizations */
@media (max-width: 380px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-item:first-child {
    grid-column: 1;
    margin-bottom: 0.5rem;
  }
  
  .footer-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-links {
    font-size: 0.85rem;
  }
  
  .copyright {
    font-size: 0.8rem;
    margin-top: 1rem;
  }
}
