/* Eco-Friendly Tote Bag Printing - Responsive Styles */

/* ========================================
   MOBILE FIRST RESPONSIVE DESIGN
======================================== */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.625rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  /* Hero section */
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .hero-content .lead {
    font-size: 1.125rem;
  }
  
  /* Spacing adjustments */
  .section {
    padding: 3rem 0;
  }
  
  /* Button adjustments */
  .btn-primary,
  .btn-outline-primary {
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Card adjustments */
  .service-card-body,
  .pricing-body,
  .team-info,
  .contact-form {
    padding: 1.25rem;
  }
  
  /* Remove hover effects on mobile for better performance */
  .feature-item:hover,
  .service-card:hover,
  .feature-box:hover,
  .pricing-card:hover,
  .team-member:hover,
  .case-study-item:hover,
  .career-item:hover,
  .coreinfo-item:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  
  /* No animations on mobile for better performance */
  @media (prefers-reduced-motion: no-preference) {
    * {
      animation: none !important;
      transition: none !important;
    }
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .container-sm {
    max-width: 540px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  /* Hero section */
  .hero-content h1 {
    font-size: 2.75rem;
  }
  
  /* Navbar adjustments */
  .navbar-expand-md .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
  }
  
  /* Grid adjustments */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Section spacing */
  .section {
    padding: 4rem 0;
  }
  
  /* Card heights */
  .service-card,
  .team-member,
  .case-study-item {
    min-height: 350px;
  }
  
  /* Pricing card featured scaling */
  .pricing-card.featured {
    transform: scale(1.03);
  }
  
  .pricing-card.featured:hover {
    transform: scale(1.03) translateY(-8px);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Hero section */
  .hero-content h1 {
    font-size: 3rem;
  }
  
  /* Grid adjustments */
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Section spacing */
  .section {
    padding: 5rem 0;
  }
  
  /* Full hover effects on desktop */
  .feature-item:hover {
    transform: translateY(-5px);
  }
  
  .service-card:hover,
  .case-study-item:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: translateY(-8px);
  }
  
  .pricing-card:hover {
    transform: translateY(-8px);
  }
  
  .pricing-card.featured {
    transform: scale(1.05);
  }
  
  .pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
  }
  
  /* Team photos larger on desktop */
  .team-photo {
    height: 280px;
  }
  
  /* Process steps with connecting lines */
  .process-step::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: var(--primary-green);
    z-index: -1;
  }
  
  .process-step:last-child::after {
    display: none;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Hero section */
  .hero-content h1 {
    font-size: 3.5rem;
  }
  
  .hero-content .lead {
    font-size: 1.375rem;
  }
  
  /* Section titles */
  .section-title {
    font-size: 3rem;
  }
  
  /* Contact form and info side by side */
  .contact-form,
  .contact-info {
    min-height: 500px;
  }
  
  /* Gallery masonry-like layout */
  .gallery-item:nth-child(odd) .gallery-placeholder {
    height: 300px;
  }
  
  .gallery-item:nth-child(even) .gallery-placeholder {
    height: 200px;
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  /* Hero section */
  .hero-content h1 {
    font-size: 4rem;
  }
  
  /* Larger spacing on very large screens */
  .section-lg {
    padding: 8rem 0;
  }
}

/* ========================================
   LANDSCAPE PHONE SPECIFIC
======================================== */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    min-height: 80vh;
    padding-top: 4rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content .lead {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
  /* Hide non-essential elements */
  #header,
  #footer,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  /* Reset colors for print */
  * {
    color: #000 !important;
    background-color: #fff !important;
    box-shadow: none !important;
  }
  
  /* Ensure page breaks */
  .section {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  
  /* Remove hover effects */
  *:hover {
    transform: none !important;
  }
}

/* ========================================
   HIGH CONTRAST MODE
======================================== */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000;
    --text-secondary: #333;
    --bg-light: #fff;
    --bg-section: #f5f5f5;
    --primary-green: #2d5a1a;
    --primary-forest: #1a3d0f;
  }
  
  .btn-primary {
    background-color: #000;
    border-color: #000;
    color: #fff;
  }
  
  .btn-outline-primary {
    color: #000;
    border-color: #000;
  }
  
  .form-control {
    border: 2px solid #000;
  }
}

/* ========================================
   REDUCED MOTION PREFERENCES
======================================== */
@media (prefers-reduced-motion: reduce) {
  /* Remove all animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Remove transform effects */
  .feature-item:hover,
  .service-card:hover,
  .feature-box:hover,
  .pricing-card:hover,
  .team-member:hover,
  .case-study-item:hover,
  .career-item:hover,
  .coreinfo-item:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: none !important;
  }
  
  /* Disable parallax and complex animations */
  #hero::before {
    transform: none !important;
  }
}

/* ========================================
   DARK MODE SUPPORT
======================================== */

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
======================================== */

/* Focus indicators */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-forest);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 9999;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* High contrast focus indicators */
@media (prefers-contrast: high) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 3px solid #000;
    outline-offset: 2px;
  }
}

/* ========================================
   BROWSER SPECIFIC FIXES
======================================== */

/* Safari specific fixes */
@supports (-webkit-touch-callout: none) {
  /* Fix Safari sticky positioning */
  #header {
    position: -webkit-sticky;
    position: sticky;
  }
  
  /* Fix Safari flexbox issues */
  .d-flex {
    display: -webkit-flex;
    display: flex;
  }
}

/* Firefox specific fixes */
@-moz-document url-prefix() {
  /* Fix Firefox button padding */
  .btn {
    padding: calc(0.75rem - 1px) calc(2rem - 1px);
  }
}

/* Edge specific fixes */
@supports (-ms-ime-align: auto) {
  /* Fix Edge grid issues */
  .features-grid {
    display: -ms-grid;
    display: grid;
  }
} 