/* EthiCup - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  :root {
    --font-size-base: 0.875rem;
    --font-size-lg: 1rem;
    --font-size-xl: 1.125rem;
    --font-size-2xl: 1.25rem;
    --font-size-3xl: 1.5rem;
    --font-size-4xl: 1.875rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1rem;
    --spacing-xl: 1.5rem;
    --spacing-2xl: 2rem;
  }

  /* Header */
  .navbar-brand {
    font-size: var(--font-size-lg);
  }

  .navbar-nav .nav-link {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: center;
  }

  /* Hero Section */
  .hero-section {
    padding: var(--spacing-2xl) 0;
    text-align: center;
  }

  .hero-section h1 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
    padding-top: 125px;
}

  .hero-section p {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-md);
  }

  /* Cards */
  .feature-card,
  .service-card,
  .pricing-card,
  .review-card,
  .case-study-card,
  .quality-card,
  .sustainability-card,
  .health-card,
  .ingredient-card,
  .research-card,
  .story-card,
  .certification-card,
  .core-info-card,
  .career-card {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
  }

  /* Service Cards */
  .service-card img {
    height: 150px;
  }

  .price {
    font-size: var(--font-size-lg);
    padding: var(--spacing-sm);
  }

  /* Featured Pricing Card */
  .pricing-card.featured {
    transform: none;
    margin-top: var(--spacing-md);
  }

  /* Team Section */
  .team-member {
    padding: var(--spacing-md);
  }

  .team-member img {
    width: 100px;
    height: 100px;
  }

  /* Process Section */
  .process-step {
    padding: var(--spacing-md);
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-lg);
  }

  /* Timeline */
  .timeline {
    padding-left: var(--spacing-lg);
  }

  .timeline-item {
    padding-left: var(--spacing-md);
  }

  /* Statistics */
  .impact-stat,
  .nutrition-stat {
    padding: var(--spacing-md);
  }

  .stat-number,
  .stat-circle {
    font-size: var(--font-size-2xl);
  }

  .stat-circle {
    width: 60px;
    height: 60px;
  }

  /* Contact Form */
  .contact-form {
    padding: var(--spacing-lg);
  }

  .form-control {
    padding: var(--spacing-sm);
  }

  .btn-primary {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
  }

  /* Blog Cards */
  .blog-card img {
    height: 150px;
  }

  .blog-card .card-body {
    padding: var(--spacing-lg);
  }

  /* Gallery */
  #gallery img {
    height: 200px;
    margin-bottom: var(--spacing-md);
  }

  /* Footer */
  footer {
    text-align: center;
  }

  footer .col-lg-4 {
    margin-bottom: var(--spacing-lg);
  }

  /* Breadcrumb */
  .breadcrumb {
    padding: var(--spacing-sm) 0;
  }

  /* Sections */
  .py-5 {
    padding: var(--spacing-xl) 0;
  }

  /* Container adjustments */
  .container {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }

  /* Text alignment for mobile */
  .text-center-mobile {
    text-align: center;
  }

  /* Hide elements on mobile */
  .d-none-mobile {
    display: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section h1 {
    font-size: var(--font-size-3xl);
    padding-top: 125px;
}

  .service-card img {
    height: 180px;
  }

  .blog-card img {
    height: 180px;
  }

  #gallery img {
    height: 220px;
  }

  .pricing-card.featured {
    transform: scale(1.02);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    text-align: left;
  }

  .hero-section h1 {
    font-size: var(--font-size-4xl);
    padding-top: 125px;
}

  .service-card img {
    height: 200px;
  }

  .blog-card img {
    height: 200px;
  }

  #gallery img {
    height: 240px;
  }

  .pricing-card.featured {
    transform: scale(1.03);
  }

  /* Team grid adjustment */
  .team-member {
    margin-bottom: var(--spacing-lg);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section h1 {
    font-size: var(--font-size-4xl);
    padding-top: 125px;
}

  .service-card img {
    height: 220px;
  }

  .blog-card img {
    height: 220px;
  }

  #gallery img {
    height: 260px;
  }

  .pricing-card.featured {
    transform: scale(1.05);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section h1 {
    font-size: var(--font-size-4xl);
    padding-top: 125px;
}

  .service-card img {
    height: 240px;
  }

  .blog-card img {
    height: 240px;
  }

  #gallery img {
    height: 280px;
  }

  .container {
    max-width: 1200px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 80vh;
  }

  .hero-section h1 {
    font-size: var(--font-size-2xl);
    padding-top: 125px;
}

  .hero-section p {
    font-size: var(--font-size-sm);
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../GAT_images/hero-bg@2x.webp');
  }
}

/* Accessibility - Increased text size preference */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #1b1b1b;
    --bg-primary: #ffffff;
    --primary-sage: #75b26a;
    --primary-terracotta: #c24928;
    --primary-charcoal: #2c384f;
  }

  .form-control {
    border-width: 3px;
  }

  .btn-primary {
    border: 2px solid var(--primary-charcoal);
  }
}

/* Print media queries */
@media print {
  * {
    color: #000;
    background: #fff;
  }

  .hero-section,
  .navbar,
  .btn,
  footer,
  .contact-form {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  .service-card,
  .feature-card,
  .pricing-card {
    page-break-inside: avoid;
    border: 1px solid #dfd4d5;
    margin-bottom: 20pt;
  }

  .py-5 {
    padding: 20pt 0;
  }

  .container {
    max-width: 100%;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-delay: 0s !important;
    transition-duration: 0s !important;
  }

  .hero-section::before {
    animation: none;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  .feature-card:hover,
  .service-card:hover,
  .pricing-card:hover,
  .review-card:hover,
  .case-study-card:hover,
  .quality-card:hover,
  .sustainability-card:hover,
  .health-card:hover,
  .ingredient-card:hover,
  .research-card:hover,
  .story-card:hover,
  .certification-card:hover,
  .core-info-card:hover,
  .career-card:hover {
    transform: none;
  }

  .btn-primary:hover {
    transform: none;
  }

  #gallery img:hover {
    transform: none;
  }
}



/* Custom grid adjustments */
@media (min-width: 576px) {
  .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  
  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
}

/* Utility classes for responsive design */
.text-center-sm {
  text-align: center;
}

@media (min-width: 768px) {
  .text-center-sm {
    text-align: left;
  }
}

.mb-mobile {
  margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
  .mb-mobile {
    margin-bottom: 0;
  }
}

/* Flexible image containers */
.img-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.img-container:hover img {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .img-container:hover img {
    transform: none;
  }
}

/* Responsive spacing utilities */
.px-responsive {
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

@media (min-width: 768px) {
  .px-responsive {
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
  }
}

@media (min-width: 992px) {
  .px-responsive {
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
  }
}

/* Responsive font sizes */
.fs-responsive {
  font-size: var(--font-size-sm);
}

@media (min-width: 768px) {
  .fs-responsive {
    font-size: var(--font-size-base);
  }
}

@media (min-width: 992px) {
  .fs-responsive {
    font-size: var(--font-size-lg);
  }
} 