/* Responsive Styles for Carbon-Offset Brokerage Template */

/* Mobile First Approach - Bootstrap 5 Compatible */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.35rem;
    --font-size-h4: 1.15rem;
    --font-size-h5: 1rem;
    --font-size-h6: 0.9rem;
    --section-padding: 50px;
    --element-spacing: 20px;
  }

  .hero {
    min-height: 90vh;
    text-align: center;
  }

  .hero-title {
    font-size: var(--font-size-h1);
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: var(--font-size-h3);
    margin-bottom: 1.00rem;
  }

  .hero-desc {
    font-size: var(--font-size-base);
    margin-bottom: 1.60rem;
  }

  .navbar-brand {
    font-size: var(--font-size-h5);
  }

  .navbar-nav .nav-link {
    font-size: var(--font-size-small);
    padding: 0.5rem 0;
  }

  .card-body {
    padding: 1.5rem;
  }

  .services-item {
    padding: 1.5rem;
    margin-bottom: 1.68rem;
  }

  .services-item img {
    width: 60px;
    height: 60px;
  }

  .team-member {
    padding: 1rem;
    margin-bottom: 1.59rem;
  }

  .team-member img {
    width: 100px;
    height: 100px;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-small);
  }

  .decorative-blob {
    display: none;
  }

  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }

  .footer h5 {
    margin-bottom: 0.94rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  :root {
    --font-size-h1: 2.25rem;
    --font-size-h2: 1.85rem;
    --font-size-h3: 1.4rem;
    --font-size-h4: 1.2rem;
    --font-size-h5: 1.05rem;
    --font-size-h6: 0.95rem;
    --section-padding: 60px;
    --element-spacing: 25px;
  }

  .hero {
    min-height: 95vh;
  }

  .hero-title {
    font-size: var(--font-size-h1);
  }

  .hero-subtitle {
    font-size: var(--font-size-h3);
  }

  .services-item {
    padding: 1.75rem;
  }

  .services-item img {
    width: 70px;
    height: 70px;
  }

  .team-member img {
    width: 110px;
    height: 110px;
  }

  .decorative-blob {
    opacity: 0.2;
  }

  .blob-1 {
    width: 150px;
    height: 150px;
  }

  .blob-2 {
    width: 120px;
    height: 120px;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  :root {
    --font-size-h1: 2.35rem;
    --font-size-h2: 1.9rem;
    --font-size-h3: 1.45rem;
    --font-size-h4: 1.22rem;
    --font-size-h5: 1.08rem;
    --font-size-h6: 0.98rem;
    --section-padding: 70px;
    --element-spacing: 28px;
  }

  .hero {
    min-height: 100vh;
  }

  .navbar-brand {
    font-size: var(--font-size-h4);
  }

  .services-item {
    padding: 1.85rem;
  }

  .services-item img {
    width: 75px;
    height: 75px;
  }

  .team-member img {
    width: 115px;
    height: 115px;
  }

  .decorative-blob {
    opacity: 0.25;
  }

  .blob-1 {
    width: 175px;
    height: 175px;
  }

  .blob-2 {
    width: 130px;
    height: 130px;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero {
    min-height: 100vh;
  }

  .services-item img {
    width: 80px;
    height: 80px;
  }

  .team-member img {
    width: 120px;
    height: 120px;
  }

  .decorative-blob {
    opacity: 0.3;
  }

  .blob-1 {
    width: 190px;
    height: 190px;
  }

  .blob-2 {
    width: 140px;
    height: 140px;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero {
    min-height: 100vh;
  }

  .services-item img {
    width: 80px;
    height: 80px;
  }

  .team-member img {
    width: 120px;
    height: 120px;
  }

  .decorative-blob {
    opacity: 0.3;
  }

  .blob-1 {
    width: 200px;
    height: 200px;
  }

  .blob-2 {
    width: 150px;
    height: 150px;
  }
}

/* Orientation Specific Styles */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: 100vh;
    padding: 2rem 0;
  }

  .hero-title {
    font-size: 1.82rem;
    margin-bottom: 0.60rem;
  }

  .hero-subtitle {
    font-size: 1.36rem;
    margin-bottom: 0.62rem;
  }

  .hero-desc {
    font-size: var(--font-size-small);
    margin-bottom: 1rem;
  }

  .section {
    padding: 40px 0;
  }
}

/* Print Styles */
@media print {
  .hero {
    min-height: auto;
    background: white;
    color: black;
  }

  .decorative-blob {
    display: none;
  }

  .card {
    box-shadow: none;
    border: 1px solid #dbdbdb;
  }

  .btn {
    display: none;
  }

  .footer {
    background: white;
    color: black;
    border-top: 1px solid #d0c1be;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .team-member img,
  .services-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .card:hover,
  .services-item:hover,
  .team-member:hover {
    transform: none;
  }

  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .card,
  .services-item,
  .team-member {
    transition: none;
  }

  .card:hover,
  .services-item:hover,
  .team-member:hover {
    transform: none;
  }
}

/* Dark Mode Support */

/* Container Adjustments for Better Mobile Experience */
@media (max-width: 767.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Form Optimizations for Touch Devices */
@media (max-width: 767.98px) {
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.875rem 1rem;
  }

  .form-label {
    font-size: var(--font-size-small);
  }
}

/* Gallery Responsive Adjustments */
@media (max-width: 575.98px) {
  .gallery img {
    margin-bottom: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .gallery img {
    margin-bottom: 1.69rem;
  }
}

/* FAQ Section Mobile Adjustments */
@media (max-width: 767.98px) {
  .faq-item {
    margin-bottom: 1rem;
  }

  .faq-item .card-body {
    padding: 1rem;
  }
}

/* Contact Form Mobile Adjustments */
@media (max-width: 767.98px) {
  .contact-form {
    padding: 1rem;
  }

  .contact-info {
    text-align: center;
    margin-top: 2rem;
  }
} 

.hero-content {
    padding-top: 225px;
}