/* Digital Etiquette Coaching - Responsive Styles */
/* Mobile-first responsive design */

/* Base mobile styles (320px+) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.84rem;
  }
  
  h3 {
    font-size: 1.64rem;
  }
  
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.79rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.39rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .service-card,
  .priceplan-card,
  .contact-form {
    padding: 1.5rem;
  }
  
  .priceplan-card.featured {
    transform: none;
    margin-bottom: 2rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.37rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .navbar-brand {
    font-size: 1.22rem;
  }
  
  .hero-shapes::before,
  .hero-shapes::after {
    display: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-title {
    font-size: 2.28rem;
  }
  
  .priceplan-card.featured {
    transform: scale(1.02);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Large devices (desktops, 995px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .priceplan-card.featured {
    transform: scale(1.03);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .hero-shapes::before {
    width: 250px;
    height: 250px;
    top: -75px;
    right: -75px;
  }
  
  .hero-shapes::after {
    width: 180px;
    height: 180px;
    bottom: -50px;
    left: -50px;
  }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-card,
  .priceplan-card,
  .review-card,
  .blog-item {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .contact-form,
  .hero-shapes::before,
  .hero-shapes::after {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    padding: 1rem 0;
  }
  
  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  .service-card,
  .priceplan-card,
  .review-card {
    box-shadow: none;
    border: 1px solid #d4c9c8;
    break-inside: avoid;
  }
  
  a {
    text-decoration: underline;
  }
  
  .gallery-grid {
    display: none;
  }
}

/* Accessibility improvements for larger text */
@media (min-width: 1px) {
  .user-scalable-text h1,
  .user-scalable-text h2,
  .user-scalable-text h3,
  .user-scalable-text h4,
  .user-scalable-text h5,
  .user-scalable-text h6,
  .user-scalable-text p,
  .user-scalable-text li {
    line-height: 1.7;
  }
}

/* Dark mode support (respects system preference) */

/* Focus styles for better accessibility */
.btn:focus,
.form-control:focus,
.navbar-nav .nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Hover effects for touch devices */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .blog-item:hover,
  .gallery-item:hover img {
    transform: none;
  }
  
  .service-card,
  .blog-item {
    transition: none;
  }
}

/* Reduced data usage for slow connections */
@media (max-width: 767.98px) and (prefers-reduced-data: reduce) {
  .hero-shapes::before,
  .hero-shapes::after {
    display: none;
  }
  
  .gallery-grid {
    display: none;
  }
  
  .service-card img,
  .blog-item img,
  .team-photo {
    filter: blur(1px);
    transition: filter 0.3s ease;
  }
  
  .service-card:hover img,
  .blog-item:hover img {
    filter: none;
  }
}

/* Container adjustments for better mobile experience */
@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .col,
  [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Sticky navigation adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.74rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }
}

/* Better spacing for mobile forms */
@media (max-width: 767.98px) {
  .contact-form .form-control {
    margin-bottom: 1.65rem;
    padding: 1rem;
  }
  
  .contact-form .btn {
    width: 100%;
    padding: 1rem;
  }
}

/* Optimized grid layouts for different screen sizes */
@media (min-width: 576px) and (max-width: 767.98px) {
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 992px) {
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
} 

.hero-content {
    padding-top: 175px;
}