/* Responsive Design for Mobile Optimization */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: var(--container-max-width);
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
}

/* Desktop (992px and up) */
@media (min-width: 992px) {
  .hero {
    min-height: 100vh;
  }
  
  .hero-content {
    padding-right: 2rem;
    padding-top: 150px;
}
  
  .hero-image {
    padding-left: 2rem;
  }
  
  .service-card {
    height: 100%;
  }
  
  .team-card {
    margin-bottom: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet (768px and up) */
@media (min-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-step {
    padding: 1.5rem;
  }
  
  .timeline-item {
    padding-left: 2.5rem;
  }
}

/* Mobile Large (576px and up) */
@media (min-width: 576px) {
  .hero {
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  .btn {
    padding: 0.65rem 1.5rem;
  }
  
  .form-control {
    padding: 0.65rem 0.85rem;
  }
}

/* Mobile (575px and below) */
@media (max-width: 575px) {
  :root {
    --section-padding: 60px 0;
    --font-size-4xl: 28px;
    --font-size-3xl: 24px;
    --font-size-2xl: 20px;
    --font-size-xl: 18px;
    --font-size-lg: 16px;
  }
  
  .hero {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .section-desc {
    font-size: 0.9rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .card-title {
    font-size: 1.125rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .form-control {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    font-size: 0.9rem;
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  .team-image {
    height: 200px;
  }
  
  .team-info {
    padding: 1rem;
  }
  
  .team-name {
    font-size: 1rem;
  }
  
  .team-role {
    font-size: 0.8rem;
  }
  
  .review-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .review-text {
    font-size: 0.9rem;
  }
  
  .faq-card {
    padding: 1rem;
  }
  
  .faq-question {
    font-size: 1rem;
  }
  
  .faq-answer {
    font-size: 0.9rem;
  }
  
  .price-plan-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .price-plan-price {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .process-step {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .timeline-item {
    padding-left: 2rem;
    margin-bottom: 1rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer h5 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .footer p {
    font-size: 0.9rem;
  }
}

/* Extra Small Mobile (480px and below) */
@media (max-width: 480px) {
  :root {
    --section-padding: 40px 0;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .hero {
    min-height: 60vh;
    padding: 1.5rem 0;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-desc {
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }
  
  .card-body {
    padding: 0.75rem;
  }
  
  .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .form-control {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 0.9rem;
  }
  
  .service-price {
    font-size: 1.25rem;
  }
  
  .team-image {
    height: 150px;
  }
  
  .review-card {
    padding: 0.75rem;
  }
  
  .faq-card {
    padding: 0.75rem;
  }
  
  .price-plan-card {
    padding: 0.75rem;
  }
  
  .price-plan-price {
    font-size: 1.5rem;
  }
  
  .gallery-item img {
    height: 150px;
  }
  
  .process-step {
    padding: 0.75rem;
  }
  
  .timeline-item {
    padding-left: 1.5rem;
  }
}

/* Landscape Mobile Orientation */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: 90vh;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
  
  .section {
    padding: 40px 0;
  }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero::before {
    background-size: 200% 200%;
  }
  
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
  }
  
  .service-card:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  .gallery-item:hover {
    transform: none;
  }
  
  /* Increase touch target sizes */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .navbar-nav .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .form-control {
    min-height: 44px;
  }
}

/* Print Styles */
@media print {
  .hero {
    min-height: auto;
    background: none;
    color: black;
  }
  
  .navbar,
  .footer {
    display: none;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .btn {
    display: none;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section {
    padding: 20px 0;
  }
}

/* Container Responsive Adjustments */
@media (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }
}

@media (max-width: 767px) {
  .container {
    max-width: 540px;
  }
}

@media (max-width: 575px) {
  .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Flexbox Responsive Utilities */
@media (max-width: 767px) {
  .d-md-flex {
    display: flex;
  }
  
  .d-md-block {
    display: block;
  }
  
  .flex-md-column {
    flex-direction: column;
  }
  
  .text-md-center {
    text-align: center;
  }
  
  .text-md-left {
    text-align: left;
  }
  
  .mb-md-3 {
    margin-bottom: 1rem;
  }
  
  .mt-md-0 {
    margin-top: 0;
  }
} 