/* ==========================================================================
   Intaura — Comprehensive Master Responsive Stylesheet
   Covers All Breakpoints: Desktops, Laptops, Tablets, Mobiles & Small Devices
   ========================================================================== */

/* ── 0. GLOBAL FLUID & PREVENT HORIZONTAL SCROLL ── */
html,
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
}

img,
video,
iframe,
canvas {
  max-width: 100%;
}

/* ── DISABLE CUSTOM MOUSE CURSOR ON RESPONSIVE & TOUCH DEVICES ── */
@media screen and (max-width: 1024px),
(hover: none),
(pointer: coarse) {

  #custom-cursor,
  .cursor-dot,
  .cursor-ring {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body,
  body.has-custom-cursor,
  body.has-custom-cursor *,
  body.has-custom-cursor *::before,
  body.has-custom-cursor *::after {
    cursor: auto !important;
  }

  a,
  button,
  input,
  select,
  textarea,
  [role="button"] {
    cursor: pointer !important;
  }
}

/* ==========================================================================
   1. LAPTOPS & SMALL DESKTOPS (1025px – 1366px)
   ========================================================================== */
@media screen and (max-width: 1366px) {
  .section-container {
    width: 92%;
    max-width: 1200px;
  }

  .hero-title {
    font-size: clamp(2.8rem, 4.5vw, 4.2rem);
  }

  .welcome-heading {
    font-size: clamp(2.2rem, 3.5vw, 3rem);
  }

  .footer-grid {
    gap: 30px;
  }
}

/* ==========================================================================
   2. TABLETS & SMALL LAPTOPS (769px – 1024px)
   ========================================================================== */
@media screen and (max-width: 1024px) {

  /* ── HEADER & EXACT CENTER NAV TOGGLE ── */
  .header-container {
    position: relative !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    grid-template-columns: none !important;
    padding: 0 24px;
    height: 75px;
  }

  .header-container .logo {
    justify-self: auto !important;
    z-index: 2;
  }

  .header-container .menu-toggle {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, calc(-50% + 2px)) !important;
    margin: 0 !important;
    justify-self: auto !important;
    z-index: 5;
  }

  .header-container .btn-vip-outline {
    display: inline-flex !important;
    justify-self: auto !important;
    z-index: 2;
    padding: 6px 10px !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.03em !important;
    font-weight: 600 !important;
    gap: 4px !important;
    border-radius: 4px !important;
    width: auto !important;
    max-width: max-content !important;
    white-space: nowrap !important;
  }

  .header-container .btn-vip-outline .btn-arrow {
    display: none !important;
  }

  .btn-vip-gold-footer {
    justify-self: auto !important;
    z-index: 2;
    padding: 11px 20px !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.06em !important;
    font-weight: 600 !important;
    gap: 7px !important;
    border-radius: 4px !important;
    width: auto !important;
    max-width: max-content !important;
    white-space: nowrap !important;
  }

  /* ── HEADER & FOOTER LOGO ── */
  .logo-img,
  .footer-logo-img {
    height: 32px !important;
    max-height: 34px !important;
    width: auto !important;
    max-width: 125px !important;
  }

  /* ── HERO SECTION: BRIGHT VIDEO & DELICATE OVERLAY ON RESPONSIVE ── */
  .hero-gallery-wrap {
    height: 80vh !important;
    min-height: 460px !important;
    max-height: 640px !important;
    position: relative !important;
    overflow: hidden !important;
    background-color: #080e1e !important;
  }

  /* Make Bento Gallery container fill 100% background on mobile */
  #hero-bento-gallery {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    z-index: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  /* Hide all 8 bento image items on mobile */
  #hero-bento-gallery .gallery__item {
    display: none !important;
  }

  /* Show ONLY the video item as full background on mobile & tablet fallback */
  #hero-bento-gallery .gallery__item:nth-child(3),
  #hero-bento-gallery .gallery__item.video-item {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Video plays vivid, smooth, and hardware-accelerated with zero lag */
  #hero-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    opacity: 1 !important;
    filter: none !important;
    transform: translateZ(0) !important;
    will-change: transform !important;
    backface-visibility: hidden !important;
  }

  /* Hero Text Overlay: Delicate Transparent Scrim for Vivid Video + Crystal-Clear Text */
  .hero-text-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 5 !important;
    background: linear-gradient(180deg,
        rgba(8, 14, 30, 0.22) 0%,
        rgba(8, 14, 30, 0.48) 50%,
        rgba(8, 14, 30, 0.88) 100%) !important;
    padding: 75px 20px 25px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
  }

  .hero-left {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    transform: translateZ(0) !important;
  }

  .hero-text-block {
    margin-bottom: 20px !important;
  }

  /* Tagline */
  .hero-tagline {
    font-size: 0.72rem !important;
    letter-spacing: 0.22em !important;
    color: #C5A880 !important;
    display: inline-block !important;
    margin-bottom: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Hero Title */
  .hero-title {
    font-size: clamp(2.1rem, 7vw, 2.9rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    color: #FFFFFF !important;
    margin-bottom: 12px !important;
    font-weight: 500 !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .hero-title br:nth-of-type(2),
  .hero-title br:nth-of-type(3) {
    display: none !important;
  }

  .hero-title .word-wrapper,
  .hero-title .word-inner {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  /* Hero Subtitle */
  .hero-subtitle {
    display: block !important;
    font-size: clamp(0.92rem, 3.2vw, 1.05rem) !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 22px !important;
    max-width: 95% !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Responsive Hero Video (Mobile/Tablet: Hide image poster, play video only) */
  .video-poster {
    display: none !important;
  }

  #hero-video {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Hero Action Buttons */
  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .hero-actions .btn-primary {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 20px !important;
    font-size: 0.85rem !important;
    background: #C5A880 !important;
    color: #080E1E !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(197, 168, 128, 0.3) !important;
  }

  .hero-actions .btn-secondary {
    width: 100% !important;
    justify-content: center !important;
    padding: 13px 20px !important;
    font-size: 0.85rem !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #FFFFFF !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    backdrop-filter: blur(8px) !important;
  }


  .hero-video-scroll-indicator {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    bottom: 22px !important;
    z-index: 100 !important;
    pointer-events: auto !important;
  }

  .hero-video-scroll-indicator .scroll-text {
    font-size: 0.68rem !important;
    letter-spacing: 0.18em !important;
  }



  /* ── FORCE 100% VISIBILITY & ELEGANT FALLBACK FOR ALL SECTIONS ON RESPONSIVE ── */
  .welcome-section,
  .curated-section,
  .solutions-section,
  .quote-section,
  .contact-3d-section,
  .main-footer,
  .anim-fade-up,
  .anim-word-reveal,
  .anim-stat-card,
  .word-wrapper,
  .word-inner {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  /* ── SECTION 2: WELCOME SECTION RESPONSIVE ── */
  .welcome-section {
    padding: 60px 0 25px 0 !important;
    position: relative !important;
    z-index: 2 !important;
  }

  .welcome-split {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
  }

  .welcome-split-left {
    width: 100% !important;
  }

  .welcome-eyebrow {
    font-size: 0.72rem !important;
    letter-spacing: 0.2em !important;
    color: #C5A880 !important;
    display: block !important;
    margin-bottom: 12px !important;
    font-weight: 600 !important;
  }

  .welcome-heading {
    font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
    line-height: 1.2 !important;
    color: #FFFFFF !important;
    margin-bottom: 16px !important;
  }

  .welcome-desc-wrap {
    gap: 14px !important;
    margin-bottom: 20px !important;
  }

  .welcome-desc {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #A0AABF !important;
    margin-bottom: 0 !important;
  }

  .btn-welcome-link {
    font-size: 0.88rem !important;
    color: #C5A880 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .stat-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .stat-card {
    background: #0F1A30 !important;
    border: 1px solid rgba(197, 168, 128, 0.2) !important;
    padding: 20px 16px !important;
    border-radius: 12px !important;
  }

  .stat-number {
    font-size: 1.8rem !important;
    color: #F5EDD8 !important;
  }

  .stat-label {
    font-size: 0.78rem !important;
    color: #A0AABF !important;
  }

  .marquee-strip {
    margin-top: 50px !important;
    padding: 14px 0 !important;
  }


  /* ── PILLARS / SECTORS ── */
  /* ── SECTION 3: SECTOR CARDS PERFECT RESPONSIVE CENTER ALIGNMENT ── */
  .sectors-section {
    padding: 35px 0 60px 0 !important;
    overflow: hidden !important;
  }

  .sectors-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 22px !important;
    width: 100% !important;
  }

  .sector-card {
    width: 100% !important;
    max-width: 440px !important;
    height: 380px !important;
    margin: 0 auto !important;
    align-self: center !important;
    border-radius: 16px !important;
    overflow: hidden !important;
  }

  .sector-card-img-wrap {
    width: 100% !important;
    height: 100% !important;
  }

  .sector-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  /* ── TAILORED SYSTEMS SECTION ── */
  .ts-editorial-row,
  .ts-editorial-row.ts-row-reverse {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 50px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(197, 168, 128, 0.2);
  }

  .ts-pointer-arrow {
    display: none !important;
    /* Hide triangle arrows on stacked layout */
  }

  .ts-img-col {
    height: 300px;
  }

  .ts-content-col {
    padding: 30px 24px;
  }

  /* ── QUOTE ENGINE BANNER ── */
  .quote-banner-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 30px;
  }

  /* ── 3D CONTACT SECTION ── */
  .contact-3d-stage {
    height: 580px;
  }

  .contact-form-card {
    width: 340px;
    padding: 24px 20px;
  }

  /* ── FOOTER ── */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
  }

  .footer-banner-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* ==========================================================================
   3. MOBILE DEVICES (481px – 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {

  /* ── GLOBAL SPACING ── */
  section {
    padding: 60px 0 !important;
  }

  .section-container {
    width: 90%;
    padding: 0 10px;
  }

  /* ── HEADER & NAV DRAWER ── */
  .header-container {
    position: relative !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    grid-template-columns: none !important;
    padding: 0 16px;
    height: 68px;
    gap: 10px;
  }

  .header-container .menu-toggle {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, calc(-50% + 2px)) !important;
    margin: 0 !important;
    z-index: 5;
  }

  .logo-img,
  .footer-logo-img {
    height: 26px !important;
    max-height: 28px !important;
    width: auto !important;
    max-width: 100px !important;
  }

  .header-container .btn-vip-outline {
    display: inline-flex !important;
    padding: 5px 9px !important;
    font-size: 0.60rem !important;
    letter-spacing: 0.02em !important;
    gap: 4px !important;
    white-space: nowrap !important;
  }

  .header-container .btn-vip-outline .btn-arrow {
    display: none !important;
  }

  .btn-vip-gold-footer {
    display: inline-flex !important;
    padding: 10px 18px !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.05em !important;
    font-weight: 600 !important;
    gap: 6px !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
    width: auto !important;
    max-width: max-content !important;
    box-sizing: border-box !important;
    text-align: center !important;
    justify-content: center !important;
    z-index: 2;
  }

  .btn-vip-outline .btn-arrow {
    display: none !important;
  }

  .nav-drawer .drawer-content {
    width: 100%;
    max-width: 100vw;
    padding: 80px 24px 40px;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .drawer-menu li a {
    font-size: 1.35rem;
  }

  /* ── HERO SECTION ── */
  .hero-gallery-wrap {
    min-height: 100dvh !important;
    min-height: -webkit-fill-available !important;
  }

  .hero-text-overlay {
    padding: 85px 20px 24px !important;
  }

  .hero-tagline {
    font-size: 0.7rem;
    letter-spacing: 2px;
  }

  .hero-title {
    font-size: clamp(1.95rem, 6.5vw, 2.5rem) !important;
    line-height: 1.15;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: clamp(0.88rem, 3.2vw, 1.0rem) !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 20px !important;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.85rem;
  }


  /* ── WELCOME SECTION ── */
  .welcome-section {
    padding: 45px 0 20px 0 !important;
  }

  .welcome-eyebrow {
    font-size: 0.7rem;
  }

  .welcome-heading {
    font-size: 1.8rem;
    line-height: 1.25;
  }

  .welcome-desc {
    font-size: 0.95rem;
  }

  .stat-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  /* ── PILLARS / SECTORS ── */
  .sectors-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .sector-card {
    height: 320px;
  }

  .sector-title {
    font-size: 1.4rem;
  }

  /* ── TAILORED SYSTEMS ── */
  .ts-editorial-grid {
    gap: 24px;
  }

  .ts-img-col {
    height: 220px;
  }

  .ts-content-col {
    padding: 20px 16px;
  }

  .ts-title {
    font-size: 1.3rem;
  }

  .ts-desc {
    font-size: 0.88rem;
  }

  .ts-bullet-list {
    flex-direction: column;
    gap: 6px;
  }

  /* ── QUOTE ENGINE ── */
  .quote-section {
    padding: 50px 0 !important;
  }

  .quote-banner-inner {
    padding: 30px 20px;
    border-radius: 16px;
  }

  .quote-title {
    font-size: 1.8rem;
  }

  .quote-desc {
    font-size: 0.9rem;
  }

  .btn-quote-cta {
    width: 100%;
    justify-content: center;
  }

  .quote-value-item {
    gap: 14px;
  }

  .quote-val-num {
    font-size: 1.3rem;
  }

  .quote-val-title {
    font-size: 1rem;
  }

  .quote-val-desc {
    font-size: 0.85rem;
  }

  /* ── 3D CONTACT SECTION ── */
  .contact-3d-section {
    padding-top: 45px !important;
    padding-bottom: 0 !important;
  }

  .contact-split-panel {
    margin-bottom: 20px !important;
  }

  .contact-3d-title {
    font-size: 1.8rem;
  }

  .contact-3d-subtitle {
    font-size: 0.88rem;
  }

  .contact-3d-stage {
    height: 560px;
  }

  .contact-form-card {
    width: 100% !important;
    max-width: 440px !important;
    padding: 24px 20px !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  .cfc-field-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .cfc-field {
    min-width: 0 !important;
    width: 100% !important;
    margin-bottom: 12px;
  }

  .cfc-title {
    font-size: 1.25rem;
  }

  .cfc-input {
    padding: 10px 12px;
    font-size: 13px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .cfc-input[type="date"],
  input[type="date"].cfc-input {
    min-height: 40px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .cfc-textarea {
    height: 65px;
  }

  .cfc-submit {
    padding: 12px;
    font-size: 12px;
  }

  .contact-speech-bubble {
    font-size: 12px;
    padding: 8px 14px;
  }

  /* ── FOOTER ── */
  .main-footer {
    padding: 25px 0 30px 0 !important;
  }

  .footer-banner-heading {
    font-size: 1.5rem;
  }

  .btn-vip-gold-footer {
    display: inline-flex !important;
    width: auto !important;
    max-width: max-content !important;
    justify-content: center !important;
    padding: 10px 18px !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.05em !important;
    font-weight: 600 !important;
    gap: 6px !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-logo-img {
    height: 30px !important;
    max-height: 32px !important;
    width: auto !important;
    max-width: 115px !important;
  }

  .footer-contact-pills {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-contact-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-social-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  /* ── MODALS ── */
  .modal-card {
    width: 94vw !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    padding: 24px 18px !important;
  }

  .modal-title {
    font-size: 1.4rem !important;
  }

  .form-row-2 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* ==========================================================================
   4. ULTRA-SMALL MOBILE DEVICES (<400px)
   ========================================================================== */
@media screen and (max-width: 400px) {
  .hero-title {
    font-size: 1.95rem;
  }

  .welcome-heading {
    font-size: 1.55rem;
  }

  .stat-cards-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 14px !important;
    box-sizing: border-box !important;
  }

  .cfc-field {
    margin-bottom: 10px;
    min-width: 0 !important;
    width: 100% !important;
  }

  .res-card-img-wrap {
    height: 170px !important;
  }

  .res-card-body {
    padding: 18px 14px !important;
  }

  .res-card-title {
    font-size: 1.18rem !important;
    margin-bottom: 8px !important;
  }

  .res-card-desc {
    font-size: 0.85rem !important;
    margin-bottom: 12px !important;
  }

  .res-card-bullets li {
    font-size: 0.8rem !important;
  }
}

/* ── Responsive Only: Contact Form Card Exact Centering ── */
@media (max-width: 1024px) {
  .csp-right {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    padding: 24px 0 !important;
  }

  .contact-form-card {
    margin: 0 auto !important;
    max-width: 480px !important;
    width: 100% !important;
  }

  .sectors-header {
    flex-direction: column;
    gap: 16px;
  }

  .sectors-header-desc {
    flex: auto;
    max-width: 100%;
    margin-top: 0;
  }
}

/* ── Quote Engine Responsive Styles ── */
@media (max-width: 1024px) {
  .quote-configurator-wrapper {
    grid-template-columns: 1fr;
  }

  .quote-summary-sidebar {
    position: static;
    top: auto;
    margin-top: 30px;
  }

  .quote-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .options-grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .configurator-stepper {
    overflow-x: auto !important;
    padding-bottom: 12px;
    gap: 15px;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .configurator-stepper::-webkit-scrollbar {
    display: none !important;
  }

  .modal-card,
  .quote-modal-card {
    width: 94vw !important;
    max-width: 480px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    box-sizing: border-box !important;
  }

  .stepper-step {
    flex-shrink: 0;
  }

  .stepper-label {
    font-size: 0.75rem;
  }

  .configurator-main-panel {
    padding: 24px 16px;
  }

  .wizard-step-title {
    font-size: 1.4rem;
  }

  .options-grid-2col,
  .options-grid-3col {
    grid-template-columns: 1fr;
  }

  .counters-grid {
    grid-template-columns: 1fr;
  }

  .quote-process-grid,
  .quote-faq-grid {
    grid-template-columns: 1fr;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   5. INNER PAGE HERO — All Inner Pages (Lifestyle, Pillars, Collection, etc.)
   ========================================================================== */
@media screen and (max-width: 1024px) {
  .inner-page-hero {
    padding: 130px 0 50px !important;
  }

  .inner-hero-container {
    padding: 0 24px !important;
  }

  .inner-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem) !important;
  }

  .inner-hero-stats {
    gap: 24px !important;
    flex-wrap: wrap !important;
  }

  .inner-stat-num {
    font-size: 1.6rem !important;
  }

  /* ── TRUST CARDS (Pillars Page) ── */
  .trust-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }

  /* ── LIFESTYLE MODE GRID ── */
  .lifestyle-mode-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }

  /* ── CONTACT SPLIT PANEL (Get In Touch) ── */
  .contact-split-panel {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .csp-left {
    width: 100% !important;
  }

  .csp-main-heading {
    font-size: clamp(2rem, 5vw, 3rem) !important;
  }

  /* ── BENTO GRID (Solutions Section) ── */
  .ts-bento-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }

  .ts-bento-card.wide {
    grid-column: span 2 !important;
  }

  /* ── PRODUCT/COLLECTION GRID ── */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }

  /* ── STUDIO CARDS (Experience Center) ── */
  .studio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }

  /* ── RESIDENTIAL BESPOKE LIVING GRID ── */
  .res-editorial-section {
    padding: 50px 0 !important;
  }

  .res-editorial-header {
    margin-bottom: 36px !important;
  }

  .res-feature-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .res-card-img-wrap {
    height: 200px !important;
  }

  .res-card-body {
    padding: 22px 18px !important;
  }

  .res-card-title {
    font-size: 1.3rem !important;
    margin-bottom: 10px !important;
  }

  .res-card-desc {
    font-size: 0.88rem !important;
    margin-bottom: 16px !important;
  }

  /* ── ECOSYSTEM PARTNERS HORIZONTAL SCROLL (Pillars Page) ── */
  .pillars-partners-grid {
    display: flex !important;
    overflow-x: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 16px !important;
    padding: 10px 4px 18px 4px !important;
    margin-top: 30px !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(197, 168, 128, 0.4) transparent;
  }

  .pillars-partners-grid::-webkit-scrollbar {
    height: 4px;
  }

  .pillars-partners-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
  }

  .pillars-partners-grid::-webkit-scrollbar-thumb {
    background: var(--accent-gold, #c5a880);
    border-radius: 4px;
  }

  .pillars-partners-grid .legal-section-card {
    flex: 0 0 220px !important;
    width: 220px !important;
    min-width: 220px !important;
    scroll-snap-align: start !important;
  }

  /* ── PARTNERS GRID ── */
  .trust-grid[style*="repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ── LIFESTYLE SECTION SPLIT ── */
  .lifestyle-split {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .lifestyle-right {
    min-height: 320px !important;
  }

  /* ── SHOWROOM SECTION ── */
  .showroom-section .section-container {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .showroom-left {
    width: 100% !important;
  }

  /* ── TS GRID HEADER ── */
  .ts-grid-header {
    flex-direction: column !important;
    gap: 16px !important;
  }

  .ts-grid-header-left,
  .ts-grid-header-right {
    width: 100% !important;
  }

  .ts-grid-main-heading {
    font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
  }
}

/* ==========================================================================
   6. TABLET MEDIUM — Inner Pages (max-width: 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {

  /* ── INNER PAGE HERO ── */
  .inner-page-hero {
    padding: 110px 0 40px !important;
  }

  .inner-hero-badge {
    font-size: 0.72rem !important;
    padding: 5px 14px !important;
  }

  .inner-hero-title {
    font-size: clamp(1.8rem, 7vw, 2.6rem) !important;
    line-height: 1.18 !important;
    margin-bottom: 14px !important;
  }

  .inner-hero-desc {
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
  }

  .inner-hero-stats {
    gap: 16px !important;
    padding-top: 16px !important;
  }

  .inner-stat-num {
    font-size: 1.4rem !important;
  }

  .inner-stat-label {
    font-size: 0.75rem !important;
  }

  /* ── TRUST CARDS / PILLARS ── */
  .trust-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .trust-card {
    padding: 28px 22px !important;
  }

  .trust-card-title {
    font-size: 1.3rem !important;
  }

  .trust-card-desc {
    font-size: 0.88rem !important;
  }

  /* ── LIFESTYLE MODE GRID ── */
  .lifestyle-mode-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .lifestyle-mode-card {
    padding: 22px 18px !important;
  }

  /* ── LIFESTYLE SECTION ── */
  .lifestyle-section {
    padding: 60px 0 !important;
  }

  .lifestyle-split {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .lifestyle-right {
    min-height: 260px !important;
  }

  .editorial-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
  }

  .editorial-desc {
    font-size: 0.9rem !important;
  }

  /* ── CONTACT SPLIT PANEL ── */
  .contact-split-panel {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .csp-main-heading {
    font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
  }

  .csp-desc {
    font-size: 0.9rem !important;
  }

  .csp-info-row {
    font-size: 0.88rem !important;
  }

  /* ── BENTO GRID ── */
  .ts-bento-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .ts-bento-card.wide {
    grid-column: span 1 !important;
  }

  .ts-bento-card {
    padding: 24px 20px !important;
  }

  /* ── PRODUCT/COLLECTION GRID ── */
  .product-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
  }

  .product-card {
    border-radius: 14px !important;
  }

  .product-card-name {
    font-size: 0.95rem !important;
  }

  /* ── COLLECTION FILTER BAR ── */
  .collection-filter-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: flex-start !important;
  }

  .collection-filter-btn {
    font-size: 0.78rem !important;
    padding: 7px 14px !important;
  }

  /* ── STUDIO CARDS ── */
  .studio-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .studio-card {
    min-height: 240px !important;
  }

  /* ── PILLARS TAG + SECTION HEADINGS ── */
  .pillars-tag {
    font-size: 0.72rem !important;
    padding: 5px 14px !important;
  }

  .ts-grid-main-heading {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
    line-height: 1.2 !important;
  }

  .ts-grid-header-desc {
    font-size: 0.9rem !important;
  }

  /* ── SECTORS HEADER ── */
  .sectors-header {
    flex-direction: column !important;
    gap: 14px !important;
    text-align: left !important;
  }

  .sectors-heading {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
  }

  /* ── SHOWROOM SECTION ── */
  .showroom-section .section-container {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .showroom-image-frame {
    height: 260px !important;
    border-radius: 16px !important;
  }

  /* ── CTA BANNERS (dpo-contact-banner) ── */
  .dpo-contact-banner {
    flex-direction: column !important;
    gap: 20px !important;
    text-align: center !important;
  }

  .dpo-info-left h3 {
    font-size: 1.3rem !important;
  }

  .dpo-info-left p {
    font-size: 0.88rem !important;
  }

  /* ── PROCESS STEP CARDS ── */
  .process-step-card {
    padding: 20px 16px !important;
  }

  /* ── LEGAL PAGES ── */
  .legal-section-card {
    padding: 22px 18px !important;
  }

  .legal-intro-heading {
    font-size: 1.6rem !important;
  }

  /* ── TS EDITORIAL ROW (solutions already handled above, ensure tablet) ── */
  .ts-editorial-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
  }

  .ts-img-col {
    height: 220px !important;
  }

  .ts-content-col {
    padding: 22px 18px !important;
  }

  .ts-title {
    font-size: 1.2rem !important;
  }

  /* ── EKINEX PROD SECTION ── */
  .ekinex-prod-card-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* ── TOOLS DARK SECTION ── */
  .tools-dark-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* ── QUOTE SECTION INSIDE HOME ── */
  .quote-banner-left>* {
    text-align: center !important;
  }

  .quote-banner-right {
    border-left: none !important;
    border-top: 1px solid rgba(197, 168, 128, 0.2) !important;
    padding-top: 24px !important;
  }

  /* ── WELCOME PILLARS ── */
  .welcome-pillars-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* ── FOOTER BANNER ── */
  .footer-banner-text {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
  }

  /* ── QUOTE ENGINE CONFIGURATOR RESPONSIVE ── */
  .quote-configurator-wrapper {
    max-width: 100% !important;
    gap: 24px !important;
  }

  .quote-summary-header-strip {
    padding: 12px 18px !important;
    border-radius: 14px !important;
    gap: 16px !important;
  }

  .strip-item {
    font-size: 0.8rem !important;
  }

  .configurator-stepper {
    display: flex !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    padding: 8px !important;
    gap: 6px !important;
  }

  .configurator-stepper::-webkit-scrollbar {
    display: none !important;
  }

  .stepper-step {
    padding: 8px 12px !important;
    flex-shrink: 0 !important;
  }

  .configurator-main-panel {
    padding: 28px 20px !important;
    border-radius: 20px !important;
  }

  .options-grid-2col,
  .options-grid-3col,
  .counters-grid,
  #quote-proposal-form .form-row-2 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* ==========================================================================
   7. SMALL MOBILE (max-width: 480px)
   ========================================================================== */
@media screen and (max-width: 480px) {

  /* ── HEADER & FOOTER LOGO SMALL MOBILE ── */
  .header-container {
    padding: 0 12px !important;
  }

  .logo-img,
  .footer-logo-img {
    height: 22px !important;
    max-height: 24px !important;
    width: auto !important;
    max-width: 85px !important;
  }

  .header-container .btn-vip-outline {
    padding: 4px 7px !important;
    font-size: 0.55rem !important;
    letter-spacing: 0.01em !important;
  }

  .btn-vip-gold-footer {
    padding: 8px 14px !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.04em !important;
    width: auto !important;
    max-width: max-content !important;
  }

  /* ── INNER HERO STATS WRAP ── */
  .inner-hero-stats {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: flex-start !important;
  }

  /* ── INNER HERO TITLE ── */
  .inner-hero-title {
    font-size: clamp(1.6rem, 8vw, 2.1rem) !important;
  }

  /* ── PRODUCT GRID → single column ── */
  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* ── LIFESTYLE MODE GRID ── */
  .lifestyle-mode-grid {
    grid-template-columns: 1fr !important;
  }

  /* ── TRUST GRID ── */
  .trust-grid {
    grid-template-columns: 1fr !important;
  }

  /* ── WELCOME PILLARS → single ── */
  .welcome-pillars-grid {
    grid-template-columns: 1fr !important;
  }

  /* ── FOOTER GRID ── */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  /* ── SECTOR CARD HEIGHT ── */
  .sector-card {
    height: 280px !important;
    max-width: 100% !important;
  }

  /* ── NAV DRAWER FULL WIDTH ── */
  .nav-drawer .drawer-content {
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
  }

  /* ── MODAL CARD ── */
  .modal-card {
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 20px 16px !important;
  }

  /* ── COLLECTION FILTER ── */
  .collection-filter-bar {
    gap: 6px !important;
  }

  .collection-filter-btn {
    font-size: 0.72rem !important;
    padding: 6px 12px !important;
  }

  /* ── CTA BANNERS ── */
  .dpo-contact-banner {
    padding: 24px 16px !important;
  }

  /* ── TS GRID MAIN HEADING ── */
  .ts-grid-main-heading {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
  }

  /* ── SECTORS HEADING ── */
  .sectors-heading {
    font-size: clamp(1.4rem, 7vw, 1.9rem) !important;
  }

  /* ── EKINEX SOLUTION CARD ── */
  .ekinex-solution-card {
    padding: 22px 16px !important;
  }

  /* ── QUOTE PROCESS STEP CARDS ── */
  .quote-process-grid {
    grid-template-columns: 1fr !important;
  }

  /* ── PARTNERS GRID → 2-col ── */
  .partners-logo-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* ==========================================================================
   8. GLOBAL ANIMATION FALLBACK — Ensure all animated elements are visible
      on all screen sizes (no invisible elements from GSAP initial state)
   ========================================================================== */
@media screen and (max-width: 768px) {

  /* Force all GSAP-animated elements visible at mobile — no hidden content */
  .inner-hero-badge,
  .inner-hero-title,
  .inner-hero-desc,
  .inner-stat-item,
  .trust-card,
  .lifestyle-mode-card,
  .product-card,
  .studio-card,
  .legal-section-card,
  .stat-card,
  .ts-bento-card,
  .tool-dark-card,
  .ekinex-solution-card,
  .process-step-card,
  .quote-option-card,
  .collection-filter-bar,
  .pillars-tag,
  .ts-grid-main-heading,
  .sectors-heading,
  .editorial-title,
  .csp-main-heading,
  .csp-tag-row,
  .csp-desc,
  .csp-info-row,
  .footer-banner-text,
  .footer-banner-cta,
  .footer-col {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    clip-path: none !important;
  }
}