/* =====================================================
   SUMMERVILLE NURSERY - Main Stylesheet
   ===================================================== */

/* CSS Variables */
:root {
    --primary-color: #2d5a27;
    --primary-dark: #1e3d1a;
    --primary-light: #4a7c43;
    --secondary-color: #8bc34a;
    --accent-color: #f4a460;
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --bg-cream: #faf8f5;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--text-white);
}

.btn-accent:hover {
    background-color: #e08c3a;
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Language Toggle Button */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 15px;
    transition: var(--transition);
    white-space: nowrap;
}

.lang-toggle:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--text-white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================================================
   SECTIONS GENERAL
   ===================================================== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-header p {
    max-width: 600px;
    margin: 20px auto 0;
}

/* =====================================================
   ABOUT PREVIEW SECTION
   ===================================================== */
.about-preview {
    background-color: var(--bg-cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: top;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
}

/* =====================================================
   SERVICES SECTION
   ===================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--text-white);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* =====================================================
   BRANCHES SECTION
   ===================================================== */
.branches-section {
    background-color: var(--bg-light);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.branch-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.branch-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.branch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.branch-card:hover .branch-image img {
    transform: scale(1.05);
}

.branch-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: var(--text-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.branch-info {
    padding: 25px;
}

.branch-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.branch-details {
    margin-bottom: 20px;
}

.branch-details p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.branch-details svg {
    width: 18px;
    height: 18px;
    fill: var(--primary-color);
    flex-shrink: 0;
    margin-top: 3px;
}

.branch-map {
    height: 200px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-top: 15px;
}

.branch-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* =====================================================
   PRODUCTS SECTION
   ===================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Product Categories Tabs */
.product-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.product-tab {
    padding: 10px 25px;
    background-color: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.product-tab:hover,
.product-tab.active {
    background-color: var(--primary-color);
    color: var(--text-white);
}

/* =====================================================
   LANDSCAPE / GALLERY SECTION
   ===================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 90, 39, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay h4 {
    color: var(--text-white);
    margin-bottom: 10px;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* =====================================================
   TESTIMONIALS SECTION - Auto-Scroll Carousel
   ===================================================== */
.testimonials {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 80px 0;
    overflow: hidden;
}

.testimonials .section-header h2 {
    color: var(--text-white);
}

.testimonials .section-header h2::after {
    background-color: var(--accent-color);
}

.testimonials .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

/* Carousel Container */
.testimonial-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Track Wrapper - Hides overflow */
.testimonial-track-wrapper {
    overflow: hidden;
    flex: 1;
    border-radius: var(--border-radius);
    padding: 10px 0;
}

/* Track - Holds all cards in a row */
.testimonial-track {
    display: flex;
    gap: 20px;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Individual Card */
.testimonial-card {
    flex: 0 0 calc(100% - 20px);
    min-width: calc(100% - 20px);
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-sizing: border-box;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@media (min-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 15px);
        min-width: calc(50% - 15px);
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(33.333% - 14px);
        min-width: calc(33.333% - 14px);
    }
}

/* Star Rating */
.testimonial-stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

/* Testimonial Text */
.testimonial-card .testimonial-text {
    font-size: 1rem;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.95);
    min-height: 100px;
}

/* Author Section */
.testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.author-info h4 {
    color: var(--text-white);
    margin: 0 0 3px 0;
    font-size: 1rem;
}

.author-info span {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Navigation Buttons */
.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-dark);
    transform: scale(1.1);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.carousel-dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-card {
        padding: 25px;
    }
    
    .testimonial-card .testimonial-text {
        font-size: 0.95rem;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .carousel-btn {
        display: none;
    }
    
    .testimonial-carousel {
        touch-action: pan-x;
    }
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info-box {
    background-color: var(--primary-color);
    padding: 40px;
    border-radius: var(--border-radius);
    color: var(--text-white);
}

.contact-info-box h3 {
    color: var(--text-white);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    fill: var(--secondary-color);
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--text-white);
    margin-bottom: 5px;
    font-size: 1rem;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: var(--text-white);
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
    background-color: var(--primary-dark);
    color: var(--text-white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about {
    max-width: 300px;
}

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-about .logo h1 {
    color: var(--text-white);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text-white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact svg {
    width: 16px;
    height: 16px;
    fill: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* =====================================================
   PAGE HEADERS
   ===================================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 200px 0 120px;
    text-align: center;
    color: var(--text-white);
    position: relative;
    background-size: cover;
    background-position: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 90, 39, 0.7);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: var(--text-white);
    margin-bottom: 15px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--text-white);
}

.breadcrumb span {
    color: var(--secondary-color);
}

/* =====================================================
   LIGHTBOX
   ===================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: var(--text-white);
    cursor: pointer;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .lang-toggle {
        position: absolute;
        top: 25px;
        right: 60px;
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about {
        max-width: 100%;
    }

    .footer-about .logo {
        justify-content: center;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .branches-grid {
        grid-template-columns: 1fr;
    }

    .product-tabs {
        flex-direction: column;
        align-items: center;
    }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mt-4 {
    margin-top: 40px;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.mb-4 {
    margin-bottom: 40px;
}

.py-1 {
    padding-top: 10px;
    padding-bottom: 10px;
}

.py-2 {
    padding-top: 20px;
    padding-bottom: 20px;
}

.py-3 {
    padding-top: 30px;
    padding-bottom: 30px;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-cream {
    background-color: var(--bg-cream);
}

.bg-primary {
    background-color: var(--primary-color);
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* =====================================================
   3D ANIMATIONS & EFFECTS
   ===================================================== */

/* Scroll Animation Base */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px) perspective(1000px) rotateX(10deg);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate-fadeInUp {
    opacity: 1;
    transform: translateY(0) perspective(1000px) rotateX(0deg);
}

/* 3D Card Hover Effects */
.service-card,
.branch-card,
.product-card,
.gallery-item,
.faq-item,
.project-item {
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
}

.service-card:hover,
.branch-card:hover,
.product-card:hover,
.faq-item:hover {
    transform: translateY(-10px) perspective(1000px) rotateX(5deg) rotateY(-2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover,
.project-item:hover {
    transform: scale(1.05) perspective(1000px) rotateX(2deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

/* 3D Button Effects */
.btn {
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.btn:hover {
    transform: translateY(-3px) perspective(500px) rotateX(5deg);
    box-shadow: 0 10px 30px rgba(45, 90, 39, 0.3);
}

.btn:active {
    transform: translateY(-1px) perspective(500px) rotateX(2deg);
}

/* 3D Image Hover */
.about-image,
.branch-detail-image {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image:hover,
.branch-detail-image:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(3deg) scale(1.02);
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.logo img {
    animation: float 3s ease-in-out infinite;
}

/* Parallax-like depth effect on sections */
section {
    transform-style: preserve-3d;
}

/* Smooth entrance animations */
@keyframes slideInUp3D {
    from {
        opacity: 0;
        transform: translateY(60px) perspective(1000px) rotateX(15deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) perspective(1000px) rotateX(0deg);
    }
}

@keyframes slideInLeft3D {
    from {
        opacity: 0;
        transform: translateX(-60px) perspective(1000px) rotateY(-15deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) perspective(1000px) rotateY(0deg);
    }
}

@keyframes slideInRight3D {
    from {
        opacity: 0;
        transform: translateX(60px) perspective(1000px) rotateY(15deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) perspective(1000px) rotateY(0deg);
    }
}

/* Header animation on load */
header {
    animation: slideInUp3D 0.8s ease-out;
}

/* Hero section depth */
.hero {
    transform-style: preserve-3d;
}

.hero-content {
    animation: slideInUp3D 1s ease-out 0.3s both;
}

/* Page header parallax effect */
.page-header {
    transform-style: preserve-3d;
    overflow: hidden;
}

.page-header .container {
    animation: slideInUp3D 0.8s ease-out 0.2s both;
}

/* Footer entrance */
footer {
    animation: slideInUp3D 0.6s ease-out;
}

/* Navigation link hover effect */
.nav-links a {
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Social links 3D hover */
.social-links a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
    transform: translateY(-5px) rotateZ(-10deg) scale(1.2);
}

/* Smooth scroll reveal stagger effect */
.services-grid .service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.services-grid .service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.services-grid .service-card:nth-child(3) {
    transition-delay: 0.3s;
}

.services-grid .service-card:nth-child(4) {
    transition-delay: 0.4s;
}

.gallery-grid .gallery-item:nth-child(1) {
    transition-delay: 0.1s;
}

.gallery-grid .gallery-item:nth-child(2) {
    transition-delay: 0.15s;
}

.gallery-grid .gallery-item:nth-child(3) {
    transition-delay: 0.2s;
}

.gallery-grid .gallery-item:nth-child(4) {
    transition-delay: 0.25s;
}

.gallery-grid .gallery-item:nth-child(5) {
    transition-delay: 0.3s;
}

.gallery-grid .gallery-item:nth-child(6) {
    transition-delay: 0.35s;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
    background: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* =====================================================
   FAQ SECTION (SEO / GEO / AI Search)
   ===================================================== */
.faq-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid #e0e8de;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-hover);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    gap: 12px;
    transition: var(--transition);
}

.faq-question:hover,
.faq-question[aria-expanded="true"] {
    color: var(--primary-color);
    background-color: #f3f8f2;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 24px 20px;
    color: var(--text-light);
    line-height: 1.7;
    border-top: 1px solid #e0e8de;
}

.faq-answer.open {
    display: block;
    animation: fadeInDown 0.25s ease;
}

.faq-answer p + p {
    margin-top: 10px;
}

.faq-answer ul {
    list-style: disc;
    padding-left: 20px;
    margin: 8px 0;
}

.faq-answer ul li {
    margin-bottom: 4px;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .faq-question {
        padding: 16px 18px;
        font-size: 0.95rem;
    }
    .faq-answer {
        padding: 0 18px 16px;
    }
}