/* ============================================
   Lily Lane Electrolysis - Responsive Styles
   ============================================ */

/* ============================================
   Mobile Styles (Default - Mobile First)
   ============================================ */

/* Adjust font sizes for mobile */
:root {
  --font-size-h1: 2.25rem;
  --font-size-h2: 1.75rem;
  --font-size-h3: 1.5rem;
  --font-size-h4: 1.25rem;
}

/* ============================================
   Tablet Styles (768px and up)
   ============================================ */
@media (min-width: 768px) {
  :root {
    --font-size-h1: 2.75rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.625rem;
  }
  
  .container {
    padding: 0 var(--space-xl);
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   Desktop Styles (1024px and up)
   ============================================ */
@media (min-width: 1024px) {
  :root {
    --font-size-h1: 3rem;
    --font-size-h2: 2.25rem;
    --font-size-h3: 1.75rem;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   Mobile Navigation (Below 1024px)
   ============================================ */
@media (max-width: 1023px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-white);
    flex-direction: column;
    padding: var(--space-xxl) var(--space-lg);
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-normal);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.125rem;
    padding: var(--space-md) 0;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }
  
  .nav-cta {
    margin-left: 0;
    margin-top: var(--space-md);
  }
  
  .nav-cta .btn {
    width: 100%;
  }
  
  /* Mobile menu overlay */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
  }
  
  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* ============================================
   Mobile Adjustments
   ============================================ */
@media (max-width: 767px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .section {
    padding: var(--space-xl) 0;
  }
  
  /* Hero */
  .hero {
    min-height: 80vh;
  }
  
  .hero-content {
    padding: var(--space-lg);
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  /* FDA Callout */
  .fda-callout-content {
    flex-direction: column;
    text-align: center;
  }
  
  /* Feature Grid */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  /* Why Section */
  .why-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .why-image {
    order: -1;
  }
  
  /* Service Grid */
  .service-grid {
    grid-template-columns: 1fr;
  }
  
  /* Steps */
  .steps-container {
    grid-template-columns: 1fr;
  }
  
  /* Contact */
  .contact-details {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    padding: var(--space-lg);
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  /* Buttons */
  .btn {
    padding: 0.75rem 1.5rem;
  }
  
  .btn-large {
    font-size: 1rem;
    padding: 1rem 2rem;
  }
}

/* ============================================
   Large Desktop (1440px and up)
   ============================================ */
@media (min-width: 1440px) {
  .hero h1 {
    font-size: 4rem;
  }
  
  .container {
    padding: 0 var(--space-xxl);
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .header,
  .menu-toggle,
  .hero-cta,
  .btn,
  .footer {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }
  
  a {
    text-decoration: underline;
  }
  
  .section {
    page-break-inside: avoid;
  }
}

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

/* ============================================
   High Contrast Mode
   ============================================ */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #1a4d73;
    --color-text-primary: #000000;
    --color-border: #000000;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* ============================================
   Dark Mode Support (Optional)
   ============================================ */
@media (prefers-color-scheme: dark) {
  /* Uncomment to enable dark mode support
  :root {
    --color-white: #1a1a1a;
    --color-text-primary: #e0e0e0;
    --color-text-secondary: #b0b0b0;
    --color-bg-light: #2a2a2a;
    --color-border: #404040;
  }
  
  .header {
    background-color: #1a1a1a;
  }
  
  .service-card,
  .pricing-card {
    background-color: #2a2a2a;
  }
  */
}