/* Responsive CSS File - AI Sales Script Generator Template */

/* Mobile First Approach */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1 {
    font-size: var(--font-size-2xl);
  }
  
  h2 {
    font-size: var(--font-size-xl);
  }
  
  h3 {
    font-size: var(--font-size-lg);
  }
  
  /* Navbar brand size adjustment */
  .navbar-brand {
    font-size: var(--font-size-base) !important;
  }
  
  /* Hero section adjustments */
  #hero {
    padding: var(--spacing-xl) 0;
    text-align: center;
  }
  
  #hero h1 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
  }
  
  #hero p {
    font-size: var(--font-size-sm);
  }
  
  /* Button adjustments */
  .btn {
    padding: 0.5rem 1.5rem;
    font-size: var(--font-size-sm);
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }
  
  /* Card adjustments */
  .card-body {
    padding: var(--spacing-md);
    overflow-x: hidden;
}
  
  /* Service cards on mobile */
  .service-card {
    padding: var(--spacing-lg) var(--spacing-md);
    margin-bottom: var(--spacing-lg);
  }
  
  .service-price {
    font-size: var(--font-size-xl);
  }
  
  /* Team member images smaller on mobile */
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  /* Contact info stack on mobile */
  .contact-info {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
  }
  
  /* Form adjustments */
  .form-control {
    font-size: var(--font-size-base);
  }
  
  /* Footer adjustments */
  #footer {
    text-align: center;
    padding: var(--spacing-xl) 0 var(--spacing-md);
  }
  
  /* Section padding reduced */
  section {
    padding: var(--spacing-xl) 0;
  }
  
  /* Gallery grid adjustments */
  #gallery .col-md-4 {
    margin-bottom: var(--spacing-md);
  }
  
  /* Process steps stack vertically */
  .process-step {
    margin-bottom: var(--spacing-xl);
  }
  
  /* Timeline adjustments */
  .timeline-item {
    padding-left: var(--spacing-lg);
  }
  
  /* Price plan cards */
  .price-plan.featured {
    transform: none;
    margin-bottom: var(--spacing-lg);
  }
  
  /* Hide decorative elements on very small screens */
  #hero::before {
    display: none;
  }
  
  /* No animations on mobile to improve performance */
  .fade-in-up,
  .scale-on-hover {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  
  /* Hover effects disabled on mobile */
  .card:hover,
  .btn:hover,
  #gallery img:hover {
    transform: none;
    box-shadow: inherit;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero section improvements */
  #hero h1 {
    font-size: var(--font-size-2xl);
  }
  
  /* Button improvements */
  .btn {
    width: auto;
    display: inline-block;
    margin-right: var(--spacing-sm);
  }
  
  /* Team member grid */
  .team-member {
    margin-bottom: var(--spacing-xl);
  }
  
  /* Service cards */
  .service-card {
    margin-bottom: var(--spacing-lg);
  }
  
  /* Process steps in 2 columns */
  .process-step {
    margin-bottom: var(--spacing-lg);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero section full styling */
  #hero {
    text-align: left;
  }
  
  #hero h1 {
    font-size: var(--font-size-3xl);
  }
  
  /* Cards in proper grid */
  .service-card,
  .testimonial-card,
  .blog-card {
    height: 100%;
  }
  
  /* Team members in 3 columns */
  .team-member img {
    width: 140px;
    height: 140px;
  }
  
  /* Contact form and info side by side */
  .contact-info {
    margin-bottom: 0;
  }
  
  /* Process steps in proper grid */
  .process-step {
    margin-bottom: var(--spacing-lg);
  }
  
  /* Enable hover effects */
  .card:hover {
    transform: translateY(-5px);
  }
  
  .scale-on-hover:hover {
    transform: scale(1.05);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full desktop experience */
  .hero-content {
    padding-right: var(--spacing-xl);
    padding-top: 100px;
}
  
  /* Team members in 5 columns */
  .team-member img {
    width: 150px;
    height: 150px;
  }
  
  /* Service cards with proper spacing */
  .service-card {
    margin-bottom: var(--spacing-lg);
  }
  
  /* Process steps in 5 columns */
  .process-step {
    margin-bottom: 0;
  }
  
  /* Enable all animations */
  .fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Maximum container width */
  .container {
    max-width: 1140px;
  }
  
  /* Hero section with more spacing */
  #hero {
    padding: var(--spacing-2xl) 0;
  }
  
  #hero h1 {
    font-size: var(--font-size-4xl);
  }
  
  /* Larger feature icons */
  .feature-icon {
    width: 4rem;
    height: 4rem;
    font-size: var(--font-size-2xl);
  }
  
  /* Process numbers larger */
  .process-number {
    width: 4rem;
    height: 4rem;
    font-size: var(--font-size-xl);
  }
  
  /* Team member images larger */
  .team-member img {
    width: 180px;
    height: 180px;
  }
  
  /* More spacing for sections */
  section {
    padding: 5rem 0;
  }
  
  /* Card hover effects enhanced */
  .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  /* Reduce hero height on landscape mobile */
  #hero {
    min-height: 70vh;
    padding: var(--spacing-lg) 0;
  }
  
  /* Smaller navbar */
  .navbar {
    padding: 0.25rem 0;
  }
  
  /* Reduce section padding */
  section {
    padding: var(--spacing-lg) 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp images on retina displays */
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  /* Hide navigation and footer */
  #header,
  #footer {
    display: none;
  }
  
  /* Remove background colors */
  * {
    background: white !important;
    color: black !important;
  }
  
  /* Ensure proper page breaks */
  section {
    page-break-inside: avoid;
    page-break-after: auto;
  }
  
  /* Remove shadows and transitions */
  .card,
  .btn {
    box-shadow: none !important;
    transition: none !important;
  }
}

/* Dark mode support (if user prefers) */

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  /* Remove all animations for users who prefer reduced motion */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Remove hover effects that use transform */
  .card:hover,
  .btn:hover,
  .scale-on-hover:hover {
    transform: none !important;
  }
}

/* Focus styles for better accessibility */
@media (any-hover: none) {
  /* Touch device optimizations */
  .btn {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
  }
  
  /* Larger touch targets */
  .nav-link {
    padding: 1rem !important;
  }
  
  /* Remove hover effects on touch devices */
  .card:hover,
  .btn:hover {
    transform: none;
    box-shadow: inherit;
  }
}

/* Custom breakpoints for specific components */

/* Services grid responsive behavior */
@media (min-width: 576px) and (max-width: 991.98px) {
  .services-grid .col-lg-4 {
    margin-bottom: var(--spacing-lg);
  }
}

/* Team section responsive behavior */
@media (max-width: 991.98px) {
  .team-grid .col-lg-2 {
    margin-bottom: var(--spacing-lg);
  }
  
  .team-grid .col-lg-2:last-child {
    margin-bottom: 0;
  }
}

/* FAQ section responsive behavior */
@media (max-width: 767.98px) {
  .faq-card {
    margin-bottom: var(--spacing-lg);
  }
}

/* Gallery responsive behavior */
@media (max-width: 575.98px) {
  #gallery .col-md-4:not(:last-child) {
    margin-bottom: var(--spacing-md);
  }
}

/* Contact form responsive behavior */
@media (max-width: 767.98px) {
  .contact-form .row .col-md-6 {
    margin-bottom: var(--spacing-md);
  }
}

/* Header responsive behavior */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    padding: var(--spacing-md);
    border-radius: 0.5rem;
    margin-top: var(--spacing-sm);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link {
    padding: var(--spacing-xs) 0 !important;
    border-bottom: 1px solid var(--gray-200);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
} 