/* ==========================================================================
   Responsive Overrides & Media Queries
   ========================================================================== */

/* Large Desktop */
@media (min-width: 1400px) {
  :root {
    --space-4xl: 8rem;
  }

  .hero__container {
    gap: var(--space-4xl);
  }
}

/* Desktop */
@media (max-width: 1200px) {
  .hero__stats {
    gap: var(--space-xl);
  }

  .hero__stat-number {
    font-size: 2rem;
  }
}

/* Tablet Landscape */
@media (max-width: 991px) {
  :root {
    --space-4xl: 4rem;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .section--lg {
    padding: var(--space-4xl) 0;
  }

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

/* Tablet Portrait */
@media (max-width: 768px) {
  :root {
    --space-3xl: 3rem;
    --space-4xl: 3.5rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.375rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

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

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

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

  .approach-item {
    padding: var(--space-lg);
  }

  .approach-item__number {
    font-size: 3rem;
  }
}

/* Mobile Large */
@media (max-width: 576px) {
  :root {
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
    --space-4xl: 3rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

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

  .section-header__text {
    font-size: 1rem;
  }

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

  .service-card__icon {
    width: 52px;
    height: 52px;
  }

  .service-card__icon svg {
    width: 26px;
    height: 26px;
  }

  .stats {
    gap: var(--space-lg);
  }

  .stat__number {
    font-size: 2rem;
  }

  .contact-form {
    padding: var(--space-lg);
  }
}

/* Mobile Small */
@media (max-width: 380px) {
  h1 {
    font-size: 1.75rem;
  }

  .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
  }

  .btn--lg {
    padding: var(--space-md) var(--space-xl);
  }

  .hero__tagline {
    font-size: 0.875rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .stat__number {
    font-size: 1.75rem;
  }
}

/* Height-based adjustments */
@media (max-height: 700px) and (min-width: 992px) {
  .hero {
    min-height: auto;
    padding: 120px 0 var(--space-3xl);
  }

  .hero__scroll {
    display: none;
  }
}

/* High DPI / Retina */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .header__logo img,
  .footer__logo img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* 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;
  }

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

  .float {
    animation: none;
  }

  .hero__shape--1,
  .hero__shape--2,
  .hero__shape--3 {
    animation: none;
  }

  .page-loader {
    display: none;
  }
}

/* Dark Mode (optional - can be enabled later) */
@media (prefers-color-scheme: dark) {
  /* Placeholder for dark mode styles if needed */
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .back-to-top,
  .page-loader,
  .hero__scroll,
  .nav__toggle {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .section {
    padding: 2rem 0;
  }

  body {
    font-size: 12pt;
    color: black;
    background: white;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  .btn {
    border: 1px solid black;
    background: transparent;
    color: black;
  }
}
