/* ===== CFO COMMUNITY TEMPLATE - RESPONSIVE STYLES ===== */

/* Mobile-First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-section::before {
    display: none;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* No animations on mobile */
  [data-sal] {
    transition: none !important;
    transform: none !important;
  }
  
  /* Conservative font sizes for mobile */
  h1 {
    font-size: var(--fs-xlarge);
  }
  
  h2 {
    font-size: var(--fs-large);
  }
  
  .navbar-brand {
    font-size: var(--fs-medium) !important;
  }
  
  .service-card,
  .price-card,
  .review-card {
    margin-bottom: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: var(--fs-medium);
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  section {
    padding: 3rem 0;
  }
  
  /* Reduce animations on small screens */
  [data-sal] {
    transition-duration: 0.3s;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card:hover,
  .price-card:hover,
  .blog-card:hover {
    transform: translateY(-3px);
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 95vh;
  }
  
  section {
    padding: 3.5rem 0;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem !important;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Services grid adjustment */
  .services-grid .col-md-4:nth-child(3n+1) {
    clear: left;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 100vh;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .container {
    max-width: 960px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-section {
    min-height: 100vh;
  }
  
  section {
    padding: 4.5rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Enhanced hover effects for large screens */
  .service-card:hover {
    transform: translateY(-8px);
  }
  
  .price-card:hover {
    transform: translateY(-10px);
  }
  
  .blog-card:hover {
    transform: translateY(-6px);
  }
}

/* Navbar Responsive Behavior */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--white);
    border-radius: 0.5rem;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid #f8f9fa;
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Hero Section Responsive Layout */
@media (max-width: 767.98px) {
  .hero-content {
    text-align: center;
  }
  
  .hero-image {
    margin-top: 2rem;
    order: -1;
  }
}

/* Services Grid Responsive */
@media (max-width: 575.98px) {
  .services-grid .col-12 {
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .services-grid .col-sm-6:nth-child(2n+1) {
    clear: left;
  }
}

/* Price Plans Responsive */
@media (max-width: 767.98px) {
  .price-card.featured {
    transform: none;
    margin: 2rem 0;
  }
}

/* Team Grid Responsive */
@media (max-width: 575.98px) {
  .team-grid .col-12 {
    margin-bottom: 2rem;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .team-grid .col-sm-6:nth-child(2n+1) {
    clear: left;
  }
}

/* Contact Section Responsive */
@media (max-width: 767.98px) {
  .contact-info {
    margin-top: 2rem;
    text-align: center;
  }
  
  .contact-form {
    order: -1;
  }
}

/* Footer Responsive */
@media (max-width: 767.98px) {
  footer .row > div {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  footer .row > div:last-child {
    margin-bottom: 0;
  }
}

/* Timeline Responsive */
@media (max-width: 767.98px) {
  .timeline-item {
    border-left: none;
    border-top: 3px solid var(--primary-mint);
    padding: 1.5rem 1rem;
  }
  
  .timeline-item::before {
    left: 1rem;
    top: -8px;
  }
}

/* Process Steps Responsive */
@media (max-width: 767.98px) {
  .process-steps .row {
    flex-direction: column;
  }
  
  .process-step {
    margin-bottom: 2rem;
  }
}

/* Blog Grid Responsive */
@media (max-width: 575.98px) {
  .blog-grid .col-12 {
    margin-bottom: 2rem;
  }
}

/* FAQ Responsive */
@media (max-width: 575.98px) {
  .faq-card {
    padding: 1.5rem;
  }
}

/* Additional Pages Responsive */
@media (max-width: 767.98px) {
  .add-page-section {
    padding: 2rem 0;
  }
  
  .add-page-item {
    padding: 1rem;
  }
}

/* Breadcrumb Responsive */
@media (max-width: 575.98px) {
  .breadcrumb-container {
    text-align: center;
    padding: 0.5rem 0;
  }
  
  .breadcrumb-image {
    max-height: 30px;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .service-card,
  .price-card,
  .review-card,
  .blog-card,
  .faq-card,
  .career-item {
    border-width: 2px;
    border-color: var(--dark-gray);
  }
  
  .btn-primary {
    border-width: 2px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer,
  .gallery-section {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    page-break-after: always;
  }
  
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .service-card,
  .price-card,
  .review-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }
} 

.hero-section h1 {
    padding-top: 175px;
}