/* Fleet Electrification Consulting - Responsive CSS */
/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Typography */
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
  
  /* Header */
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
  }
  
  /* Hero Section */
  .hero {
    text-align: center;
  }
  
  .hero-title {
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  /* Sections */
  .section {
    padding: 60px 0;
  }
  
  .section-desc {
    margin-bottom: 2rem;
  }
  
  /* Services */
  .services-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .services-item img {
    width: 60px;
    height: 60px;
  }
  
  /* Price Plan */
  .priceplan-item {
    padding: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .priceplan-item-price {
    font-size: 2rem;
  }
  
  /* Team */
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2rem;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Process */
  .process-item {
    flex-direction: column;
    text-align: center;
  }
  
  .process-number {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  /* Timeline */
  .timeline-item {
    padding-left: 2rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Blog */
  .blog-item img {
    height: 180px;
  }
  
  /* Core Info */
  .coreinfo-item {
    padding: 1.5rem;
  }
  
  .coreinfo-item i {
    font-size: 2rem;
  }
  
  /* Features */
  .features-item {
    padding: 1.5rem;
  }
  
  .features-item i {
    font-size: 2.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero Section */
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  /* Services */
  .services-item {
    padding: 1.8rem;
  }
  
  .services-item img {
    width: 70px;
    height: 70px;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Process */
  .process-item {
    flex-direction: row;
    text-align: left;
  }
  
  .process-number {
    margin-right: 1.5rem;
    margin-bottom: 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero Section */
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  /* Services */
  .services-item {
    padding: 2rem;
  }
  
  .services-item img {
    width: 75px;
    height: 75px;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Team */
  .team-member img {
    width: 140px;
    height: 140px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2.5rem;
  }
  
  /* Blog */
  .blog-item img {
    height: 220px;
  }
  
  /* Price Plan */
  .priceplan-item {
    padding: 2.2rem;
  }
  
  .priceplan-item-price {
    font-size: 2.2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Hero Section */
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  /* Services */
  .services-item {
    padding: 2rem;
  }
  
  .services-item img {
    width: 80px;
    height: 80px;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Team */
  .team-member img {
    width: 150px;
    height: 150px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 3rem;
  }
  
  /* Blog */
  .blog-item img {
    height: 200px;
  }
  
  /* Price Plan */
  .priceplan-item {
    padding: 2.5rem;
  }
  
  .priceplan-item-price {
    font-size: 2.5rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Hero Section */
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  /* Services */
  .services-item {
    padding: 2.5rem;
  }
  
  .services-item img {
    width: 85px;
    height: 85px;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Team */
  .team-member img {
    width: 160px;
    height: 160px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 3.5rem;
  }
  
  /* Blog */
  .blog-item img {
    height: 220px;
  }
  
  /* Price Plan */
  .priceplan-item {
    padding: 3rem;
  }
  
  .priceplan-item-price {
    font-size: 3rem;
  }
  
  /* Process */
  .process-item {
    padding: 2rem;
  }
  
  .process-number {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
  
  /* Features */
  .features-item i {
    font-size: 3.5rem;
  }
  
  /* Core Info */
  .coreinfo-item i {
    font-size: 3rem;
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  /* Container max-width adjustments */
  .container {
    max-width: 1320px;
  }
  
  /* Hero Section */
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  /* Section titles */
  .section-title {
    font-size: 3rem;
  }
  
  /* Services */
  .services-item {
    padding: 3rem;
  }
  
  .services-item img {
    width: 90px;
    height: 90px;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Team */
  .team-member img {
    width: 180px;
    height: 180px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 4rem;
  }
  
  /* Price Plan */
  .priceplan-item {
    padding: 3.5rem;
  }
  
  .priceplan-item-price {
    font-size: 3.5rem;
  }
  
  /* Process */
  .process-number {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
  
  /* Features */
  .features-item i {
    font-size: 4rem;
  }
  
  /* Core Info */
  .coreinfo-item i {
    font-size: 3.5rem;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero {
    min-height: 100vh;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 50px 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Adjust for high DPI displays */
  .team-member img,
  .services-item img,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    text-shadow: none !important;
    box-shadow: none !important;
  }
  
  .hero,
  .navbar,
  .scroll-to-top,
  .contact-form,
  footer {
    display: none !important;
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .hero,
  .services-item,
  .team-member,
  .gallery-item,
  .scroll-to-top,
  .btn-primary,
  .process-item,
  .priceplan-item,
  .blog-item,
  .casestudy-item,
  .coreinfo-item,
  .contact-form,
  .faq-question {
    transition: none !important;
    animation: none !important;
  }
  
  .services-item:hover,
  .team-member:hover,
  .gallery-item:hover,
  .scroll-to-top:hover,
  .btn-primary:hover,
  .priceplan-item:hover,
  .blog-item:hover,
  .casestudy-item:hover,
  .coreinfo-item:hover {
    transform: none !important;
  }
}

/* Dark mode support (optional) */

/* Container spacing adjustments */
@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    animation: fadeIn 0.6s ease-out;
  }
  
  .slide-in-left {
    animation: slideInLeft 0.6s ease-out;
  }
  
  .slide-in-right {
    animation: slideInRight 0.6s ease-out;
  }
}

/* Focus styles for keyboard navigation */
@media (max-width: 992px) {
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
  }
  
  .nav-link:focus {
    outline: 2px solid var(--primary-electric-blue);
    outline-offset: 2px;
  }
}

/* Hover effects disabled on touch devices */
@media (hover: none) {
  .services-item:hover,
  .team-member:hover,
  .gallery-item:hover,
  .btn-primary:hover,
  .priceplan-item:hover,
  .blog-item:hover,
  .casestudy-item:hover,
  .coreinfo-item:hover {
    transform: none;
    box-shadow: var(--shadow-md);
  }
  
  .faq-question:hover {
    background: var(--light-pure-white);
    color: var(--dark-steel-gray);
  }
}

/* Specific mobile optimizations */
@media (max-width: 768px) {
  /* Increase touch target sizes */
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .faq-question {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Optimize form inputs for mobile */
  .form-control {
    font-size: 16px; /* Prevent zoom on iOS */
    min-height: 44px;
  }
  
  /* Adjust modal and dropdown positioning */
  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
  }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Optimize for tablet portrait and landscape */
  .hero-title {
    font-size: 2.8rem;
  }
  
  .services-item {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .priceplan-item {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

/* Large screen optimizations */
@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }
  
  .hero-title {
    font-size: 5rem;
  }
  
  .section-title {
    font-size: 3.5rem;
  }
  
  .section {
    padding: 100px 0;
  }
  
  .services-item,
  .priceplan-item,
  .contact-form {
    padding: 4rem;
  }
} 