/* ========================================
   AFCA Custom Styles
   Modern, Mobile-First Design
   ======================================== */

/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ========================================
   CUSTOM GREEN COLOR - #7BB31A
   ======================================== */
.text-green-600,
.text-green-500,
.text-green {
    color: #7BB31A !important;
}

.bg-green-600,
.bg-green-500,
.bg-green-50,
.bg-green-100,
.bg-green {
    background-color: #7BB31A !important;
}

.hover\:text-green-700:hover {
    color: #6A9E17 !important; /* Slightly darker for hover effect */
}

.bg-green-50 {
    background-color: rgba(123, 179, 26, 0.1) !important; /* 10% opacity */
}

.bg-green-100 {
    background-color: rgba(123, 179, 26, 0.15) !important; /* 15% opacity */
}

.border-green-600,
.border-green {
    border-color: #7BB31A !important;
}

/* ========================================
   LOADING SPINNER
   ======================================== */
#loading-spinner {
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loading-spinner.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
#main-header {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.98);
}

#main-header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#main-header.scrolled .logo-container img {
    height: 3rem; /* 48px */
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #7BB31A;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

#mobile-menu.show {
    max-height: 500px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* ========================================
   PRODUCT CARDS
   ======================================== */
.product-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(22, 163, 74, 0);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 0.1;
}

.product-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ========================================
   PAGE BANNER
   ======================================== */
.page-banner {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.3;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.content-section {
    padding: 4rem 0;
}

.content-section h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #16a34a;
}

/* ========================================
   CONTACT FORM (FLOATING LABELS)
   ======================================== */
.form-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-floating > .form-control {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
    outline: none;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: #6b7280;
}

.form-floating > textarea.form-control {
    height: auto;
    min-height: 150px;
    padding-top: 1.5rem;
}

.form-control.is-invalid {
    border-color: #ef4444;
    background-image: none;
}

.form-control.is-valid {
    border-color: #10b981;
    background-image: none;
}

.invalid-feedback,
.valid-feedback {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.invalid-feedback {
    color: #ef4444;
}

.valid-feedback {
    color: #10b981;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
    background: #7BB31A;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #6A9E17;
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ========================================
   FOOTER
   ======================================== */
footer a {
    text-decoration: none;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
[data-aos] {
    pointer-events: auto;
}

/* ========================================
   UTILITIES
   ======================================== */
.section-divider {
    width: 80px;
    height: 4px;
    background: #16a34a;
    margin: 2rem auto;
    border-radius: 2px;
}

.text-gradient {
    background: #16a34a;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Mobile First - Base styles above are for mobile */

/* Tablet and up */
@media (min-width: 768px) {
    .content-section {
        padding: 6rem 0;
    }
}

/* Desktop and up */
@media (min-width: 1024px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .content-section {
        padding: 8rem 0;
    }
}

/* Large Desktop */
@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    #loading-spinner,
    #main-header,
    footer,
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
}
