:root {
    --brand-green: #8BC53F;
    --brand-green-dark: #6FA32D;
    --brand-green-light: #E8F5D5;
    --brand-dark: #1a1a1a;
    --brand-muted: #6c757d;
    --brand-bg: #ffffff;
    --brand-bg-soft: #f7f8f6;
    --brand-border: #ececec;
    --section-py: clamp(3rem, 6vw, 5.5rem);
    --site-navbar-height: 76px;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--site-navbar-height);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--brand-dark);
    background: var(--brand-bg);
    line-height: 1.6;
    padding-top: var(--site-navbar-height);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--brand-dark);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

a { color: var(--brand-green-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-dark); }

.btn-primary {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    color: #fff;
    font-weight: 600;
    padding: .65rem 1.5rem;
    border-radius: 999px;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--brand-green-dark);
    border-color: var(--brand-green-dark);
    color: #fff;
}
.btn-outline-primary {
    color: var(--brand-green-dark);
    border-color: var(--brand-green);
    font-weight: 600;
    padding: .65rem 1.5rem;
    border-radius: 999px;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    color: #fff;
}

.section { padding-top: var(--section-py); padding-bottom: var(--section-py); }
.section-soft { background: var(--brand-bg-soft); }

.section-title {
    font-weight: 800;
    margin-bottom: .75rem;
}
.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .85rem;
    font-weight: 600;
    color: var(--brand-green-dark);
    margin-bottom: .75rem;
    display: inline-block;
}
.section-lead {
    color: var(--brand-muted);
    font-size: 1.05rem;
    max-width: 720px;
    margin: 0 auto;
}

/* ===== Navbar ===== */
.site-navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--brand-border);
    transition: box-shadow .2s ease;
}
.site-navbar.scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
}
.site-navbar .navbar-brand img {
    height: 46px;
    width: auto;
}
.site-navbar .nav-link {
    color: var(--brand-dark);
    font-weight: 500;
    padding: .75rem 1rem;
    position: relative;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--brand-green-dark);
}
/* Underline indicator only for plain nav links: the dropdown toggle renders
   Bootstrap's caret on the SAME ::after pseudo-element -> excluding it here
   keeps the caret visible when the toggle is active. */
.site-navbar .nav-link.active:not(.dropdown-toggle)::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: .35rem;
    height: 2px;
    background: var(--brand-green);
    border-radius: 2px;
}
.site-navbar .dropdown-menu {
    border: 1px solid var(--brand-border);
    border-radius: .75rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
    padding: .5rem;
    min-width: 240px;
}
.site-navbar .dropdown-item {
    border-radius: .5rem;
    padding: .55rem .85rem;
    font-weight: 500;
}
.site-navbar .dropdown-item:hover,
.site-navbar .dropdown-item:focus,
.site-navbar .dropdown-item.active {
    background: var(--brand-green-light);
    color: var(--brand-green-dark);
}
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--brand-green);
    color: #fff !important;
    border-radius: 999px;
    padding: .5rem 1.1rem !important;
    font-weight: 600;
}
.nav-cta:hover { background: var(--brand-green-dark); color: #fff !important; }

@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .site-navbar .nav-link.active:not(.dropdown-toggle)::after { display: none; }
    .nav-cta { display: inline-flex; margin-top: .5rem; }
}

/* ===== Hero ===== */
.hero {
    position: relative;
    overflow: hidden;
    background: #111;
    margin-top: calc(-1 * var(--site-navbar-height));
}
.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item { height: 100%; }
.hero-slide {
    position: relative;
    min-height: 78vh;
    padding-top: var(--site-navbar-height);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, .15) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 720px;
}
.hero-eyebrow {
    display: inline-block;
    background: rgba(139, 197, 63, .2);
    color: #d6f1a8;
    border: 1px solid rgba(139, 197, 63, .55);
    border-radius: 999px;
    padding: .35rem 1rem;
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 800;
}
.hero-title span { color: var(--brand-green); }
.hero-text {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: rgba(255, 255, 255, .85);
    margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-actions .btn { padding: .85rem 1.75rem; font-size: 1rem; }
.carousel-indicators [data-bs-target] {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, .55);
    border: 0;
}
.carousel-indicators .active { background-color: var(--brand-green); }

@media (max-width: 575.98px) {
    .hero-slide { min-height: 70vh; }
    .hero-actions .btn { width: 100%; }
}

/* ===== Page Header (non-home) ===== */
.page-header {
    background: var(--brand-bg-soft);
    padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
    border-bottom: 1px solid var(--brand-border);
}
.page-header h1 { margin-bottom: .5rem; }
.page-header .breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
    font-size: .9rem;
}
.page-header .breadcrumb a { color: var(--brand-muted); }
.page-header .breadcrumb .active { color: var(--brand-dark); font-weight: 500; }

/* ===== Product cards (home) ===== */
.product-card {
    display: block;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--brand-border);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
    border-color: var(--brand-green);
}
.product-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--brand-bg-soft);
}
.product-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__media::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.65) 100%);
}
.product-card__body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.25rem 1.4rem;
    color: #fff;
    z-index: 2;
}
.product-card__body h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: .25rem;
}
.product-card__body p {
    margin: 0;
    color: rgba(255, 255, 255, .85);
    font-size: .9rem;
}
.product-card__more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .65rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--brand-green);
}

/* ===== Feature blocks ("Neden Kayled") ===== */
.feature {
    text-align: center;
    padding: 1.5rem 1rem;
}
.feature__icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: var(--brand-green-light);
    color: var(--brand-green-dark);
    font-size: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.feature h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.feature p { color: var(--brand-muted); margin: 0; }

/* ===== Product detail page sections ===== */
.product-intro img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .08);
}
.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.spec-list li {
    display: flex;
    gap: .85rem;
    padding: .75rem 0;
    border-bottom: 1px dashed var(--brand-border);
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list .bi {
    color: var(--brand-green-dark);
    font-size: 1.15rem;
    margin-top: .15rem;
}

.use-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: .85rem;
    padding: 1.25rem;
    height: 100%;
    transition: border-color .2s, transform .2s;
}
.use-card:hover {
    border-color: var(--brand-green);
    transform: translateY(-3px);
}
.use-card .bi {
    font-size: 1.5rem;
    color: var(--brand-green-dark);
    margin-bottom: .5rem;
}
.use-card h4 { font-size: 1rem; margin-bottom: .25rem; }
.use-card p { color: var(--brand-muted); font-size: .9rem; margin: 0; }

/* ===== Gallery grid ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}
@media (min-width: 576px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 992px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: .85rem;
    background: var(--brand-bg-soft);
    cursor: zoom-in;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item::after {
    content: "\f62c";
    font-family: "bootstrap-icons" !important;
    font-weight: normal;
    font-style: normal;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(.7);
    color: #fff;
    background: rgba(0, 0, 0, .6);
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
}
.gallery-item:hover::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Lightbox modal customizations */
.modal-lightbox .modal-dialog { max-width: 1100px; }
.modal-lightbox .modal-content {
    background: transparent;
    border: 0;
}
.modal-lightbox img {
    max-width: 100%;
    max-height: 86vh;
    margin: 0 auto;
    display: block;
    border-radius: .5rem;
}
.modal-lightbox .btn-close {
    position: absolute;
    top: -2.25rem;
    right: 0;
    filter: invert(1) brightness(2);
}

/* ===== FAQ ===== */
.faq .accordion-button {
    font-weight: 600;
    color: var(--brand-dark);
}
.faq .accordion-button:not(.collapsed) {
    color: var(--brand-green-dark);
    background-color: var(--brand-green-light);
    box-shadow: none;
}
.faq .accordion-item {
    border: 1px solid var(--brand-border);
    border-radius: .85rem !important;
    margin-bottom: .65rem;
    overflow: hidden;
}
.faq .accordion-button:focus { box-shadow: 0 0 0 .15rem rgba(139, 197, 63, .25); }

/* ===== CTA band ===== */
.cta-band {
    background: linear-gradient(120deg, #232f1e 0%, #1a1a1a 70%);
    color: #fff;
    border-radius: 1.25rem;
    padding: clamp(2rem, 4vw, 3rem);
    overflow: hidden;
    position: relative;
}
.cta-band::after {
    content: "";
    position: absolute;
    right: -80px; top: -80px;
    width: 280px; height: 280px;
    background: radial-gradient(closest-side, rgba(139, 197, 63, .35), transparent 70%);
    pointer-events: none;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .8); margin-bottom: 0; }

/* ===== About blocks ===== */
.about-image {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .12);
}
.value-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    transition: transform .25s, border-color .25s;
}
.value-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-green);
}
.value-card .bi {
    font-size: 1.75rem;
    color: var(--brand-green-dark);
    margin-bottom: .75rem;
}

/* ===== Contact ===== */
.contact-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    text-align: center;
}
.contact-card .bi {
    font-size: 1.75rem;
    color: var(--brand-green-dark);
    margin-bottom: .5rem;
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.contact-card p, .contact-card a { color: var(--brand-muted); margin: 0; word-break: break-word; }
.contact-card a:hover { color: var(--brand-green-dark); }
.map-frame {
    width: 100%;
    height: clamp(280px, 45vh, 420px);
    border: 0;
    border-radius: 1rem;
}

/* ===== Blog ===== */
.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .08);
    border-color: var(--brand-green);
}
.blog-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--brand-bg-soft);
}
.blog-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.blog-card:hover .blog-card__media img { transform: scale(1.05); }
.blog-card__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.25rem 1.4rem 1.4rem;
}
.blog-card__meta {
    color: var(--brand-muted);
    font-size: .85rem;
    margin-bottom: .5rem;
}
.blog-card__meta .badge {
    background: var(--brand-green-light);
    color: var(--brand-green-dark);
    font-weight: 600;
}
.blog-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.blog-card h3 a { color: var(--brand-dark); }
.blog-card h3 a:hover { color: var(--brand-green-dark); }
.blog-card__body > p { color: var(--brand-muted); font-size: .92rem; margin-bottom: 1rem; }
.blog-card__more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: auto;
    font-size: .9rem;
    font-weight: 600;
    color: var(--brand-green-dark);
}

/* Blog article body */
.article-meta {
    color: var(--brand-muted);
    font-size: .9rem;
}
.article-body h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
    margin-top: 2.25rem;
    margin-bottom: .75rem;
}
.article-body h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: .5rem;
}
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol { margin-bottom: 1rem; }
.article-body li { margin-bottom: .35rem; }
.article-body img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .08);
    margin: 1.25rem 0;
}
.article-cta {
    background: var(--brand-bg-soft);
    border: 1px solid var(--brand-border);
    border-radius: 1rem;
    padding: 1.5rem;
}

/* ===== Footer ===== */
.site-footer {
    background: #0f100f;
    color: rgba(255, 255, 255, .75);
    padding-top: clamp(3rem, 5vw, 4.5rem);
}
.site-footer h4 {
    color: #fff;
    font-size: 1rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.site-footer a {
    color: rgba(255, 255, 255, .75);
}
.site-footer a:hover { color: var(--brand-green); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .55rem; }
.site-footer .footer-logo {
    height: 52px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}
.site-footer .footer-brand p { max-width: 320px; }
.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    margin-right: .4rem;
    transition: background .2s, color .2s, border-color .2s;
}
.site-footer .footer-social a:hover {
    background: var(--brand-green);
    color: #fff;
    border-color: var(--brand-green);
}
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 2.5rem;
    padding: 1.25rem 0;
    font-size: .85rem;
    color: rgba(255, 255, 255, .55);
}

/* ===== 404 ===== */
.errorpage {
    padding: clamp(5rem, 12vw, 8rem) 0;
    text-align: center;
}
.errorpage h1 {
    font-size: clamp(4rem, 12vw, 7rem);
    color: var(--brand-green-dark);
    margin-bottom: 0;
}

/* ===== Utility ===== */
img { max-width: 100%; height: auto; }
.text-brand { color: var(--brand-green-dark) !important; }
.bg-soft { background: var(--brand-bg-soft) !important; }
.divider { width: 60px; height: 3px; background: var(--brand-green); border-radius: 2px; margin: 0 auto 1.25rem; }

/* Focus ring tweaks */
:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 2px; }
