/* ========================================
   RESPONSIVE STYLES - UPCYCLED GLASS
   ======================================== */

/* ========================================
   MOBILE LANDSCAPE & UP (576px)
   ======================================== */

@media (min-width: 576px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .service-card img {
    height: 220px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

/* ========================================
   TABLET & UP (768px)
   ======================================== */

@media (min-width: 768px) {
  :root {
    --section-padding: 100px 0;
    --font-size-base: 16px;
    --font-size-large: 18px;
  }
  
  .hero-content h1 {
    font-size: 3.2rem;
  }
  
  h2, .h2 {
    font-size: 2rem;
  }
  
  h3, .h3 {
    font-size: 1.6rem;
  }
  
  .section-title {
    margin-bottom: 4rem;
  }
  
  .glass-card {
    padding: 2.5rem;
  }
  
  .contact-form {
    padding: 3rem;
  }
  
  .team-photo {
    width: 220px;
    height: 220px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
  
  #blog_grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
}

/* ========================================
   DESKTOP & UP (992px)
   ======================================== */

@media (min-width: 992px) {
  :root {
    --section-padding: 120px 0;
    --font-size-large: 20px;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
  }
  
  .navbar-nav .nav-link {
    padding: 1rem 1.5rem;
  }
  
  .glass-card {
    padding: 3rem;
  }
  
  .service-card img {
    height: 250px;
  }
  
  .team-photo {
    width: 250px;
    height: 250px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  #blog_grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .price-card {
    padding: 2.5rem;
  }
}

/* ========================================
   LARGE DESKTOP & UP (1200px)
   ======================================== */

@media (min-width: 1200px) {
  .hero-content h1 {
    font-size: 4rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  .glass-card {
    padding: 3.5rem;
  }
  
  .contact-form {
    padding: 4rem;
  }
}

/* ========================================
   EXTRA LARGE DESKTOP & UP (1400px)
   ======================================== */

@media (min-width: 1400px) {
  .container-xxl {
    max-width: var(--container-max-width);
  }
  
  .hero-content h1 {
    font-size: 4.5rem;
  }
  
  .section-title {
    margin-bottom: 5rem;
  }
}

/* ========================================
   MOBILE-SPECIFIC STYLES (max-width: 767px)
   ======================================== */

@media (max-width: 767px) {
  /* No animations on mobile for performance */
  .glass-card,
  .gallery-item img,
  .blog-card,
  .btn-primary {
    transition: none !important;
  }
  
  .glass-card:hover,
  .gallery-item:hover img,
  .blog-card:hover,
  .btn-primary:hover {
    transform: none !important;
  }
  
  /* Mobile typography adjustments */
  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }
  
  h2, .h2 {
    font-size: 1.6rem;
  }
  
  h3, .h3 {
    font-size: 1.3rem;
  }
  
  p {
    font-size: 15px;
  }
  
  /* Mobile spacing */
  :root {
    --section-padding: 60px 0;
  }
  
  .glass-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Mobile navigation */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    text-align: center;
  }
  
  /* Mobile hero adjustments */
  #hero {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  #hero::before {
    display: none; /* Remove decorative elements on mobile */
  }
  
  /* Mobile gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-item {
    aspect-ratio: 4/3;
  }
  
  /* Mobile blog grid */
  #blog_grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Mobile team */
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  /* Mobile form adjustments */
  .form-control {
    padding: 0.6rem 0.8rem;
  }
  
  .btn-primary {
    padding: 0.75rem 1.5rem;
    width: 100%;
  }
  
  /* Mobile FAQ */
  .faq-item {
    padding: 1rem;
  }
  
  /* Mobile price cards */
  .price-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .price-value {
    font-size: 2rem;
  }
}

/* ========================================
   TABLET-SPECIFIC STYLES (768px to 991px)
   ======================================== */

@media (min-width: 768px) and (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  #blog_grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .team-photo {
    width: 200px;
    height: 200px;
  }
}

/* ========================================
   HIGH DPI DISPLAYS
   ======================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .gallery-item img,
  .service-card img,
  .team-photo {
    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;
  }
  
  #header,
  #footer,
  .btn,
  .navbar {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    overflow-x: hidden;
}
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .glass-card {
    border: 1px solid #ccc;
    padding: 1rem;
    margin-bottom: 1rem;
    page-break-inside: avoid;
  }
}

/* ========================================
   LANDSCAPE ORIENTATION (Mobile)
   ======================================== */

@media (max-width: 767px) and (orientation: landscape) {
  #hero {
    min-height: 60vh;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  :root {
    --section-padding: 40px 0;
  }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

@media (max-width: 767px) {
  /* Larger touch targets for mobile */
  .btn,
  .nav-link,
  .form-control {
    min-height: 44px;
  }
  
  /* Better text contrast on small screens */
  .text-muted {
    color: var(--text-secondary);
  }
  
  /* Improved spacing for readability */
  p {
    line-height: 1.7;
  }
  
  /* Better form control spacing */
  .form-control {
    margin-bottom: 1rem;
  }
}

/* ========================================
   CONTAINER ADJUSTMENTS
   ======================================== */

@media (max-width: 575px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
} 