/* ==========================================================
   RESPONSIVE STYLES
   ========================================================== */

/* ---- Large Desktop (1200px+) ---- */
@media (min-width: 1200px) {
  .container { padding: 0 1rem; }
}

/* ---- Medium Laptop (992px - 1199px) ---- */
@media (max-width: 1199px) {
  .hero__inner {
    gap: var(--space-10);
  }
  .hero__inner {
    gap: var(--space-10);
  }
}

/* ---- Tablet (768px - 991px) ---- */
@media (max-width: 991px) {

  :root {
    --nav-height: 64px;
    --section-space-y: clamp(4.5rem, 8vh, 6rem);
    --section-space-y-lg: clamp(5.5rem, 10vh, 7rem);
    --section-space-y-compact: clamp(3.25rem, 6vh, 4.5rem);
  }

  /* Navbar */
  .navbar__nav,
  .navbar__actions .navbar__cta {
    display: none;
  }
  .navbar__toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    padding-top: calc(var(--nav-height) + var(--space-8));
    padding-bottom: var(--space-10);
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    min-height: unset;
  }
  .hero__content { max-width: 100%; padding-top: 0; }
  .hero__title { font-size: clamp(2rem, 4.2vw, 2.8rem); max-width: 100%; width: max-content; line-height: 1.06; }
  .hero__description { max-width: 100%; }
  .hero__visual { order: -1; height: 420px; max-width: 640px; }
  .hero__mosaic-bottom { height: 160px; }
  .hm-stat__value { font-size: 2rem; }

  /* Services */
  .svc-slider {
    gap: 10px;
    min-height: 340px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .svc-slider::-webkit-scrollbar { display: none; }
  .svc-card { flex: 0 0 90px; scroll-snap-align: start; padding: 24px 18px; }
  .svc-card--active { flex: 0 0 76%; scroll-snap-align: start; }

  /* Team */
  .team__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team__card-img-wrap {
    max-height: 200px;
  }

  /* Blog */
  .blog__grid {
    grid-template-columns: 1fr 1fr;
  }
  .blog__grid .blog__card:last-child {
    grid-column: 1 / -1;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  /* Contact */
  .contact__cards {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .footer__brand {
    grid-column: 1 / -1;
  }

  /* Section title */
  .section-title { font-size: var(--fs-2xl); }
}

/* ---- Mobile (max 767px) ---- */
@media (max-width: 767px) {

  :root {
    --container-pad: 0.75rem;
    --section-space-y: clamp(3.75rem, 7vh, 5rem);
    --section-space-y-lg: clamp(4.5rem, 8vh, 5.75rem);
    --section-space-y-compact: clamp(2.75rem, 5vh, 3.75rem);
  }

  /* Sections */
  .section { padding: var(--section-space-y) 0; }
  .section--lg { padding: var(--section-space-y-lg) 0; }

  /* Hero */
  .hero { padding-top: calc(var(--nav-height) + var(--space-8)); padding-bottom: var(--space-8); }
  .hero__title { font-size: clamp(1.5rem, 7vw, 2.1rem); max-width: 100%; width: max-content; line-height: 1.08; }
  .hero__visual { min-height: 480px; gap: 10px; }
  .hm-col { gap: 10px; }
  .hm-col--left .hm-stat:first-child, .hm-col--right .hm-stat { height: 84px; }
  .hm-col--left .hm-stat--tall { height: 140px; }
  .hm-col--right .hm-img--meeting { height: 120px; }
  .hm-stat__value { font-size: 1.55rem; }
  .hm-stat__label { font-size: 0.64rem; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* Brands */
  .brands {
    padding-top: clamp(1.1rem, 2.5vh, 1.8rem);
    padding-bottom: var(--section-space-y-compact);
  }

  /* Services */
  .svc-slider {
    flex-direction: column;
    min-height: unset;
    gap: 8px;
    overflow-x: visible;
  }
  .svc-card {
    flex: 0 0 auto !important;
    flex-direction: row;
    align-items: center;
    padding: 18px 20px;
    min-height: 60px;
    border-radius: 14px;
  }
  .svc-card .svc-card__vert {
    flex: 1;
    justify-content: flex-start;
    align-items: center;
    overflow: visible;
  }
  .svc-card__vname {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
  }
  .svc-card__num { margin-bottom: 0; margin-right: 14px; flex-shrink: 0; }
  /* Active card on mobile — full height with content */
  .svc-card--active {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 22px 20px !important;
    min-height: 200px;
  }
  .svc-card--active .svc-card__num { margin-right: 0; margin-bottom: 16px; }
  .svc-card__section__title { font-size: 1.05rem; }
  .svc-section__title { font-size: clamp(1.6rem, 6vw, 2rem); }

  /* Differentiators */
  .diff-table { min-width: 700px; }
  .diff-table thead th,
  .diff-table td { padding: 16px 16px; font-size: 0.8rem; }

  /* Team */
  .team__grid { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .team__card-img-wrap { max-height: 180px; }
  .team__card-socials {
    opacity: 1;
    transform: none;
    left: 10px;
    bottom: 10px;
    pointer-events: auto;
  }

  /* Blog */
  .blog__grid { grid-template-columns: 1fr; }
  .blog__grid .blog__card:last-child { max-width: 100%; }
  .blog__header { flex-direction: column; align-items: flex-start; }

  /* Contact */
  .contact__stats { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__brand { grid-column: auto; }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  /* Newsletter */
  .footer__form { flex-direction: column; max-width: 100%; }
  .footer__submit { width: 100%; height: 48px; }

  /* Section title */
  .section-title { font-size: var(--fs-xl); }
}

/* ---- Extra Small (max 480px) ---- */
@media (max-width: 480px) {
  :root {
    --container-pad: 0.625rem;
    --section-space-y: clamp(3.25rem, 6vh, 4.25rem);
    --section-space-y-lg: clamp(4rem, 7vh, 5rem);
    --section-space-y-compact: clamp(2.5rem, 4.5vh, 3.25rem);
  }
  .team__grid { grid-template-columns: 1fr; gap: 20px; }
  .team__card-img-wrap { max-height: 170px; }
  .team__card-socials {
    left: 10px;
    bottom: 10px;
  }
  .contact__stats { grid-template-columns: 1fr 1fr; }
  .hero__visual { min-height: 360px; gap: 8px; }
  .hm-col { gap: 8px; }
  .hm-col--left .hm-stat:first-child, .hm-col--right .hm-stat { height: 68px; padding: 10px 12px; }
  .hm-col--left .hm-stat--tall { height: 112px; padding: 10px 12px; }
  .hm-col--right .hm-img--meeting { height: 92px; }
  .hm-stat__value { font-size: 1.2rem; margin-bottom: 3px; }
  .hm-stat { padding: 10px 12px; border-radius: 12px; }
  .hm-img { border-radius: 12px; }
  /* Services */
  .svc-card__desc { font-size: 0.8rem; line-height: 1.7; }
  .svc-card__title { font-size: 1rem; }

  /* Brands */
  .brands {
    padding-top: 1rem;
    padding-bottom: var(--section-space-y-compact);
  }
}
