/* Digital Decluttering Coaching - Responsive CSS */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  .section-padding {
    padding: 40px 0;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .service-card,
  .price-card,
  .team-member {
    padding: 1.5rem;
  }
  
  .hero-shape-1,
  .hero-shape-2 {
    display: none;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .price-amount {
    font-size: 2.5rem;
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .process-step {
    padding: 1.5rem;
  }
  
  .casestudy-card,
  .timeline-item,
  .career-item {
    padding: 1.5rem;
  }
  
  .about-feature {
    padding: 1.5rem;
  }
  
  .about-feature i {
    font-size: 2.5rem;
  }
  
  .feature-item i,
  .coreinfo-item i {
    font-size: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .section-title h2 {
    font-size: 2.25rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card,
  .price-card {
    margin-bottom: 1.5rem;
  }
  
  .hero-shape-1 {
    width: 200px;
    height: 200px;
  }
  
  .hero-shape-2 {
    width: 150px;
    height: 150px;
  }
}

/* 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.25rem;
  }
  
  .section-title h2 {
    font-size: 2.25rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .service-card {
    height: auto;
  }
  
  .price-card {
    height: auto;
  }
  
  .team-member {
    height: auto;
  }
  
  .review-card {
    height: auto;
  }
  
  .navbar-collapse {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.375rem;
  }
  
  .section-title h2 {
    font-size: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .service-card,
  .price-card,
  .team-member,
  .review-card {
    height: 100%;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .section-title h2 {
    font-size: 3rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .container {
    max-width: 1200px;
  }
  
  .hero-shape-1 {
    width: 400px;
    height: 400px;
  }
  
  .hero-shape-2 {
    width: 300px;
    height: 300px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-padding {
    padding: 60px 0;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .hero-shape,
  .btn {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    page-break-inside: avoid;
  }
  
  .section-padding {
    padding: 20px 0;
  }
  
  .service-card,
  .price-card,
  .team-member,
  .review-card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --secondary-color: #ff6600;
    --accent-color: #00aa00;
    --text-primary: #000000;
    --text-secondary: #333333;
    --border-color: #666666;
  }
  
  .service-card,
  .price-card,
  .team-member,
  .review-card {
    border: 2px solid var(--border-color);
  }
  
  .btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-shape-1,
  .hero-shape-2 {
    animation: none;
  }
  
  .service-card:hover,
  .price-card:hover,
  .team-member:hover,
  .review-card:hover,
  .casestudy-card:hover,
  .gallery-item:hover,
  .about-feature:hover,
  .career-item:hover,
  .add-page-element:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Dark mode support (if needed in future) */

/* Focus styles for accessibility */
@media (any-hover: hover) {
  .nav-link:focus,
  .btn:focus,
  .form-control:focus,
  .faq-question:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Touch device optimizations */
@media (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
  }
  
  .faq-question {
    min-height: 44px;
  }
  
  .gallery-item {
    margin-bottom: 1rem;
  }
}

/* Flexible grid adjustments */
.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

@media (max-width: 575.98px) {
  .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }
}

/* Card grid responsiveness */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (max-width: 575.98px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Flexbox utilities for responsive layouts */
.flex-responsive {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.flex-responsive > * {
  flex: 1 1 300px;
}

@media (max-width: 575.98px) {
  .flex-responsive > * {
    flex: 1 1 100%;
  }
}

/* Responsive typography scale */
.responsive-text {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.responsive-heading {
  font-size: clamp(1.5rem, 5vw, 3rem);
}

.responsive-subheading {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
}

/* Container max-width adjustments */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Aspect ratio utilities for responsive images */
.aspect-ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.aspect-ratio-1-1 {
  aspect-ratio: 1 / 1;
}

/* Responsive spacing utilities */
.spacing-responsive {
  padding: clamp(1rem, 5vw, 3rem);
}

.margin-responsive {
  margin: clamp(1rem, 5vw, 3rem);
}

/* Responsive border radius */
.border-radius-responsive {
  border-radius: clamp(0.5rem, 2vw, 1rem);
}

/* Responsive box shadows */
.shadow-responsive {
  box-shadow: 0 clamp(2px, 1vw, 10px) clamp(10px, 3vw, 30px) var(--shadow-medium);
} 