/* Responsive Design for Zero-waste Wedding Planning Template */

/* Mobile First Approach - Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --section-padding: 2rem 0;
    --font-size-base: 14px;
    --font-size-large: 16px;
  }
  
  /* Disable all animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* No scroll animations on mobile per requirements */
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
  
  /* Hero adjustments */
  .hero {
    min-height: 90vh;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .hero p {
    font-size: var(--font-size-base);
  }
  
  /* Hide decorative shapes on mobile */
  .hero::before,
  .hero::after {
    display: none;
  }
  
  /* Section titles */
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  /* Cards responsive */
  .card-body {
    padding: 1rem;
  }
  
  /* Services grid */
  .service-card {
    margin-bottom: 1rem;
  }
  
  /* Gallery responsive */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Contact form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Process steps */
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Navbar brand smaller on mobile */
  .navbar-brand {
    font-size: 1.1rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  /* Two column layout for some cards */
  .services-row .col-md-6:nth-child(odd) {
    padding-right: 0.75rem;
  }
  
  .services-row .col-md-6:nth-child(even) {
    padding-left: 0.75rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-item img {
    height: 250px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: var(--font-size-base);
    margin-bottom: 1rem;
  }
}

/* Print styles */
@media print {
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  .card {
    border: 1px solid #000;
    box-shadow: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--earth-brown);
  }
  
  .btn-primary {
    border: 2px solid var(--sage-green-dark);
  }
  
  .form-control {
    border: 2px solid var(--earth-brown);
  }
}

/* Dark mode preference */

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .navbar-nav .nav-link:focus {
    outline: 2px solid var(--sage-green);
    outline-offset: 2px;
  }
}

/* Container max-widths (following Bootstrap 5 defaults) */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
} 

.hero-content {
    padding-top: 250px;
}