/* Remote IT Helpdesk for Seniors - Responsive Styles */

/* ===== MOBILE FIRST APPROACH ===== */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-section {
    padding: 0;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
  }
  
  .section {
    padding: 6rem 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .service-card .card-body {
    padding: 3rem 2rem;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .card-body {
    padding: 2rem;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* DISABLE ANIMATIONS ON MOBILE */
  .sal-animate,
  .sr-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  /* Mobile Navigation */
  .navbar-brand {
    font-size: 1.125rem !important;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    margin: 0;
  }
  
  /* Hero Section Mobile */
  .hero-section {
    min-height: 90vh;
    padding: 2rem 0;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-decorative {
    display: none;
  }
  
  /* Mobile Typography */
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Mobile Sections */
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    margin-bottom: 0.75rem;
  }
  
  .section-desc {
    margin-bottom: 2rem;
    font-size: 0.95rem;
  }
  
  /* Mobile Cards */
  .card-body {
    padding: 1.5rem 1rem;
  }
  
  .service-card .card-body {
    padding: 2rem 1.5rem;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  /* Mobile Features */
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Mobile Team */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Mobile Gallery */
  .gallery-item img {
    height: 200px;
  }
  
  /* Mobile Contact */
  .contact-info {
    margin-top: 2rem;
    padding: 1.5rem;
  }
  
  .contact-info-item {
    margin-bottom: 1.5rem;
  }
  
  .contact-icon {
    width: 35px;
    height: 35px;
    font-size: 0.875rem;
  }
  
  /* Mobile Forms */
  .form-control {
    padding: 0.75rem;
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
  
  /* Mobile Footer */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer h5 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-bottom {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
  }
  
  /* Mobile Blog */
  .blog-card img {
    height: 150px;
  }
  
  /* Mobile FAQ */
  .faq-card {
    margin-bottom: 0.75rem;
  }
  
  .faq-question {
    font-size: 1rem;
  }
  
  .faq-answer {
    font-size: 0.9rem;
  }
}

/* Extra extra small devices (very small phones, less than 360px) */
@media (max-width: 359.98px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .service-card .card-body {
    padding: 1.5rem 1rem;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .contact-info {
    padding: 1rem;
  }
}

/* ===== TABLET SPECIFIC ADJUSTMENTS ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .service-card .card-body {
    padding: 2.5rem 2rem;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .section {
    padding: 2.5rem 0;
  }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-decorative {
    transform: translateY(-50%) translateZ(0);
  }
  
  .card {
    transform: translateZ(0);
  }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
  .card:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }
  
  .btn:hover {
    transform: none;
  }
  
  .gallery-item img:hover {
    transform: none;
  }
  
  /* Larger touch targets */
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .form-control {
    min-height: 44px;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .footer,
  .btn,
  .hero-decorative {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    background: white !important;
  }
  
  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  .card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
  
  a {
    text-decoration: underline !important;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--gray-800);
  }
  
  .btn-primary {
    border: 2px solid var(--dark-blue);
  }
  
  .form-control {
    border: 2px solid var(--gray-800);
  }
}

/* ===== FOCUS STATES FOR KEYBOARD NAVIGATION ===== */
@media (hover: hover) and (pointer: fine) {
  .btn:focus-visible,
  .nav-link:focus-visible,
  .form-control:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
  }
}