/* ==========================================================================
   Fazal Nursery Custom Premium CSS Stylesheet
   ========================================================================== */

:root {
    --primary-green: #2E7D32;
    --dark-green: #1B5E20;
    --light-green: #81C784;
    --earth-brown: #6D4C41;
    --white: #FFFFFF;
    --light-bg: #F8FFF6;
    --accent-yellow: #FFC107;
    --text-dark: #2C3E2F;
    --text-muted: #6C7A6E;
    --shadow-sm: 0 4px 6px rgba(46, 125, 50, 0.05);
    --shadow-md: 0 10px 20px rgba(46, 125, 50, 0.08);
    --shadow-lg: 0 15px 35px rgba(46, 125, 50, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Global Styles */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--dark-green);
}

/* Utility Classes */
.bg-primary-green { background-color: var(--primary-green) !important; }
.bg-dark-green { background-color: var(--dark-green) !important; }
.bg-light-green { background-color: var(--light-green) !important; }
.bg-light-bg { background-color: var(--light-bg) !important; }
.text-primary-green { color: var(--primary-green) !important; }
.text-dark-green { color: var(--dark-green) !important; }
.text-accent-yellow { color: var(--accent-yellow) !important; }
.text-muted-light { color: #CCD6CC !important; }
.fs-7 { font-size: 0.85rem; }

/* Custom Buttons */
.btn-primary-green {
    background-color: var(--primary-green);
    color: var(--white);
    border: 2px solid var(--primary-green);
    transition: var(--transition);
}
.btn-primary-green:hover, .btn-primary-green:focus {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(27, 94, 32, 0.3);
}

.btn-outline-green {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    transition: var(--transition);
}
.btn-outline-green:hover {
    background-color: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(46, 125, 50, 0.2);
}

/* Navbar */
.navbar {
    transition: var(--transition);
}
.nav-link {
    position: relative;
    transition: var(--transition);
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 15px;
    background-color: var(--primary-green);
    transition: var(--transition);
    border-radius: 2px;
}
.nav-link:hover::after, .nav-link.active::after {
    width: calc(100% - 30px);
}

/* Hero Section */
.hero-slider-item {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(27, 94, 32, 0.85), rgba(46, 125, 50, 0.4));
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

/* Rounded Cards with Micro-Animations */
.rounded-card {
    border-radius: 16px;
    border: none;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.rounded-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.rounded-card .card-img-wrapper {
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
}
.rounded-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.rounded-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

/* Category Cards */
.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1/1;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.category-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(27, 94, 32, 0.9), rgba(0,0,0,0));
    color: var(--white);
    z-index: 2;
    transition: var(--transition);
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.category-card:hover img {
    transform: scale(1.08);
}

/* Counters */
.counter-box {
    padding: 30px 20px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-bottom: 4px solid var(--primary-green);
    transition: var(--transition);
}
.counter-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Testimonials Slider */
.testimonials-section {
    background-color: #EBF7E9;
}
.testimonial-item {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    margin: 15px 0;
}
.testimonial-avatar {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-green);
}

/* Gallery Filter & Grid */
.gallery-filter-btn {
    border: none;
    background: transparent;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}
.gallery-filter-btn.active, .gallery-filter-btn:hover {
    background: var(--primary-green);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2);
}

.gallery-item-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
}
.gallery-item-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(27, 94, 32, 0.85);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    padding: 20px;
    transition: var(--transition);
    z-index: 2;
}
.gallery-item-card:hover img {
    transform: scale(1.1);
}
.gallery-item-card:hover .gallery-item-overlay {
    opacity: 1;
}

/* FAQ Accordion */
.accordion-item {
    border: none;
    border-radius: 12px !important;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.accordion-button {
    font-weight: 600;
    color: var(--dark-green);
    background-color: var(--white);
    padding: 20px;
    border: none !important;
    box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
    background-color: #EBF7E9;
    color: var(--dark-green);
}
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232e7d32'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Floating Action Buttons */
.floating-actions-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.btn-floating {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    position: relative;
    transition: var(--transition);
}

.btn-floating i {
    font-size: 28px;
}

.btn-floating .btn-label {
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.btn-floating:hover .btn-label {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* WhatsApp Floating */
.btn-whatsapp {
    background-color: #25D366;
    animation: pulse-green 2s infinite;
}
.btn-whatsapp:hover {
    background-color: #20BA5A;
    transform: scale(1.08);
}

/* Call Now Floating */
.btn-call-now {
    background-color: var(--primary-green);
    animation: pulse-dark-green 2s infinite;
    animation-delay: 0.5s;
}
.btn-call-now:hover {
    background-color: var(--dark-green);
    transform: scale(1.08);
}

/* Back to Top */
.btn-back-to-top {
    background-color: var(--earth-brown);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}
.btn-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.btn-back-to-top:hover {
    background-color: #5D4037;
    transform: translateY(-3px);
}

/* Pulse Keyframes */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes pulse-dark-green {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(46, 125, 50, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0);
    }
}

/* Swiper Testimonial custom styling */
.swiper-pagination-bullet-active {
    background-color: var(--primary-green) !important;
}

/* Footer link styling */
.footer-links a {
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--accent-yellow) !important;
    padding-left: 5px;
}

/* Map Wrapper */
.map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 5px solid var(--white);
}

/* Contact info icons */
.contact-info-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: #EBF7E9;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

/* Breadcrumb Styling Override */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #F1F1F1;
}
::-webkit-scrollbar-thumb {
    background: var(--light-green);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green);
}

/* Leaf decoration */
.leaf-decor {
    position: absolute;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

/* Blog Sidebar Widget */
.sidebar-widget {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-slider-item {
        min-height: 60vh;
    }
    .floating-actions-container {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    .btn-floating {
        width: 50px;
        height: 50px;
    }
    .btn-floating i {
        font-size: 22px;
    }
}
