/*
 * Responsive CSS for Organic Spice Blends
 * Additional responsive styles and optimizations
 */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero-section {
    padding: 2rem 0;
    text-align: center;
  }
  
  .hero-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-desc {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-section::before {
    display: none;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .nav-link {
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .price-card {
    padding: 2rem 1.5rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .contact-form {
    padding: 1rem;
  }
  
  .form-control {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
  
  .btn-primary {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .about-feature,
  .feature-item,
  .coreinfo-item {
    padding: 1.5rem;
  }
  
  .process-step {
    padding: 1.5rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .review-card,
  .casestudy-card,
  .career-card {
    padding: 1.5rem;
  }
  
  .blog-content {
    padding: 1.5rem;
  }
  
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
  
  .gallery-image {
    height: 200px;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .price-card {
    padding: 2.5rem 2rem;
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-image {
    height: 220px;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .hero-section::before {
    width: 40%;
  }
  
  .service-card {
    padding: 2.2rem;
  }
  
  .price-card {
    padding: 2.8rem 2.2rem;
  }
  
  .team-photo {
    width: 160px;
    height: 160px;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-image {
    height: 240px;
  }
  
  .process-step {
    padding: 2rem;
  }
  
  .process-number {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  .hero-section::before {
    width: 45%;
  }
  
  .service-card {
    padding: 2.3rem;
  }
  
  .price-card {
    padding: 2.8rem 2.3rem;
  }
  
  .contact-form {
    padding: 2.8rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .gallery-image {
    height: 260px;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 3.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .hero-section::before {
    width: 50%;
  }
  
  .service-card {
    padding: 2.5rem;
  }
  
  .price-card {
    padding: 3rem 2.5rem;
  }
  
  .contact-form {
    padding: 3rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .gallery-image {
    height: 280px;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .hero-desc {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .hero-section,
  .contact-form,
  .footer,
  .btn,
  .gallery-section {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .about-section,
  .services-section,
  .team-section,
  .faq-section {
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-sage: #5A7A3E;
    --primary-terracotta: #A67C52;
    --primary-turmeric: #B8A02E;
    --primary-paprika: #A04A2A;
    --primary-cinnamon: #6B3410;
    --neutral-charcoal: #000000;
    --neutral-warm-white: #FFFFFF;
  }
  
  .btn-primary {
    background: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
  }
  
  .btn-primary:hover {
    background: #333333;
    border-color: #333333;
  }
  
  .form-control {
    border: 2px solid #000000;
  }
  
  .form-control:focus {
    border-color: #000000;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .price-card,
  .team-card,
  .about-feature,
  .feature-item,
  .coreinfo-item,
  .gallery-item,
  .blog-card {
    transition: none;
  }
  
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .about-feature:hover,
  .feature-item:hover,
  .coreinfo-item:hover,
  .gallery-item:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  /* Animation classes now handled by Sal.js */
}

/* Dark Mode Support (if needed) */

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus,
.navbar-brand:focus {
  outline: 2px solid var(--primary-terracotta);
  outline-offset: 2px;
}

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

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

/* Container Adjustments */
@media (max-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}

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

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

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

@media (max-width: 576px) {
  .container {
    max-width: 100%;
    padding: 0 15px;
  }
}

/* Flexible Grid Systems */
.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.grid-auto-fill {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Responsive Typography */
@media (max-width: 576px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.3rem; }
  h4 { font-size: 1.1rem; }
  p { font-size: 0.9rem; }
}

@media (min-width: 577px) and (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.4rem; }
  h4 { font-size: 1.2rem; }
  p { font-size: 0.95rem; }
}

@media (min-width: 769px) and (max-width: 992px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.4rem; }
  h4 { font-size: 1.2rem; }
  p { font-size: 1rem; }
}

/* Utility Classes for Responsive Design */
.text-center-sm {
  @media (max-width: 767.98px) {
    text-align: center;
  }
}

.text-left-md {
  @media (min-width: 768px) {
    text-align: left;
  }
}

.hide-sm {
  @media (max-width: 767.98px) {
    display: none;
  }
}

.show-sm {
  @media (max-width: 767.98px) {
    display: block;
  }
}

.hide-md {
  @media (min-width: 768px) and (max-width: 991.98px) {
    display: none;
  }
}

.show-md {
  @media (min-width: 768px) and (max-width: 991.98px) {
    display: block;
  }
}

.hide-lg {
  @media (min-width: 992px) {
    display: none;
  }
}

.show-lg {
  @media (min-width: 992px) {
    display: block;
  }
} 