/* ==========================================================================
   1. Large Desktop / 4K
   ========================================================================== */
@media (max-width: 1440px) {
  .price-card {
    transform: scale(0.92);
    transform-origin: top right;
  }
  .gallery-img {
    width: 100%;
  }
}

/* ==========================================================================
   2. Laptop
   ========================================================================== */
@media (max-width: 1200px) {
  /* HERO SECTION STANDARD ALIGNMENT & CENTERING */
  .hero-content {
    margin-left: auto !important;
    margin-right: auto !important;
    width: calc(100% - 3.75rem) !important;
    margin-top: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .hero-title-wrapper {
    margin-bottom: 1.5rem !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .hero-title {
    font-size: clamp(3.7rem, 5.2vw + 0.5rem, 4.1rem) !important;
    text-align: center !important;
    margin-inline: auto !important;
    width: 100% !important;
    line-height: 1.1 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
  }
  .title-divider {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    margin-top: 0.75rem !important;
    margin-bottom: 1rem !important;
    margin-inline: auto !important;
    width: fit-content !important;
  }
  .hero-description {
    font-size: clamp(0.8125rem, 1.2vw + 0.55rem, 1.0625rem) !important;
    text-align: center !important;
    margin-inline: auto !important;
    max-width: min(36rem, 100%) !important;
  }
  .hero-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.25rem !important;
    margin-top: 2rem !important;
    width: 100% !important;
  }
  .hero-actions .hero-btn {
    flex: 0 1 12.5rem !important;
    white-space: nowrap !important;
  }

  .price-card {
    width: 20rem;
    transform: none;
  }

  .greenvista-card {
    grid-template-columns: 1fr;
    max-height: none;
    width: 100%;
    padding: 2.25rem;
  }
  .greenvista-left {
    padding: 1rem 0;
  }
  .greenvista-video {
    height: auto;
    min-height: auto;
    aspect-ratio: 1 / 1;
    width: 100%;
  }
  .video-preview-img {
    height: 100%;
    min-height: auto;
  }
}

/* ==========================================================================
   3. Small Laptop
   ========================================================================== */
@media (max-width: 1024px) {
  .hero {
    min-height: auto;
    padding-bottom: 3.125rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .logo-wrapper {
    position: relative;
    top: auto;
    left: auto;
    margin-top: 2.5rem;
    margin-left: 1.875rem;
    margin-bottom: 1.5rem;
  }
  .hero-content {
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 3.75rem);
    margin-top: 0;
    padding: 0;
    text-align: center;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .overlay {
    background: linear-gradient(
      to right,
      rgba(6, 28, 20, 0.98) 0%,
      rgba(6, 28, 20, 0.92) 50%,
      rgba(6, 28, 20, 0.85) 100%
    );
  }
  .hero-btn {
    padding: 0.8125rem 1.75rem;
    font-size: 0.8125rem;
    min-height: auto;
    white-space: nowrap;
  }
  .hero-btn i {
    font-size: 0.875rem;
    margin-right: 0.5rem;
  }
  .enquiry-float-btn {
    left: 1.25rem;
    bottom: 1.875rem;
    width: 2.875rem;
    height: 2.875rem;
    font-size: 1.4rem;
  }
  .details-container {
    grid-template-columns: 1fr;
  }
  .gallery-section {
    margin-top: 0;
    padding: 4rem 1.5rem;
  }
  .slider-wrapper {
    width: 100%;
  }
  .gallery-card {
    flex: 0 0 calc((100% - (1 * 1.5rem)) / 2);
    width: calc((100% - (1 * 1.5rem)) / 2);
  }


  .lux-footer .container {
    padding: 0 2.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .footer-center {
    margin: 1.25rem 0 2rem;
    width: 100%;
    box-sizing: border-box;
  }
  .footer-grid {
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: start;
    gap: 2.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 2rem 0;
  }
  .footer-col {
    text-align: left;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
  }
  .footer-col:nth-child(1) {
    max-width: 100%;
  }
  .footer-col:nth-child(2) {
    margin-left: 0;
    max-width: 100%;
  }
  .footer-col:nth-child(3) {
    max-width: 100%;
  }
  .footer-col h4,
  .footer-col p,
  .footer-col ul,
  .footer-col ul li,
  .footer-contact,
  .footer-contact li {
    text-align: left;
  }
  .footer-col ul li,
  .footer-contact li {
    justify-content: flex-start;
  }
  .footer-col:nth-child(2) p {
    justify-content: flex-start;
    text-align: left;
  }
  .footer-col:nth-child(2)::after {
    display: none;
  }
  .lux-socials {
    display: flex;
    justify-content: flex-start !important;
    align-items: center;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
  }
  .footer-col:last-child {
    align-items: flex-start;
    text-align: left;
  }
  .footer-bottom {
    margin-top: 1.25rem;
    width: 100%;
    box-sizing: border-box;
  }
}

/* ==========================================================================
   4. iPad Air / iPad Pro Portrait
   ========================================================================== */
@media (max-width: 820px) {
  .hero-title {
    font-size: clamp(3.0rem, 5.5vw + 0.5rem, 3.6rem) !important;
  }
  .hero-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
  }
  .hero-btn i {
    font-size: 0.8125rem;
    margin-right: 0.4rem;
  }
  .logo-wrapper {
    margin-left: 1.25rem;
  }
  .hero-content {
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 2.5rem);
  }

}

/* ==========================================================================
   5. Tablet
   ========================================================================== */
@media (max-width: 768px) {
  .overview-card,
  .highlights-card {
    padding: 1.5rem;
  }
  .details-title {
    font-size: 2.125rem;
    overflow-wrap: break-word;
  }
  .overview-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }
  .highlights-grid {
    grid-template-columns: 1fr;
  }
  .highlight-content {
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
  }
  .highlight-content span {
    text-align: left;
  }
  .slider-arrow {
    display: none !important;
  }

  .greenvista-card {
    padding: 1.5rem;
    border-radius: 1.75rem;
  }
  .greenvista-left {
    padding: 1rem 0;
  }
  .greenvista-left h2 {
    font-size: 2.5rem;
    overflow-wrap: break-word;
  }
  .greenvista-left p {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
  .greenvista-tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.875rem;
  }
  .watch-btn {
    font-size: 0.9375rem;
    padding: 0.75rem 1.25rem;
    width: 100%;
    justify-content: center;
  }
  .watch-icon {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.8125rem;
  }


  .lux-footer {
    padding: 4rem 1.25rem 5.5rem !important;
    overflow-x: hidden;
  }
  .lux-footer .container {
    padding: 0 1.25rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .footer-center {
    margin: 1.25rem 0 2rem;
    width: 100%;
    box-sizing: border-box;
  }
  .footer-center h2 {
    font-size: 2.25rem;
    overflow-wrap: break-word;
  }
  .footer-grid {
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: start;
    gap: 2.25rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1.75rem 0;
  }
  .footer-col {
    text-align: left;
    align-items: flex-start;
  }
  .lux-socials {
    display: flex;
    justify-content: flex-start !important;
    align-items: center;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
  }
  .footer-col:last-child {
    align-items: flex-start;
    text-align: left;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding-bottom: 0.5rem;
    width: 100%;
    margin-top: 1.25rem;
    box-sizing: border-box;
  }
  .footer-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
  }
  .footer-meta .dot-sep {
    display: none;
  }
  .enquiry-popup {
    display: flex;
    align-items: flex-start;
    overflow-y: auto;
    padding: 1.25rem 0.625rem;
  }
  .enquiry-popup-box {
    grid-template-columns: 1fr;
    margin: 2.5rem auto;
    max-height: none;
  }
  .popup-left,
  .popup-right {
    padding: 2.25rem 1.75rem;
  }
  .popup-left h2 {
    font-size: 2.375rem;
  }
}

/* ==========================================================================
   6. Mobile Landscape / Large Phones
   ========================================================================== */
@media (max-width: 640px) {
  .logo-wrapper {
    position: relative;
    top: auto;
    left: auto;
    margin-top: 2rem;
    margin-left: 1.25rem;
    margin-bottom: 1.25rem;
    transform: scale(0.82);
    transform-origin: left center;
  }
  .company-logo {
    width: 3.625rem;
    height: 3.625rem;
  }
  .logo-title {
    font-size: 1.125rem;
  }
  .logo-subtitle {
    font-size: 0.5rem;
  }
  .hero-title {
    font-size: clamp(2.4rem, 6.5vw + 0.3rem, 2.9rem) !important;
  }

  .hero-btn {
    padding: 0.6875rem 1.375rem;
    font-size: 0.75rem;
  }
  .hero-btn i {
    font-size: 0.75rem;
  }
  .hero-content {
    width: calc(100% - 2.5rem);
    margin-left: auto;
    margin-right: auto;
    padding: 0;
  }
  .gallery-section {
    margin-top: 0;
    padding: 3rem 1rem;
  }
  .gallery-card {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 1 / 1.1;
  }

  .enquiry-float-btn {
    left: 0.9375rem;
    bottom: 1.5625rem;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.3rem;
  }
  .scroll-to-top-btn {
    right: 0.9375rem;
    bottom: 1.5625rem;
    width: 2.75rem; /* 44px */
    height: 2.75rem; /* 44px */
    font-size: 1rem;
  }
}

/* ==========================================================================
   7. Mobile Standard
   ========================================================================== */
@media (max-width: 480px) {
  .hero-btn {
    padding: 0.6875rem 1.25rem;
    font-size: 0.75rem;
  }
  .hero-btn i {
    font-size: 0.75rem;
  }
  .logo-wrapper {
    margin-left: 0.9375rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }
  .hero-content {
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 1.875rem);
    padding: 0;
    border-radius: 0;
  }
  .details-title {
    font-size: 1.75rem;
  }
  .overview-card,
  .highlights-card {
    padding: 1.25rem 1rem;
  }
  .overview-box {
    padding: 1.125rem 1rem;
  }
  .greenvista-card {
    padding: 1.125rem;
    border-radius: 1.25rem;
  }
  .greenvista-left {
    padding: 0.75rem 0;
  }
  .greenvista-left h2 {
    font-size: 1.75rem;
  }
  .greenvista-left p {
    font-size: 0.875rem;
  }

  .lux-footer {
    padding: 3rem 1rem 5.5rem !important;
  }
  .lux-footer .container {
    padding: 0 1rem;
  }
  .footer-center {
    margin: 1.25rem 0 2rem;
    width: 100%;
    box-sizing: border-box;
  }
  .footer-center h2 {
    font-size: 1.75rem;
  }
  .footer-center p {
    font-size: 0.875rem;
  }
  .footer-grid {
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: start;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1.5rem 0;
  }
  .footer-col h4 {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
  }
  .lux-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start !important;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding-left: 0;
    box-sizing: border-box;
  }
  .footer-col:last-child {
    align-items: flex-start;
    text-align: left;
  }
  .footer-col,
  .footer-contact,
  .footer-contact li {
    text-align: left;
  }
  .footer-bottom {
    margin-top: 1.25rem;
    width: 100%;
    box-sizing: border-box;
  }
  .popup-left h2 {
    font-size: 2rem;
  }
  .popup-left,
  .popup-right {
    padding: 1.5rem 1.25rem;
  }
  .enquiry-form input,
  .enquiry-form textarea {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.75rem;
  }
  .submit-enquiry-btn {
    padding: 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
  }
  .close-enquiry {
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.375rem;
  }
}

/* ==========================================================================
   8. iPhone Pro Max / Large Android
   ========================================================================== */
@media (max-width: 430px) {
  .divider-line {
    width: 2.5rem !important;
  }
  .logo-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    transform: none !important;
    transform-origin: unset !important;
    padding-right: 60px !important;
    box-sizing: border-box !important;
  }
  .company-logo {
    width: 3rem !important;
    height: 3rem !important;
    flex-shrink: 0 !important;
  }
  .logo-title {
    font-size: clamp(0.9rem, 2.8vw, 1.15rem) !important;
  }

}

/* ==========================================================================
   8b. strictly 412px - 430px devices
   ========================================================================== */
@media (min-width: 412px) and (max-width: 480px) {
  .hero-title {
    font-size: 2rem !important;
    line-height: 1.15 !important;
    text-align: center !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    transform: none !important;
    position: static !important;
  }
  .title-divider {
    position: static !important;
    transform: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
    width: fit-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .divider-line,
  .divider-diamond {
    position: static !important;
    transform: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    top: auto !important;
    bottom: auto !important;
  }
  .hero-description {
    text-align: center !important;
    max-width: 18rem !important;
    margin-inline: auto !important;
  }
}

/* ==========================================================================
   9. Mobile Small
   ========================================================================== */
@media (max-width: 390px) {
  .logo-wrapper {
    padding-right: 55px !important;
    gap: 0.5rem !important;
  }
  .logo-title {
    font-size: 0.8rem !important;
  }
  .logo-subtitle {
    font-size: 0.45rem !important;
  }
  .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .hero-title {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
    font-size: 1.95rem !important;
    line-height: 1.12 !important;
    transform: none !important;
    position: static !important;
  }
  .title-divider {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: fit-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0.9rem !important;
    margin-bottom: 1rem !important;
    position: static !important;
    transform: none !important;
  }
  .divider-line {
    width: 2.25rem !important;
    position: static !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
  }
  .divider-diamond {
    position: static !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
  }
  .hero-actions {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.875rem !important;
  }
  .hero-actions .hero-btn {
    width: 100% !important;
    max-width: 16rem !important;
    flex: none !important;
  }
  .lux-footer {
    padding: 2.5rem 0.75rem 5.5rem !important;
  }
  .lux-footer .container {
    padding: 0 0.75rem;
  }
  .footer-center {
    margin: 1.25rem 0 1.75rem;
    width: 100%;
    box-sizing: border-box;
  }
  .footer-center h2 {
    font-size: 1.5rem;
  }
  .footer-grid {
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: start;
    gap: 1.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1.25rem 0;
  }
  .footer-bottom {
    margin-top: 1.25rem;
    width: 100%;
    box-sizing: border-box;
  }
}

/* ==========================================================================
   10. iPhone SE / Small Phones
   ========================================================================== */
@media (max-width: 375px) {
  .logo-wrapper {
    padding-right: 50px !important;
    gap: 0.45rem !important;
  }
  .logo-title {
    font-size: 0.78rem !important;
  }
  .logo-subtitle {
    font-size: 0.42rem !important;
  }
  .divider-line {
    width: 2rem !important;
  }

  .greenvista-left h2 {
    font-size: 1.5625rem;
  }
}

/* ==========================================================================
   10b. Galaxy Z Fold 5 / Narrow Devices (344px)
   ========================================================================== */
@media (max-width: 344px) {
  .logo-wrapper {
    padding-right: 45px !important;
    gap: 0.4rem !important;
  }
  .logo-title {
    font-size: 0.75rem !important;
  }
  .logo-subtitle {
    font-size: 0.4rem !important;
  }
  .divider-line {
    width: 1.75rem !important;
  }
}

/* ==========================================================================
   11. Very Small Devices
   ========================================================================== */
@media (max-width: 320px) {
  .logo-wrapper {
    padding-right: 40px !important;
    gap: 0.35rem !important;
  }
  .logo-title {
    font-size: 0.7rem !important;
  }
  .logo-subtitle {
    font-size: 0.35rem !important;
  }
  .divider-line {
    width: 1.5rem !important;
  }
  .details-title {
    font-size: 1.5rem;
  }
  .greenvista-left h2 {
    font-size: 1.375rem;
  }


  .footer-center h2 {
    font-size: 1.25rem !important;
  }
  .lux-footer {
    padding: 2rem 0.5rem 5.5rem !important;
  }
  .lux-footer .container {
    padding: 0 0.5rem;
  }
  .footer-center {
    margin: 1.25rem 0 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }
  .footer-grid {
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: start;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1rem 0;
  }
  .footer-bottom {
    margin-top: 1.25rem;
    width: 100%;
    box-sizing: border-box;
  }
  .popup-left h2 {
    font-size: 1.625rem;
  }
  .popup-left,
  .popup-right {
    padding: 1.125rem 0.875rem;
  }
}

/* Fix Contact Us section alignment in the footer on mobile and tablet */
@media (max-width: 1024px) {
    .lux-footer .footer-col:nth-child(2) {
        justify-self: start !important;
        margin-left: 0 !important;
    }
    .lux-footer .footer-col:nth-child(2) p {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
    }
    .lux-footer .footer-col:nth-child(2) p i {
        width: 16px !important;
        text-align: center !important;
        flex-shrink: 0 !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
}

