/* ========================================
   RESPONSIVE - Mobile First
   ======================================== */

/* --- 768px+ (Tablet / Desktop Nav) --- */

@media (min-width: 768px) {
  :root {
    --container-padding: var(--space-8);
  }

  .nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-menu,
  .mobile-menu-overlay {
    display: none;
  }

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

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

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

  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }

  .hero-title {
    font-size: var(--text-5xl);
  }

  .hero-subtitle {
    font-size: var(--text-xl);
  }

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

  .section {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }

  .section-lg {
    padding-top: var(--space-32);
    padding-bottom: var(--space-32);
  }

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

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

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

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .stat-value {
    font-size: var(--text-5xl);
  }

  .team-photo {
    width: 180px;
    height: 180px;
  }

  .page-header {
    padding-top: calc(var(--header-height) + var(--space-20));
    padding-bottom: var(--space-16);
  }
}

/* --- 1024px+ (Desktop) --- */

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .hero-title {
    font-size: var(--text-6xl);
  }

  .hero-content {
    max-width: 900px;
  }

  .about-grid,
  .story-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-16);
  }

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

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

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

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

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

/* --- 1440px+ (Large Desktop) --- */

@media (min-width: 1440px) {
  :root {
    --container-padding: var(--space-10);
  }

  .hero-title {
    font-size: var(--text-7xl);
  }

  .hero-subtitle {
    font-size: var(--text-2xl);
  }

  .hero-content {
    max-width: 1000px;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .section-title {
    font-size: var(--text-5xl);
  }
}

/* --- Landscape Mobile --- */

@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-8));
    padding-bottom: var(--space-8);
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--space-4);
  }
}

/* --- Touch Devices --- */

@media (hover: none) and (pointer: coarse) {
  .card:hover {
    transform: none;
    box-shadow: none;
  }

  .pricing-card:hover {
    transform: none;
    box-shadow: none;
  }

  .pricing-card.featured:hover {
    box-shadow: var(--shadow-accent);
  }

  .card:hover .card-img img {
    transform: none;
  }

  .team-card:hover .team-photo {
    border-color: var(--color-border);
  }

  .nav-link::after {
    display: none;
  }
}

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

  .fade-in,
  .fade-in-left,
  .fade-in-right,
  .scale-in {
    opacity: 1;
    transform: none;
  }
}

/* --- Print --- */

@media print {
  .header,
  .menu-toggle,
  .mobile-menu,
  .mobile-menu-overlay,
  .footer,
  .hero-bg,
  .hero-overlay,
  .btn,
  .ba-slider input[type="range"] {
    display: none !important;
  }

  body {
    background: #FFFFFF;
    color: #000000;
    font-size: 12pt;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #000000;
    page-break-after: avoid;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }

  .card,
  .testimonial-card,
  .pricing-card {
    border: 1px solid #cccccc;
    background: none;
    box-shadow: none;
  }

  .section {
    padding: 1rem 0;
  }

  img {
    max-width: 100% !important;
  }
}
