/* ═══════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   Mobile first → up
═══════════════════════════════════════════════════════ */

/* ════════ LARGE DESKTOP (1400px+) ════════ */
@media (min-width: 1400px) {
  :root {
    --container-max: 1340px;
  }

  .hero-h1 {
    font-size: 92px;
  }

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

/* ════════ DESKTOP (1100px - 1399px) ════════ */
@media (max-width: 1399px) and (min-width: 1100px) {
  /* Use defaults — no overrides needed */
}

/* ════════ TABLET LANDSCAPE (900px - 1099px) ════════ */
@media (max-width: 1099px) {
  :root {
    --section-pad-y: 80px;
  }

  .container {
    padding: 0 40px;
  }

  .navbar {
    padding: 0 40px;
  }

  .hero-content {
    padding: 60px 40px 56px;
  }

  .hero-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-stats-panel {
    max-width: 480px;
  }

  .hero-badge {
    display: none;
  }

  .landmark-header {
    padding: 64px 40px 44px;
  }

  .services-header {
    padding: 64px 40px 0;
  }

  .srv-text {
    padding: 40px 40px;
  }

  .mep-content {
    padding: 0 56px;
  }

  .about-text-col {
    padding: 56px 48px;
  }

  .d-col {
    padding: 36px 32px;
  }

  .trust-strip {
    padding: 0 40px;
  }

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

  footer {
    padding: 0 40px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* ════════ TABLET PORTRAIT (640px - 899px) ════════ */
@media (max-width: 899px) {
  :root {
    --section-pad-y: 72px;
    --nav-height: 68px;
  }

  /* Navigation */
  .navbar {
    padding: 0 24px;
    height: var(--nav-height);
  }

  .nav-links {
    display: none;
  }

  .nav-domain {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: 90vh;
  }

  .hero-content {
    padding: 48px 24px 56px;
  }

  .hero-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-h1 {
    font-size: clamp(42px, 8vw, 64px);
  }

  .hero-stats-panel {
    width: 100%;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Trust strip */
  .trust-inner {
    grid-template-columns: 1fr;
  }

  .trust-sep {
    display: none;
  }

  .trust-label {
    padding: 16px 0 0;
  }

  .trust-logos {
    padding: 0;
    flex-wrap: wrap;
  }

  .trust-item {
    flex: 1 1 50%;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 22px;
  }

  /* Landmark */
  .landmark-cards {
    grid-template-columns: 1fr;
  }

  .lm-card {
    height: 460px;
  }

  .landmark-bar-row {
    grid-template-columns: 1fr 1fr;
  }

  /* MEP showcase */
  .mep-img {
    height: 400px;
  }

  .mep-content {
    padding: 0 32px;
  }

  /* Services */
  .srv-panel {
    grid-template-columns: 1fr;
  }

  .srv-panel.reverse .srv-img {
    order: 0;
  }

  .srv-panel.reverse .srv-text {
    order: 0;
  }

  .srv-img {
    height: 280px;
  }

  .srv-text {
    padding: 36px 32px;
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid var(--border);
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-img-col {
    height: 380px;
  }

  .about-text-col {
    padding: 48px 32px;
  }

  /* Deliverables */
  .deliver-grid {
    grid-template-columns: 1fr;
  }

  .d-col + .d-col {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

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

  /* Industries */
  .industries-grid {
    grid-template-columns: 1fr;
  }

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

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Footer */
  footer {
    padding: 0 24px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    padding: 44px 0;
  }
}

/* ════════ MOBILE LARGE (480px - 639px) ════════ */
@media (max-width: 639px) {
  :root {
    --section-pad-y: 56px;
  }

  .container {
    padding: 0 20px;
  }

  /* Navigation */
  .navbar {
    padding: 0 20px;
  }

  .nav-logo-img {
    width: 38px;
    height: 38px;
  }

  .nav-logo-text strong {
    font-size: 12.5px;
  }

  .nav-logo-text span {
    font-size: 8.5px;
  }

  .btn-nav {
    padding: 8px 16px;
    font-size: 11px;
  }

  /* Hero */
  .hero-content {
    padding: 36px 20px 48px;
  }

  .hero-h1 {
    font-size: 40px;
    line-height: 1;
  }

  .hero-sub {
    font-size: 14px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn,
  .hero-ctas a {
    justify-content: center;
    text-align: center;
  }

  .hero-stats-panel {
    padding: 20px 20px 18px;
  }

  .hero-stats-grid {
    gap: 12px 18px;
  }

  .hero-stat-val {
    font-size: 22px;
  }

  /* Section title scaling */
  .section-title {
    font-size: 32px;
  }

  /* Trust strip */
  .trust-strip {
    padding: 0 20px;
  }

  .trust-item {
    flex: 1 1 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .trust-item:last-child {
    border-bottom: none;
  }

  /* Landmark */
  .landmark-header {
    padding: 48px 20px 36px;
  }

  .lm-card {
    height: 400px;
  }

  .lm-body {
    padding: 28px 22px;
  }

  .lm-title {
    font-size: 22px;
  }

  .landmark-bar-row {
    grid-template-columns: 1fr 1fr;
  }

  .landmark-bar-item {
    padding: 22px 20px;
  }

  .landmark-bar-val {
    font-size: 20px;
  }

  /* MEP */
  .mep-img {
    height: 360px;
  }

  .mep-content {
    padding: 0 22px;
  }

  /* Services */
  .services-header {
    padding: 48px 20px 0;
  }

  .srv-img {
    height: 240px;
  }

  .srv-text {
    padding: 32px 22px;
  }

  /* About */
  .about-floating-card {
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 16px 18px;
  }

  .afc-val {
    font-size: 22px;
  }

  .about-text-col {
    padding: 40px 22px;
  }

  .about-pillars {
    grid-template-columns: 1fr;
  }

  /* Process */
  .process-grid {
    grid-template-columns: 1fr;
  }

  /* Industries */
  .industry-item {
    padding: 32px 24px;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-submit {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  footer {
    padding: 0 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0;
  }

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

/* ════════ MOBILE SMALL (320px - 479px) ════════ */
@media (max-width: 479px) {
  .nav-logo-text span {
    display: none;
  }

  .hero-h1 {
    font-size: 36px;
  }

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

  .lm-stats {
    gap: 0;
  }

  .lm-stat {
    padding-right: 14px;
    margin-right: 14px;
  }

  .lm-stat-val {
    font-size: 14px;
  }

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

/* ════════ TOUCH DEVICE OPTIMIZATIONS ════════ */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover transforms that don't work on touch */
  .lm-card:hover .lm-bg {
    transform: none;
  }

  .srv-panel:hover .srv-img img {
    transform: none;
  }

  .pillar:hover {
    transform: none;
  }

  .form-submit:hover {
    transform: none;
  }

  /* Make buttons feel tappable */
  .btn,
  .btn-nav,
  .form-submit {
    min-height: 44px;
  }
}

/* ════════ REDUCED MOTION ════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
  }
}

/* ════════ PRINT STYLES ════════ */
@media print {
  .navbar,
  .hero-scroll,
  .marquee-wrap,
  .hamburger,
  .btn-nav,
  .hero-ctas,
  .form-submit {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .hero {
    min-height: auto;
  }
}
