/* Responsive Styles for Upcycled Furniture Workshop */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Devices (1200px and up) */
@media (min-width: 1200px) {
  .container-xl {
    max-width: 1140px;
  }
  
  .hero-section {
    min-height: 100vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Medium Devices (992px and up) */
@media (min-width: 992px) {
  .container-lg {
    max-width: 960px;
  }
  
  .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Small Devices (768px and up) */
@media (min-width: 768px) {
  .container-md {
    max-width: 720px;
  }
  
  .hero-section {
    min-height: 90vh;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* Extra Small Devices (576px and up) */
@media (min-width: 576px) {
  .container-sm {
    max-width: 540px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* Mobile Devices (below 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  :root {
    --font-size-base: 0.9rem;
    --font-size-sm: 0.8rem;
    --font-size-lg: 1rem;
    --font-size-xl: 1.1rem;
    --font-size-xxl: 1.3rem;
  }
  
  /* Navbar adjustments */
  .navbar-brand {
    font-size: 1rem;
  }
  
  .navbar-nav {
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    text-align: center;
  }
  
  /* Hero section adjustments */
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
  }
  
  /* Section adjustments */
  .section {
    padding: 2rem 0;
  }
  
  .section-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .section-description {
    font-size: 0.9rem;
  }
  
  /* Grid adjustments */
  .gallery-grid,
  .services-grid,
  .team-grid,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Card adjustments */
  .service-card,
  .team-card,
  .review-card,
  .faq-card,
  .element-card,
  .blog-card {
    padding: 1rem;
  }
  
  .feature-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  /* Contact form adjustments */
  .contact-form {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .form-control {
    padding: 0.75rem;
  }
  
  .submit-btn {
    padding: 0.75rem 1.5rem;
    width: 100%;
  }
  
  /* Footer adjustments */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .footer-section {
    text-align: center;
  }
  
  /* Team photo adjustments */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Service image adjustments */
  .service-image {
    height: 150px;
  }
  
  /* Gallery item adjustments */
  .gallery-item img {
    height: 200px;
  }
  
  /* Blog card adjustments */
  .blog-card img {
    height: 150px;
  }
  
  /* Decorative elements - hide on mobile */
  .decorative-blob {
    display: none;
  }
  
  /* Spacing adjustments */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* FAQ adjustments */
  .faq-question {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .faq-answer {
    padding: 1rem;
    font-size: 0.85rem;
  }
}

/* Tablet Portrait (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 85vh;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* Tablet Landscape (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 2.3rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Print Styles */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  .navbar,
  .footer,
  .decorative-blob {
    display: none;
  }
  
  main {
    padding-top: 0;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .service-card,
  .team-card,
  .review-card,
  .faq-card {
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }
  
  .gallery-section {
    display: none;
  }
  
  .contact-form {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  p, li {
    page-break-inside: avoid;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../XAV_images/hero-bg@2x.webp');
  }
  
  .service-image,
  .team-photo,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduce 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;
  }
  
  .decorative-blob {
    animation: none;
  }
  
  .service-card:hover,
  .team-card:hover,
  .review-card:hover,
  .gallery-item:hover,
  .element-card:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .submit-btn:hover {
    transform: none;
  }
  
  .navbar-nav .nav-link:hover {
    transform: none;
  }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
  /* Note: Following the requirement to NOT create a dark theme for accessibility */
  /* This section is intentionally left empty as per requirements */
}

/* Contrast Adjustments */
@media (prefers-contrast: high) {
  :root {
    --primary-charcoal: #000000;
    --primary-cream: #ffffff;
    --primary-rust: #cc0000;
    --primary-sage: #006600;
    --primary-clay: #cc6600;
  }
  
  .form-control {
    border-width: 3px;
  }
  
  .form-control:focus {
    border-width: 3px;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
  }
  
  .submit-btn {
    border: 2px solid var(--primary-charcoal);
  }
  
  .service-card,
  .team-card,
  .review-card,
  .faq-card,
  .element-card,
  .blog-card {
    border: 2px solid var(--primary-charcoal);
  }
}

/* Custom Scrollbar */
@media (min-width: 768px) {
  ::-webkit-scrollbar {
    width: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: var(--primary-cream);
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--primary-sage);
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--dark-sage);
  }
}

/* Focus Styles for Accessibility */
@media (min-width: 768px) {
  .nav-link:focus,
  .form-control:focus,
  .submit-btn:focus {
    outline: 2px solid var(--primary-rust);
    outline-offset: 2px;
  }
  
  .faq-question:focus {
    outline: 2px solid var(--primary-cream);
    outline-offset: -2px;
  }
}

/* Landscape Mobile Orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 70vh;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
  
  .navbar-brand {
    font-size: 0.9rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 1.5rem 0;
  }
}

/* Very Large Screens (1920px and up) */
@media (min-width: 1920px) {
  .container {
    max-width: 1400px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Ultra-wide Screens (2560px and up) */
@media (min-width: 2560px) {
  .container {
    max-width: 1600px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(5, 1fr);
  }
} 