/* ==========================================================================
   EMU Theme - responsive.css
   Responsive breakpoints: 1200px | 1024px | 768px | 480px | 360px
   Mobile-first adjustments layered on top of main.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   BREAKPOINT: ≤ 1200px (Large tablets / small laptops)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {

  :root {
    --section-py: 80px;
    --container-px: 32px;
  }

  /* Hero */
  .hero__title { font-size: clamp(2.25rem, 5vw, 4.5rem); }

  /* Solutions — 2 columns */
  .solutions__grid.cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Why us — 4 cols still, tighter */
  .why-us__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
  }

  /* Products — 2 cols */
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Industries — 3 cols still */
  .industries__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Statistics — reduce gap */
  .statistics__inner {
    gap: var(--space-8);
  }

  /* Footer grid */
  .footer__grid {
    grid-template-columns: 260px 1fr;
    gap: var(--space-8);
  }

  .footer__nav-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

/* --------------------------------------------------------------------------
   BREAKPOINT: ≤ 1024px (Tablets landscape / small laptops)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {

  :root {
    --section-py:    64px;
    --container-px:  24px;
    --navbar-height: 72px;
  }

  /* NAVBAR: hide primary menu, show hamburger */
  .navbar__menu-wrap {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  /* Hero adjustments */
  .hero {
    min-height: 90vh;
    padding-top: calc(var(--navbar-height) + var(--space-6));
  }

  .hero__bg-orb {
    opacity: 0.5;
    right: -5%;
    width: 40%;
  }

  .hero__orb-mascot {
    width: 60%;
    max-width: 280px;
  }

  .hero__title {
    font-size: clamp(2rem, 4.5vw, 3.75rem);
  }

  /* Solutions — 2 cols */
  .solutions__grid.cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Agentic — stack on tablet */
  .agentic__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .agentic__mockup {
    max-width: 600px;
    margin-inline: auto;
    width: 100%;
  }

  /* Why Us — 2 cols on tablet */
  .why-us__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

  /* Products — 2 cols */
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Industries — 2 cols */
  .industries__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Statistics — stack */
  .statistics__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .statistics__testimonial {
    max-width: 600px;
    margin-inline: auto;
    width: 100%;
  }

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

  .footer__nav-columns {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Archive */
  .archive-grid.cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Page inner — no sidebar on tablet */
  .page-inner--has-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   BREAKPOINT: ≤ 768px (Tablets portrait / large phones)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {

  :root {
    --section-py:    48px;
    --section-py-sm: 40px;
    --container-px:  20px;
    --navbar-height: 68px;
  }

  body::before,
  body::after {
    display: none !important;
  }

  .navbar__logo img,
  .navbar__logo .custom-logo {
    height: 42px !important;
    width: auto !important;
    max-width: 100% !important;
  }

  .navbar__cta {
    display: none !important;
  }

  /* Section header */
  .section__header {
    margin-bottom: var(--space-7);
  }

  .section__title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  .section__subtitle {
    font-size: var(--text-base);
  }

  /* Hero */
  .hero {
    min-height: 100svh;
    padding-top:    calc(var(--navbar-height) + var(--space-5));
    padding-bottom: var(--space-8);
    align-items:    flex-start;
  }

  .hero__bg-orb {
    display: none;
  }

  .hero__bg-glow--1 {
    width: 280px;
    height: 280px;
    top: -60px;
    right: -60px;
  }

  .hero__bg-glow--2 {
    display: none;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 3.25rem);
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .hero__actions {
    flex-direction: column;
    align-items:    flex-start;
    gap:            var(--space-3);
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .hero__stats {
    gap: var(--space-3);
  }

  .hero__stat-divider {
    display: none;
  }

  /* Solutions — single column */
  .solutions__grid.cards-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: var(--space-6);
  }

  /* Agentic */
  .agentic__inner {
    gap: var(--space-6);
  }

  .agentic__bullets { gap: var(--space-3); }

  /* Why Us — 1 col */
  .why-us__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .feature-tile {
    padding: var(--space-4);
  }

  /* Products — single column */
  .products__grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    padding: var(--space-6);
  }

  /* Industries — single column */
  .industries__grid {
    grid-template-columns: 1fr;
  }

  /* Statistics */
  .statistics__big-number {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .statistics__stats-row {
    flex-direction: column;
    gap: var(--space-5);
  }

  .statistics__stat-value {
    font-size: var(--text-2xl);
  }

  /* CTA Banner */
  .cta-banner__title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .cta-banner__subtitle {
    font-size: var(--text-base);
  }

  /* Footer nav columns — 2 cols */
  .footer__nav-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  /* Footer bottom */
  .footer__bottom-inner {
    flex-direction: column;
    text-align:     center;
  }

  .footer__legal-links {
    justify-content: center;
  }

  /* Archive — single column */
  .archive-grid.cards-grid {
    grid-template-columns: 1fr;
  }

  /* 404 */
  .error-404 {
    flex-direction: column;
    align-items:    flex-start;
  }

  .error-404__decoration {
    display: none;
  }

  /* Page header */
  .page-header__title {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
  }

  /* Breadcrumb */
  .breadcrumb {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   BREAKPOINT: ≤ 480px (Mobile phones)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {

  :root {
    --container-px: 16px;
    --section-py:   40px;
  }

  /* Why us — 1 col on small mobile */
  .why-us__grid {
    grid-template-columns: 1fr;
  }

  /* Hero */
  .hero__eyebrow {
    font-size: 10px;
  }

  .hero__title {
    font-size: clamp(1.75rem, 9vw, 2.75rem);
  }

  /* Footer nav — single column */
  .footer__nav-columns {
    grid-template-columns: 1fr 1fr;
  }

  /* Mobile menu */
  .mobile-menu__nav .navbar__link {
    font-size: var(--text-base);
  }

  /* CTA banner */
  .cta-banner {
    padding-block: 48px;
  }

  /* Stats row in hero */
  .hero__stats {
    flex-wrap: wrap;
    gap:       var(--space-2);
  }

  /* Section label */
  .section-label {
    font-size: 10px;
  }

  /* Agentic mockup row text — truncate less aggressively */
  .agentic__mockup-row-content strong,
  .agentic__mockup-row-content span {
    white-space: normal;
  }

  /* Post navigation — stack */
  .post-navigation .nav-links {
    flex-direction: column;
  }

  /* Pagination */
  .pagination .page-numbers {
    width:  36px;
    height: 36px;
    font-size: var(--text-xs);
  }
}

/* --------------------------------------------------------------------------
   BREAKPOINT: ≤ 360px (Small mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {

  :root {
    --container-px: 14px;
  }

  .hero__title {
    font-size: clamp(1.5rem, 9vw, 2.25rem);
  }

  .btn--lg {
    padding:   14px 24px;
    font-size: var(--text-sm);
  }

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

  .statistics__stats-row {
    flex-direction: column;
  }
}

/* --------------------------------------------------------------------------
   PRINT STYLES
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .mobile-menu,
  .cta-banner,
  .footer__social,
  .navbar,
  .btn { display: none !important; }

  body { color: #000; background: #fff; }
  a    { color: #000; text-decoration: underline; }
  .container { max-width: 100%; }
}
