/* ==========================================================================
   Responsive Stylesheet
   Media queries and responsive design adjustments
   ========================================================================== */

/* Base mobile-first approach */
/* All base styles are already defined for mobile in their respective files */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
  
  h1 {
    font-size: calc(var(--font-size-4xl) * 1.1);
  }
  
  .cta-buttons {
    flex-direction: row;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }

  h1 {
    font-size: calc(var(--font-size-4xl) * 1.2);
  }

  h2 {
    font-size: calc(var(--font-size-3xl) * 1.1);
  }

  .two-column {
    grid-template-columns: 1fr 1fr;
  }

  .hero .container {
    grid-template-columns: 1fr 1fr;
  }

  .features-grid,
  .testimonials-slider,
  .blog-grid,
  .team-grid,
  .values-grid,
  .contact-info {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-12);
  }

  .main-nav .menu {
    display: flex;
    position: static;
    flex-direction: row;
    background: none;
    box-shadow: none;
    padding: 0;
    width: auto;
  }
}

/* Hide hamburger for desktop only (1200px and up) */
@media (min-width: 1200px) {
  .menu-toggle {
    display: none;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  h1 {
    font-size: calc(var(--font-size-4xl) * 1.3);
  }
  
  h2 {
    font-size: calc(var(--font-size-3xl) * 1.2);
  }
  
  .features-grid,
  .team-grid,
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  h1 {
    font-size: calc(var(--font-size-4xl) * 1.4);
  }
  
  h2 {
    font-size: calc(var(--font-size-3xl) * 1.3);
  }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Mobile navigation */
@media (max-width: 767.98px) {
  .site-header {
    padding: var(--spacing-4) 0;
  }
  
  .menu-toggle {
    display: block;
    z-index: 100;
  }
  
  .main-nav .menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 250px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-16) var(--spacing-6) var(--spacing-6);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    z-index: 90;
  }
  
  .menu-toggle[aria-expanded="true"] + .menu {
    transform: translateX(0);
  }
  
  .main-nav .menu .menu-item {
    width: 100%;
    margin: var(--spacing-2) 0;
  }
  
  .main-nav .menu .menu-item a {
    display: block;
    padding: var(--spacing-2) 0;
  }
  
  /* Mobile adjustments */
  .hero {
    padding: var(--spacing-12) 0;
    text-align: center;
  }
  
  .hero-image {
    margin-top: var(--spacing-8);
  }

  .cta-buttons {
    justify-content: center;
  }

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

  .testimonial {
    margin-bottom: var(--spacing-6);
  }

  .partner-logo {
    width: 40%;
    margin-bottom: var(--spacing-4);
  }
}



/* Print styles */
@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    background: white !important;
  }

  .container {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

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

  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 90%;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

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

  p, blockquote, table, figure {
    page-break-inside: avoid;
  }

  @page {
    margin: 2cm;
  }
}

/* Landscape orientation for mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: var(--spacing-8) 0;
  }
  
  .hero h1 {
    font-size: var(--font-size-3xl);
  }
  
  .main-nav .menu {
    padding-top: var(--spacing-8);
    overflow-y: auto;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
