/* Responsive CSS for Grant Writing Template */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .section-title h2 {
    font-size: 2.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Medium screens (768px to 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* Small screens (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Extra small screens (up to 575px) */
@media (max-width: 575px) {
  .hero {
    min-height: 70vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  /* Grid styles removed - now using Bootstrap 5 grid system */
  
  .service-card,
  .feature-card,
  .team-member {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1rem;
    margin-top: 2rem;
  }
  
  .navbar-brand {
    font-size: 1.125rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .review-card {
    margin: 0 0.5rem;
    padding: 1.5rem;
  }
  
  .faq-question {
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .faq-answer {
    padding: 0 1.5rem 1rem;
  }
  
  .form-control {
    padding: 0.5rem 0.75rem;
  }
  
  .btn-primary {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Navigation responsiveness */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    margin-top: 1rem;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Hero section responsiveness */
@media (max-width: 768px) {
  .hero .row {
    flex-direction: column-reverse;
  }
  
  .hero-image {
    margin-bottom: 2rem;
  }
  
  .hero-image img {
    max-width: 80%;
  }
}

/* Gallery responsiveness handled by Bootstrap grid system */

/* Form responsiveness */
@media (max-width: 576px) {
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-control {
    font-size: 0.9rem;
  }
  
  .contact-form .row {
    margin: 0;
  }
  
  .contact-form .col-md-6 {
    padding: 0 0 1rem 0;
  }
}

/* Typography responsiveness */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.875rem; }
  
  p {
    font-size: 0.9rem;
  }
}

/* Spacing adjustments for mobile */
@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }
  
  .row {
    margin: 0 -0.5rem;
  }
  
  .col-md-6,
  .col-lg-4,
  .col-lg-6 {
    padding: 0 0.5rem;
  }
}

/* Animation adjustments for mobile */
@media (max-width: 768px) {
  .service-card:hover,
  .team-member:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .service-card,
  .feature-card,
  .team-member,
  .review-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }
  
  .contact-form {
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }
  
  a {
    color: #000 !important;
    text-decoration: none !important;
  }
  
  .text-gradient {
    color: #000 !important;
    background: none !important;
    -webkit-text-fill-color: inherit !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .service-card,
  .feature-card,
  .team-member,
  .review-card,
  .contact-form {
    border: 2px solid #000;
  }
  
  .btn-primary {
    border: 2px solid #000;
  }
  
  .form-control {
    border: 2px solid #000;
  }
}

/* Dark mode considerations (future-proofing) */
