/* ====================================
   RESPONSIVE STYLES
   Mobile-First Approach
   ==================================== */

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 575.911px) {
  :root {
    --fs-3xl: 1.5rem;
    --fs-4xl: 1.875rem;
    --section-padding: 3rem 0;
  }
  
  .hero-title {
    font-size: var(--fs-3xl);
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .navbar-brand {
    font-size: var(--fs-base);
  }
  
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .section-desc {
    padding: 0 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .hero-shape {
    display: none;
  }
  
  /* Back to top button adjustments */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  .back-to-top i {
    font-size: 1rem;
  }
  
  /* Progress bar for mobile */
  .progress-bar {
    height: 9px;
  }
}

/* Small Devices (Landscape Phones) */
@media (min-width: 576px) and (max-width: 767.912px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 85vh;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Medium Devices (Tablets) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 90vh;
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.5rem;
  }
}

/* Large Devices (Desktops) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .priceplan-item.featured {
    transform: scale(1.03);
  }
}

/* Extra Large Devices (Large Desktops) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .container {
    max-width: 1200px;
  }
}

/* Portrait Orientation */
@media (orientation: portrait) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 70vh;
  }
  
  .hero-title {
    font-size: var(--fs-3xl);
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-title {
    font-size: var(--fs-2xl);
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: var(--fs-base);
    margin-bottom: 0.74rem;
  }
  
  .hero-desc {
    margin-bottom: 1rem;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .card {
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.05);
  }
}

/* Print Styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    text-shadow: none !important;
    filter: none !important;
  }
  
  .navbar,
  .footer,
  .hero-shape,
  .btn {
    display: none !important;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    background: transparent !important;
    color: black !important;
    min-height: auto !important;
    padding: 2rem 0 !important;
  }
  
  .section {
    padding: 2rem 0 !important;
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  .card {
    border: 1px solid #e0e0e0 !important;
    box-shadow: none !important;
  }
}

/* Accessibility Improvements */
@media (prefers-contrast: high) {
  :root {
    --gray-600: #000000;
    --gray-800: #000000;
  }
  
  .navbar-nav .nav-link {
    color: #000000;
  }
  
  .section-desc {
    color: #000000;
  }
  
  .card {
    border: 2px solid #000000;
  }
}

/* Focus Styles for Better Accessibility */
@media (prefers-reduced-motion: no-preference) {
  .navbar-nav .nav-link:focus,
  .btn:focus,
  .form-control:focus,
  .card:focus-within {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  /* Note: Following user requirements, not implementing dark theme */
  /* This section is left empty intentionally */
}

/* Reduced Motion Alternative Animations */
@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  }
  
  .gallery-item:hover {
    transform: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  
  .btn-primary:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(35, 78, 243, 0.20);
  }
}

/* Utility Classes for Responsive Design */
.d-none-xs {
  display: none;
}

@media (min-width: 576px) {
  .d-none-xs {
    display: block;
  }
}

.text-center-xs {
  text-align: center;
}

@media (min-width: 768px) {
  .text-center-xs {
    text-align: left;
  }
}

/* Container Adjustments */
@media (max-width: 575.98px) {
  .container,
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Navigation Improvements for Mobile */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    padding: 1rem;
    display: none;
  }
  
  .navbar-collapse.show {
    display: block;
  }
  
  .navbar-nav {
    flex-direction: column;
  }
  
  .navbar-nav .nav-item {
    margin: 0.5rem 0;
  }
  
  .navbar-nav .nav-link {
    margin: 0;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }
  
  .navbar-nav .nav-link:hover {
    background-color: var(--gray-50);
  }
}

/* Form Improvements for Touch Devices */
@media (max-width: 767.98px) {
  .form-control {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 1rem;
  }
  
  .btn {
    padding: 1rem 2rem;
    font-size: var(--fs-base);
  }
}

/* Table Responsive Improvements */
@media (max-width: 767.98px) {
  .table-responsive {
    border: none;
  }
  
  .table-responsive table {
    font-size: var(--fs-sm);
  }
} 