/* 
 * Responsive CSS - Media queries for different screen sizes
 * Kirsten Van Der Merwe - Virtual Assistant Website
 */

/* Tablet and below (768px) */
@media (max-width: 768px) {
  :root {
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.5rem;
    --font-size-2xl: 1.25rem;
    --space-3xl: 4rem;
    --space-2xl: 3rem;
  }

  body {
    font-weight: 300;
  }

  /* Navigation */
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--color-background);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    gap: var(--space-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-toggle {
    display: block;
  }

  /* Hero */
  .hero {
    padding: var(--space-2xl) 0;
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-lg);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Cards */
  .card {
    padding: var(--space-lg);
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Forms */
  .btn {
    width: 100%;
  }

  /* Grid */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  /* Container */
  .container {
    padding: 0 var(--space-sm);
  }

  /* Sections */
  .section {
    padding: var(--space-2xl) 0;
  }

  /* Flash messages */
  .flash-messages {
    right: var(--space-sm);
    left: var(--space-sm);
    max-width: none;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  :root {
    --font-size-base: 15px;
    --font-size-4xl: 1.75rem;
    --font-size-3xl: 1.375rem;
    --space-3xl: 3rem;
    --space-2xl: 2rem;
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .card {
    padding: var(--space-md);
  }

  .btn {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
  }

  .btn-large {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-base);
  }
}

/* Desktop Large (1440px and above) */
@media (min-width: 1440px) {
  :root {
    --font-size-base: 18px;
    --max-width-content: 1400px;
  }

  /* Larger profile image for big screens */
  .about-profile-image-wrapper {
    width: 350px;
    height: 350px;
  }
}

/* Desktop Medium (1024px and above) */
@media (min-width: 1024px) {
  .about-profile-image-wrapper {
    width: 280px;
    height: 280px;
  }
}

/* Desktop Small/Tablet landscape (769px to 1023px) */
@media (min-width: 769px) and (max-width: 1023px) {
  .about-profile-image-wrapper {
    width: 240px;
    height: 240px;
  }
}

/* Reduced motion preference */
@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 support */
@media (prefers-contrast: high) {
  :root {
    --color-text: #000000;
    --color-background: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.4);
  }
}

/* Print styles */
@media print {
  .header,
  .footer,
  .nav,
  .mobile-menu-toggle,
  .btn,
  .flash-messages {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }

  a {
    text-decoration: underline;
  }

  .section {
    page-break-inside: avoid;
  }
}
