/* 
 * Responsive styles for domain.com
 * Breakpoints:
 * - Mobile: 0 - 576px
 * - Tablet: 577px - 992px
 * - Desktop: 993px and above
 */

/* Base mobile-first styles are in style.css */

/* Common Mobile Styles (up to 576px) */
@media (max-width: 576px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  h1 {
    font-size: 30px;
  }
  
  h2 {
    font-size: 24px;
  }
  
  h3 {
    font-size: 18px;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .nav-desktop {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .phone-number {
    display: none;
  }
  
  .header-container {
    height: 60px;
  }
  
  .logo {
    font-size: 24px;
  }
  
  .hero {
    padding-top: 100px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .trust-icons {
    flex-direction: column;
  }
  
  .trust-icon {
    margin-bottom: var(--spacing-md);
    margin-right: 0;
  }
  
  .service-card, 
  .about-text, 
  .about-advantages {
    min-width: 100%;
    margin-bottom: var(--spacing-md);
  }
  
  .testimonial-slider {
    padding: 0 var(--spacing-sm);
  }
  
  .form-container {
    padding: var(--spacing-md);
  }
  
  .footer-column {
    margin-bottom: var(--spacing-lg);
  }
}

/* Tablet Styles (577px - 992px) */
@media (min-width: 577px) and (max-width: 992px) {
  h1 {
    font-size: 36px;
  }
  
  h2 {
    font-size: 30px;
  }
  
  h3 {
    font-size: 20px;
  }
  
  .nav-desktop {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .header-container {
    height: 70px;
  }
  
  .logo {
    font-size: 28px;
  }
  
  .hero {
    padding-top: 120px;
  }
  
  .service-card, 
  .about-text, 
  .about-advantages {
    min-width: 48%;
  }
  
  .testimonial-slider {
    padding: 0 var(--spacing-md);
  }
}

/* Desktop Styles (993px and above) */
@media (min-width: 993px) {
  .mobile-menu-toggle {
    display: none;
  }
  
  .mobile-menu {
    display: none;
  }
  
  .hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .hero-text {
    flex: 1;
    padding-right: var(--spacing-xl);
  }
  
  .hero-image {
    flex: 1;
    text-align: right;
  }
  
  .about-content {
    flex-direction: row;
  }
  
  .about-text {
    padding-right: var(--spacing-lg);
  }
  
  .service-cards {
    flex-direction: row;
  }
  
  .testimonial-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
  }
}

/* Mobile Menu Styles - Will be shown/hidden using PHP */
.mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--white);
  overflow: hidden;
  transition: height 0.5s ease;
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.mobile-menu.open {
  height: auto;
  padding-bottom: var(--spacing-md);
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
}

.mobile-menu li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu a {
  display: block;
  padding: var(--spacing-md);
  font-family: var(--font-primary);
  font-weight: 600;
}

/* Medium-sized screens */
@media (min-width: 768px) and (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large Desktop Screens */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-content {
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
  }
  
  .service-cards {
    justify-content: space-between;
  }
  
  .service-card {
    flex: 0 0 30%;
  }
  
  .usp-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Print Styles */
@media print {
  .header, 
  .footer, 
  .order-form-section, 
  .faq {
    display: none;
  }
  
  body {
    background-color: white;
    color: black;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  
  a {
    text-decoration: underline;
    color: #000;
  }
  
  h1, h2, h3 {
    color: #000;
    page-break-after: avoid;
  }
  
  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }
}

/* High contrast mode */
@media (prefers-contrast: more) {
  :root {
    --primary-blue: #0E2A48;
    --amber: #FFA500;
    --graphite: #000000;
    --light-bg: #FFFFFF;
    --white: #FFFFFF;
    --light-blue: #D5EFFF;
  }
  
  body {
    color: #000;
  }
  
  a, .nav-desktop a {
    text-decoration: underline;
  }
  
  .btn {
    border: 2px solid #000;
  }
}

/* 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;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .header {
    position: absolute;
  }
  
  .hero {
    padding-top: 100px;
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
}

/* Adjust font size for very small screens */
@media (max-width: 320px) {
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  h2 {
    font-size: 20px;
  }
  
  h3 {
    font-size: 16px;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 14px;
  }
} 