/* Responsive Styles for Carbon-Neutral Office Snack Subscription Service */

/* ========== MOBILE FIRST APPROACH ========== */

/* Base styles are already mobile-friendly in main.css */

/* ========== SMALL DEVICES (landscape phones, 576px and up) ========== */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
  
  .hero-content h1 {
    font-size: 2.51rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

/* ========== MEDIUM DEVICES (tablets, 768px and up) ========== */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .section-title h2 {
    font-size: 2.59rem;
  }
  
  .navbar {
    padding: 1.5rem 0;
  }
  
  .hero {
    padding: 0 2rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 3rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== LARGE DEVICES (desktops, 992px and up) ========== */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  .hero-content h1 {
    font-size: var(--font-size-4xl);
  }
  
  .section-title h2 {
    font-size: var(--font-size-3xl);
  }
  
  .navbar {
    padding: 2rem 0;
  }
  
  .hero {
    padding: 0 3rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-layout {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Bootstrap 5 responsive grid handles all responsive behavior */
}

/* ========== EXTRA LARGE DEVICES (large desktops, 1200px and up) ========== */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero {
    padding: 0 4rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .gallery-layout {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Bootstrap 5 handles all responsive grid behavior */
}

/* ========== EXTRA EXTRA LARGE DEVICES (1400px and up) ========== */
@media (min-width: 1400px) {
  .container {
    max-width: var(--container-max-width);
  }
  
  .hero {
    padding: 0 5rem;
  }
  
  /* Bootstrap grid handles responsive behavior */
  
  .gallery-layout {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ========== PREFERS-REDUCED-MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero::before {
    animation: none;
  }
  
  .fade-in-up,
  .fade-in-left,
  .fade-in-right {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .review-card:hover,
  .gallery-item:hover,
  .blog-card:hover,
  .feature-item:hover {
    transform: none;
  }
  
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
}

/* ========== SPECIFIC RESPONSIVE ADJUSTMENTS ========== */

/* Mobile Navigation */
@media (max-width: 767px) {
  .navbar-collapse {
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 8px 6px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Hero Section Mobile */
@media (max-width: 767px) {
  .hero {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-content {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 175px;
}
  
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: var(--font-size-base);
  }
  
  .hero-image {
    order: -1;
    margin-bottom: 2rem;
  }
}

/* Services Mobile */
@media (max-width: 767px) {
  .service-card {
    margin-bottom: 2rem;
  }
  
  .service-image {
    height: 150px;
  }
  
  .service-price {
    font-size: var(--font-size-xl);
  }
  
  /* Bootstrap responsive classes handle mobile layout */
}

/* Price Plan Mobile */
@media (max-width: 767px) {
  .price-card {
    margin-bottom: 2rem;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  /* Bootstrap responsive classes handle all layouts */
}

/* Team Section Mobile */
@media (max-width: 767px) {
  .team-card {
    margin-bottom: 2rem;
  }
  
  .team-image {
    width: 120px;
    height: 120px;
  }
  
  /* Bootstrap handles team layout responsively */
}

/* Reviews Mobile */
@media (max-width: 767px) {
  .review-card {
    margin-bottom: 2rem;
  }
  
  .review-text {
    font-size: var(--font-size-base);
  }
  
  /* Bootstrap handles review layout responsively */
}



/* Contact Form Mobile */
@media (max-width: 767px) {
  .contact-form {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  .contact-info {
    padding: 2rem;
  }
}

/* Gallery Mobile */
@media (max-width: 767px) {
  .gallery-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

/* Blog Mobile */
@media (max-width: 767px) {
  .blog-card {
    margin-bottom: 2rem;
  }
  
  .blog-image {
    height: 150px;
  }
  
  .blog-content {
    padding: 1.5rem;
  }
}

/* Footer Mobile */
@media (max-width: 767px) {
  footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-section {
    padding: 1rem 0;
  }
}

/* ========== LANDSCAPE ORIENTATION ========== */
@media (orientation: landscape) and (max-height: 600px) {
  .hero {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    margin-bottom: 1rem;
  }
}

/* ========== HIGH DPI DISPLAYS ========== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero::before {
    background-image: url('../SEC_images/hero-bg@2x.webp');
  }
  
  .service-image,
  .team-image,
  .gallery-item img,
  .blog-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ========== PRINT STYLES ========== */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a,
  a:visited {
    text-decoration: underline;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
  
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  
  .navbar,
  .hero,
  .gallery,
  footer {
    display: none;
  }
  
  .container {
    max-width: none;
    width: 100%;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  
  h2,
  h3 {
    page-break-after: avoid;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .review-card {
    break-inside: avoid;
  }
}

/* ========== ACCESSIBILITY IMPROVEMENTS ========== */
@media (prefers-contrast: high) {
  :root {
    --gray-400: #7b8196;
    --gray-500: #3e454c;
    --gray-600: #404f61;
  }
  
  .form-control {
    border-width: 2px;
  }
  
  .btn {
    border-width: 2px;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .blog-card {
    border: 2px solid var(--gray-300);
  }
}

/* ========== HOVER SUPPORT CHECK ========== */
@media (hover: none) {
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .review-card:hover,
  .gallery-item:hover,
  .blog-card:hover,
  .feature-item:hover {
    transform: none;
    box-shadow: 0 7px 6px rgba(0, 0, 0, 0.05);
  }
  
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ========== FOCUS IMPROVEMENTS ========== */
.navbar-nav .nav-link:focus,
.btn:focus,
.form-control:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* ========== CONTAINER QUERIES (Modern Browser Support) ========== */
@supports (container-type: inline-size) {
  .service-container {
    container-type: inline-size;
  }
  
  @container (min-width: 400px) {
    .service-card {
      padding: 2.5rem;
    }
  }
  
  @container (min-width: 600px) {
    .service-card {
      padding: 3rem;
    }
  }
}

/* ========== BREADCRUMBS RESPONSIVE ========== */
@media (max-width: 767px) {
  .breadcrumbs {
    padding: 5rem 0 1rem;
  }
}

/* ========== SPACE PAGE RESPONSIVE ========== */
@media (max-width: 767px) {
  #space {
    min-height: 50vh;
    margin: 1rem 0;
  }
} 