/*
 * Responsive CSS for Textile-Dye Recapture & Resale Service
 * Mobile-First Responsive Design
 */

/* Base Mobile Styles (Default) */
/* 320px and up */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-desc {
    font-size: 0.96rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .navbar-brand {
    font-size: 1.36rem;
  }
  
  .service-card,
  .priceplan-card,
  .about-feature {
    margin-bottom: 1.75rem;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .gallery-layout {
    grid-template-columns: 1fr;
  }
  
  .process-step {
    padding: 1.5rem;
  }
  
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.89rem; }
  h3 { font-size: 1.64rem; }
  h4 { font-size: 1.35rem; }
  
  .hero-section {
    min-height: 70vh;
  }
  
  .blog-card-body {
    padding: 1rem;
  }
  
  .add-page-section {
    padding: 2rem 0;
  }
  
  .add-page-element {
    padding: 1rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .gallery-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-title {
    font-size: 2.62rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .service-card,
  .priceplan-card {
    margin-bottom: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.35rem;
  }
  
  .hero-desc {
    font-size: 1.18rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .navbar-brand {
    font-size: 1.52rem;
  }
  
  .gallery-layout {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-form {
    padding: 3rem;
  }
  
  .team-member img {
    width: 150px;
    height: 150px;
  }
  
  .process-step {
    padding: 2rem;
  }
  
  .faq-question,
  .faq-answer {
    padding: 1.5rem;
  }
  
  .blog-card-body {
    padding: 1.5rem;
  }
  
  .add-page-section {
    padding: 3rem 0;
  }
  
  .add-page-element {
    padding: 1.5rem;
  }
  
  /* Two column layout for services */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Three column layout for features */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* Two column layout for team */
  .team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-title {
    font-size: 3.59rem;
  }
  
  .hero-subtitle {
    font-size: 1.64rem;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .gallery-layout {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .add-page-section {
    padding: 4rem 0;
  }
  
  /* Three column layout for services */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Four column layout for features */
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Three column layout for team */
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Three column layout for priceplan */
  .priceplan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* Two column layout for case studies */
  .casestudy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Five column layout for process */
  .process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }
  
  /* Two column layout for timeline */
  .timeline-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Two column layout for career */
  .career-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Three column layout for core info */
  .coreinfo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* Three column layout for blog */
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* Two column layout for reviews */
  .reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.84rem;
  }
  
  .gallery-layout {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .container {
    max-width: var(--container-max-width);
  }
  
  /* Five column layout for team */
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Five column layout for reviews */
  .reviews-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Six column layout for core info */
  .coreinfo-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .hero-title {
    font-size: 4.51rem;
  }
  
  .hero-subtitle {
    font-size: 2rem;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .gallery-layout {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-title {
    font-size: 2.54rem;
  }
  
  .hero-subtitle {
    font-size: 1.34rem;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for high DPI displays */
  .hero-section {
    background-size: cover;
  }
  
  .service-card img,
  .team-member img,
  .gallery-item img {
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .contact-form,
  .btn {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  .service-card,
  .team-member,
  .review-card {
    page-break-inside: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .hero-section,
  .service-card,
  .team-member,
  .gallery-item,
  .blog-card,
  .btn-primary {
    transition: none;
  }
  
  .fade-in-up {
    animation: none;
  }
  
  .process-step::before {
    animation: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .hero-section {
    background: var(--bg-dark);
  }
  
  .service-card,
  .team-member,
  .review-card,
  .blog-card {
    border: 2px solid var(--text-primary);
  }
  
  .btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
  }
  
  .text-gradient {
    background: none;
    -webkit-text-fill-color: var(--text-primary);
    color: var(--text-primary);
  }
}

/* Dark mode preference */

/* Responsive utilities */
.d-mobile-none {
  display: none;
}

@media (min-width: 768px) {
  .d-mobile-none {
    display: block;
  }
  
  .d-desktop-none {
    display: none;
  }
}

/* Responsive text alignment */
.text-center-mobile {
  text-align: center;
}

@media (min-width: 768px) {
  .text-center-mobile {
    text-align: left;
  }
}

.text-left-desktop {
  text-align: center;
}

@media (min-width: 768px) {
  .text-left-desktop {
    text-align: left;
  }
}

/* Responsive spacing */
.mt-mobile-2 {
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .mt-mobile-2 {
    margin-top: 0;
  }
}

.mb-mobile-3 {
  margin-bottom: 1.72rem;
}

@media (min-width: 768px) {
  .mb-mobile-3 {
    margin-bottom: 0;
  }
}

/* Responsive grid fixes */
@media (max-width: 767.98px) {
  .row > * {
    margin-bottom: 1rem;
  }
  
  .row > *:last-child {
    margin-bottom: 0;
  }
}

/* Container improvements */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: var(--container-max-width);
  }
}

/* Responsive hero image */
@media (max-width: 767.98px) {
  .hero-section {
    background-position: center center;
    background-size: cover;
  }
} 

.hero-content {
    padding-top: 275px;
}