/* =========================================================
   HAVALANDIRMACI — Responsive
   Breakpoints: 320 · 375 · 414 · 768 · 1024 · 1280 · 1440+
   ========================================================= */

@media (max-width: 1279px) {
  :root {
    --container: 1100px;
  }
}

@media (max-width: 1024px) {
  :root {
    --gutter: 20px;
    --header-h: 72px;
  }

  .nav-desktop,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mobile-cta-bar {
    display: flex;
  }

  body {
    padding-bottom: 72px;
  }

  .cap-layout {
    grid-template-columns: 1fr;
  }

  .cap-sticky {
    position: static;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .trust-layout,
  .cta-layout,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .process-track {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
  }

  .process-track::before {
    display: none;
  }

  .projects-editorial {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-row: auto;
    min-height: 360px;
  }

  .impact-row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .industry-strip,
  .industry-strip:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .industry-strip:nth-child(even) .industry-media {
    order: 0;
  }

  .industry-media {
    min-height: 200px;
  }

  .mega {
    display: none;
  }

  .detail-blocks,
  .related-projects {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .container-xl {
    width: min(100% - 2rem, var(--container));
  }

  .hero-content {
    margin-left: auto;
    margin-right: auto;
    width: min(100% - 2rem, var(--container));
  }

  .cap-item {
    grid-template-columns: 48px 1fr;
  }

  .cap-item .thumb {
    display: none;
  }

  .service-row {
    grid-template-columns: 48px 1fr;
  }

  .service-row .arrow {
    display: none;
  }

  .process-track {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split-media {
    min-height: 260px;
  }

  .split-media.overlap::after {
    display: none;
  }

  .hero {
    min-height: 92vh;
  }

  .page-hero {
    min-height: 44vh;
  }
}

@media (max-width: 414px) {
  h1, .hero-brand {
    word-break: break-word;
  }

  .btn-group-gap {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-group-gap .btn {
    justify-content: center;
  }

  .btn-ghost,
  .btn-ghost-dark {
    justify-content: flex-start;
  }

  .form-panel {
    padding: 1.25rem;
  }
}

@media (max-width: 375px) {
  .brand-text span {
    display: none;
  }

  .hero-content {
    padding-bottom: 3rem;
  }
}

@media (max-width: 320px) {
  .container-xl,
  .hero-content {
    width: min(100% - 1.5rem, var(--container));
  }

  body {
    font-size: 15px;
  }
}

@media (min-width: 1440px) {
  :root {
    --container: 1240px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-media img {
    animation: none;
    transform: none;
  }
}
