/* ============================================
   Glory N Spa - Responsive Stylesheet
   Full device coverage with progressive enhancement
   ============================================ */

@media (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991.98px) {
  .navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
  }

  .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 10px 0;
  }

  .navbar-brand img {
    height: 70px;
  }

  .navbar.scrolled .navbar-brand img {
    height: 60px;
  }

  .navbar-toggler {
    position: relative;
    z-index: 10;
  }

  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 15px;
    box-shadow: var(--shadow-lg);
  }

  .navbar-nav .nav-link {
    color: var(--text-dark) !important;
    padding: 12px 18px;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .navbar-cta {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .navbar-cta .btn-gold,
  .navbar-cta .btn-whatsapp {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .about-images-stack {
    padding-bottom: 30px;
    padding-right: 30px;
  }

  .about-img-main img {
    height: 350px;
  }

  .about-img-secondary img {
    height: 170px;
  }

  .why-choose-image img {
    height: 350px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-card-image {
    height: 210px;
  }

  .footer {
    text-align: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-contact li {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-hours li {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-links {
    text-align: center;
  }

  .divider-left {
    margin-left: auto;
  }
}

@media (max-width: 767.98px) {
  .hero-section,
  .hero-slide {
    min-height: 450px;
  }

  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .hero-buttons .btn-gold,
  .hero-buttons .btn-whatsapp,
  .hero-buttons .btn-outline-gold {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .page-hero {
    min-height: 220px;
  }

  .page-hero-content {
    padding: 0 15px;
  }

  .section-description {
    font-size: 0.95rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card-image {
    height: 200px;
  }

  .service-card-buttons .btn-gold,
  .service-card-buttons .btn-whatsapp {
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  .cta-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .cta-buttons .btn-gold,
  .cta-buttons .btn-whatsapp {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .floating-buttons {
    bottom: calc(15px + env(safe-area-inset-bottom, 0px));
    right: calc(12px + env(safe-area-inset-right, 0px));
    gap: 10px;
  }

  .float-btn {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  .service-card-v2-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .service-card-v2-buttons .btn-gold,
  .service-card-v2-buttons .btn-whatsapp {
    flex: 1 1 auto;
    justify-content: center;
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .about-images-stack {
    padding-bottom: 25px;
    padding-right: 20px;
    max-width: 500px;
    margin: 0 auto;
  }

  .about-img-main img {
    height: 300px;
  }

  .about-img-secondary {
    width: 50%;
  }

  .about-img-secondary img {
    height: 150px;
  }

  .about-cta-group {
    justify-content: center;
  }

  .why-choose-image {
    max-width: 500px;
    margin: 0 auto;
  }

  .why-choose-image img {
    height: 300px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-image {
    max-width: 95%;
    max-height: 80vh;
  }

  .footer-bottom {
    margin-top: 25px;
  }

  .footer-bottom p {
    font-size: 0.78rem;
    line-height: 1.6;
  }

  .counter-box {
    padding: 20px 10px;
  }

  .counter-label {
    font-size: 0.8rem;
  }

  .about-image-badge .text {
    font-size: 0.75rem;
  }

  .contact-form .form-control {
    padding: 12px 14px;
    font-size: 16px;
  }

  .contact-form textarea.form-control {
    font-size: 16px;
  }
}

@media (max-width: 575.98px) {
  body {
    font-size: 15px;
  }

  .hero-section,
  .hero-slide {
    min-height: 400px;
  }

  .hero-content {
    padding: 0 15px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-filter-buttons {
    gap: 6px;
  }

  .gallery-filter-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .btn-gold, .btn-whatsapp, .btn-teal, .btn-outline-gold {
    padding: 12px 22px;
    font-size: 0.85rem;
  }

  .navbar-brand img {
    height: 65px;
  }

  .navbar.scrolled .navbar-brand img {
    height: 55px;
  }

  .footer-logo img {
    height: 65px;
  }

  .feature-box-icon {
    width: 65px;
    height: 65px;
  }

  .feature-box-icon i {
    font-size: 1.5rem;
  }

  .contact-info-icon {
    width: 50px;
    height: 50px;
  }

  .contact-info-icon i {
    font-size: 1.2rem;
  }

  .footer-hours li {
    flex-direction: column;
    gap: 2px;
    text-align: center;
  }

  .footer-hours li span:last-child {
    font-weight: 500;
    color: var(--secondary-light);
  }

  .navbar-cta .btn-gold,
  .navbar-cta .btn-whatsapp {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .preloader-logo {
    width: 180px;
  }
}

@media (max-width: 399.98px) {
  body {
    font-size: 14px;
  }

  .hero-section,
  .hero-slide {
    min-height: 360px;
  }

  .hero-content {
    padding: 0 12px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallery-item {
    aspect-ratio: 4/3;
  }

  .gallery-filter-buttons {
    gap: 4px;
  }

  .gallery-filter-btn {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .btn-gold, .btn-whatsapp, .btn-teal, .btn-outline-gold {
    padding: 10px 18px;
    font-size: 0.8rem;
  }

  .float-btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .service-card-v2-body .benefits span,
  .service-card-body .benefits span {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .service-card-image {
    height: 180px;
  }

  .service-card-buttons {
    flex-direction: column;
  }

  .service-card-buttons .btn-gold,
  .service-card-buttons .btn-whatsapp {
    width: 100%;
  }

  .about-images-stack {
    padding-bottom: 20px;
    padding-right: 15px;
  }

  .about-img-main img {
    height: 260px;
  }

  .about-img-secondary img {
    height: 130px;
  }

  .why-choose-image img {
    height: 260px;
  }

  .why-choose-item {
    padding: 12px 14px;
  }

  .navbar-brand img {
    height: 58px;
  }

  .navbar.scrolled .navbar-brand img {
    height: 50px;
  }

  .counter-box {
    padding: 15px 5px;
  }

  .page-hero {
    min-height: 180px;
  }

  .contact-info-card h5 {
    font-size: 1rem;
  }

  .contact-info-card p {
    font-size: 0.82rem;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero-section,
  .hero-slide {
    min-height: 100svh;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .hero-content p {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }

  .hero-content .subtitle {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }

  .hero-buttons {
    flex-direction: row;
    gap: 10px;
  }

  .hero-buttons .btn-gold,
  .hero-buttons .btn-whatsapp,
  .hero-buttons .btn-outline-gold {
    width: auto;
    max-width: none;
    padding: 8px 18px;
    font-size: 0.8rem;
  }

  .page-hero {
    min-height: 200px;
  }

  .hero-pagination {
    bottom: 10px !important;
  }

  .floating-buttons {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .float-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) and (orientation: landscape) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (pointer: coarse) {
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .gallery-filter-btn {
    min-height: 44px;
  }

  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .service-card-v2:hover {
    transform: none;
  }

  .service-card-v2-overlay {
    opacity: 1;
  }

  .service-card:hover {
    transform: none;
  }

  .why-choose-item:hover {
    transform: none;
  }

  .contact-info-card:hover {
    transform: none;
  }

  .testimonial-card:hover {
    transform: none;
  }
}

@supports (-webkit-overflow-scrolling: touch) {
  .parallax-section {
    background-attachment: scroll;
  }
}

@media (hover: none) {
  .parallax-section {
    background-attachment: scroll;
  }

  .gallery-item-overlay {
    opacity: 0;
  }

  .service-card-v2:hover .service-card-v2-image img,
  .service-card:hover .service-card-image img,
  .about-img-main:hover img,
  .about-img-secondary:hover img,
  .why-choose-image:hover img {
    transform: none;
  }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .navbar-toggler .toggler-bar {
    height: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-slide-bg {
    transform: none !important;
    transition: none !important;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media print {
  .navbar,
  .floating-buttons,
  .preloader,
  .cta-section,
  .hero-pagination,
  .lightbox-overlay {
    display: none !important;
  }

  body {
    color: #000;
    font-size: 12pt;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  section {
    padding: 20px 0;
    page-break-inside: avoid;
  }

  .service-card-v2,
  .service-card,
  .why-choose-item,
  .testimonial-card {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }

  .footer {
    background: #333;
    color: #000;
  }
}
