/*!
 * Responsive CSS for Algae-Farm Consultancy Template
 * Mobile-First Approach
 */

/* Base Mobile Styles (320px and up) */
@media (max-width: 575.98px) {
  /* Typography */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.53rem;
  }
  
  h3 {
    font-size: 1.33rem;
  }
  
  .hero-title {
    font-size: 2.55rem;
  }
  
  .hero-subtitle {
    font-size: 1.17rem;
  }
  
  /* Spacing */
  :root {
    --section-padding: 3rem 0;
    --card-padding: 1.5rem;
  }
  
  /* Header */
  .navbar-brand {
    font-size: 1.39rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.5rem;
    padding: 0.5rem;
  }
  
  /* Hero Section */
  .hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-content {
    text-align: center;
    padding-top: 275px;
}
  
  /* Cards */
  .card {
    margin-bottom: 1.59rem;
  }
  
  .card-img-top {
    height: 180px;
  }
  
  /* Services */
  .services-price {
    font-size: 1.63rem;
  }
  
  /* Team */
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  /* Features */
  .features-icon {
    width: 60px;
    height: 60px;
    font-size: 1.55rem;
  }
  
  /* Process */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.36rem;
  }
  
  /* Gallery */
  .gallery-img {
    height: 250px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2rem 1rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-bottom {
    padding-top: 1.73rem;
    margin-top: 1.69rem;
  }
  
  /* Buttons */
  .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.90rem;
  }
  
  /* Additional Page Sections */
  .additional-section {
    padding: 3rem 0;
  }
}

/* Small Tablets (576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography */
  .hero-title {
    font-size: 2.78rem;
  }
  
  .section-title h2 {
    font-size: 2.33rem;
  }
  
  /* Cards */
  .card-img-top {
    height: 200px;
  }
  
  /* Team */
  .team-photo {
    width: 175px;
    height: 175px;
  }
  
  /* Features */
  .features-icon {
    width: 70px;
    height: 70px;
    font-size: 1.79rem;
  }
  
  /* Process */
  .process-number {
    width: 55px;
    height: 55px;
    font-size: 1.45rem;
  }
  
  /* Gallery */
  .gallery-img {
    height: 275px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2.5rem;
  }
}

/* Medium Tablets (768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Typography */
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title h2 {
    font-size: 2.52rem;
  }
  
  /* Hero Section */
  .hero-content {
    text-align: left;
    padding-top: 275px;
}
  
  /* Cards */
  .card-img-top {
    height: 220px;
  }
  
  /* Team */
  .team-photo {
    width: 200px;
    height: 200px;
  }
  
  /* Navbar */
  .navbar-nav .nav-link {
    margin: 0 0.75rem;
  }
  
  /* Gallery */
  .gallery-img {
    height: 280px;
  }
  
  /* Services Grid */
  .services-item {
    margin-bottom: 2rem;
  }
  
  /* Features Grid */
  .features-item {
    margin-bottom: 2.71rem;
  }
  
  /* Reviews */
  .reviews-item {
    margin-bottom: 1.73rem;
  }
}

/* Large Tablets and Small Desktops (992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Typography */
  .hero-title {
    font-size: 3.36rem;
  }
  
  /* Cards */
  .card-img-top {
    height: 240px;
  }
  
  /* Gallery */
  .gallery-img {
    height: 300px;
  }
  
  /* Services Grid - 2 columns */
  .services-item {
    margin-bottom: 2.58rem;
  }
  
  /* Features Grid - 2 columns */
  .features-item {
    margin-bottom: 2.65rem;
  }
  
  /* Process Grid - 2-3 columns */
  .process-item {
    margin-bottom: 2.61rem;
  }
  
  /* Reviews Grid - 2 columns */
  .reviews-item {
    margin-bottom: 2rem;
  }
}

/* Extra Large Desktops (1200px and up) */
@media (min-width: 1200px) {
  /* Typography */
  .hero-title {
    font-size: 3.64rem;
  }
  
  .section-title h2 {
    font-size: 2.78rem;
  }
  
  /* Cards */
  .card-img-top {
    height: 250px;
  }
  
  /* Gallery */
  .gallery-img {
    height: 320px;
  }
  
  /* Services Grid - 3 columns */
  .services-item {
    margin-bottom: 3rem;
  }
  
  /* Features Grid - 4 columns */
  .features-item {
    margin-bottom: 3rem;
  }
  
  /* Process Grid - 5 columns */
  .process-item {
    margin-bottom: 3rem;
  }
  
  /* Reviews Grid - 3 columns */
  .reviews-item {
    margin-bottom: 2.63rem;
  }
  
  /* Team Grid - 5 columns */
  .team-member {
    margin-bottom: 2.63rem;
  }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
  /* Container max-width adjustments */
  .container {
    max-width: 1320px;
  }
  
  /* Typography */
  .hero-title {
    font-size: 4rem;
  }
  
  .section-title h2 {
    font-size: 3rem;
  }
  
  /* Cards */
  .card-img-top {
    height: 280px;
  }
  
  /* Gallery */
  .gallery-img {
    height: 350px;
  }
  
  /* Spacing */
  :root {
    --section-padding: 6rem 0;
  }
}

/* Print Styles */
@media print {
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .hero {
    background: white !important;
    color: black !important;
  }
  
  .hero-title,
  .hero-subtitle,
  .hero-desc {
    color: black !important;
  }
  
  .navbar,
  .footer {
    display: none !important;
  }
  
  .btn {
    border: 1px solid black !important;
    background: white !important;
    color: black !important;
  }
  
  .card {
    border: 1px solid #e6e1e0 !important;
  }
  
  .page-break {
    page-break-before: always;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none !important;
  }
  
  .card:hover {
    transform: none !important;
  }
  
  .gallery-img:hover {
    transform: none !important;
  }
  
  .btn:hover {
    transform: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-green: #12651e;
    --primary-blue: #09409b;
    --primary-teal: #014d40;
    --primary-lime: #528c3b;
    --primary-cyan: #009ba7;
    --medium-gray: #5f5a5a;
    --dark-gray: #484747;
  }
  
  .card {
    border: 2px solid var(--dark-gray) !important;
  }
  
  .btn {
    border: 2px solid var(--primary-green) !important;
  }
  
  .form-control {
    border: 2px solid var(--dark-gray) !important;
  }
}

/* Portrait Orientation */
@media (orientation: portrait) {
  .hero {
    min-height: 90vh;
  }
  
  .hero-content {
    text-align: center;
    padding-top: 275px;
}
  
  .gallery-img {
    height: 250px;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-title {
    font-size: 2.52rem;
  }
  
  .hero-subtitle {
    font-size: 1.18rem;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* Specific Component Responsive Adjustments */

/* Navbar Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    margin: 0;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* FAQ Responsive */
@media (max-width: 767.98px) {
  .faq-question {
    padding: 1rem;
    font-size: 1.07rem;
  }
  
  .faq-answer {
    padding: 0 1rem 1rem;
    font-size: 1.01rem;
  }
}

/* Contact Form Responsive */
@media (max-width: 575.98px) {
  .contact-form {
    margin: 0 -15px;
    border-radius: 0;
  }
  
  .form-group {
    margin-bottom: 1.57rem;
  }
  
  .form-control {
    padding: 0.875rem;
  }
}

/* Grid Adjustments */
@media (max-width: 767.98px) {
  .col-md-6:not(:last-child) {
    margin-bottom: 2rem;
  }
  
  .col-md-4:not(:last-child) {
    margin-bottom: 2rem;
  }
  
  .col-lg-3:not(:last-child) {
    margin-bottom: 2rem;
  }
}

/* Ensure proper spacing between sections on mobile */
@media (max-width: 767.98px) {
  .section:not(:last-child) {
    margin-bottom: 2rem;
  }
}

/* Image optimization for different screen sizes */
@media (max-width: 575.98px) {
  img {
    max-width: 100%;
    height: auto;
  }
}

/* Breadcrumb responsive */
@media (max-width: 575.98px) {
  .breadcrumb {
    padding: 0.5rem 0;
  }
  
  .breadcrumb-item img {
    width: 16px;
    height: 16px;
  }
}

/* Additional page sections responsive */
@media (max-width: 767.98px) {
  .additional-section {
    padding: 2rem 0;
  }
  
  .elem-item {
    margin-bottom: 1.67rem;
  }
}

/* Space page responsive */
@media (max-width: 767.98px) {
  #space {
    min-height: 60vh;
    margin: 1rem 0;
  }
} 