/* Responsive Design for Digital Finance Planners Template */

/* Mobile First - Base styles for mobile devices */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  h3 {
    font-size: 1.125rem;
  }
  
  /* Section padding */
  section {
    padding: 2rem 0;
  }
  
  /* Hero section adjustments */
  #hero {
    min-height: 70vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  #hero::before {
    display: none; /* Remove decorative elements on mobile */
  }
  
  /* Disable animations on mobile */
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-study-card,
  .gallery-item,
  .blog-card {
    transition: none !important;
    transform: none !important;
  }
  
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .gallery-item:hover,
  .blog-card:hover {
    transform: none !important;
  }
  
  /* Card spacing */
  .service-card,
  .price-card,
  .team-card,
  .review-card {
    margin-bottom: 1.5rem;
  }
  
  /* Contact form adjustments */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Team photos */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Process numbers */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  /* Gallery items */
  .gallery-item img {
    height: 200px;
  }
  
  /* Blog cards */
  .blog-card img {
    height: 180px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1 {
    font-size: 1.75rem;
  }
  
  #hero {
    min-height: 80vh;
  }
  
  .service-card,
  .price-card,
  .team-card {
    margin-bottom: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Re-enable subtle animations for tablet and up */
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-study-card,
  .gallery-item,
  .blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .service-card:hover {
    transform: translateY(-3px);
  }
  
  .price-card:hover {
    transform: translateY(-5px);
  }
  
  .team-card:hover,
  .blog-card:hover {
    transform: translateY(-3px);
  }
  
  .gallery-item:hover {
    transform: scale(1.02);
  }
  
  /* Adjust grid for tablets */
  .col-md-6.col-lg-4 {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Full animations for desktop */
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  }
  
  .price-card:hover {
    transform: translateY(-8px);
  }
  
  .team-card:hover {
    transform: translateY(-5px);
  }
  
  .gallery-item:hover {
    transform: scale(1.05);
  }
  
  .blog-card:hover {
    transform: translateY(-5px);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  /* Larger hero content */
  #hero h1 {
    font-size: 2.5rem;
  }
  
  #hero p {
    font-size: 1.125rem;
  }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Specific mobile menu adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--surface-light);
    border-radius: 8px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--surface-dark);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Print styles */
@media print {
  .navbar,
  #footer {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    overflow-x: hidden;
}
  
  h1, h2, h3 {
    color: black !important;
  }
  
  .service-card,
  .price-card,
  .team-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --secondary-color: #008000;
    --accent-color: #ff8c00;
    --neutral-dark: #000000;
    --surface-light: #ffffff;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-study-card,
  .contact-form {
    border: 2px solid var(--neutral-dark);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Remove hover effects */
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .gallery-item:hover,
  .blog-card:hover,
  .btn-primary:hover {
    transform: none !important;
  }
} 

.hero-content {
    padding-top: 225px;
}