/* AI Pricing Tool - Responsive CSS */
/* Mobile-First Responsive Design */

/*
 * IMPORTANT: Grid layouts have been converted to Bootstrap 5 grid system.
 * The custom grid rules below (services-grid, pricing-grid, team-grid, etc.) 
 * are now handled by Bootstrap 5 responsiveness and may be deprecated.
 * Only component-specific responsive styles remain relevant.
 */

/* ===== MOBILE FIRST BASE STYLES ===== */
/* Base styles are mobile-first (320px+) */

/* ===== SMALL MOBILE (320px - 480px) ===== */
@media (max-width: 480px) {
  /* Typography */
  :root {
    --font-size-h1: 1.75rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;
    --font-size-h4: 1.125rem;
    --font-size-h5: 1rem;
    --font-size-h6: 0.875rem;
    --section-padding: 40px 0;
  }

  /* Container */
  .container {
    padding: 0 15px;
  }

  /* Navigation */
  .navbar-brand {
    font-size: 1.25rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    text-align: center;
  }

  /* Hero Section */
  .hero {
    min-height: 100vh;
    text-align: center;
    padding: 100px 0 50px;
  }

  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-content {
    margin-bottom: 2rem;
  }

  /* Buttons */
  .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    width: 100%;
    margin-bottom: 1rem;
  }

  .btn:last-child {
    margin-bottom: 0;
  }

  /* Cards */
  .card {
    margin-bottom: 1.5rem;
  }

  .card-body {
    padding: 1.5rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .service-price {
    font-size: 1.5rem;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pricing-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .pricing-card.featured {
    transform: none;
    margin-bottom: 1.5rem;
  }

  .pricing-price {
    font-size: 2.5rem;
  }

  /* Team */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .team-member {
    padding: 1rem;
  }

  .team-photo {
    width: 80px;
    height: 80px;
  }

  .team-name {
    font-size: 0.875rem;
  }

  .team-role {
    font-size: 0.75rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  /* Contact Form */
  .contact-form {
    padding: 1.5rem;
    margin: 0 15px;
  }

  .form-control {
    padding: 0.5rem;
    font-size: 0.875rem;
  }

  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-section {
    text-align: center;
  }

  /* FAQ */
  .faq-question {
    padding: 1rem;
    font-size: 0.875rem;
  }

  .faq-answer {
    padding: 1rem;
    font-size: 0.875rem;
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-card-content {
    padding: 1rem;
  }

  /* Process */
  .process-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .process-item {
    padding: 1.5rem;
  }

  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  /* Timeline */
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    margin-left: 0 !important;
    padding: 1.5rem;
  }

  .timeline-item::before {
    left: 10px !important;
  }

  /* Career */
  .career-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  /* Case Studies */
  .case-study-card {
    padding: 1.5rem;
  }

  /* Info Cards */
  .info-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 1.5rem;
    margin: 0.5rem;
  }

  .testimonial-text {
    font-size: 0.875rem;
  }

  /* Utility Classes */
  .text-center-mobile {
    text-align: center;
  }

  .mb-mobile-0 { margin-bottom: 0; }
  .mb-mobile-1 { margin-bottom: 0.5rem; }
  .mb-mobile-2 { margin-bottom: 1rem; }
  .mb-mobile-3 { margin-bottom: 1.5rem; }

  .p-mobile-1 { padding: 0.5rem; }
  .p-mobile-2 { padding: 1rem; }
  .p-mobile-3 { padding: 1.5rem; }
}

/* ===== MOBILE LARGE (481px - 768px) ===== */
@media (min-width: 481px) and (max-width: 768px) {
  /* Typography */
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.25rem;
    --font-size-h5: 1.125rem;
    --font-size-h6: 1rem;
    --section-padding: 60px 0;
  }

  /* Container */
  .container {
    padding: 0 20px;
  }

  /* Navigation */
  .navbar-brand {
    font-size: 1.375rem;
  }

  /* Hero Section */
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  /* Buttons */
  .btn {
    padding: 0.625rem 1.75rem;
    font-size: 0.875rem;
    width: auto;
    margin-right: 1rem;
    margin-bottom: 1rem;
  }

  .btn:last-child {
    margin-right: 0;
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pricing-card.featured {
    transform: none;
  }

  /* Team */
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .team-photo {
    width: 100px;
    height: 100px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Process */
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* ===== TABLET (769px - 1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Typography */
  :root {
    --font-size-h1: 2.25rem;
    --font-size-h2: 1.875rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.25rem;
    --font-size-h5: 1.125rem;
    --font-size-h6: 1rem;
    --section-padding: 70px 0;
  }

  /* Container */
  .container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* Navigation */
  .navbar-brand {
    font-size: 1.5rem;
  }

  /* Hero Section */
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  /* Buttons */
  .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .pricing-card.featured {
    transform: scale(1.02);
  }

  /* Team */
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Process */
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  /* Contact Form */
  .contact-form {
    max-width: 500px;
  }

  /* FAQ */
  .faq-accordion {
    max-width: 700px;
  }
}

/* ===== DESKTOP SMALL (1025px - 1200px) ===== */
@media (min-width: 1025px) and (max-width: 1200px) {
  /* Container */
  .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .pricing-card.featured {
    transform: scale(1.05);
  }

  /* Team */
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  /* Process */
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

/* ===== DESKTOP LARGE (1201px - 1440px) ===== */
@media (min-width: 1201px) and (max-width: 1440px) {
  /* Container */
  .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  /* Team */
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  /* Process */
  .process-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }
}

/* ===== DESKTOP EXTRA LARGE (1441px+) ===== */
@media (min-width: 1441px) {
  /* Container */
  .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

  /* Team */
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2.5rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 1.5rem;
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

  /* Process */
  .process-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2.5rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (orientation: landscape) and (max-height: 600px) {
  .hero {
    min-height: 100vh;
    padding: 120px 0 60px;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .navbar {
    padding: 0.5rem 0;
  }

  .section {
    padding: 60px 0;
  }
}

/* ===== RETINA DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
  /* High-resolution adjustments */
  .hero-image img,
  .gallery-item img,
  .team-photo img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .navbar,
  .footer,
  .btn,
  .contact-form,
  .hero-image {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .section {
    padding: 2rem 0;
    page-break-inside: avoid;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  .services-grid,
  .pricing-grid,
  .team-grid,
  .gallery-grid,
  .blog-grid,
  .process-grid {
    display: block !important;
  }

  .service-card,
  .pricing-card,
  .team-member,
  .blog-card,
  .process-item {
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --primary-blue: #0056b3;
    --primary-purple: #6a4c93;
    --primary-teal: #17a2b8;
    --primary-coral: #dc3545;
    --primary-green: #28a745;
    --black: #000000;
    --white: #ffffff;
  }

  .btn {
    border-width: 2px;
  }

  .card {
    border: 1px solid var(--gray-medium);
  }
}

/* ===== HOVER STATES FOR TOUCH DEVICES ===== */
@media (hover: none) and (pointer: coarse) {
  .card:hover,
  .service-card:hover,
  .pricing-card:hover,
  .team-member:hover,
  .blog-card:hover,
  .process-item:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  .btn:hover {
    transform: none;
  }

  .gallery-item:hover img {
    transform: none;
  }
}

/* ===== FOCUS STATES FOR ACCESSIBILITY ===== */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus,
  a:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
  }
}

/* ===== CONTAINER SYSTEM ===== */
.container-fluid {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* ===== RESPONSIVE GRID SYSTEM ===== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.col {
  flex: 1;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 576px) {
  .col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
  .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .col-sm-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
  .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 768px) {
  .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
  .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 992px) {
  .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 1200px) {
  .col-xl-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
  .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-xl-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
  .col-xl-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-xl-9 { flex: 0 0 75%; max-width: 75%; }
  .col-xl-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-xl-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-xl-12 { flex: 0 0 100%; max-width: 100%; }
} 