/* ================================================
   Responsive Breakpoints — Mobile-First Priority
   95% mobile visitors — optimized spacing + layout
   ================================================ */

/* ---- MOBILE BASE (< 480px) ---- */
@media (max-width: 480px) {
  :root {
    --space-section: 3rem;
    --container-pad: 1.25rem;
    --fs-display: 2rem;
    --fs-h1: 1.75rem;
    --fs-h2: 1.4rem;
    --fs-h3: 1.15rem;
  }

  .hero {
    min-height: auto !important;
    padding: 90px 0 2rem !important;
  }

  .hero__split {
    flex-direction: column !important;
    gap: 1.5rem !important;
    text-align: center;
  }

  .hero__content {
    max-width: 100% !important;
  }

  .hero__tagline {
    margin-bottom: 0.75rem !important;
    font-size: 0.65rem !important;
  }

  .hero__title {
    margin-bottom: 0.75rem !important;
    line-height: 1.15 !important;
  }

  .hero__subtitle {
    font-size: 0.95rem !important;
    margin-bottom: 1.25rem !important;
  }

  .hero__actions {
    justify-content: center;
    gap: 0.75rem !important;
  }

  .hero__actions .btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.875rem;
  }

  .hero__graphic-card {
    padding: 1.5rem !important;
    max-width: 100% !important;
  }

  .hero__graphic-card h2 {
    font-size: 1.5rem !important;
  }

  .service-card-img {
    min-height: 160px !important;
  }

  /* Section header tightening */
  .section-header {
    margin-bottom: 1.5rem !important;
  }

  .section-header h2 {
    margin-bottom: 0.5rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  .section-label {
    font-size: 0.65rem !important;
    margin-bottom: 0.5rem !important;
    padding-left: 1.5rem !important;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
  }

  .stat-item {
    padding: 1rem 0.5rem !important;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .stat-number {
    font-size: 2rem !important;
  }

  .stat-label {
    font-size: 0.65rem !important;
  }

  /* Cards */
  .card, .card--service, .serve-card, .why-card, .engagement-card {
    padding: 1.25rem !important;
  }

  .card--service .card__icon {
    width: 44px !important;
    height: 44px !important;
  }

  /* Testimonials */
  .testimonial-slide {
    padding: 1.5rem 0.5rem !important;
    flex-direction: column !important;
    text-align: center;
    gap: 1rem !important;
  }

  .testimonial-avatar {
    width: 80px !important;
    height: 80px !important;
    border-width: 2px !important;
  }

  .testimonial-company {
    font-size: 1rem !important;
  }

  .testimonial-quote {
    font-size: 0.9rem !important;
    padding-left: 1rem !important;
    border-left-width: 2px !important;
  }

  .testimonial-author {
    font-size: 0.75rem !important;
  }

  .testimonial-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }

  /* Client logos */
  .logo-marquee {
    padding: 1rem 0 !important;
  }

  .logo-track {
    gap: 2rem !important;
  }

  .logo-item {
    height: 36px !important;
  }

  .logo-item img {
    max-height: 32px !important;
    max-width: 90px !important;
  }

  /* Footer */
  .footer {
    padding: 2.5rem 0 1.5rem !important;
  }

  .footer__grid {
    gap: 1.5rem !important;
  }

  .footer__bottom {
    padding-top: 1.25rem !important;
    font-size: 0.65rem !important;
  }

  /* CTA */
  .cta-section {
    padding: 2.5rem 0 !important;
  }

  .cta-section h2 {
    font-size: 1.4rem !important;
  }

  .cta-section p {
    font-size: 0.9rem !important;
    margin-bottom: 1.25rem !important;
  }

  /* Why cards */
  .why-card__number {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  /* About snapshot */
  .about-snapshot__image {
    min-height: 200px !important;
  }

  .about-snapshot__image-inner .big-number {
    font-size: 3rem !important;
  }

  /* Page headers (inner pages) */
  .page-header {
    padding: calc(2rem + 70px) 0 2rem !important;
  }

  .page-header h1 {
    font-size: 1.75rem !important;
  }

  .page-header p {
    font-size: 0.9rem !important;
  }

  .btn--lg {
    padding: 0.7rem 1.4rem;
    font-size: var(--fs-body);
  }
}

/* ---- MOBILE (481px – 768px) ---- */
@media (max-width: 768px) {
  :root {
    --space-section: 3.5rem;
    --container-pad: 1.25rem;
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__cta .btn {
    display: none;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto !important;
    padding-top: 90px !important;
    padding-bottom: 2rem !important;
  }

  .hero__split {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__graphic {
    order: -1;
  }

  .section-header {
    margin-bottom: 1.75rem;
  }

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

  .stat-item {
    padding: 0.75rem;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

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

  .page-header {
    padding: calc(2.5rem + 70px) 0 2.5rem;
  }

  .about-company {
    flex-direction: column;
  }

  .services-quick-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-sm);
  }

  .engagement-cards {
    flex-direction: column;
  }

  .brt-steps {
    flex-direction: column;
  }

  .brt-connector {
    display: none;
  }

  /* Homepage page-specific grids */
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .why-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .serve-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .about-snapshot {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  .testimonial-slide {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .testimonial-avatar {
    width: 100px;
    height: 100px;
  }

  .testimonial-controls {
    justify-content: center;
  }

  .testimonial-quote {
    text-align: left;
  }
}

/* ---- TABLET (769px – 1024px) ---- */
@media (max-width: 1024px) {
  :root {
    --space-section: 4rem;
  }

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

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

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

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__split {
    flex-direction: column;
    gap: var(--space-2xl);
  }

  .hero__graphic {
    max-width: 400px;
    margin: 0 auto;
  }

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

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

  .about-snapshot {
    flex-direction: column !important;
  }
}

/* ---- TOUCH DEVICE OPTIMIZATIONS ---- */
@media (hover: none) and (pointer: coarse) {
  /* Larger tap targets */
  .btn {
    min-height: 48px;
    padding: 0.8rem 1.5rem;
  }

  .nav__hamburger {
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }

  .testimonial-btn {
    min-width: 48px;
    min-height: 48px;
  }

  .testimonial-dot {
    min-width: 12px;
    min-height: 12px;
  }

  .footer__link,
  .footer__contact-item {
    padding: 0.35rem 0;
  }

  /* Disable hover-only effects */
  .card:hover {
    transform: none;
  }

  .serve-card:hover,
  .why-card:hover,
  .engagement-card:hover {
    transform: none;
  }
}

/* ---- SAFE AREA (notch devices) ---- */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer__bottom {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }

  .nav {
    padding-top: calc(0.65rem + env(safe-area-inset-top));
  }
}
