/* ==================================================
   Homepage / site responsive tweaks
   Spacing & grid: Bootstrap utilities in HTML
   This file: typography + component sizes only
================================================== */

/* ---- XL laptops & below (≤1399.98) ---- */
@media (max-width: 1399.98px) {
  .brand-logo {
    height: 40px;
    max-width: 200px;
  }

  .navbar-nav .nav-link {
    font-size: 0.88rem;
    padding: 0.35rem 0.5rem;
  }

  .hero-title {
    font-size: clamp(2.6rem, 4.5vw, 4.25rem);
  }

  .hero-desc {
    font-size: 1rem;
    max-width: 420px;
  }

  .section-title,
  .projects-section .section-title,
  .services-section .section-title,
  .media-section .section-title {
    font-size: clamp(2rem, 2.9vw, 2.9rem);
  }

  .hero-section {
    min-height: 340px;
    padding-top: 7.25rem;
    padding-bottom: 3.5rem;
  }

  .hero-section-title {
    font-size: clamp(2.35rem, 4vw, 3.6rem);
  }

  .project-card-img-wrap {
    height: 300px;
  }

  .service-bento-tall {
    min-height: 420px;
  }

  .service-bento-wide,
  .service-bento-square {
    min-height: 195px;
  }

  .service-bento-title {
    font-size: 1.05rem;
  }



  .service-item-title {
    font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  }

  .contact-studio-box {
    padding: 1.75rem 1.5rem;
  }
}

/* ---- Classic 14" HD (≤1366) ---- */
@media (max-width: 1366px) {
  .hero-title {
    font-size: clamp(2.5rem, 4.1vw, 3.75rem);
  }

  .project-card-img-wrap {
    height: 280px;
  }

  .service-bento-tall {
    min-height: 390px;
  }

  .service-bento-wide,
  .service-bento-square {
    min-height: 180px;
  }
}

/* ---- Short laptop height ---- */
@media (max-height: 860px) and (min-width: 992px) {
  .hero-container {
    padding-top: 5.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-title {
    font-size: clamp(2.55rem, 6vh, 3.8rem);
    margin-bottom: 0.85rem;
  }

  .hero-eyebrow {
    margin-bottom: 0.75rem;
  }

  .hero-desc {
    margin-bottom: 1.15rem;
  }

  .hero-bottom-bar {
    bottom: 1.1rem;
  }
}

@media (max-height: 720px) and (min-width: 992px) {
  .hero-container {
    padding-top: 4.75rem;
    padding-bottom: 3rem;
  }

  .hero-title {
    font-size: clamp(2.3rem, 5.2vh, 3.2rem);
  }

  .hero-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ---- LG / tablet ---- */
@media (max-width: 991.98px) {
  .header {
    padding: 0.75rem 0;
  }

  .hero-container {
    padding-top: 7rem;
    padding-bottom: 4rem;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-bottom-bar {
    position: relative;
    bottom: auto;
    margin-top: 2.5rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .footer-brand-words {
    display: none !important;
  }

  .contact-left-bg {
    min-height: 320px;
  }

  .contact-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
    clip-path: none !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  [dir="rtl"] .contact-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
    clip-path: none !important;
  }
  .media-video-card ,.video-embed-card{
    iframe{
      width: 100% !important;
    }
  }
}

/* ---- MD / mobile ---- */
@media (max-width: 767.98px) {
  .hero {
    min-height: auto;
  }

  .hero-container {
    padding-top: 6rem;
    padding-bottom: 3.5rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .video-featured-card {
    min-height: 260px;
  }

  .contact-section,
  .contact-section > .row {
    min-height: auto;
  }

  .contact-left-bg {
    min-height: 260px;
    height: 260px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.95rem;
  }

  .brand-logo {
    max-height: 38px;
  }

  .media-tabs-wrap {
    width: 100%;
    justify-content: flex-start;
  }

  .media-tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
  }

  .service-bento-title {
    font-size: 1rem;
  }
}

/* Large desktop restore */
@media (min-width: 1600px) {
  .hero-title {
    font-size: clamp(4rem, 4.8vw, 5.6rem);
  }

  .service-bento-tall {
    min-height: 520px;
  }

  .service-bento-wide,
  .service-bento-square {
    min-height: 245px;
  }
}

/* ==================================================
   Moved from style.css nested @media (component breakpoints)
================================================== */

@media (min-width: 1200px) {
  .header .navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
  }

  .header .navbar-nav .nav-item.dropdown:hover > .dropdown-toggle {
    color: var(--white-color);
  }

}

@media (max-width: 575.98px) {
  .hero-mobile .hero-mobile-content {
    padding: 4rem 1rem 1.75rem;
  }

  .hero-mobile .swiper-slide {
    height: 68vh;
    min-height: 440px;
  }

  .services-section .service-bento-tall {
    height: 320px;
  }

  .services-section .service-bento-wide {
    height: 220px;
  }

  .services-section .service-bento-square {
    height: 200px;
  }

  .services-section .service-bento-title {
    font-size: 1rem;
  }

  .services-section .service-bento-badge, .services-section .service-bento-arrow {
    width: 36px;
    height: 36px;
  }

  .services-section .service-bento-icon {
    width: 19px;
    height: 19px;
  }

  .services-section .service-bento-footer {
    padding: 1rem;
  }

  .media-section .media-video-card {
    height: 400px;
    border-radius: 12px;
  }

}

@media (min-width: 992px) {
  .services-section .services-bento-grid {
    display: flex;
    align-items: stretch;
  }

  .services-section .services-bento-grid > .col-lg-5 {
    display: flex;
    flex-direction: column;
  }

  .services-section .service-bento-tall {
    flex: 1 1 auto;
    height: 100%;
    min-height: 420px;
  }

  .services-section .services-bento-right {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .services-section .service-bento-wide {
    flex: 1 1 0;
    min-height: 200px;
  }

  .services-section .services-bento-bottom-row {
    flex: 1 1 0;
  }

  .services-section .service-bento-square {
    height: 100%;
    min-height: 200px;
  }

  .contact-section > .row > .col-lg-5 {
    position: relative;
    z-index: 1;
  }

  .contact-section .contact-content {
    position: relative;
    z-index: 2;
    margin-left: -90px;
    padding-left: calc(90px + 1.5rem) !important;
    background: linear-gradient(135deg, #efeae0 0%, #ece5da 75%, #e8e1d6 100%);
    clip-path: polygon(90px 0, 100% 0, 100% 100%, 0 100%);
  }

  .contact-section .contact-content::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
  }

  .contact-section .contact-content > .row {
    position: relative;
    z-index: 1;
  }

  [dir="rtl"] .contact-section .contact-content {
    margin-left: 0;
    margin-right: -90px;
    padding-left: 1.5rem !important;
    padding-right: calc(90px + 1.5rem) !important;
    clip-path: polygon(0 0, calc(100% - 90px) 0, 100% 100%, 0 100%);
  }

}

@media (max-width: 991.98px) {
  .services-section .service-bento-tall {
    height: 380px;
  }

  .services-section .service-bento-wide {
    height: 260px;
  }

  .services-section .service-bento-square {
    height: 240px;
  }

  .process-section .process-timeline-track {
    display: none;
  }

  .media-section .media-video-card {
    height: 440px;
    border-radius: 14px;
  }

  .contact-studio-box {
    margin-bottom: 25px;
  }

  .about-section-exact .about-visual-img {
    min-height: 380px;
    max-height: 480px;
    height: auto !important;
    position: relative;
    z-index: 2 !important;
  }

  .about-section-exact .about-facet-watermark {
    top: 0;
  }

  .hero-section {
    padding-top: 125px;
    padding-bottom: 60px;
  }

}

@media (min-width: 992px) and (max-width: 1399.98px) {
  .contact-section .contact-content {
    margin-left: -70px;
    padding-left: calc(70px + 1.5rem) !important;
    clip-path: polygon(70px 0, 100% 0, 100% 100%, 0 100%);
  }

  [dir="rtl"] .contact-section .contact-content {
    margin-left: 0;
    margin-right: -70px;
    padding-left: 1.5rem !important;
    padding-right: calc(70px + 1.5rem) !important;
    clip-path: polygon(0 0, calc(100% - 70px) 0, 100% 100%, 0 100%);
  }

}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .contact-section .contact-content {
    margin-left: -55px;
    padding-left: calc(55px + 1.25rem) !important;
    clip-path: polygon(55px 0, 100% 0, 100% 100%, 0 100%);
  }

  [dir="rtl"] .contact-section .contact-content {
    margin-left: 0;
    margin-right: -55px;
    padding-left: 1.25rem !important;
    padding-right: calc(55px + 1.25rem) !important;
    clip-path: polygon(0 0, calc(100% - 55px) 0, 100% 100%, 0 100%);
  }

}

@media (max-width: 767.98px) {
  .about-section-exact .about-stat-col:not(:last-child)::after {
    display: none;
  }

}
