/**
 * Tech Sutro — Responsive Adjustments
 * Bold Tech / Dark Glass — cross-cutting mobile/tablet overrides.
 * Loads last among the component sheets, so it wins ties at small
 * screens. Breakpoints: 1024 / 992 / 900 / 768 / 640 / 480 / 400
 * (plus a 1440px desktop refinement).
 */

/* ==================================================================
   TABLET LANDSCAPE — 1024px
   ================================================================== */

@media (max-width: 1024px) {

  .section {
    padding-block: clamp(3rem, 6vw, 6rem);
  }

  .section-header {
    margin-bottom: var(--space-8);
  }

  .footer-top {
    gap: var(--space-8);
  }

}


/* ==================================================================
   TABLET PORTRAIT — 992px
   ================================================================== */

@media (max-width: 992px) {

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

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

}


/* ==================================================================
   SMALL TABLET — 900px
   ================================================================== */

@media (max-width: 900px) {

  .section {
    padding-block: clamp(2.75rem, 6vw, 5rem);
  }

}


/* ==================================================================
   TABLET & MOBILE — GENERAL (768px)
   ================================================================== */

@media (max-width: 768px) {

  /* ---------------------------------------------------------------
     GLOBAL
     --------------------------------------------------------------- */

  html {
    font-size: 16px;
  }

  body {
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 1.25rem;
  }

  /* ---------------------------------------------------------------
     HEADER
     --------------------------------------------------------------- */

  .header-inner {
    min-height: 68px;
    padding-inline: 1rem;
  }

  .logo-img {
    height: 50px;
    width: auto;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
  }

  /* ---------------------------------------------------------------
     HERO
     --------------------------------------------------------------- */

  .hero {
    min-height: auto;
    padding-top: 88px;
    padding-bottom: 4rem;
  }

  .hero-content {
    width: 100%;
    padding-inline: 1.25rem;
  }

  .hero-title {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 1.25rem;
  }

  .hero-description {
    max-width: 620px;
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
  }

  /* ---------------------------------------------------------------
     SECTION
     --------------------------------------------------------------- */

  .section {
    padding-block: 4.5rem;
  }

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

  .section-header h2 {
    font-size: clamp(1.9rem, 7vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
  }

  .section-header p {
    font-size: 1rem;
    line-height: 1.65;
  }

  /* ---------------------------------------------------------------
     CARDS
     --------------------------------------------------------------- */

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

  .capability-card,
  .product-card,
  .service-card,
  .industry-card,
  .infra-card,
  .about-card {
    gap: 1rem;
  }

  .card h3,
  .capability-card h3,
  .product-card h3,
  .service-card h3,
  .industry-card h3,
  .infra-card h3,
  .about-card h3 {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  .card p,
  .capability-card p,
  .product-card p,
  .service-card p,
  .industry-card p,
  .infra-card p,
  .about-card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* ---------------------------------------------------------------
     BUTTONS
     --------------------------------------------------------------- */

  .btn {
    min-height: 48px;
    padding-inline: 1.25rem;
    font-size: 0.95rem;
  }

}


/* ------------------------------------------------------------------
   SMALL MOBILE — 640px
   ------------------------------------------------------------------ */

@media (max-width: 640px) {

  /* ---------------------------------------------------------------
     GLOBAL
     --------------------------------------------------------------- */

  .container {
    padding-inline: var(--space-4);
  }

  /* ---------------------------------------------------------------
     HEADER
     --------------------------------------------------------------- */

  .header-inner {
    min-height: 64px;
    padding-inline: 0.875rem;
  }

  .logo-img {
    height: 50px;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  /* ---------------------------------------------------------------
     HERO
     --------------------------------------------------------------- */

  .hero {
    padding-top: 82px;
    padding-bottom: 4.5rem;
  }

  .hero-content {
    padding-inline: 1rem;
  }

  .hero-title {
    font-size: clamp(2.35rem, 11vw, 3rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-actions {
    gap: 0.75rem;
  }

  .hero-actions .btn {
    min-height: 52px;
    font-size: 1rem;
  }

  /* ---------------------------------------------------------------
     SECTIONS
     --------------------------------------------------------------- */

  .section {
    padding-block: 4rem;
  }

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

  .section-header h2 {
    font-size: clamp(2rem, 8vw, 2.5rem);
    line-height: 1.1;
  }

  .section-header p {
    font-size: 1rem;
    line-height: 1.65;
  }

  /* ---------------------------------------------------------------
     CARDS
     --------------------------------------------------------------- */

  .card {
    padding: 1.35rem;
    border-radius: var(--radius-md);
  }

  .capability-card,
  .product-card,
  .service-card,
  .industry-card,
  .infra-card,
  .about-card {
    gap: 0.875rem;
  }

  /* ---------------------------------------------------------------
     PROCESS TIMELINE
     --------------------------------------------------------------- */

  .process-timeline {
    gap: 1rem;
  }

  .process-step {
    padding: 1.25rem;
  }

  .process-number {
    font-size: 1.75rem;
  }

  /* ---------------------------------------------------------------
     TEAM
     --------------------------------------------------------------- */

  .team-grid {
    gap: 1rem;
  }

  .team-card {
    padding: 1.25rem;
    gap: 1rem;
  }

  .avatar-img,
  .avatar-placeholder {
    width: 56px;
    height: 56px;
    min-width: 56px;
  }

  .team-info h4 {
    font-size: 1rem;
    line-height: 1.3;
  }

  .team-info p {
    font-size: 0.875rem;
    line-height: 1.45;
  }

  /* ---------------------------------------------------------------
     CTA
     --------------------------------------------------------------- */

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .cta-actions .btn {
    width: 100%;
    min-height: 52px;
  }

  /* ---------------------------------------------------------------
     FOOTER
     --------------------------------------------------------------- */

  .footer-top {
    gap: 2.5rem;
  }

  .footer-grid {
    gap: 2rem;
  }

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

  .footer-legal {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

}


/* ------------------------------------------------------------------
   LARGE PHONES — 480px
   ------------------------------------------------------------------ */

@media (max-width: 480px) {

  .hero {
    padding-top: 80px;
  }

  .hero-title {
    font-size: clamp(2.15rem, 9.5vw, 2.7rem);
  }

  .section {
    padding-block: 3.75rem;
  }

  .section-header h2 {
    font-size: clamp(1.9rem, 8.5vw, 2.25rem);
  }

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

  .footer-social a {
    width: 40px;
    height: 40px;
  }

}


/* ------------------------------------------------------------------
   EXTRA SMALL PHONES — 400px
   ------------------------------------------------------------------ */

@media (max-width: 400px) {

  .hero {
    padding-top: 78px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 0.98rem;
  }

  .section {
    padding-block: 3.5rem;
  }

  .section-header h2 {
    font-size: 1.9rem;
  }

  .card {
    padding: 1.2rem;
  }

}


/* ------------------------------------------------------------------
   LARGE SCREENS — DESKTOP REFINEMENT
   ------------------------------------------------------------------ */

@media (min-width: 1440px) {

  .container {
    max-width: 1320px;
  }

  .hero-title {
    font-size: clamp(2.6rem, 4vw, 4.5rem);
  }

  .section-header h2 {
    font-size: var(--text-4xl);
  }

}
