/* Responsive: Tablets & Below */
@media screen and (max-width: 768px) {
  .containerr {
    flex-wrap: wrap;
    position: relative;
  }

  .hamburger {
    display: block;
  }

  .nav {
    width: 100%;
  }

  .nav__list {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    position: absolute;
    top: 70px;
    left: 0;
    padding: 20px;
    gap: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .nav__list.active {
    display: flex;
  }



  .dropdown-content {
    position: static;
    box-shadow: none;
    border: none;
    background-color: #f9f9f9;
    padding: 10px 20px;
  }

  .logo-img {
    height: 60px;
    width: 20vh !important;
  }

  .popup {
    padding: 15px;
    max-width: 300px;
  }

  .popup h2 {
    font-size: 18px;
  }

  .popup label,
  .popup input,
  .popup select {
    font-size: 12px;
  }

  .popup .submit-btn {
    font-size: 14px;
    padding: 8px;
  }

  .thank-you-message {
    padding: 15px;
  }

  .thank-you-message h3 {
    font-size: 16px;
  }

  .thank-you-message p {
    font-size: 12px;
  }

  .checkmark {
    width: 30px;
    height: 30px;
  }

  .checkmark::before {
    top: 9px;
    left: 12px;
    width: 6px;
    height: 12px;
    border-width: 0 2px 2px 0;
  }

  .svc-title {
    font-size: 2.2rem;
  }

  .work__grid,
  .services__grid,
  .about__grid,
  .contact__grid,
  .footer__content,
  .cards-container,
  .testimonial-wrapper,
  .refer-earn-card {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .about__image {
    order: -1;
  }

  .logo-img {
    height: 90px;
    width: 85px;
  }

  .testimonial-card {
    width: 100%;
  }

  .refer-earn-left,
  .refer-earn-right {
    width: 100%;
    text-align: center;
  }

  .refer-earn-right button {
    margin: 0 auto;
  }

  .card {
    width: 100%;
    height: auto;
  }

  .why-us {
    padding: 80px 0;
  }

  .section-title {
    font-size: 3rem;
  }

  .cards-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .card-inner {
    padding: 30px;
    height: 260px;
  }

  .card-img {
    width: 50px;
    height: 50px;
  }

  .card h3 {
    font-size: 1.8rem;
  }

  .card p {
    font-size: 1.4rem;
  }

  .step {
    flex-direction: column;
    text-align: center;
  }

  .carousel {
    flex-direction: column;
    gap: 10px;
  }

  .quality-banner {
    flex-direction: column;
    padding: 1.5rem;
  }

  .left-section {
    padding-right: 0;
    margin-bottom: 1.5rem;
  }

  .logo-and-text {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .text-content h2 {
    font-size: 1.25rem;
  }

  .text-content p {
    font-size: 0.875rem;
  }

  .know-more-btn {
    width: 100%;
    text-align: center;
  }

  .right-section {
    justify-content: center;
  }

  .checklist-img {
    max-width: 100%;
  }

  .quality-checks {
    font-size: 0.75rem;
    padding: 0.4rem 0.7rem;
  }

  .consultation-btn {
    font-size: 0.75rem;
    padding: 0.6rem 0.9rem;
    width: auto;
  }

  .faq-containeer {
    grid-template-columns: 1fr;
  }

  .faq-title {
    font-size: 1.5rem;
  }

  .faq-questionn h3 {
    font-size: 1rem;
  }

  .faq-answerr {
    font-size: 0.85rem;
  }

  .why-us h2 {
    font-size: 2.2rem;
  }

  .card h3 {
    font-size: 1.5rem;
  }

  .card p {
    font-size: 1.2rem;
  }

  .card {
    height: auto;
    padding: 15px;
  }

  .cards-container {
    padding: 0 10px;
    gap: 15px;
  }

  .phone-icon {
    width: 40px;
    height: 40px;
  }

  .phone-icon i {
    font-size: 20px;
  }

  :root {
    --header-height: 7rem;
  }

  .header {
    flex-direction: column;
    gap: 15px;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--color-white);
    overflow: hidden;
    transition: height var(--transition-medium);
  }

  .nav.active {
    height: auto;
    max-height: 100vh;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.5rem;
  }

  .svc-container {
    flex-direction: column;
    align-items: center;
  }

  .svc-card-link {
    width: 100%;
    margin-right: 0;
  }

  .recent-works h2 {
    font-size: 2rem;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .flip-card-inner {
    height: 150px;
  }

  .flip-card-front img {
    height: 150px;
  }

  .project-details {
    padding: 80px 0;
  }

  .details-content {
    padding: 30px;
  }

  .threeD-gallery h2 {
    font-size: 1.8rem;
  }

  .threeD-grid {
    grid-template-columns: 1fr;
  }

  .about {
    padding: 80px 0;
  }

  .about__stats {
    flex-direction: column;
    gap: 20px;
  }

  .future-homes h2 {
    font-size: 2rem;
  }

  .features {
    gap: 30px;
  }

  .team__grid {
    grid-template-columns: 1fr;
  }

  .stats-sectionn {
    padding: 60px 10px;
  }

  .stat-box {
    max-width: 150px;
  }

  .stat-box h2 {
    font-size: 2rem;
  }

  .how-it-works h2 {
    font-size: 2rem;
  }

  .step img {
    width: 100%;
  }

  .step-content h3 {
    font-size: 2rem;
  }

  .step-content p {
    font-size: 1.2rem;
    margin: 0 30px;
  }

  .why-modern-title {
    font-size: 2rem;
  }

  .why-modern-stats {
    grid-template-columns: 1fr;
  }

  .partners h2 {
    font-size: 2.5rem;
  }

  .partner-logos {
    gap: 20px;
  }

  .luxury-heading {
    font-size: 2rem;
  }

  .luxury-grid {
    grid-template-columns: 1fr;
  }

  .reach-out {
    padding: 80px 0;
  }

  .estimate-box {
    padding: 20px;
  }

  .form-controls {
    flex-direction: column;
    gap: 10px;
  }
}
  /* Responsive tweaks  services section */
  @media (max-width: 768px) {
    .svc-title {
      font-size: 2rem;
    }
  }

  @media (max-width: 480px) {
    .svc-title {
      font-size: 1.5rem;
    }

    .svc-card-content {
      padding: 0.75rem;
    }

    .svc-card-title {
      font-size: 1rem;
    }

    .svc-card-desc {
      font-size: 0.85rem;
    }
  }

  

/* Header secion */
   @media (max-width: 768px) {
      .nav__list,
      .right-buttons {
        display: none;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        position: absolute;
        left: 0;
        top: 15vh;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 999;
      }
      .nav__list.active,
      .right-buttons.active {
        display: flex;
      }
      .right-buttons #eee{
        display: block;
  }
    }
    
  
/* Responsive: Very Small Screens */
@media screen and (max-width: 480px) {
  .containerr {
    padding: 8px 0;
  }

  .logo-img {
    height: 50px;
    width: 90px;
  }

  .hamburger {
    font-size: 20px;
    padding: 9px;
  }

  .nav__list {
    top: 60px;
    padding: 15px;
  }


  .get-quote {
    padding: 5px 10px;
    font-size: 13px;
  }

  .why-us {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .card-inner {
    padding: 25px;
    height: 240px;
  }

  .card-img {
    width: 45px;
    height: 45px;
  }

  .card h3 {
    font-size: 1.6rem;
  }

  .card p {
    font-size: 1.3rem;
  }

  .section-heading {
    font-size: 2rem;
  }

  .section-heading h1 {
    font-size: 1.25rem;
  }

  .quality-banner {
    padding: 1rem;
  }

  .text-content h2 {
    font-size: 1.125rem;
  }

  .text-content p {
    font-size: 0.8125rem;
  }

  .why-us h2 {
    font-size: 1.8rem;
  }

  .card h3 {
    font-size: 1.3rem;
  }

  .card p {
    font-size: 1rem;
  }

  .card-img {
    width: 36px;
    height: 36px;
  }

  .card:hover .card-img {
    width: 42px;
    height: 42px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .svc-title {
    font-size: 1.8rem;
  }

  .recent-works h2 {
    font-size: 1.8rem;
  }

  .project-details {
    padding: 60px 0;
  }

  .details-content h3 {
    font-size: 1.5rem;
  }

  .details-content p {
    font-size: 0.9rem;
  }

  .threeD-gallery h2 {
    font-size: 1.5rem;
  }

  .about {
    padding: 60px 0;
  }

  .about-text,
  .about__content p {
    font-size: 0.9rem;
  }

  .future-homes h2 {
    font-size: 1.5rem;
  }

  .feature img {
    width: 80px;
    height: 70px;
  }

  .team__name {
    font-size: 1.2rem;
  }

  .team__role {
    font-size: 0.8rem;
  }

  .stats-sectionn {
    padding: 40px 10px;
  }

  .stat-box h2 {
    font-size: 1.5rem;
  }

  .stat-box p {
    font-size: 0.9rem;
  }

  .how-it-works h2 {
    font-size: 1.8rem;
  }

  .step-content h3 {
    font-size: 1.5rem;
  }

  .step-content p {
    font-size: 1rem;
  }

  .why-modern-title {
    font-size: 1.8rem;
  }

  .why-modern-card h3 {
    font-size: 1.5rem;
  }

  .why-modern-card p {
    font-size: 0.9rem;
  }

  .partners h2 {
    font-size: 2rem;
  }

  .partner-logos img {
    width: 150px;
    height: 75px;
  }

  .luxury-heading {
    font-size: 1.8rem;
  }

  .luxury-card h3 {
    font-size: 1.2rem;
  }

  .luxury-card p {
    font-size: 0.9rem;
  }

  .reach-out {
    padding: 60px 0;
  }

  .estimate-box h3 {
    font-size: 1.5rem;
  }

  .input-block label {
    font-size: 0.9rem;
  }

  .input-block input,
  .input-block select,
  .input-block textarea {
    font-size: 0.8rem;
  }
}

/* Responsive adjustments for WhatsApp Button */
@media (max-width: 768px) {
  .whatsapp-button-image {
    width: 150px;
  }
}

/* Mobile refinements for homepage cards */
@media screen and (max-width: 768px) {
  .why-us {
    padding: 40px 0;
  }

  .why-us .container {
    width: 100%;
    max-width: none;
    padding: 0 12px;
  }

  .why-modern-container {
    padding: 40px 16px;
  }

  .why-modern-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
  }

  .why-modern-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 112px;
    padding: 18px 12px;
  }

  .why-modern-card h3 {
    font-size: 2rem;
    margin-bottom: 6px;
  }

  .why-modern-card p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .why-modern-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .why-modern-feature {
    min-width: 0;
    padding: 14px 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    border-radius: 12px;
  }

  .why-modern-feature small {
    margin-top: 4px;
    font-size: 0.85rem;
    line-height: 1.45;
  }

  .cards-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    align-items: stretch;
  }

  .cards-container > a {
    display: block;
    min-width: 0;
  }

  .card {
    width: 100%;
    min-width: 0;
    background: #ffffff;
    border: 1px solid rgba(45, 48, 65, 0.1);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .card-inner {
    height: auto;
    min-height: 208px;
    padding: 16px 12px;
    gap: 10px;
  }

  .card-img {
    width: 42px;
    height: 42px;
    line-height: 42px;
    font-size: 2rem;
  }

  .card h3 {
    font-size: 1.08rem;
    line-height: 1.4;
  }

  .card p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #3f4659;
    overflow-wrap: normal;
    word-break: normal;
  }
}

@media screen and (max-width: 480px) {
  .why-modern-container {
    padding: 32px 12px;
  }

  .why-modern-title {
    font-size: 1.65rem;
    margin-bottom: 24px;
  }

  .why-modern-stats {
    gap: 10px;
    margin-bottom: 22px;
  }

  .why-modern-card {
    min-height: 96px;
    padding: 14px 10px;
    border-radius: 10px;
  }

  .why-modern-card h3 {
    font-size: 1.55rem;
    margin-bottom: 4px;
  }

  .why-modern-card p {
    font-size: 1.5rem;
    line-height: 1.45;
  }

  .why-modern-features {
    gap: 10px;
  }

  .why-modern-feature {
    min-width: 0;
    font-size: 12px;
    font-weight: bold;
    border-radius: 12px;
  }

  .why-modern-feature small {
    font-size: 0.8rem;
  }

  .why-us {
    padding: 40px 0;
  }

  .why-us .container {
    padding: 0 8px;
  }

  .section-title {
    font-size: 1.85rem;
    margin-bottom: 20px;
  }

  .cards-container {
    gap: 8px;
    padding: 0;
  }

  .card {
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  }

  .card-inner {
    min-height: 186px;
    padding: 14px 10px;
    gap: 8px;
  }

  .card-img {
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 1.7rem;
  }

  .card:hover .card-img {
    width: 36px;
    height: 36px;
  }

  .card h3 {
    font-size: 1.95rem;
    line-height: 1.4;
  }

  .card p {
    font-size: 12px;
    line-height: 1.55;
  }
}

/* Responsive adjustments for Our Services and Testimonial Sections */
@media (max-width: 1024px) {
  /* Our Services */
  .svc-section {
    padding: 50px 15px;
  }

  .svc-title {
    font-size: 2.2rem !important;
  }

  .svc-container {
    flex-direction: column;
    align-items: center;
  }

  .svc-card-link {
    width: 80%;
    margin: 0 auto 20px;
  }

  /* Testimonial */
  .testimonial-section {
    padding: 30px 15px;
  }

  .testimonial-title {
    font-size: 2.5rem;
  }

  .testimonial-subtitle {
    font-size: 1.4rem;
  }

  .testimonial-wrapper {
    max-width: 95%;
    padding: 0 30px;
  }
}

@media (max-width: 600px) {
  /* Our Services */
  .svc-section {
    padding: 30px 10px;
  }

  .svc-title {
    font-size: 2rem !important;
  }

  .svc-card-title {
    font-size: 1.1rem !important;
  }

  .svc-card-desc {
    font-size: 0.8rem !important;
  }

  .svc-card-link {
    width: 90%;
  }

  /* Testimonial */
  .testimonial-section {
    padding: 20px 10px;
  }

  .testimonial-title {
    font-size: 2rem !important;
  }

  .testimonial-subtitle {
    font-size: 1.2rem !important;
    margin-bottom: 15px;
  }

  .testimonial-wrapper {
    max-width: 90% !important;
    padding: 0 20px;
  }

  .testimonial-card {
    min-width: 100% !important;
  }

  .testimonial-play-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
  }

  .testimonial-info {
    padding: 10px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
  }

  .testimonial-profile {
    width: 40px !important;
    height: 40px !important;
    margin-right: 0 !important;
    margin-bottom: 5px !important;
  }

  .testimonial-name {
    font-size: 1.2rem !important;
  }

  .testimonial-text {
    font-size: 1rem !important;
    margin-top: 5px !important;
  }

  .video-content {
    width: 90vw !important;
    height: 50.625vw !important;
    max-width: 90% !important;
    max-height: 80vh !important;
  }

  .video-close {
    font-size: 30px !important;
    top: 5px !important;
    right: 10px !important;
  }

  .nav-arrow {
    width: 30px !important;
    height: 30px !important;
    font-size: 16px !important;
  }

  .nav-arrow.left {
    left: 5px !important;
  }

  .nav-arrow.right {
    right: 5px !important;
  }
}

/* Responsive adjustments for Why Choose Living Walls */
@media (max-width: 1024px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive adjustments for hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
  .card,
  .card:hover {
    transform: none !important;
  }

  .card:hover {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
  }

  .card:hover h3,
  .card:hover p,
  .card:hover .card-img {
    font-size: inherit !important;
    width: inherit !important;
    height: inherit !important;
    filter: none !important;
  }
}




@media (hover: none) {
  .svc-card:active .svc-card-image-wrapper::after {
    left: 125%;
  }

  .svc-card:active {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  }
}
/* Responsive adjustments for larger screens */
@media (max-width: 1024px) {
  .hero__title {
    font-size: var(--font-size-4xl);
  }
}

/* Layout Bug Fixes */
@media screen and (max-width: 768px) {
  :root {
    --header-height: 8.4rem;
  }

  .header {
    gap: 0;
  }

  .containerr {
    position: relative;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    width: min(100%, calc(100% - 2rem));
    min-height: 8.4rem;
    padding: 1rem 0 1rem 5.2rem;
  }

  .nav {
    position: static;
    width: 0;
    height: auto;
    background: transparent;
    overflow: visible;
    flex: 0 0 auto;
    min-width: 0;
  }

  .header .nav__list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 1rem;
    left: 1rem;
    width: auto;
    background: #ffffff;
    border-radius: 1.6rem;
    padding: 1.6rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    z-index: 1001;
  }

  .header .nav__list.active {
    display: flex;
  }

  .header .nav__list li {
    width: 100%;
  }

  .header .nav__list a {
    display: block;
    width: 100%;
    padding: 0.9rem 0;
  }

  .header .nav__cta-item {
    display: block;
    margin-top: 0.4rem;
  }

  .header .nav__cta-link {
    padding: 1rem 1.5rem;
    text-align: center;
  }

  .header .right-buttons {
    display: none !important;
  }

  .logo-img {
    height: 5.8rem;
    width: auto !important;
  }

  .hamburger {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0.8rem;
    z-index: 1002;
  }

  .hero {
    min-height: 54rem;
    height: auto;
  }

  .hero-content {
    left: 50%;
    top: 15%;
    width: min(33.5rem, calc(100% - 2rem));
    height: 40rem;
    max-width: none;
    padding: 1.8rem 1.8rem 2rem;
    transform: translateX(-50%);
  }

  .faq-sectionn {
    margin: 2rem 1rem;
    padding: 3rem 1.4rem;
  }

  .faq-questionn {
    gap: 1rem;
    padding: 1.4rem 1.2rem;
  }

  .faq-questionn i {
    font-size: 2.2rem;
  }

  .faq-questionn h3 {
    font-size: 1.5rem;
  }
}

@media screen and (min-width: 700px) and (max-width: 1099px) {
  #services-overview .svc-container {
    flex-direction: row !important;
    align-items: stretch !important;
  }

  #services-overview .svc-card-link {
    width: auto !important;
    margin: 0 !important;
    flex: 0 0 calc((100% - 2.4rem) / 2) !important;
    max-width: calc((100% - 2.4rem) / 2) !important;
  }
}

@media screen and (min-width: 1100px) {
  #services-overview .svc-container {
    flex-direction: row !important;
    align-items: stretch !important;
  }

  #services-overview .svc-card-link {
    width: auto !important;
    margin: 0 !important;
    flex: 0 0 calc((100% - 4.8rem) / 3) !important;
    max-width: calc((100% - 4.8rem) / 3) !important;
  }
}

@media screen and (max-width: 699px) {
  #services-overview .svc-container {
    flex-direction: row !important;
    align-items: stretch !important;
  }

  #services-overview .svc-card-link {
    width: auto !important;
    margin: 0 !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}
