/* ── TABLET (≤1024px) ── */
@media (max-width: 1024px) {
  nav {
    padding: 16px 32px;
  }

  .hero {
    padding: 100px 32px 60px;
  }
  .hero-blob {
    width: 45%;
  }

  .what-we-do {
    padding: 72px 32px;
  }
  .wwd-grid {
    grid-template-columns: 1fr;
  }
  .wwd-illustration {
    order: -1;
  }
  .illustration-placeholder {
    width: 100%;
    max-width: 360px;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lasting {
    padding: 72px 32px;
  }
  .lasting-inner {
    gap: 48px;
  }

  .hot-listings {
    padding: 72px 32px;
  }
  .listings-inner {
    gap: 48px;
  }

  .testimonial-section {
    padding: 72px 32px;
  }

  .trending {
    padding: 72px 32px;
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industry-news {
    padding: 72px 32px;
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  footer {
    padding: 48px 32px 28px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* ── MOBILE (≤768px) ── */
@media (max-width: 768px) {
  /* Nav */
  nav {
    padding: 14px 20px;
  }
  .nav-links {
    display: none;
  }
  .nav-ctas {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 130px 20px 45px;
    min-height: 40vh;
  }
  .hero-blob {
    display: none;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
    letter-spacing: -1px;
  }
  .hero p {
    font-size: 1rem;
    max-width: 100%;
  }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    align-items: start;
  }
  .hero-actions .btn-lg,
  .hero-actions .btn-outline-lg {
    /* width: 100%; */
    text-align: center;
  }
  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }
  .hero-stat-num {
    font-size: 1.6rem;
  }

  /* What we do */
  .what-we-do {
    padding: 60px 20px;
  }

  .wwd-grid {
    grid-template-columns: 1fr;
  }
  .wwd-illustration {
    padding: 0;
  }
  .illustration-placeholder {
    width: 100%;
    max-width: 100%;
  }
  section .reveal[style*="padding: 20px 40px"] {
    padding: 20px 0 !important;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Lasting */
  .lasting {
    padding: 60px 20px;
    margin-left: 20px;
  }

  .features-grid {
    padding: 0px;
  }
  .what-we-title {
    padding: 0px;
  }
  .lasting-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  /* .lasting-blobs {
    height: 190px;
  } */
  .blob-blue {
    width: 240px;
    height: 240px;
  }
  .blob-green {
    width: 200px;
    height: 200px;
  }
  .blob-overlap {
    width: 160px;
    height: 160px;
  }
  .stats-row {
    flex-wrap: wrap;
    gap: 16px;
  }
  .stat-box {
    flex: 1 1 calc(50% - 16px);
    min-width: 120px;
  }

  /* Hot listings */
  .hot-listings {
    padding: 60px 20px;
  }
  .listings-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .listings-illustration {
    display: block;
    order: -1;
  }
  .role-section-img {
    height: 300px;
  }
  .role-section-img::before {
    height: inherit;
  }

  /* Testimonial */
  .testimonial-section {
    padding: 60px 20px;
  }
  .testimonial-section blockquote {
    font-size: 1rem;
  }

  /* Trending */
  .trending {
    padding: 60px 20px;
  }
  .trending-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  /* News */
  .industry-news {
    padding: 60px 20px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  footer {
    padding: 40px 20px 24px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .subscribe-row {
    flex-direction: column;
    border-radius: 8px;
  }
  .subscribe-row input {
    border-right: 1.5px solid rgba(255, 255, 255, 0.12);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
  }
  .subscribe-row button {
    border-radius: 0 0 8px 8px;
    padding: 13px 18px;
  }
  .hero-bg-word-outer {
    position: absolute;
    bottom: -40px;
    left: -10px;
    right: 0;
    overflow: hidden; /* ensures the animation doesn't cause overflow issues */
  }
  .hero-bg-word {
    font-weight: 800;
    font-family: "Raleway", Helvetica, Arial, Lucida, sans-serif;
    font-weight: 800;
    color: rgb(255, 255, 255);
    font-size: 86px !important;
    line-height: 69px;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
  }
  .lasting-bg-word {
    position: absolute;
    bottom: -75px;
    left: -20px;
  }

  .trending-inner .section-title {
    font-family: "Raleway", Helvetica, Arial, Lucida, sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #333;
    line-height: 50px;
    margin-bottom: 16px;
}
  .testimonial-bg-word-outer {
    position: absolute;
    bottom: -25px;
    left: -10px;
    right: 0;
    overflow: hidden;
  }

}

/* ── SMALL MOBILE (≤480px) ── */
@media (max-width: 480px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-direction: column;
    gap: 16px;
    border-top: none;
    padding-top: 20px;
  }
  .stat-box {
    flex: 1 1 100%;
  }
  .trending-header .view-all {
    display: none;
  }
}
.nav-link a {
  font-family: "Poppins", Helvetica, Arial, Lucida, sans-serif;
}






/* ════════════════════════════════════════
         DESKTOP DROPDOWN
      ════════════════════════════════════════ */
.nav-links .dropdown {
  position: relative;
}

.nav-links .dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
  opacity: 0.6;
  flex-shrink: 0;
}

.nav-links .dropdown:hover > a .nav-chevron {
  transform: rotate(180deg);
}

/* Outer wrapper — padding-top is the invisible bridge that
         keeps hover alive as the mouse travels down to the panel */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 40px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 9999;
}

.nav-links .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Inner visual card */
.dropdown-menu-inner {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  /* border-radius: 12px; */
  padding: 6px;
  min-width: 272px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.11);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;

  font-size: 14px;
  font-family: "Poppins", sans-serif;
  /* color: #555; */
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: #f5f4ff;
  color: var(--green);
}

/* ════════════════════════════════════════
         MOBILE MENU — SERVICES ACCORDION
      ════════════════════════════════════════ */
.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

  text-decoration: none;

  transition: color 0.2s;
}

.mobile-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
  opacity: 0.5;
  flex-shrink: 0;
}

.mobile-dropdown-toggle.open .mobile-chevron {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  flex-direction: column;
  padding-left: 16px;
  margin-top: 6px;
  border-left: 2px solid rgba(0, 0, 0, 0.08);
  gap: 2px;
}

.mobile-submenu.open {
  display: flex;
}

.mobile-submenu a {
  display: flex;
  align-items: center;
  gap: 12px;
  /* padding: 9px 12px; */
  /* border-radius: 8px; */
  font-size: 14px;

  text-decoration: none;
  transition: background 0.15s;
}

.mobile-submenu a:hover {
  background: rgba(0, 0, 0, 0.04);
}

