/*
 * SaaS Webinar Captions Template - Responsive CSS
 * Mobile-First Design with Bootstrap 5 Breakpoints
 * Conservative Typography and Spacing
 */

/* Mobile First - Base Styles (320px and up) */
@media (max-width: 575.98px) {
  /* Typography Adjustments */
  h1 { font-size: var(--font-size-2xl); }
  h2 { font-size: var(--font-size-xl); }
  h3 { font-size: var(--font-size-lg); }
  
  .hero-title {
    font-size: var(--font-size-3xl);
    padding-top: 275px;
}
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .hero-desc {
    font-size: var(--font-size-base);
  }
  
  /* Spacing Adjustments */
  .section {
    padding: 3rem 0;
  }
  
  .section-desc {
    margin-bottom: 2rem;
  }
  
  /* Hero Section */
  .hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero .container {
    padding: 0 1rem;
  }
  
  /* Cards */
  .card-body {
    padding: 1.5rem;
  }
  
  .service-card,
  .team-card,
  .price-card {
    padding: 1.5rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2rem 1rem;
  }
  
  /* Team Images */
  .team-card img {
    width: 120px;
    height: 120px;
  }
  
  /* Process Items */
  .process-item {
    padding: 1.5rem;
  }
  
  .process-item::before {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-base);
  }
  
  .process-item h4 {
    margin-top: 3rem;
  }
  
  /* Timeline */
  .timeline-item {
    margin-left: 1rem;
    padding: 1.5rem 0;
  }
  
  /* Testimonial Cards */
  .testimonial-card {
    padding: 1.5rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  /* Decorative Blobs - Hide on mobile */
  .decorative-blob {
    display: none;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 200px;
  }
  
  /* Navbar Brand */
  .navbar-brand {
    font-size: var(--font-size-base);
  }
  
  /* Button Adjustments */
  .btn-primary,
  .btn-secondary {
    padding: 0.5rem 1.5rem;
    font-size: var(--font-size-sm);
  }
  
  /* Price Display */
  .price-card .price {
    font-size: var(--font-size-3xl);
  }
  
  /* Service Price */
  .service-price {
    font-size: var(--font-size-xl);
  }
  
  /* FAQ Cards */
  .faq-card {
    margin-bottom: 1rem;
  }
  
  .faq-card .card-body {
    padding: 1.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero {
    min-height: 90vh;
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
    padding-top: 275px;
}
  
  .section {
    padding: 4rem 0;
  }
  
  .team-card img {
    width: 130px;
    height: 130px;
  }
  
  .process-item::before {
    width: 55px;
    height: 55px;
  }
  
  .decorative-blob {
    display: block;
  }
  
  .blob-1 {
    width: 200px;
    height: 200px;
  }
  
  .blob-2 {
    width: 150px;
    height: 150px;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero {
    min-height: 100vh;
  }
  
  .hero-title {
    font-size: var(--font-size-4xl);
    padding-top: 275px;
}
  
  .section {
    padding: var(--section-padding);
  }
  
  .team-card img {
    width: 140px;
    height: 140px;
  }
  
  .process-item::before {
    width: 60px;
    height: 60px;
  }
  
  .blob-1 {
    width: 250px;
    height: 250px;
  }
  
  .blob-2 {
    width: 180px;
    height: 180px;
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  .price-card.featured {
    transform: scale(1.02);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: var(--font-size-4xl);
    padding-top: 275px;
}
  
  .team-card img {
    width: 150px;
    height: 150px;
  }
  
  .blob-1 {
    width: 300px;
    height: 300px;
  }
  
  .blob-2 {
    width: 200px;
    height: 200px;
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .price-card.featured {
    transform: scale(1.05);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: var(--font-size-4xl);
    padding-top: 275px;
}
  
  .container {
    max-width: 1140px;
  }
  
  .section-desc {
    max-width: 700px;
  }
  
  .team-card img {
    width: 150px;
    height: 150px;
  }
  
  .blob-1 {
    width: 350px;
    height: 350px;
  }
  
  .blob-2 {
    width: 250px;
    height: 250px;
  }
  
  .gallery-item img {
    height: 280px;
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .section-desc {
    max-width: 800px;
  }
  
  .blob-1 {
    width: 400px;
    height: 400px;
  }
  
  .blob-2 {
    width: 300px;
    height: 300px;
  }
  
  .gallery-item img {
    height: 300px;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
  .hero {
    min-height: 100vh;
  }
  
  .hero-title {
    font-size: var(--font-size-2xl);
    padding-top: 275px;
}
  
  .hero-subtitle {
    font-size: var(--font-size-base);
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .decorative-blob {
    display: none;
  }
}

/* Print Styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .navbar,
  .footer,
  .btn,
  .decorative-blob {
    display: none !important;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .card {
    border: 1px solid #b3acad !important;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: var(--font-size-2xl);
    padding-top: 275px;
}
  
  .hero-subtitle {
    font-size: var(--font-size-base);
  }
  
  .hero-desc {
    font-size: var(--font-size-sm);
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .team-card img,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
  
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .price-card.featured {
    transform: none;
  }
  
  .loading::after {
    animation: none;
  }
}

/* Dark Mode Support */

/* Focus Visible for Better Accessibility */
@media (any-hover: hover) {
  *:focus-visible {
    outline: 2px solid var(--primary-1);
    outline-offset: 2px;
  }
  
  *:focus:not(:focus-visible) {
    outline: none;
  }
}

/* Container Responsive Adjustments */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Row and Column Responsive Adjustments */
@media (max-width: 767.98px) {
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .col-md-4,
  .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .col-md-6,
  .col-lg-6 {
    margin-bottom: 1.57rem;
  }
}

/* Service Cards Responsive */
@media (max-width: 767.98px) {
  .service-card .card-img-top {
    height: 150px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .service-card .card-img-top {
    height: 180px;
  }
}

/* Hero Image Responsive */
@media (max-width: 991.98px) {
  .hero-image {
    margin-top: 2rem;
  }
}

/* Navigation Responsive */
@media (max-width: 991.98px) {
  .navbar-nav {
    text-align: center;
    padding-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
  }
}

/* Form Responsive */
@media (max-width: 767.98px) {
  .contact-form .row {
    margin-bottom: 1rem;
  }
  
  .contact-form .col-md-6 {
    margin-bottom: 1rem;
  }
}

/* Timeline Responsive */
@media (max-width: 767.98px) {
  .timeline-item {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }
  
  .timeline-item::before {
    display: none;
  }
} 