/*
 * Responsive CSS for SaaS Meeting Transcript Insights Template
 * Mobile-first approach with Bootstrap 5 breakpoints
 */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Navbar adjustments */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Buttons */
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .btn:last-child {
    margin-bottom: 0;
  }
  
  /* Sections */
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  .section-title p {
    font-size: 1rem;
  }
  
  /* Cards and items */
  .feature-item,
  .service-card,
  .team-member,
  .review-card,
  .process-item,
  .casestudy-card,
  .price-card,
  .blog-card,
  .career-card,
  .coreinfo-card,
  .features-card,
  .timeline-item {
    padding: 1.5rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem 1rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 200px;
  }
  
  /* Team member photos */
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  /* Service card images */
  .service-card img {
    height: 150px;
  }
  
  /* Price amount */
  .price-amount {
    font-size: 2.5rem;
  }
  
  /* Process number */
  .process-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.125rem;
  }
  
  /* FAQ */
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
  
  /* Icons */
  .feature-item i,
  .features-card i {
    font-size: 2.5rem;
  }
  
  .coreinfo-card i {
    font-size: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography adjustments */
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 90vh;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .hero-content p {
    font-size: 1.125rem;
  }
  
  /* Buttons */
  .btn {
    display: inline-block;
    width: auto;
    margin-right: 1rem;
  }
  
  /* Sections */
  .section {
    padding: 3.5rem 0;
  }
  
  /* Cards spacing */
  .feature-item,
  .service-card,
  .team-member,
  .review-card,
  .process-item,
  .casestudy-card,
  .price-card,
  .blog-card,
  .career-card,
  .coreinfo-card,
  .features-card,
  .timeline-item {
    margin-bottom: 2rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2.5rem;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 250px;
  }
  
  /* Team member photos */
  .team-member img {
    width: 130px;
    height: 130px;
  }
  
  /* Service card images */
  .service-card img {
    height: 180px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero section */
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  /* Sections */
  .section {
    padding: 4rem 0;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 280px;
  }
  
  /* Team member photos */
  .team-member img {
    width: 140px;
    height: 140px;
  }
  
  /* Service card images */
  .service-card img {
    height: 200px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 992px) {
  /* Hero section */
  .hero-section {
    min-height: 100vh;
  }
  
  /* Sections */
  .section {
    padding: 5rem 0;
  }
  
  /* Section titles */
  .section-title {
    margin-bottom: 4rem;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 300px;
  }
  
  /* Service card images */
  .service-card img {
    height: 200px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a,
  a:visited {
    text-decoration: underline;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
  
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  
  .navbar,
  .footer,
  .btn,
  .gallery-section {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  p {
    orphans: 3;
    widows: 3;
  }
  
  .feature-item,
  .service-card,
  .team-member,
  .review-card,
  .process-item,
  .casestudy-card,
  .price-card,
  .blog-card,
  .career-card,
  .coreinfo-card,
  .features-card,
  .timeline-item {
    page-break-inside: avoid;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000080;
    --secondary-color: #008080;
    --accent-color: #800080;
    --success-color: #008000;
    --warning-color: #ff8000;
    --gray: #404040;
    --dark-gray: #202020;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
  
  .feature-item,
  .service-card,
  .team-member,
  .review-card,
  .process-item,
  .casestudy-card,
  .price-card,
  .blog-card,
  .career-card,
  .coreinfo-card,
  .features-card,
  .timeline-item {
    border: 2px solid var(--dark-gray);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before {
    animation: none;
  }
  
  .feature-item:hover,
  .service-card:hover,
  .team-member:hover,
  .review-card:hover,
  .process-item:hover,
  .casestudy-card:hover,
  .price-card:hover,
  .blog-card:hover,
  .career-card:hover,
  .coreinfo-card:hover,
  .features-card:hover,
  .timeline-item:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .btn:hover,
  .navbar-nav .nav-link:hover {
    transform: none;
  }
  
  .scroll-to-top {
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .scroll-to-top:hover {
    transform: none;
  }
}

/* Focus management for accessibility */
@media (any-pointer: coarse) {
  .btn {
    padding: 1rem 2rem;
  }
  
  .nav-link {
    padding: 1rem 1.5rem;
  }
  
  .form-control {
    padding: 1rem;
  }
  
  .faq-question {
    padding: 2rem 1.5rem;
  }
}

/* Custom scrollbar for webkit browsers */
@media (min-width: 992px) {
  ::-webkit-scrollbar {
    width: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: var(--light-gray);
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
  }
}

/* Dark mode support (if needed in future) */

/* Container max-width adjustments */
@media (min-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}

/* Aspect ratio utilities for images */
.img-responsive {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Responsive text utilities */
.text-responsive {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.heading-responsive {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

/* Grid adjustments for smaller screens */
@media (max-width: 575.98px) {
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  .row > * {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Flexbox utilities for responsive layouts */
.flex-responsive {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 767.98px) {
  .flex-responsive {
    flex-direction: column;
  }
  
  .flex-responsive > * {
    flex: 1 1 100%;
  }
}

/* Responsive spacing utilities */
@media (max-width: 575.98px) {
  .py-responsive {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .my-responsive {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
}

@media (min-width: 576px) {
  .py-responsive {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .my-responsive {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 992px) {
  .py-responsive {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  
  .my-responsive {
    margin-top: 3rem;
    margin-bottom: 3rem;
  }
} 