/* ===============================
   Alt-Text SaaS Template - Responsive CSS
   =============================== */

/* Mobile First Approach */

/* Base styles for mobile (320px and up) */
@media (max-width: 575.98px) {
  /* Global adjustments */
  body {
    font-size: 14px;
  }
  
  .container {
    padding: 0 15px;
  }
  
  /* Header */
  .navbar-brand {
    font-size: 1.16rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
  }
  
  /* Hero section */
  .hero {
    padding: 2rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }
  
  .hero-content {
    text-align: center;
    padding-top: 200px;
}

.timeline .feature-box {
    padding: 0;
    margin: 0 auto 2rem;
    background: none;
    border-radius: 0;
    box-shadow: none;
}
  
  /* Section titles */
  .section-title h2 {
    font-size: 1.82rem;
  }
  
  .section-title p {
    font-size: 1rem;
  }
  
  /* Services cards */
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.68rem;
  }
  
  .service-card .price {
    font-size: 1.60rem;
  }
  
  /* Price cards */
  .price-card {
    padding: 1.5rem;
    margin-bottom: 1.73rem;
  }
  
  .price-card .price {
    font-size: 2rem;
  }
  
  .price-card.featured {
    transform: none;
    margin-top: 0;
  }
  
  /* Team members */
  .team-member {
    padding: 1.5rem;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem;
  }
  
  /* FAQ */
  .faq-question {
    padding: 1rem;
    font-size: 0.91rem;
  }
  
  .faq-answer {
    padding: 1rem;
    font-size: 1.01rem;
  }
  
  /* Gallery */
  .gallery-layout {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Blog cards */
  .blog-card-content {
    padding: 1rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer .col-md-3 {
    margin-bottom: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero section */
  .hero h1 {
    font-size: 2.33rem;
  }
  
  .hero p {
    font-size: 1.15rem;
  }
  
  /* Section titles */
  .section-title h2 {
    font-size: 2rem;
  }
  
  /* Gallery */
  .gallery-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Services and price cards */
  .service-card,
  .price-card {
    padding: 1.75rem;
  }
  
  .price-card .price {
    font-size: 2.54rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero section */
  .hero h1 {
    font-size: 2.83rem;
  }
  
  .hero p {
    font-size: 1.24rem;
  }
  
  /* Section titles */
  .section-title h2 {
    font-size: 2.37rem;
  }
  
  /* Gallery */
  .gallery-layout {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Services grid */
  .services .row .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  /* Price cards */
  .price-card.featured {
    transform: scale(1.02);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Hero section */
  .hero h1 {
    font-size: 3rem;
  }
  
  /* Gallery */
  .gallery-layout {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Price cards */
  .price-card.featured {
    transform: scale(1.05);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Hero section */
  .hero h1 {
    font-size: 3.60rem;
  }
  
  /* Gallery */
  .gallery-layout {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Container adjustments */
  .container {
    max-width: 1200px;
  }
}

/* Disable scroll animations on mobile */
@media (max-width: 767.98px) {
  [data-sal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .sal-animate {
    animation: none !important;
  }

  .hero-content,
  .feature-box,
  .service-card,
  .price-card,
  .team-member,
  .review-card {
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero {
    min-height: 80vh;
  }
  
  .hero h1 {
    font-size: 2.63rem;
  }
  
  .hero p {
    font-size: 1.22rem;
  }
  
  .section {
    padding: 60px 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero::before {
    background-image: url('../POS_images/hero-bg.webp');
  }
}

/* Print styles */
@media print {
  * {
    color: black !important;
    background: white !important;
  }
  
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  .hero {
    background: white !important;
    color: black !important;
    min-height: auto !important;
  }
  
  .section {
    padding: 2rem 0 !important;
  }
  
  .page-break {
    page-break-before: always;
  }
}

/* Accessibility - Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero::before {
    animation: none !important;
  }
  
  .feature-box:hover,
  .service-card:hover,
  .price-card:hover,
  .team-member:hover,
  .gallery-item:hover img {
    transform: none !important;
  }
  
  .btn-primary:hover {
    transform: none !important;
  }
}

/* Accessibility - High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #130d8f;
    --secondary-color: #0e6800;
    --accent-color: #ff6d00;
    --text-dark: #000000;
    --text-light: #242121;
    --border-color: #000000;
  }
  
  .btn-primary {
    border: 2px solid var(--text-dark);
  }
  
  .service-card,
  .price-card,
  .team-member,
  .review-card,
  .faq-item,
  .contact-form {
    border: 2px solid var(--border-color);
  }
}

/* Accessibility - Focus visible */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus-visible,
  .nav-link:focus-visible,
  .form-control:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    padding: 1rem 0.5rem;
  }
  
  .faq-question {
    padding: 1.5rem;
  }
  
  .service-card:hover,
  .price-card:hover,
  .team-member:hover,
  .feature-box:hover {
    transform: none;
  }
}

/* Dark mode support */

/* Responsive images */
@media (max-width: 767.98px) {
  .hero-image img,
  .about-image img,
  .feature-image img {
    max-width: 100%;
    height: auto;
  }
}

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

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

/* Responsive typography scale */
@media (max-width: 575.98px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.90rem; }
  h3 { font-size: 1.54rem; }
  h4 { font-size: 1.29rem; }
  h5 { font-size: 1.25rem; }
  h6 { font-size: 1rem; }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  h1 { font-size: 2.32rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.79rem; }
  h4 { font-size: 1.54rem; }
  h5 { font-size: 1.32rem; }
  h6 { font-size: 1.18rem; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  h1 { font-size: 2.63rem; }
  h2 { font-size: 2.31rem; }
  h3 { font-size: 2rem; }
  h4 { font-size: 1.88rem; }
  h5 { font-size: 1.62rem; }
  h6 { font-size: 1.33rem; }
}

/* Responsive spacing */
@media (max-width: 767.98px) {
  .section {
    padding: 3rem 0;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .my-5 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }
}

/* Container fluid adjustments */
.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }
} 