/* ===== VARIABLES - Leaf Green Theme ===== */
:root {
    --green: #7B9A3E;
    --green-dark: #5C7A2E;
    --green-darker: #3D5A1E;
    --green-light: #96B35A;
    --green-pale: #F0F5E6;
    --white: #ffffff;
    --dark: #1a1a2e;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #e0e0e0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 16px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

img { max-width: 100%; height: auto; }
a { color: var(--green-dark); text-decoration: none; transition: all 0.25s ease; }
a:hover { color: var(--green); }

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--green-darker);
    color: rgba(255,255,255,0.8);
    padding: 6px 0;
    font-size: 0.8rem;
}
.top-info i { margin-right: 4px; color: var(--green-light); }
.top-social a { color: rgba(255,255,255,0.7); margin-left: 10px; font-size: 0.9rem; }
.top-social a:hover { color: var(--green-light); }

/* ===== NAVBAR ===== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 0;
    z-index: 1050;
    border-bottom: 3px solid var(--green);
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 6px 0;
    text-decoration: none;
}

.site-logo {
    height: 50px;
    width: auto;
}

.footer-logo {
    height: 42px;
    width: auto;
    margin-bottom: 6px;
    opacity: 0.9;
    background: rgba(255,255,255,0.08);
    padding: 8px 16px;
    border-radius: 10px;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.2));
    transition: all 0.3s;
}
.footer-logo:hover {
    opacity: 1;
    background: rgba(255,255,255,0.12);
}

.navbar .nav-link {
    color: var(--text) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 20px 16px !important;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--green);
    transition: width 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { width: 70%; }
.navbar .nav-link:hover { color: var(--green-dark) !important; }

/* Hamburger Menu Button */
.navbar-toggler {
    border: none;
    padding: 8px;
    width: 36px;
    height: 36px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
}

.navbar-toggler:focus { box-shadow: none; }

.toggler-bar {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--green-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) {
    opacity: 0;
}
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--green-darker), var(--green-dark) 50%, var(--green));
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/uploads/bannerlar/046a5banner.jpg') center/cover;
    opacity: 0.15;
}
.hero-content { position: relative; z-index: 2; color: white; max-width: 600px; }
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}
.hero h1 { font-size: 3.2rem; color: white; margin-bottom: 20px; line-height: 1.2; }
.hero h1 span { color: var(--green-light); }
.hero p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 30px; font-weight: 300; }
.hero-img { position: relative; z-index: 2; }
.hero-img img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 420px;
    object-fit: cover;
    width: 100%;
}

/* ===== BUTTONS ===== */
.btn-green {
    background: var(--green);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}
.btn-green:hover {
    background: var(--green-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123,154,62,0.35);
}

.btn-outline-green {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.3s;
}
.btn-outline-green:hover { background: white; color: var(--green-dark); border-color: white; }

.btn-green-outline {
    background: transparent;
    color: var(--green-dark);
    border: 2px solid var(--green);
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s;
}
.btn-green-outline:hover { background: var(--green); color: white; }

.btn-primary-custom {
    background: var(--green);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s;
}
.btn-primary-custom:hover { background: var(--green-dark); color: white; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-padding { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-label {
    display: inline-block;
    color: var(--green);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.section-title { font-size: 2.2rem; color: var(--dark); margin-bottom: 12px; }
.section-line { width: 50px; height: 3px; background: var(--green); margin: 0 auto; border-radius: 2px; }

/* ===== FEATURES BAR ===== */
.features-bar {
    background: var(--white);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px 30px;
}

.feature-item { text-align: center; padding: 10px; }
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--green-pale);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 14px;
    transition: all 0.3s;
}
.feature-item:hover .feature-icon { background: var(--green); color: white; transform: scale(1.1); }
.feature-item h5 { font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.feature-item p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ===== PRODUCT CARDS ===== */
.product-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
    text-decoration: none;
    color: var(--text);
    height: 100%;
    border: 1px solid var(--border);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    color: var(--text);
    border-color: var(--green-light);
}
.product-card-img { height: 220px; overflow: hidden; position: relative; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-card-img img { transform: scale(1.1); }
.product-card-body { padding: 20px; text-align: center; }
.product-card-body h3 { font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 600; margin: 0; color: var(--dark); }

/* ===== SERVICE CARDS ===== */
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s;
    height: 100%;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--green-light); }
.service-card-img { height: 200px; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 24px; }
.service-card-body h4 { font-family: 'Poppins', sans-serif; font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.service-desc { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }
.service-desc img { max-width: 100%; height: auto; }

/* ===== REFERENCE CARDS ===== */
.reference-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}
.reference-card:hover { border-color: var(--green-light); box-shadow: var(--shadow); transform: translateY(-3px); }
.reference-img { height: 140px; display: flex; align-items: center; justify-content: center; padding: 20px; }
.reference-img img { max-height: 100px; object-fit: contain; }
.reference-body { padding: 14px; border-top: 1px solid var(--border); }
.reference-body h4 { font-family: 'Poppins', sans-serif; font-size: 0.9rem; font-weight: 600; margin: 0 0 4px; }
.reference-link { font-size: 0.8rem; color: var(--green); }

/* ===== GALLERY MASONRY ===== */
.gallery-grid {
    columns: 4;
    column-gap: 12px;
}

.gallery-grid-item {
    display: block;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
    break-inside: avoid;
}

.gallery-grid-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

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

.gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(92,122,46,0.5);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.gallery-grid-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 2rem; color: white; }

/* Legacy gallery-item for product detail */
.gallery-item { display: block; position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.08); }

/* ===== PRODUCT DETAIL ===== */
.product-detail-img img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.product-detail-content h2 { color: var(--green-dark); margin-bottom: 20px; }
.product-description { color: var(--text-light); line-height: 1.8; }
.product-description img { max-width: 100%; border-radius: var(--radius); }

/* ===== CTA ===== */
.cta-section {
    background: linear-gradient(135deg, var(--green-dark), var(--green-darker));
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.cta-section h2 { color: white; font-size: 2.2rem; margin-bottom: 16px; }
.cta-section p { font-size: 1.1rem; opacity: 0.85; margin-bottom: 28px; }

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--green-darker), var(--green-dark));
    color: white;
    padding: 60px 0 45px;
    text-align: center;
    position: relative;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-light), var(--green), var(--green-dark));
}
.page-header h1 { color: white; font-size: 2.2rem; margin-bottom: 10px; }
.page-header .breadcrumb { justify-content: center; margin: 0; }
.page-header .breadcrumb-item a { color: rgba(255,255,255,0.7); }
.page-header .breadcrumb-item a:hover { color: white; }
.page-header .breadcrumb-item.active { color: var(--green-light); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ===== CONTACT ===== */
.contact-info-card {
    background: var(--green-pale);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(123,154,62,0.2);
}
.contact-social a { font-size: 1.4rem; color: var(--green); margin-right: 14px; }
.contact-social a:hover { color: var(--green-dark); }
.contact-form .form-control { border-radius: var(--radius); padding: 12px 16px; border: 1px solid var(--border); }
.contact-form .form-control:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(123,154,62,0.12); }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.7); }
.footer-top { padding: 60px 0 40px; }
.footer-brand {
    margin-bottom: 16px;
}
.footer-desc { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.footer-social a {
    display: inline-flex; width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6);
    align-items: center; justify-content: center; margin-right: 8px; transition: all 0.25s;
}
.footer-social a:hover { background: var(--green); color: white; }
.footer-title {
    color: white; font-family: 'Poppins', sans-serif; font-size: 0.95rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; padding-bottom: 10px; position: relative;
}
.footer-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--green); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.footer-links a:hover { color: var(--green-light); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { margin-bottom: 14px; font-size: 0.88rem; color: rgba(255,255,255,0.5); display: flex; align-items: flex-start; gap: 10px; }
.footer-contact i { color: var(--green-light); margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 16px 0; }
.footer-bottom p { margin: 0; font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--green-light); }

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px; border-radius: 50%;
    background: var(--green); color: white; border: none; font-size: 1.1rem; cursor: pointer;
    opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 999;
    box-shadow: 0 4px 15px rgba(123,154,62,0.4);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--green-dark); transform: translateY(-3px); }

/* ===== ABOUT PAGE ===== */
.about-hero {
    position: relative;
    height: 350px;
    overflow: hidden;
}
.about-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
}
.about-hero-overlay h2 {
    color: white;
    font-size: 1.8rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.about-stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    border: 1px solid var(--border);
    height: 100%;
    transition: all 0.3s;
}
.about-stat-card:hover {
    border-color: var(--green-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.about-stat-card i {
    font-size: 2rem;
    color: var(--green);
    display: block;
    margin-bottom: 10px;
}
.about-stat-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.about-stat-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.about-counter {
    padding: 20px;
}
.counter-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green-dark);
    line-height: 1.2;
}
.counter-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.about-content { font-size: 1rem; line-height: 1.8; color: var(--text-light); }
.about-content img { border-radius: var(--radius); margin: 16px 0; }
.content-text { line-height: 1.8; color: var(--text-light); }

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

/* Tablet */
@media (max-width: 991px) {
    .hero { min-height: auto; padding: 50px 0; }
    .hero h1 { font-size: 2.2rem; }
    .hero-img { margin-top: 30px; }
    .section, .section-padding { padding: 60px 0; }
    .section-title { font-size: 1.8rem; }
    .features-bar { margin-top: -30px; }

    .gallery-grid { columns: 3; }

    /* Mobile Nav */
    .navbar-collapse {
        background: var(--white);
        border-top: 1px solid var(--border);
        margin-top: 8px;
        border-radius: 0 0 var(--radius) var(--radius);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        padding: 8px 0;
    }

    .navbar .nav-link {
        padding: 12px 20px !important;
        border-bottom: 1px solid #f5f5f5;
        font-size: 0.95rem;
    }

    .navbar .nav-link::after { display: none; }

    .navbar .nav-link:hover,
    .navbar .nav-link:active {
        background: var(--green-pale);
        color: var(--green-dark) !important;
    }

    .navbar .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero { padding: 40px 0; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.95rem; }
    .hero-badge { font-size: 0.75rem; }
    .section, .section-padding { padding: 40px 0; }
    .product-card-img { height: 170px; }
    .features-bar { margin-top: 0; border-radius: 0; padding: 24px 16px; }
    .feature-item h5 { font-size: 0.85rem; }
    .feature-icon { width: 48px; height: 48px; font-size: 1.2rem; }
    .section-title { font-size: 1.5rem; }
    .page-header h1 { font-size: 1.6rem; }
    .page-header { padding: 40px 0 30px; }
    .cta-section { padding: 50px 0; }
    .cta-section h2 { font-size: 1.6rem; }
    .btn-green, .btn-outline-green, .btn-green-outline { padding: 10px 20px; font-size: 0.9rem; }
    .site-logo { height: 40px; }
    .gallery-grid { columns: 2; }
    .about-hero { height: 220px; }
    .about-hero-overlay h2 { font-size: 1.2rem; }
    .counter-number { font-size: 2rem; }
    .footer-top { padding: 40px 0 20px; }
    .footer-brand { margin-bottom: 10px; }
}

/* Small Mobile */
@media (max-width: 400px) {
    .hero h1 { font-size: 1.5rem; }
    .site-logo { height: 35px; }
    .top-bar { display: none; }
    .product-card-img { height: 140px; }
    .product-card-body { padding: 12px; }
    .product-card-body h3 { font-size: 0.85rem; }
    .gallery-item img { height: 110px; }
}
