/*
 * Carbon-Smart Logistics Route-Planning Software
 * Responsive CSS File
 */

/* === MOBILE FIRST APPROACH === */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: var(--font-size-2xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .section-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .process-step {
    padding: 1.5rem 0.5rem;
  }
  
  .process-title {
    margin: 4rem 0 1rem;
  }
  
  .price-card {
    padding: 1.5rem;
  }
  
  .price-amount {
    font-size: var(--font-size-3xl);
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .navbar-brand {
    font-size: var(--font-size-lg);
  }
  
  .section {
    padding: var(--section-padding-sm);
  }
  
  .hero {
    padding: 2rem 0;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 0 1rem;
  }
  
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
  
  .timeline-item {
    padding-left: 2rem;
  }
  
  .career-item {
    padding: 1.5rem;
  }
  
  .case-study-card {
    padding: 1.5rem;
  }
  
  .core-info-item {
    padding: 1.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item img {
    height: 220px;
  }
  
  .process-step::before {
    width: 50px;
    height: 50px;
  }
  
  .process-title {
    margin: 4.5rem 0 1rem;
  }
  
  .team-photo {
    width: 130px;
    height: 130px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  .testimonial-card {
    padding: 2rem 1.5rem;
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.25rem;
  }
  
  .price-card.featured {
    transform: scale(1.02);
  }
  
  .price-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .section-title {
    font-size: var(--font-size-3xl);
  }
  
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  .process-step {
    padding: 2rem 1.5rem;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .testimonial-card {
    padding: 2rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .section-title {
    font-size: var(--font-size-3xl);
  }
  
  .container {
    max-width: 1200px;
  }
  
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  .process-step {
    padding: 2rem;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .testimonial-card {
    padding: 2rem;
  }
  
  .price-card {
    padding: 2rem;
  }
  
  .case-study-card {
    padding: 2rem;
  }
  
  .core-info-item {
    padding: 2rem;
  }
}

/* === SPECIFIC LAYOUT ADJUSTMENTS === */

/* Navigation adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    border-radius: 0.5rem;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 8px 6px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Hero section adjustments */
@media (max-width: 767.98px) {
  .hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero .row {
    flex-direction: column-reverse;
  }
  
  .hero .col-md-6:first-child {
    margin-top: 2rem;
  }
}

/* Services grid adjustments */
@media (max-width: 575.98px) {
  .services .row .col-md-4 {
    margin-bottom: 2rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .services .row .col-md-4:nth-child(odd) {
    margin-bottom: 2rem;
  }
}

/* Team grid adjustments */
@media (max-width: 575.98px) {
  .team .row .col-md-4 {
    margin-bottom: 2rem;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .team .row .col-md-4:nth-child(odd) {
    margin-bottom: 2rem;
  }
}

/* Testimonials grid adjustments */
@media (max-width: 767.98px) {
  .reviews .row .col-md-4 {
    margin-bottom: 2rem;
  }
}

/* Price plan adjustments */
@media (max-width: 767.98px) {
  .price-card.featured {
    transform: none;
    border: 2px solid var(--primary-green);
    margin-bottom: 2rem;
  }
  
  .price-card.featured:hover {
    transform: translateY(-5px);
  }
}

/* Process steps adjustments */
@media (max-width: 767.98px) {
  .process .row .col-md-4 {
    margin-bottom: 2rem;
  }
}

/* Case studies adjustments */
@media (max-width: 767.98px) {
  .casestudy .row .col-md-4 {
    margin-bottom: 2rem;
  }
}

/* Core info adjustments */
@media (max-width: 575.98px) {
  .coreinfo .row .col-md-4 {
    margin-bottom: 2rem;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .coreinfo .row .col-md-4:nth-child(odd) {
    margin-bottom: 2rem;
  }
}

/* Blog grid adjustments */
@media (max-width: 767.98px) {
  .blog .row .col-md-4 {
    margin-bottom: 2rem;
  }
}

/* FAQ adjustments */
@media (max-width: 575.98px) {
  .faq-question {
    font-size: var(--font-size-sm);
  }
  
  .faq-answer {
    font-size: var(--font-size-sm);
  }
}

/* Contact form adjustments */
@media (max-width: 575.98px) {
  .contact-form {
    padding: 0;
  }
  
  .form-control {
    padding: 0.75rem;
  }
}

/* Footer adjustments */
@media (max-width: 767.98px) {
  .footer {
    text-align: center;
  }
  
  .footer .row .col-md-4 {
    margin-bottom: 2rem;
  }
}

/* Timeline adjustments */
@media (max-width: 575.98px) {
  .timeline-item::before {
    width: 8px;
    height: 8px;
  }
  
  .timeline-item::after {
    left: 3px;
    top: 8px;
  }
}

/* Career adjustments */
@media (max-width: 767.98px) {
  .career .career-item {
    margin-bottom: 2rem;
  }
}

/* Additional page adjustments */
@media (max-width: 767.98px) {
  .additional-page .section {
    padding: var(--section-padding-sm);
  }
  
  .additional-page .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .additional-page .section-subtitle {
    font-size: var(--font-size-lg);
  }
}

/* Utility classes for responsive design */
.d-mobile-none {
  display: none;
}

@media (min-width: 768px) {
  .d-mobile-none {
    display: block;
  }
}

.d-desktop-none {
  display: block;
}

@media (min-width: 768px) {
  .d-desktop-none {
    display: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card,
  .service-card,
  .testimonial-card,
  .price-card,
  .case-study-card,
  .core-info-item,
  .blog-card {
    border: 2px solid var(--gray-400);
  }
  
  .btn-primary {
    border: 2px solid var(--white);
  }
  
  .btn-outline-primary {
    border: 2px solid var(--primary-green);
  }
} 

.hero h1 {
    padding-top: 250px;
}