/* === Layout — Responsive Grid System === */

/*
  5 Device Categories:
  1. Mobile     — max-width: 480px
  2. Tablet     — max-width: 1024px
  3. Desktop    — 1025px to 1599px (default)
  4. Widescreen — 1600px to 2559px
  5. Ultrawide  — min-width: 2560px (21:9 monitors)

  Hero title logic:
  - Mobile & Tablet: .hero-title hidden, .hero-title-mobile shown (full gradient)
  - Desktop & Widescreen: .hero-title shown (only "IT" has gradient), .hero-title-mobile hidden
*/

/* Desktop (1440px target, max-width container) */
body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  overflow-x: hidden;
}

h1 { margin-bottom: 0.25rem; }
section { margin-bottom: 2.5rem; }
ul { padding-left: 1.5rem; }
li { margin-bottom: 0.6rem; }

/* === Tablet (1024px) === */
@media (max-width: 1024px) {
  body {
    padding: 3.5rem 1.5rem 2rem;
  }

  #hero {
    min-height: 70vh;
    padding: 2rem 1rem;
  }

  .hero-title {
    display: none !important;
  }

  .hero-title-mobile {
    display: block !important;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 0;
  }

  #who-we-are {
    padding: 3rem 1.5rem;
  }

  #who-we-are h2 {
    font-size: 2rem;
    white-space: nowrap;
  }

  .who-intro {
    font-size: 1rem;
  }

  #solutions {
    padding: 3rem 1.5rem;
    margin: 1rem -1.5rem;
  }

  #solutions > h2 {
    font-size: 2rem;
  }

  .service-group {
    padding: 1.5rem;
  }

  .service-header h3 {
    font-size: 1.3rem;
  }

  .carousel-track .child-card {
    min-width: 170px;
    height: 220px;
  }

  #contact {
    padding: 3rem 1.5rem;
  }

  #contact h2 {
    font-size: 1.7rem;
  }

  .svc-modal, .contact-modal {
    padding: 1.5rem;
  }

  .btn {
    padding: 0.85rem 2rem;
    min-height: 44px;
  }
}

/* === Mobile (375px target) === */
@media (max-width: 480px) {
  body {
    padding: 3.5rem 1rem 1.5rem;
    font-size: 1rem;
    overflow-x: hidden;
  }

  #hero {
    min-height: 85vh;
    padding: 1.5rem 1rem;
  }

  .hero-title-mobile {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 0.7rem !important;
    letter-spacing: 0.2em;
  }

  .wallpaper-card h3 {
    font-size: 0.95rem;
    padding: 0 1rem;
  }

  .wallpaper-card p {
    font-size: 0.8rem;
    padding: 0 1rem;
  }

  .wallpaper-slider {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  #who-we-are {
    padding: 2.5rem 1rem;
  }

  #who-we-are h2 {
    font-size: 1.5rem;
    white-space: nowrap;
  }

  .who-label {
    font-size: 0.65rem;
  }

  .who-intro {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .who-buttons {
    flex-direction: column;
    align-items: center;
  }

  .who-buttons .btn {
    width: 100%;
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  #solutions {
    padding: 2.5rem 1rem;
    margin: 1rem -1rem;
  }

  #solutions > h2 {
    font-size: 1.7rem;
  }

  #solutions > p {
    font-size: 0.95rem;
  }

  .solutions-grid {
    gap: 2rem;
  }

  .service-group {
    padding: 1.25rem;
  }

  .service-header h3 {
    font-size: 1.2rem;
  }

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

  .carousel-track .child-card {
    min-width: 155px;
    max-width: 170px;
    height: 210px;
    padding: 1rem 0.75rem;
  }

  .carousel-track .child-card h4 {
    font-size: 0.95rem;
  }

  .carousel-track .child-card p {
    font-size: 0.78rem;
  }

  #contact {
    padding: 2.5rem 1rem;
  }

  #contact h2 {
    font-size: 1.5rem;
  }

  .contact-sub {
    font-size: 0.95rem;
  }

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

  .contact-row input + input {
    border-left: none;
    border-top: 1px solid rgba(66, 71, 84, 0.3);
  }

  .contact-submit {
    padding: 0.9rem;
    min-height: 48px;
  }

  .contact-row input {
    min-height: 48px;
  }

  .nav-inner {
    padding: 0.5rem 1rem;
  }

  .nav-logo img {
    height: 36px;
  }

  /* Touch targets — minimum 44x44px */
  .nav-link, .nav-cta, .btn, .carousel-btn, .cta-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Active/pressed states for touch */
  .btn:active { transform: scale(0.97); }
  .child-card:active { transform: scale(0.97); }
  .nav-cta:active { opacity: 0.7; }
  .carousel-btn:active { background: rgba(8, 11, 22, 0.95); }
}

/* === Widescreen (1600px+) === */
@media (min-width: 1600px) {
  body {
    max-width: none;
    font-size: 1.1rem;
    padding: 4rem 4vw 2rem;
  }

  .nav-inner {
    max-width: none;
    padding: 0.75rem 4vw;
  }

  #hero {
    min-height: 85vh;
  }

  .hero-title {
    font-size: clamp(4rem, 10vw, 10rem) !important;
  }

  .hero-tagline {
    font-size: 1.2rem !important;
    letter-spacing: 0.4em;
  }

  .wallpaper-card h3 {
    font-size: 1.3rem;
  }

  .wallpaper-card p {
    font-size: 1rem;
    max-width: 650px;
  }

  #who-we-are {
    max-width: none;
    padding: 6rem 4vw;
  }

  #who-we-are h2 {
    font-size: 3rem;
  }

  .who-intro {
    font-size: 1.25rem;
    max-width: 800px;
  }

  #solutions {
    padding: 5rem 4vw;
    margin-left: -4vw;
    margin-right: -4vw;
  }

  #solutions > h2 {
    font-size: 2.8rem;
  }

  #solutions > p {
    font-size: 1.2rem;
    max-width: 700px;
  }

  .service-group {
    padding: 2.5rem;
  }

  .service-header h3 {
    font-size: 1.8rem;
  }

  .service-header-text p {
    font-size: 1.1rem;
  }

  .carousel-track .child-card {
    min-width: 210px;
    max-width: 230px;
    height: 260px;
  }

  .carousel-track .child-card h4 {
    font-size: 1.2rem;
  }

  .carousel-track .child-card p {
    font-size: 0.9rem;
  }

  #contact {
    max-width: none;
    padding: 6rem 4vw;
  }

  .contact-form {
    max-width: 600px;
  }

  #contact h2 {
    font-size: 2.4rem;
  }

  .contact-sub {
    font-size: 1.15rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-row input {
    padding: 1rem 1.2rem;
    font-size: 1rem;
  }

  .btn {
    padding: 1.1rem 3rem;
    font-size: 0.75rem;
  }

  .svc-modal {
    max-width: 600px;
    padding: 2.5rem;
  }

  .svc-modal h3 {
    font-size: 1.6rem;
  }

  .svc-modal p {
    font-size: 1.05rem;
  }
}

/* === Ultrawide 21:9 (2560px+) === */
@media (min-width: 2560px) {
  body {
    max-width: none;
    font-size: 1.2rem;
    padding: 5rem 5vw 3rem;
  }

  .nav-inner {
    max-width: none;
    padding: 0.75rem 5vw;
  }

  #hero {
    min-height: 90vh;
  }

  .hero-title {
    font-size: clamp(6rem, 10vw, 14rem) !important;
  }

  .hero-tagline {
    font-size: 1.4rem !important;
    letter-spacing: 0.5em;
  }

  .wallpaper-card h3 {
    font-size: 1.5rem;
  }

  .wallpaper-card p {
    font-size: 1.15rem;
    max-width: 800px;
  }

  #who-we-are {
    max-width: none;
    padding: 7rem 5vw;
  }

  #who-we-are h2 {
    font-size: 3.5rem;
  }

  .who-intro {
    font-size: 1.35rem;
    max-width: 900px;
  }

  #solutions {
    padding: 6rem 5vw;
    margin-left: -5vw;
    margin-right: -5vw;
  }

  #solutions > h2 {
    font-size: 3.2rem;
  }

  #solutions > p {
    font-size: 1.3rem;
    max-width: 850px;
  }

  .solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .service-group {
    padding: 2.5rem;
  }

  .service-header h3 {
    font-size: 2rem;
  }

  .service-header-text p {
    font-size: 1.15rem;
  }

  .carousel-track .child-card {
    min-width: 220px;
    max-width: 250px;
    height: 270px;
  }

  .carousel-track .child-card h4 {
    font-size: 1.25rem;
  }

  .carousel-track .child-card p {
    font-size: 0.95rem;
  }

  #contact {
    max-width: none;
    padding: 7rem 5vw;
  }

  .contact-form {
    max-width: 700px;
  }

  #contact h2 {
    font-size: 2.8rem;
  }

  .contact-sub {
    font-size: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-row input {
    padding: 1.1rem 1.3rem;
    font-size: 1.1rem;
  }

  .btn {
    padding: 1.2rem 3.5rem;
    font-size: 0.8rem;
  }

  .svc-modal {
    max-width: 700px;
    padding: 3rem;
  }

  .svc-modal h3 {
    font-size: 1.8rem;
  }

  .svc-modal p {
    font-size: 1.15rem;
  }
}
