/* Base Styles - Global variables and resets */
@import './utils/variables.css';
@import './utils/base.css';
@import './utils/font-display.css';

/* Sections - Each section imports its own dependencies */
@import './sections/header.css';
@import './sections/hero.css';
@import './sections/products.css';
@import './sections/about.css';
@import './sections/why-choose-us.css';
@import './sections/why-choose-us-animations.css'; /* Animation styles for Why Choose Us */
@import './sections/contact.css';
@import './sections/footer.css';

/* Font display strategies */
@font-face {
  font-family: 'Material Icons';
  font-display: swap;
}

/* Ensure all fonts use proper font-display */
* {
  font-display: swap;
}

h1, h2, h3, h4, h5, h6, p, a, span, div, button, input, textarea, select, li {
  font-display: swap;
}

/* Ensure images with dimensions maintain aspect ratio */
img {
  max-width: 100%;
  height: auto;
}

.product-image {
  aspect-ratio: 3 / 4;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-image img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-photo img {
  aspect-ratio: 3 / 2;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Fixed hero video styles */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: -2; /* Ensure proper z-index */
}

/* Section standardization */
.section {
    padding: 80px 0;
    margin: 0;
}

/* Standardize section headings */
.section-heading {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 700;
    text-align: center;
    background: linear-gradient(90deg, #ffffff, #3D7422);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 60px;
    margin-top: 0;
    padding-top: 0;
}

/* Footer Styling */
.footer {
    background-color: #0d1610;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 0;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    padding: 0 20px;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-section img {
    width: 180px;
    margin-bottom: 15px;
}

.footer-logo-section p {
    color: #7ab317;
    font-style: italic;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #7ab317;
    transform: translateY(-3px);
}

.footer-social .material-icons {
    color: #fff;
    font-size: 18px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-nav-group h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-nav-group h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #7ab317;
}

.footer-nav-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-group li {
    margin-bottom: 12px;
}

.footer-nav-group a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-nav-group a:hover {
    color: #fff;
    transform: translateX(3px);
}

.address {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-logo-section {
        align-items: center;
        margin-bottom: 20px;
    }
    
    .footer-nav {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-heading {
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .footer-nav {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-nav-group h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-nav-group {
        text-align: center;
    }
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.whatsapp-text {
    font-weight: 500;
    font-size: 14px;
    transition: opacity 0.3s ease, max-width 0.3s ease, margin 0.3s ease;
    opacity: 1;
    max-width: 300px;
    overflow: hidden;
    white-space: nowrap;
}

/* Compact state when scrolling */
.whatsapp-compact {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    justify-content: center;
    padding: 0;
}

.whatsapp-compact .whatsapp-icon {
    margin-right: 0;
}

.whatsapp-compact .whatsapp-text {
    opacity: 0;
    max-width: 0;
    margin: 0;
}

.whatsapp-compact .whatsapp-icon svg {
    width: 30px;
    height: 30px;
}

/* Responsive styles for WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-button {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }
    
    .whatsapp-icon {
        margin-right: 0;
    }
    
    .whatsapp-icon svg {
        width: 30px;
        height: 30px;
    }
}
