/* ==========================================================================
   ANYDESIGN — RESPONSIVE STYLESHEET
   Breakpoints (desktop-first, max-width):
     1200px  Desktop / small laptop
     992px   Laptop / large tablet
     768px   Tablet
     576px   Mobile
     375px   Small mobile
   Base (>1200px) styles live in style.css. This file only overrides what
   changes at each breakpoint so the desktop UI is preserved exactly and
   scales down without layout shift or horizontal scroll.
   ========================================================================== */

/* ==========================================================================
   1200px — DESKTOP / SMALL LAPTOP
   ========================================================================== */
@media (max-width: 1200px) {
  .container {
    padding-inline: 48px;
  }

  .hero__inner {
    gap: 48px;
  }

  .hero__heading {
    font-size: 46px;
  }

  .products-grid {
    gap: 20px;
  }

  .services-grid {
    gap: 16px;
  }

  .service-card {
    padding: 20px 16px;
  }

  .promo {
    gap: 40px;
    padding: 40px;
  }

  .cta-banner {
    padding: 48px;
  }

  .stats-bar {
    gap: 16px;
  }

  .testimonials-grid {
    gap: 20px;
  }

  .footer__grid {
    gap: 32px;
  }
}

/* ==========================================================================
   992px — LAPTOP / LARGE TABLET
   ========================================================================== */
@media (max-width: 992px) {
  :root {
    --section-padding-y: 80px;
  }

  .container {
    padding-inline: var(--pad-tablet);
  }

  /* Header: collapse desktop nav + CTA, show hamburger */
  .nav,
  .header__cta {
    display: none;
  }

  .header__toggle {
    display: flex;
  }

  /* Hero: stack content for smaller screens */
  .hero__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding-top: 40px;
    padding-bottom: 60px;
    gap: 48px;
  }

  .hero__content {
    flex: 1 1 auto;
  }

  .hero__heading {
    font-size: 40px;
  }

  .hero__desc {
    max-width: 100%;
  }

  .hero__features {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .section-header__title {
    font-size: 34px;
  }

  /* Products: 4 -> 2 columns */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Services: 6 -> 3 columns */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Promo: stack visual above content */
  .promo {
    flex-direction: column;
    padding: 32px;
    gap: 32px;
  }

  .promo__visual {
    width: 100%;
    height: 220px;
  }

  .promo__content {
    width: 100%;
  }

  .promo__title {
    font-size: 28px;
  }

  /* CTA banner: stack content above visual, center text */
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 48px 32px;
  }

  .cta-banner__desc {
    max-width: none;
    margin-inline: auto;
  }

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

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

  .testimonials-grid__col:nth-child(3) {
    grid-column: span 2;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .testimonials-grid__col:nth-child(3) .testimonial-card {
    flex: 1 1 calc(50% - 12px);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   768px — TABLET
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --section-padding-y: 64px;
  }

  .container {
    padding-inline: var(--pad-tablet);
  }

  .header__inner {
    height: 72px;
  }

  .hero__badge {
    font-size: 11px;
    padding: 7px 14px;
  }

  .hero__heading {
    font-size: 32px;
  }

  .hero__underline {
    width: 140px;
  }

  .hero__desc {
    font-size: 16px;
  }

  .hero__actions {
    margin-bottom: 40px;
  }

  .section {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 40px;
  }

  .section-header__title,
  .promo__title {
    font-size: 28px;
  }

  /* Services: 3 -> 2 columns */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .checklist {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cta-banner__title {
    font-size: 28px;
  }

  .logo-card {
    width: 160px;
    height: 72px;
    font-size: 14px;
  }

  .stat-card {
    padding: 16px;
  }

  /* Testimonials: back to single-column stacking within 2 cols */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid__col:nth-child(3) {
    grid-column: auto;
    flex-direction: column;
  }

  .testimonials-grid__col:nth-child(3) .testimonial-card {
    flex: 1 1 auto;
  }

  .footer {
    padding-top: 28px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 16px;
  }

  .footer__brand-desc {
    max-width: 100%;
  }

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

/* ==========================================================================
   576px — MOBILE
   ========================================================================== */
@media (max-width: 576px) {
  .container {
    padding-inline: var(--pad-mobile);
  }

  .mobile-nav {
    padding: 20px var(--pad-mobile) 24px;
  }

  .hero__inner {
    padding-top: 28px;
    padding-bottom: 48px;
    gap: 36px;
  }

  .hero__badge {
    font-size: 10.5px;
    padding: 6px 12px;
    margin-bottom: 18px;
  }

  .hero__heading {
    font-size: 26px;
    margin-bottom: 16px;
  }

  .hero__underline {
    width: 120px;
    margin-bottom: 18px;
  }

  .hero__desc {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 40px;
  }

  .btn {
    width: 100%;
  }

  .hero__features {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .feature-card__title {
    font-size: 13px;
  }

  .feature-card__desc {
    font-size: 11px;
  }

  .section-header__title,
  .promo__title,
  .cta-banner__title {
    font-size: 24px;
  }

  /* Products: 2 -> 1 column */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card__image {
    height: 96px;
  }

  /* Services: 2 -> 1 column */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .promo {
    padding: 24px;
    border-radius: 24px;
  }

  .promo__visual {
    height: 180px;
  }

  .cta-banner {
    padding: 36px 24px;
    border-radius: 24px;
  }

  .cta-banner__desc {
    font-size: 14px;
  }

  .stats-bar {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 40px;
  }

  .stat-card {
    padding: 16px;
  }

  .logo-card {
    width: 140px;
    height: 64px;
    font-size: 13px;
  }

  .testimonials-grid {
    gap: 16px;
  }

  .testimonials-grid__col {
    gap: 16px;
  }

  .testimonial-card {
    padding: 20px;
  }

  .testimonial-card__quote {
    font-size: 13.5px;
  }

  .footer {
    padding-top: 24px;
    padding-bottom: 14px;
  }

  .footer__grid {
    gap: 14px;
    margin-bottom: 14px;
  }
}

/* ==========================================================================
   375px — SMALL MOBILE
   ========================================================================== */
@media (max-width: 375px) {
  .container {
    padding-inline: 16px;
  }

  .logo {
    font-size: 18px;
  }

  .header__inner {
    height: 64px;
  }

  .hero__heading {
    font-size: 23px;
  }

  .hero__badge {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .hero__desc {
    font-size: 14px;
  }

  .hero__features {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .feature-card__icon {
    width: 38px;
    height: 38px;
  }

  .section-header__title {
    font-size: 21px;
  }

  .product-card__title,
  .service-card__title {
    font-size: 14px;
  }

  .promo {
    padding: 20px;
  }

  .promo__title {
    font-size: 21px;
  }

  .promo__visual {
    height: 160px;
  }

  .cta-banner {
    padding: 28px 18px;
  }

  .cta-banner__title {
    font-size: 21px;
  }

  .stat-card {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .logo-card {
    width: 120px;
    height: 56px;
    font-size: 12px;
  }

  .testimonial-card {
    padding: 16px;
  }

  .testimonial-card__avatar {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .footer__title {
    font-size: 13px;
  }

  .footer__list a,
  .footer__contact,
  .footer__brand-desc {
    font-size: 13px;
  }
}

/* ==========================================================================
   NO HORIZONTAL SCROLL SAFEGUARD
   ========================================================================== */
@media (max-width: 1200px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  img,
  svg {
    max-width: 100%;
    height: max-content;
    width: fit-content;
  }
}
