﻿/*
 * =============================================================================
 * LA REGINA — Media Queries & Responsive Styles
 * =============================================================================
 * Keep Bootstrap for layout. This file only adjusts sizes/spacing/heights.
 *
 * BREAKPOINTS (aligned with Bootstrap):
 *   • max-width: 1199.98px — xl down (tablet landscape / small laptop)
 *   • max-width: 991.98px  — lg down (tablet)
 *   • max-width: 767.98px  — md down (large phone)
 *   • max-width: 575.98px  — sm down (small phone)
 * =============================================================================
 */

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
}

/* ========== max-width: 1199.98px (tablet landscape / < xl) ========== */
@media (max-width: 1199.98px) {
  .header-inner {
    padding: 12px 20px;
  }

  .navbar-brand img,
  .header-logo img {
    height: 52px;
  }

  .product-card {
    height: 300px;
  }

  .product-card-title {
    font-size: 18px;
  }

  .project-album .projectAlbumMain img {
    height: 400px;
  }

  .contact-form-heading {
    font-size: 22px;
  }

  .projects-grid-section .project-card {
    height: 280px;
  }

  .projects-grid-section .project-card.project-large {
    height: 100%;
    min-height: 400px;
  }
}

/* ========== max-width: 991.98px (tablet) ========== */
@media (max-width: 991.98px) {
  .header-inner {
    padding-block: 10px;
    padding-inline: 16px;
    gap: 12px;
  }

  .navbar-brand img,
  .header-logo img {
    height: 56px;
  }

  .navbar-custom.navbar-scrolled .header-logo img,
  .fixed .header-logo img {
    height: 52px;
  }

  .navbar-toggler i {
    font-size: 1.75rem;
    color: #fff;
  }

  .fixed .navbar-toggler i {
    color: #333;
  }

  /* Hero — full viewport chain (prevents collapsed slides) */
  .hero-slider-section {
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
  }

  .hero-slider-section .heroSwiper,
  .hero-slider-section .swiper,
  .hero-slider-section .swiper-wrapper,
  .hero-slider-section .swiper-slide,
  .hero-slide {
    height: 100%;
    min-height: 100svh;
  }

  .hero-slide-img {
    object-position: center 30%;
  }

  .hero-overlay {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.28) 70%,
      rgba(0, 0, 0, 0.35) 100%
    );
  }

  .hero-title {
    font-size: clamp(36px, 7vw, 48px);
  }

  .hero-content {
    padding-top: 72px;
    padding-bottom: 110px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: calc(100svh - 80px);
  }

  .hero-slider-section .container.h-100 {
    align-items: flex-end !important;
  }

  .hero-pagination {
    right: 20px;
    left: auto;
    bottom: 96px;
  }

  [dir="rtl"] .hero-pagination {
    left: 20px;
    right: auto;
  }

  .hero-wave-divider .hero-wave-svg {
    height: 90px;
  }

  .hero-slide-img.is-zoom-in,
  .hero-slide-img.is-zoom-out {
    animation-duration: 6.5s;
  }

  /* Categories — stack one under another */
  .category-card {
    height: 360px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px 24px;
  }

  .category-card:hover {
    transform: none;
  }

  .category-desc {
    height: auto;
    min-height: 40px;
  }

  /* Projects — featured card on top, grid below */
  .projects-section .row.g-4 > .col-lg-6:first-child {
    margin-bottom: 0;
  }

  .project-card.project-large {
    height: 380px !important;
    min-height: 380px;
  }

  .project-card {
    height: 220px;
  }

  .projects-grid-section .project-card.project-large {
    height: 380px !important;
  }

  .projects-side-grid .project-card {
    height: 200px;
  }

  .projects-side-grid .project-title {
    font-size: 15px;
  }

  .projects-side-grid .project-card {
    padding: 18px 14px;
  }

  /* About / Stats */
  .about-title {
    font-size: 32px;
  }

  .about-section--story .about-title {
    font-size: clamp(1.85rem, 3vw, 2.6rem);
  }

  .about-visual {
    max-width: 100%;
    min-height: 280px;
  }

  .stat-number {
    font-size: 40px;
  }

  /* Process */
  .process-section {
    padding: 40px 0;
  }

  .process-timeline-wrapper {
    margin: 24px 0;
  }

  .process-step-circle {
    width: 58px;
    height: 58px;
    font-size: 16px;
  }

  .process-video-card {
    min-height: 320px;
    padding: 28px;
  }

  /* Testimonials */
  .testimonial-side-img {
    height: 280px;
  }

  .testimonial-text {
    font-size: 20px;
  }

  /* CTA */
  .cta-banner-card {
    height: auto;
    min-height: 200px;
    padding: 36px 28px;
  }

  .cta-title {
    font-size: 26px;
  }

  /* Contact / Inner */
  .contact-page-section {
    padding: 60px 0 30px;
  }

  .contact-form-card {
    padding: 28px 22px;
  }

  .contact-form-heading {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .contact-map-section {
    padding: 10px 0 70px;
  }

  .contact-map-frame {
    height: 280px;
    min-height: 280px;
  }

  .inner-hero-section {
    height: 240px;
    background-attachment: scroll;
  }

  .inner-hero-title {
    font-size: 32px;
  }

  .inner-intro-img {
    height: 340px;
    margin-top: 24px;
  }

  .inner-related-section .category-card {
    min-height: 220px;
  }

  /* Products */
  .products-section {
    padding: 50px 0 70px;
  }

  .product-card {
    height: 280px;
  }

  .project-detail-section,
  .product-detail-section {
    padding: 50px 0 30px;
  }

  .project-album .projectAlbumMain img {
    height: 360px;
  }

  .project-album .projectAlbumThumbs .swiper-slide {
    height: 72px;
  }

  .project-sidebar,
  .product-sidebar {
    position: static;
    top: auto;
  }

  /* Footer */
  .footer-section {
    padding-top: 50px;
  }

  .footer-about-logo {
    max-width: 160px;
  }
}

/* ========== max-width: 767.98px (phone landscape / large phone) ========== */
@media (max-width: 767.98px) {
  .header-inner {
    padding-inline: 14px;
  }

  /* Hero */
  .hero-subtitle {
    letter-spacing: 3px;
    font-size: 11px;
    margin-bottom: 12px;
  }

  .hero-desc {
    font-size: 14px;
    margin-bottom: 22px;
    line-height: 1.65;
  }

  .hero-content {
    padding-top: 64px;
    padding-bottom: 100px;
    min-height: calc(100svh - 64px);
  }

  .hero-wave-divider .hero-wave-svg {
    height: 72px;
  }

  .hero-pagination {
    bottom: 84px;
  }

  .footer-collections-grid {
    grid-template-columns: 1fr;
  }

  /* Categories — full-width stack */
  #collections .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .category-card {
    height: 300px;
  }

  #collections .row > [class*="col-"]:first-child .category-card {
    height: 340px;
  }

  .category-title {
    font-size: 20px;
  }

  .section-header-crown {
    margin-bottom: 36px;
  }

  .section-header-crown h2 {
    font-size: 26px;
  }

  .about-title {
    font-size: 28px;
  }

  .about-desc {
    font-size: 14px;
  }

  .about-section--story {
    background-size: min(70vw, 420px) auto;
    background-position: left top;
  }

  .about-section--story .about-content {
    max-width: 100%;
  }

  .about-visual {
    aspect-ratio: 5 / 4;
    min-height: 260px;
    margin-inline: auto;
    margin-top: 28px;
  }

  .about-visual__detail {
    width: clamp(120px, 34%, 180px);
    top: 10%;
    height: 70%;
    border-width: 4px;
  }

  .about-visual__accent {
    width: clamp(72px, 20%, 110px);
  }

  .stat-number {
    font-size: 34px;
  }

  .stat-icon {
    font-size: 24px;
  }

  .material-card {
    height: 200px;
    padding: 16px;
  }

  .material-title {
    font-size: 12px;
  }

  /* Projects: 1 featured + 2x2 grid under it */
  .project-card.project-large,
  .projects-grid-section .project-card.project-large {
    height: 300px !important;
    min-height: 300px;
  }

  .project-card,
  .projects-grid-section .project-card {
    height: 200px !important;
    min-height: 200px;
  }

  .projects-side-grid .project-card {
    height: 180px !important;
    min-height: 180px;
    padding: 16px 12px;
  }

  .projects-side-grid .project-title {
    font-size: 13px;
    letter-spacing: 0.5px;
  }

  .projects-side-grid .project-location {
    font-size: 11px;
  }

  .projects-side-grid .project-category-badge {
    font-size: 9px;
    padding: 3px 8px;
    margin-bottom: 6px;
  }

  .process-step-circle {
    width: 52px;
    height: 52px;
    font-size: 15px;
    margin-bottom: 14px;
  }

  .step-desc {
    padding: 0 4px;
    font-size: 11px;
  }

  .process-video-card {
    min-height: 280px;
    padding: 24px;
  }

  .process-video-content {
    align-items: flex-start !important;
    text-align: start !important;
  }

  [dir="rtl"] .process-video-content {
    align-items: flex-end !important;
    text-align: end !important;
  }

  .process-video-card::before {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.45) 55%,
      rgba(0, 0, 0, 0.25) 100%
    );
  }

  .testimonial-side-img {
    height: 240px;
  }

  .testimonial-text {
    font-size: 18px;
  }

  .cta-banner-card {
    padding: 32px 22px;
  }

  .cta-banner-card::before {
    background: rgba(0, 0, 0, 0.7);
  }

  [dir="rtl"] .cta-banner-card::before {
    background: rgba(0, 0, 0, 0.7);
  }

  .cta-title {
    font-size: 22px;
  }

  .cta-subtitle {
    font-size: 14px;
  }

  .scroll-top-btn {
    bottom: 24px;
    inset-inline-end: 1rem;
    width: 44px;
    height: 44px;
  }

  .contact-details-list {
    margin-top: 24px;
  }

  .contact-details-list li {
    padding: 14px 0;
  }

  .contact-map-frame {
    height: 260px;
    min-height: 260px;
  }

  .product-card {
    height: 270px;
  }

  .product-card-body {
    padding: 18px 16px;
  }

  .product-card-title {
    font-size: 16px;
  }

  .project-album .projectAlbumMain img {
    height: 320px;
  }

  .contact-form-card .btn-teal-solid {
    width: 100%;
  }

  .offcanvas {
    max-width: min(100vw, 360px);
  }
}

/* ========== max-width: 575.98px (small phone) ========== */
@media (max-width: 575.98px) {
  .header-inner {
    padding: 8px 12px;
  }

  .header-logo img,
  .navbar-brand img {
    height: 48px;
  }

  .navbar-custom.navbar-scrolled .header-logo img,
  .fixed .header-logo img {
    height: 46px;
  }

  .hero-slider-section,
  .hero-slider-section .heroSwiper,
  .hero-slider-section .swiper-wrapper,
  .hero-slider-section .swiper-slide,
  .hero-slide {
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
  }

  .hero-title {
    font-size: clamp(30px, 9vw, 36px);
    margin-bottom: 14px;
  }

  .hero-content {
    padding-top: 56px;
    padding-bottom: 92px;
    min-height: calc(100svh - 56px);
  }

  .hero-btn {
    align-self: flex-start;
  }

  .hero-pagination {
    right: 16px;
    bottom: 76px;
    gap: 8px;
    font-size: 12px;
  }

  .hero-pagination .hero-pag-sep {
    width: 32px;
  }

  [dir="rtl"] .hero-pagination {
    left: 16px;
    right: auto;
  }

  .hero-wave-divider .hero-wave-svg {
    height: 56px;
  }

  .category-card {
    height: 260px;
    padding: 22px 16px;
  }

  #collections .row > [class*="col-"]:first-child .category-card {
    height: 300px;
  }

  .about-title {
    font-size: 26px;
  }

  .about-visual {
    min-height: 220px;
  }

  .about-visual__detail {
    width: 36%;
    border-width: 3px;
  }

  .stat-number {
    font-size: 30px;
  }

  .material-card {
    height: 170px;
    padding: 12px;
  }

  .project-card.project-large,
  .projects-grid-section .project-card.project-large {
    height: 260px !important;
    min-height: 260px;
  }

  .project-card,
  .projects-grid-section .project-card {
    height: 180px !important;
    min-height: 180px;
  }

  .projects-side-grid .project-card {
    height: 160px !important;
    min-height: 160px;
    padding: 14px 10px;
  }

  .project-title {
    font-size: 15px;
  }

  .projects-side-grid .project-title {
    font-size: 12px;
  }

  .project-card {
    padding: 20px 14px;
  }

  .process-video-card {
    min-height: 240px;
    padding: 20px;
  }

  .testimonial-text {
    font-size: 17px;
  }

  .testimonial-side-img {
    height: 220px;
  }

  .cta-title {
    font-size: 20px;
  }

  .btn-gold-outline,
  .btn-teal-solid,
  .hero-btn {
    height: 44px;
    font-size: 10px;
    letter-spacing: 1.2px;
  }

  .btn-gold-outline .button__text,
  .btn-teal-solid .button__text,
  .hero-btn .button__text {
    padding-inline: 16px 46px;
  }

  .btn-gold-outline .button__icon,
  .btn-teal-solid .button__icon,
  .hero-btn .button__icon {
    width: 38px;
  }

  .btn-consult-nav {
    font-size: 10px;
    padding: 10px 16px !important;
  }

  .product-card {
    height: 240px;
  }

  .products-section {
    padding: 40px 0 60px;
  }

  .project-album .projectAlbumMain img {
    height: 260px;
  }

  .project-album .projectAlbumThumbs .swiper-slide {
    height: 64px;
  }

  .project-sidebar,
  .product-sidebar {
    position: static;
    top: auto;
  }

  .project-sidebar-block,
  .project-sidebar-cta,
  .product-sidebar-block,
  .product-sidebar-cta {
    padding: 20px 18px;
  }


  .about-vm-img {
    height: 280px;
  }

  .about-vm-section,
  .about-stats-section {
    padding: 60px 0;
  }

  .inner-hero-section {
    height: 200px;
  }

  .inner-hero-title {
    font-size: 26px;
  }

  .contact-page-section {
    padding: 48px 0 24px;
  }

  .contact-form-card {
    padding: 22px 16px;
  }

  .contact-map-frame {
    height: 240px;
    min-height: 240px;
  }

  .modal-dialog {
    margin: 0.75rem;
  }

  #storyModal iframe {
    max-height: 70vh;
    width: 100% !important;
  }

  .container-fluid.px-md-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .footer-showroom-img {
    height: 140px;
  }
}
