/* Responsive Styles */

/* Mobile < 640px */
@media (max-width: 639px) {
  :root {
    --header-height: 70px;
  }

  /* Typography Adjustments */
  h1 {
    font-size: var(--text-3xl);
  }
  
  h2 {
    font-size: var(--text-2xl);
  }
  
  h3 {
    font-size: var(--text-xl);
  }

  .section-subtitle {
    font-size: var(--text-lg);
  }
  
  /* Layout */
  section {
    padding: var(--spacing-12) 0;
  }

  /* Navigation */
  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 100;
  }
  
  .menu.active {
    right: 0;
  }
  
  .menu li {
    margin: var(--spacing-4) 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  /* Menu toggle animation */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Hero Section */
  .hero {
    padding-top: calc(var(--header-height) + var(--spacing-8));
    padding-bottom: var(--spacing-8);
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .cta-group {
    flex-direction: column;
  }
  
  .trust-indicators {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .hero-image {
    margin-top: var(--spacing-8);
  }

  /* Client Section */
  .client-logos {
    gap: var(--spacing-5);
  }
  
  .client-logo {
    width: 40%;
    text-align: center;
  }

  /* Benefits Section */
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  /* Services Section */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Case Studies */
  .case-study {
    flex-direction: column;
  }
  
  .case-study.reverse {
    flex-direction: column;
  }
  
  .results-list {
    grid-template-columns: 1fr;
  }

  /* Testimonials */
  .testimonials-slider {
    grid-template-columns: 1fr;
  }

  /* CTA Section */
  .cta .container {
    flex-direction: column;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Small Tablets 640px - 767px */
@media (min-width: 640px) and (max-width: 767px) {
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .trust-indicators {
    justify-content: center;
  }
  
  .benefits-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .case-study {
    flex-direction: column;
  }
  
  .case-study.reverse {
    flex-direction: column;
  }
  
  .cta .container {
    flex-direction: column;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets 768px - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --header-height: 75px;
  }
  
  .hero .container {
    gap: var(--spacing-4);
  }
  
  .cta .container {
    flex-direction: column;
  }
  
  .case-study {
    gap: var(--spacing-6);
  }
  
  .footer-grid {
    gap: var(--spacing-6);
  }
  
  .menu li {
    margin-left: var(--spacing-5);
  }
}

/* Desktop 1024px - 1279px */
@media (min-width: 1024px) and (max-width: 1279px) {
  /* Slight adjustments for medium desktop */
  .container {
    padding: 0 var(--spacing-6);
  }
  
  .case-study {
    gap: var(--spacing-8);
  }
}

/* Large Desktop >= 1280px */
@media (min-width: 1280px) {
  /* Optimizations for large screens */
  :root {
    --container-width: 1280px;
  }
  
  .hero h1 {
    font-size: var(--text-5xl);
  }
  
  .cta .container {
    gap: var(--spacing-16);
  }
}

/* Prevent overflow on all devices */
@media (max-width: 1280px) {
  img {
    max-width: 100%;
    height: auto;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .cookie-banner,
  .back-to-top,
  form,
  .cta {
    display: none !important;
  }
  
  body {
    color: black !important;
    background-color: white !important;
  }
  
  a {
    text-decoration: underline !important;
    color: #000 !important;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  @page {
    margin: 2cm;
  }
}