/* =====================================================
   CLIMATEFLOW CLIMATE SOLUTIONS — RESPONSIVE STYLESHEET
   ===================================================== */

/* -----------------------------------------------------
   LARGE DESKTOP / LAPTOP (below 1200px)
   ----------------------------------------------------- */
@media (max-width: 1200px) {
  .hero__title {
    font-size: 44px;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 40px;
  }

  .stat--text {
    grid-column: span 3;
  }
}

/* -----------------------------------------------------
   TABLET (below 992px)
   ----------------------------------------------------- */
@media (max-width: 992px) {

  /* Top header: hide secondary info, keep essentials */
  .top-header__info {
    gap: 16px;
  }

  .top-header__item:not(.top-header__rating) {
    display: none;
  }

  /* Navigation becomes hamburger driven */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bg-dark-secondary);
    border-left: 1px solid var(--border-gold);
    padding: 100px 24px 24px;
    transition: right var(--transition);
    overflow-y: auto;
    z-index: 1000;
  }

  .nav.is-open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
  }

  .nav__item {
    width: 100%;
  }

  .nav__link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.02);
    margin-top: 4px;
  }

  .nav__item--dropdown.is-open .dropdown {
    display: block;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Hero */
  .hero__inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 40px;
  }

  .hero__card {
    width: 100%;
  }

  /* Multi split three-column collapses */
  .multi-split__grid {
    grid-template-columns: 1fr;
  }

  /* Maintenance plans stack side card below */
  .maintenance__grid {
    grid-template-columns: 1fr;
  }

  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card--featured {
    transform: none;
  }

  /* Projects two columns */
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CTA cards stack */
  .cta-cards__grid {
    grid-template-columns: 1fr;
  }

  /* Footer two columns */
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

/* -----------------------------------------------------
   MOBILE (below 640px)
   ----------------------------------------------------- */
@media (max-width: 640px) {

  .container {
    padding: 0 18px;
  }

  /* Top header simplified */
  .top-header__inner {
    gap: 10px;
  }

  .top-header__cta .btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .top-header__logo img {
    height: 24px;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__desc {
    font-size: 15px;
  }

  .hero__buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .hero__card {
    padding: 24px;
  }

  /* Trust bar wraps and stacks */
  .trust-bar__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-bar__list {
    gap: 18px;
  }

  /* Sticky WhatsApp button sits closer to the edge and above back-to-top on mobile */
  .whatsapp-float {
    right: 16px;
    bottom: 72px;
    max-width: 48px;
    padding: 13px;
  }

  .whatsapp-float:hover {
    max-width: 48px;
    padding: 13px;
  }

  .whatsapp-float__text {
    display: none;
  }

  /* Brand carousel stays horizontally scrollable */
  .brand-carousel {
    gap: 8px;
  }

  .brand-arrow {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .brand-card {
    flex: 0 0 150px;
    padding: 18px 12px;
  }

  /* Multi split benefits 2 columns */
  .multi-split__benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 26px;
  }

  /* Maintenance pricing cards single column */
  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .plan-tabs {
    width: 100%;
    justify-content: center;
  }

  /* Stats 2 columns */
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat--text {
    grid-column: span 2;
  }

  /* Projects single column */
  .projects__grid {
    grid-template-columns: 1fr;
  }

  .projects__heading {
    flex-direction: column;
    align-items: flex-start;
  }

  /* CTA card content padding */
  .cta-card__content {
    padding: 28px;
    max-width: 100%;
  }

  .cta-card {
    min-height: 280px;
  }

  /* Footer single column */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
}
