/* ===== RESPONSIVE CSS - ECO-CONSCIOUS HOME DÉCOR TEMPLATE ===== */
/* Mobile-First Responsive Design */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Typography Adjustments */
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.3rem; }
  h4 { font-size: 1.2rem; }
  h5 { font-size: 1.1rem; }
  h6 { font-size: 1rem; }
  
  /* Hero Section */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  #hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  #hero .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  #hero .hero-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  /* Section Padding */
  .section-padding {
    padding: 3rem 0;
  }
  
  .section-padding-sm {
    padding: 2rem 0;
  }
  
  /* Services Cards */
  #services .service-card {
    margin-bottom: 2rem;
  }
  
  #services .service-image {
    height: 150px;
    font-size: 2rem;
  }
  
  #services .service-price {
    font-size: 1.5rem;
  }
  
  /* Features Cards */
  #features .feature-card {
    margin-bottom: 2rem;
    padding: 2rem 1.5rem;
  }
  
  #features .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  /* Price Plan Cards */
  #priceplan .price-card {
    margin-bottom: 2rem;
    padding: 2rem 1.5rem;
  }
  
  #priceplan .price-value {
    font-size: 2.5rem;
  }
  
  /* Team Cards */
  #team .team-card {
    margin-bottom: 2rem;
  }
  
  #team .team-photo {
    width: 100px;
    height: 100px;
    font-size: 1.5rem;
  }
  
  /* Review Cards */
  #reviews .review-card {
    margin-bottom: 2rem;
  }
  
  /* Contact Form */
  #contacts .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Blog Cards */
  #blog .blog-card {
    margin-bottom: 2rem;
  }
  
  #blog .blog-image {
    height: 150px;
  }
  
  /* FAQ Cards */
  #faq .faq-card {
    margin-bottom: 1rem;
    padding: 1.5rem;
  }
  
  /* Gallery Items */
  #gallery .gallery-item {
    height: 200px;
    margin-bottom: 1rem;
  }
  
  /* Decorative Shapes - Hide on mobile */
  .eco-shape {
    display: none;
  }
  
  /* Remove animations on mobile to respect accessibility */
  * {
    transition: none !important;
    animation: none !important;
  }
  
  /* Footer adjustments */
  #footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography */
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  
  /* Hero Section */
  #hero h1 {
    font-size: 2.5rem;
  }
  
  /* Services Grid */
  #services .service-card {
    margin-bottom: 2rem;
  }
  
  /* Features Grid */
  #features .feature-card {
    margin-bottom: 2rem;
  }
  
  /* Price Plan Grid */
  #priceplan .price-card {
    margin-bottom: 2rem;
  }
  
  /* Team Grid */
  #team .team-card {
    margin-bottom: 2rem;
  }
  
  /* Reviews Grid */
  #reviews .review-card {
    margin-bottom: 2rem;
  }
  
  /* Blog Grid */
  #blog .blog-card {
    margin-bottom: 2rem;
  }
  
  /* Decorative Shapes - Small */
  .eco-shape-1 {
    width: 120px;
    height: 120px;
  }
  
  .eco-shape-2 {
    width: 100px;
    height: 100px;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero Section */
  #hero h1 {
    font-size: 2.8rem;
  }
  
  /* Services Grid - 2 columns */
  #services .row .col-md-6 .service-card {
    margin-bottom: 2rem;
  }
  
  /* Features Grid - 2 columns */
  #features .row .col-md-6 .feature-card {
    margin-bottom: 2rem;
  }
  
  /* Price Plan Grid - 3 columns but responsive stacking */
  #priceplan .price-card {
    margin-bottom: 2rem;
  }
  
  /* Team Grid - 2-3 columns */
  #team .team-card {
    margin-bottom: 2rem;
  }
  
  /* Reviews Grid - 2 columns */
  #reviews .review-card {
    margin-bottom: 2rem;
  }
  
  /* Blog Grid - 2 columns */
  #blog .blog-card {
    margin-bottom: 2rem;
  }
  
  /* Gallery - 2-3 columns */
  #gallery .gallery-item {
    margin-bottom: 1.5rem;
  }
  
  /* Decorative Shapes - Medium */
  .eco-shape-1 {
    width: 150px;
    height: 150px;
  }
  
  .eco-shape-2 {
    width: 120px;
    height: 120px;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Hero Section */
  #hero h1 {
    font-size: 3rem;
  }
  
  /* Services Grid - 3 columns */
  #services .service-card {
    margin-bottom: 2rem;
  }
  
  /* Features Grid - 2 columns */
  #features .feature-card {
    margin-bottom: 2rem;
  }
  
  /* Team Grid - 3-4 columns */
  #team .team-card {
    margin-bottom: 2rem;
  }
  
  /* Reviews Grid - 2-3 columns */
  #reviews .review-card {
    margin-bottom: 2rem;
  }
  
  /* Blog Grid - 3 columns */
  #blog .blog-card {
    margin-bottom: 2rem;
  }
  
  /* Gallery - 3-4 columns */
  #gallery .gallery-item {
    margin-bottom: 1.5rem;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Hero Section - Full design */
  #hero h1 {
    font-size: 3.5rem;
  }
  
  /* Services Grid - 3 columns optimal */
  #services .service-card {
    margin-bottom: 2rem;
  }
  
  /* Features Grid - 2 columns optimal */
  #features .feature-card {
    margin-bottom: 2rem;
  }
  
  /* Team Grid - 5 columns or 3-2 layout */
  #team .team-card {
    margin-bottom: 2rem;
  }
  
  /* Reviews Grid - 3 columns optimal */
  #reviews .review-card {
    margin-bottom: 2rem;
  }
  
  /* Blog Grid - 3 columns optimal */
  #blog .blog-card {
    margin-bottom: 2rem;
  }
  
  /* Gallery - 4-5 columns */
  #gallery .gallery-item {
    margin-bottom: 1.5rem;
  }
  
  /* Decorative Shapes - Full size */
  .eco-shape-1 {
    width: 200px;
    height: 200px;
  }
  
  .eco-shape-2 {
    width: 150px;
    height: 150px;
  }
}

/* Print Styles */
@media print {
  #header,
  #footer {
    display: none;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --eco-primary: #000000;
    --eco-secondary: #333333;
    --eco-accent: #FFFFFF;
    --eco-highlight: #666666;
    --eco-neutral: #FFFFFF;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-white: #FFFFFF;
  }
  
  .btn-eco-primary,
  .btn-eco-secondary {
    border: 2px solid #000000;
  }
  
  #contacts .form-control {
    border: 2px solid #000000;
  }
}

/* Reduced Motion Support */
@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;
  }
  
  .eco-shape {
    display: none;
  }
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
  a:focus,
  button:focus,
  input:focus,
  textarea:focus,
  select:focus {
    outline: 3px solid var(--eco-secondary);
    outline-offset: 2px;
  }
}

/* Dark Mode Support (if system prefers dark) */

/* Container Max Width Adjustments */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Landscape Orientation Adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
  #hero {
    min-height: 100vh;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
}

/* Portrait Orientation Adjustments */
@media screen and (orientation: portrait) {
  #hero {
    min-height: 80vh;
  }
}

/* Hover Support Detection */
@media (hover: hover) {
  .service-card:hover,
  .feature-card:hover,
  .price-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: translateY(-5px);
  }
  
  .btn-eco-primary:hover,
  .btn-eco-secondary:hover {
    transform: translateY(-2px);
  }
}

/* No Hover Support (touch devices) */
@media (hover: none) {
  .service-card,
  .feature-card,
  .price-card,
  .team-card,
  .blog-card,
  .gallery-item,
  .btn-eco-primary,
  .btn-eco-secondary {
    transform: none !important;
  }
} 