/* ====================================
   Responsive Design - Mobile First
   Sustainable Festival Merchandise Supplier
   ==================================== */

/* ====================================
   MOBILE FIRST BASE STYLES
   ==================================== */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.64rem;
  }
  
  .hero-subtitle {
    font-size: 1.12rem;
  }
  
  .hero-description {
    font-size: 1.04rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .section-title h2 {
    font-size: 1.37rem;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .navbar-nav .nav-link {
    font-size: 1.04rem;
    margin: 0.25rem 0;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .service-item {
    padding: 1.5rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
}

/* ====================================
   SMALL DEVICES (landscape phones, 576px and up)
   ==================================== */

@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: 1.89rem;
  }
  
  .hero-subtitle {
    font-size: 1.24rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
}

/* ====================================
   MEDIUM DEVICES (tablets, 768px and up)
   ==================================== */

@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 85vh;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.34rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-collapse {
    background: var(--warm-cream-light);
    border-radius: 8px;
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .team-member {
    text-align: center;
  }
  
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* ====================================
   LARGE DEVICES (desktops, 992px and up)
   ==================================== */

@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .hero-title {
    font-size: 2.32rem;
  }
  
  .hero-subtitle {
    font-size: 1.52rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.75rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .contact-form {
    padding: 3rem;
  }
  
  .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
  }
}

/* ====================================
   EXTRA LARGE DEVICES (large desktops, 1200px and up)
   ==================================== */

@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-title {
    font-size: 2.60rem;
  }
  
  .hero-subtitle {
    font-size: 1.54rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .container {
    max-width: 1200px;
  }
  
  .navbar-nav .nav-link {
    margin: 0 1rem;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .contact-form {
    padding: 4rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ====================================
   NAVIGATION RESPONSIVE BEHAVIOR
   ==================================== */

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--warm-cream);
    border-radius: 12px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 7px 15px rgba(0,0,0,0.1);
  }
  
  .navbar-nav .nav-link {
    text-align: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--neutral-sage-light);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    background: var(--primary-green-light);
    color: white;
    border-radius: 8px;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(84, 124, 98, 0.25);
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
}

/* ====================================
   HERO SECTION RESPONSIVE LAYOUT
   ==================================== */

@media (max-width: 991.98px) {
  .hero-section .row {
    flex-direction: column-reverse;
  }
  
  .hero-content {
    text-align: center;
    margin-top: 2rem;
    padding-top: 125px;
}
  
  .hero-image {
    margin-bottom: 2rem;
  }
}

/* ====================================
   CARD RESPONSIVE BEHAVIOR
   ==================================== */

@media (max-width: 767.98px) {
  .card-columns {
    column-count: 1;
  }
  
  .card {
    margin-bottom: 1.66rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .card-title {
    font-size: 1.18rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .card-columns {
    column-count: 2;
  }
}

@media (min-width: 992px) {
  .card-columns {
    column-count: 3;
  }
}

/* ====================================
   FORM RESPONSIVE BEHAVIOR & VALIDATION
   ==================================== */

@media (max-width: 575.98px) {
  .form-control {
    padding: 0.5rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }
}

@media (min-width: 576px) {
  .form-control {
    padding: 0.75rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
  }
}

/* Form validation states */
.form-control.is-valid {
  border-color: #1dbb35;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.79-.79L1.97 4.28a.75.75 0 1 0-1.06 1.06L2.3 6.73z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
  border-color: #f43f38;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4m0-1.4-1.4 1.4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.valid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.39rem;
  font-size: 0.875em;
  color: #1da94e;
}

.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.44rem;
  font-size: 0.875em;
  color: #de4b6a;
}

/* ====================================
   FOOTER RESPONSIVE BEHAVIOR
   ==================================== */

@media (max-width: 767.98px) {
  .footer .row > div {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .footer-bottom {
    text-align: center;
  }
}

@media (min-width: 768px) {
  .footer .row > div {
    margin-bottom: 0;
  }
}

/* ====================================
   UTILITY CLASSES FOR RESPONSIVE DESIGN
   ==================================== */

/* Hide elements on mobile */
@media (max-width: 767.98px) {
  .d-mobile-none {
    display: none !important;
  }
}

/* Show elements only on mobile */
@media (min-width: 768px) {
  .d-mobile-only {
    display: none !important;
  }
}

/* Responsive text alignment */
@media (max-width: 767.98px) {
  .text-mobile-center {
    text-align: center !important;
  }
}

/* Responsive spacing */
@media (max-width: 575.98px) {
  .mb-mobile-3 {
    margin-bottom: 1rem !important;
  }
  
  .mt-mobile-3 {
    margin-top: 1rem !important;
  }
  
  .p-mobile-2 {
    padding: 0.5rem !important;
  }
}

/* ====================================
   PERFORMANCE OPTIMIZATIONS
   ==================================== */

/* Disable all animations for images - applied to all screen sizes */
img {
  transition: none !important;
  transform: none !important;
  animation: none !important;
}

.gallery-item img {
  transition: none !important;
  transform: none !important;
  animation: none !important;
}

.gallery-item:hover img {
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* Service items images */
.service-item img {
  transition: none !important;
  transform: none !important;
  animation: none !important;
}

.service-item:hover img {
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* Card images */
.card img {
  transition: none !important;
  transform: none !important;
  animation: none !important;
}

.card:hover img {
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* Team images */
.team-member img {
  transition: none !important;
  transform: none !important;
  animation: none !important;
}

.team-member:hover img {
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* All other image containers */
*:hover img {
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* Reduce animations on smaller screens for better performance */
@media (max-width: 767.98px) {
  .card:hover {
    transform: none;
  }
  
  .service-item:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
}

/* ====================================
   ACCESSIBILITY IMPROVEMENTS
   ==================================== */

/* Ensure touch targets are large enough on mobile */
@media (max-width: 767.98px) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .form-control {
    min-height: 44px;
  }
}

/* Improve focus indicators on mobile */
@media (max-width: 767.98px) {
  .btn:focus,
  .nav-link:focus,
  .form-control:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
  }
}

/* ====================================
   CONTACT PAGE SPECIFIC RESPONSIVENESS
   ==================================== */

@media (max-width: 991.98px) {
  .contact-feature {
    margin-bottom: 2rem;
  }
  
  .contact-additional {
    margin-top: 2rem;
  }
  
  .social-links {
    text-align: center;
  }
  
  .map-placeholder {
    height: 300px;
  }
}

@media (max-width: 575.98px) {
  .contact-feature {
    padding: 1.5rem;
  }
  
  .feature-icon {
    font-size: 2.63rem;
  }
  
  .contact-faq {
    padding: 2rem;
  }
  
  .map-placeholder {
    height: 250px;
  }
}

/* ====================================
   ADDITIONAL PAGE RESPONSIVENESS
   ==================================== */

@media (max-width: 767.98px) {
  .quality-item,
  .planning-card,
  .cert-card,
  .tech-card,
  .partnership-card,
  .innovation-card,
  .commitment-card {
    padding: 1.5rem;
    margin-bottom: 1.73rem;
  }
  
  .quality-icon,
  .cert-icon,
  .tech-icon,
  .innovation-icon,
  .commitment-icon {
    font-size: 2.60rem;
  }
} 

/* ====================================
   DISABLE SCROLL ANIMATIONS FOR IMAGES
   ==================================== */

/* Disable animations during scroll events */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Force disable all image animations regardless of user preferences */
.no-image-animations img,
.no-image-animations .img,
.no-image-animations [class*="img"],
.no-image-animations [style*="background-image"] {
  transition: none !important;
  transform: none !important;
  animation: none !important;
  will-change: auto !important;
}

/* Disable intersection observer animations for images */
img.lozad,
.lozad img,
.lozad-bg {
  transition: none !important;
  animation: none !important;
  transform: none !important;
}

img.lozad.loaded,
.lozad img.loaded,
.lozad-bg.loaded {
  transition: none !important;
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
}

/* Disable any potential scroll-triggered animations */
[data-aos] img,
[data-scroll] img,
[data-animate] img {
  transition: none !important;
  animation: none !important;
  transform: none !important;
}

/* Override any vendor-specific image animations */
img::-webkit-any-link,
img::-moz-any-link {
  transition: none !important;
  animation: none !important;
  transform: none !important;
} 

/* ====================================
   ENHANCED TIMELINE MOBILE STYLES
   ==================================== */

/* For very small screens - ensure timeline is always linear */
@media (max-width: 575px) {
  .timeline::before {
    left: 15px !important;
    transform: none !important;
    width: 2px;
  }
  
  .timeline-item {
    width: 100% !important;
    left: 0 !important;
    right: auto !important;
    padding-left: 50px !important;
    padding-right: 0.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
    padding-left: 50px !important;
    padding-right: 0.5rem !important;
    transform: none !important;
  }
  
  .timeline-year {
    left: -20px !important;
    right: auto !important;
    top: 0.3rem !important;
    font-size: 0.8rem !important;
    padding: 0.3rem 0.6rem !important;
  }
  
  .timeline-content {
    padding: 1rem !important;
    margin: 0 !important;
    transform: none !important;
  }
  
  .timeline-content h4 {
    font-size: 1.1rem !important;
  }
  
  .timeline-content p {
    font-size: 0.9rem !important;
  }
}

/* Medium mobile screens */
@media (min-width: 576px) and (max-width: 767px) {
  .timeline::before {
    left: 18px !important;
    transform: none !important;
  }
  
  .timeline-item {
    padding-left: 55px !important;
    padding-right: 1rem !important;
  }
  
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0 !important;
    width: 100% !important;
    padding-left: 55px !important;
    padding-right: 1rem !important;
  }
  
  .timeline-year {
    left: -18px !important;
    right: auto !important;
  }
} 