/* ==========================================================================
   REMOTE CFO COMMUNITY - RESPONSIVE STYLES
   ========================================================================== */

/* ==========================================================================
   EXTRA LARGE DEVICES (1400px and up)
   ========================================================================== */

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 3.59rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  .hero-section {
    padding: 0 2rem;
  }
}

/* ==========================================================================
   LARGE DEVICES (1200px and up)
   ========================================================================== */

@media (min-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.58rem;
  }
  
  .services-item {
    padding: 2.5rem;
  }
  
  .team-member {
    padding: 2.5rem;
  }
  
  .review-card {
    padding: 2.5rem;
  }
}

/* ==========================================================================
   MEDIUM DEVICES (992px and up)
   ========================================================================== */

@media (min-width: 992px) {
  .hero-title {
    font-size: 2.77rem;
  }
  
  .section-title {
    font-size: 2.37rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1.5rem;
  }
  
  .hero-section {
    padding: 0 1.5rem;
  }
}

/* ==========================================================================
   SMALL DEVICES (768px and up)
   ========================================================================== */

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.53rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .services-item {
    margin-bottom: 2rem;
  }
  
  .team-member {
    margin-bottom: 2rem;
  }
  
  .review-card {
    margin-bottom: 2rem;
  }
  
  .faq-card {
    margin-bottom: 1.71rem;
  }
}

/* ==========================================================================
   EXTRA SMALL DEVICES (576px and up)
   ========================================================================== */

@media (min-width: 576px) {
  .hero-title {
    font-size: 2.38rem;
  }
  
  .section-title {
    font-size: 1.95rem;
  }
  
  .hero-desc {
    font-size: 1.17rem;
  }
  
  .section-desc {
    font-size: 1rem;
  }
}

/* ==========================================================================
   EXTRA SMALL DEVICES (less than 576px)
   ========================================================================== */

@media (max-width: 575.98px) {
  /* Typography adjustments */
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .section-title {
    font-size: 1.79rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.27rem;
  }
  
  .section-subtitle {
    font-size: 1.23rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  .section-desc {
    font-size: 1.04rem;
  }
  
  h1, .h1 {
    font-size: 2rem;
  }
  
  h2, .h2 {
    font-size: 1.88rem;
  }
  
  h3, .h3 {
    font-size: 1.57rem;
  }
  
  h4, .h4 {
    font-size: 1.40rem;
  }
  
  /* Spacing adjustments */
  section {
    padding: 60px 0;
  }
  
  .hero-section {
    min-height: 90vh;
    padding: 0 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .services-item {
    padding: 1.5rem;
    margin-bottom: 1.66rem;
  }
  
  .team-member {
    padding: 1.5rem;
    margin-bottom: 1.62rem;
  }
  
  .review-card {
    padding: 1.5rem;
    margin-bottom: 1.59rem;
  }
  
  .faq-card {
    padding: 1.5rem;
    margin-bottom: 1.32rem;
  }
  
  /* Navbar adjustments */
  .navbar {
    padding: 0.75rem 0;
  }
  
  .navbar-brand {
    font-size: 1.44rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
  }
  
  /* Button adjustments */
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.98rem;
  }
  
  /* Form adjustments */
  .form-control {
    padding: 0.625rem 0.875rem;
  }
  
  /* Footer adjustments */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer h5 {
    font-size: 1.27rem;
  }
  
  /* Hero section specific mobile adjustments */
  .hero-content {
    text-align: center;
    padding-top: 275px;
}
  
  .hero-section::before {
    display: none; /* Hide decorative elements on mobile */
  }
}

/* ==========================================================================
   LANDSCAPE MOBILE DEVICES
   ========================================================================== */

@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    padding: 2rem 1rem;
  }
  
  .hero-title {
    font-size: 2.27rem;
  }
  
  section {
    padding: 50px 0;
  }
}

/* ==========================================================================
   TABLET DEVICES (768px to 1023px)
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1023.98px) {
  .hero-title {
    font-size: 2.76rem;
  }
  
  .section-title {
    font-size: 2.35rem;
  }
  
  .services-item {
    padding: 2rem;
  }
  
  .team-member {
    padding: 2rem;
  }
  
  .review-card {
    padding: 2rem;
  }
  
  .faq-card {
    padding: 2rem;
  }
}

/* ==========================================================================
   RETINA DISPLAYS
   ========================================================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .services-item img,
  .team-member img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  * {
    color: #000 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .navbar,
  .footer,
  .hero-section::before {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  section {
    padding: 1.5rem 0;
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  .card {
    border: 1px solid #c6c6c6;
    page-break-inside: avoid;
  }
}

/* ==========================================================================
   ACCESSIBILITY - REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-section::before {
    animation: none;
  }
  
  .card:hover,
  .services-item:hover,
  .team-member:hover,
  .review-card:hover,
  .faq-card:hover {
    transform: none;
  }
}

/* ==========================================================================
   HIGH CONTRAST MODE
   ========================================================================== */

@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--gray-400);
  }
  
  .btn {
    border: 2px solid currentColor;
  }
  
  .form-control {
    border: 2px solid var(--gray-400);
  }
  
  .navbar {
    border-bottom: 2px solid var(--gray-300);
  }
  
  .footer {
    border-top: 2px solid var(--gray-600);
  }
}

/* ==========================================================================
   DARK MODE SUPPORT
   ========================================================================== */
