/* Carbon Accounting SaaS - Responsive CSS */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero {
    padding: 3rem 0;
    min-height: 80vh;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 1.63rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    padding-top: 275px;
}
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .section-title {
    font-size: 1.61rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .feature-item,
  .service-item,
  .team-member,
  .review-item,
  .casestudy-item,
  .process-item,
  .timeline-item,
  .career-item,
  .coreinfo-item,
  .blog-item {
    padding: 1.5rem;
    margin-bottom: 1.56rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 1.00rem;
  }
  
  .service-item img,
  .gallery-item img {
    height: 180px;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .price-item .price {
    font-size: 2rem;
  }
  
  .faq-question {
    font-size: 1rem;
    padding: 1.2rem;
  }
  
  .faq-answer {
    padding: 1.2rem;
    font-size: 1.00rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero {
    padding: 4rem 0;
    min-height: 85vh;
  }
  
  .hero h1 {
    font-size: 2rem;
    padding-top: 275px;
}
  
  .section {
    padding: 3.5rem 0;
  }
  
  .section-title {
    font-size: 1.94rem;
  }
  
  .feature-item,
  .service-item,
  .team-member,
  .review-item {
    padding: 1.8rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .service-item img,
  .gallery-item img {
    height: 200px;
  }
  
  .team-member img {
    width: 140px;
    height: 140px;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero {
    padding: 5rem 0;
    min-height: 90vh;
  }
  
  .hero h1 {
    font-size: 2.56rem;
    padding-top: 275px;
}
  
  .section {
    padding: 4rem 0;
  }
  
  .section-title {
    font-size: 2.21rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.3rem;
  }
  
  .service-item img,
  .gallery-item img {
    height: 220px;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero h1 {
    font-size: 2.84rem;
    padding-top: 275px;
}
  
  .section-title {
    font-size: 2.44rem;
  }
  
  .service-item img,
  .gallery-item img {
    height: 240px;
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.8rem;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero h1 {
    font-size: 3rem;
    padding-top: 275px;
}
  
  .section-title {
    font-size: 2.61rem;
  }
  
  .service-item img,
  .gallery-item img {
    height: 260px;
  }
  
  .navbar-nav .nav-link {
    margin: 0 1rem;
  }
  
  .container {
    max-width: 1200px;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero h1 {
    font-size: 1.92rem;
    padding-top: 275px;
}
  
  .hero p {
    font-size: 1.05rem;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image img,
  .service-item img,
  .team-member img,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .contact-form,
  .btn-primary {
    display: none;
  }
  
  .hero {
    background: none;
    color: #000;
    min-height: auto;
    padding: 1rem 0;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .section-title {
    color: #000;
  }
  
  .feature-item,
  .service-item,
  .team-member,
  .review-item {
    box-shadow: none;
    border: 1px solid #c3c3c3;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
  
  .feature-item:hover,
  .service-item:hover,
  .team-member:hover,
  .casestudy-item:hover,
  .career-item:hover,
  .coreinfo-item:hover,
  .blog-item:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-green: #175545;
    --primary-blue: #073565;
    --primary-teal: #328383;
    --text-dark: #000;
    --text-light: #2d2b2b;
    --border-color: #000;
  }
  
  .btn-primary {
    border: 2px solid #000;
  }
  
  .form-control {
    border: 2px solid #000;
  }
  
  .feature-item,
  .service-item,
  .team-member,
  .review-item,
  .casestudy-item,
  .process-item,
  .timeline-item,
  .career-item,
  .coreinfo-item,
  .blog-item,
  .faq-item {
    border: 2px solid #000;
  }
}

/* Focus Styles for Accessibility */
@media (any-hover: hover) {
  .nav-link:focus,
  .btn-primary:focus,
  .form-control:focus,
  .faq-question:focus {
    outline: 3px solid var(--primary-teal);
    outline-offset: 2px;
  }
}

/* Container Adjustments */
@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;
  }
}

/* Grid Adjustments */
@media (max-width: 767.98px) {
  .col-md-4,
  .col-md-6 {
    margin-bottom: 2rem;
  }
}

@media (max-width: 575.98px) {
  .col-sm-6 {
    margin-bottom: 1.64rem;
  }
}

/* Navbar Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(50, 124, 103, 0.95);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
} 