/* ==========================================================================
   Kocaeli Sondaj — Ana site stilleri
   Modern, minimal ve responsive tasarım. Renk paleti mevcut tasarımdan korunmuştur.
   ========================================================================== */

:root {
    --color-primary: #849e00;
    --color-primary-dark: #6d8100;
    --color-primary-soft: #eef3d8;
    --color-accent: #a94545;
    --color-ink: #1f2933;
    --color-muted: #5b6670;
    --color-border: #e6e9e4;
    --color-bg: #ffffff;
    --color-bg-soft: #f6f8f4;
    --color-dark: #141f1b;
    --color-dark-2: #1d2b26;

    --radius: 14px;
    --radius-sm: 9px;
    --shadow-sm: 0 1px 2px rgba(20, 31, 27, 0.06);
    --shadow-md: 0 12px 32px rgba(20, 31, 27, 0.10);
    --shadow-lg: 0 24px 56px rgba(20, 31, 27, 0.16);

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --container: 1140px;
    --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--color-ink);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a { color: var(--color-primary-dark); text-decoration: none; }
a:hover { color: var(--color-primary); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon { width: 34px; height: 34px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
    font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer;
    transition: all .18s ease; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--color-dark); }
.btn--light:hover { background: var(--color-primary-soft); color: var(--color-primary-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn--text {
    background: none; border: none; padding: 8px 0; color: var(--color-primary-dark);
    display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
}
.btn--text:hover { color: var(--color-primary); }
.btn--text svg { width: 16px; height: 16px; transition: transform .18s ease; }
.btn--text:hover svg { transform: translateX(3px); }

.kicker {
    display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--color-primary-dark); margin-bottom: 10px;
}

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; }

.topbar { background: var(--color-dark); color: rgba(255,255,255,0.82); font-size: 0.85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar__link, .topbar__right { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.82); }
.topbar__link:hover { color: #fff; }
.topbar__link .ico, .topbar__right .ico { width: 15px; height: 15px; }

.navbar { border-bottom: 1px solid var(--color-border); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; }
.brand__logo { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
    display: inline-flex; align-items: center; padding: 10px 15px; border-radius: 999px;
    color: var(--color-ink); font-weight: 500; font-size: 0.95rem; transition: all .15s ease;
}
.nav__link:hover { color: var(--color-primary-dark); background: var(--color-primary-soft); }
.nav__link.is-active { color: var(--color-primary-dark); font-weight: 700; }
.nav__link--cta { background: var(--color-primary); color: #fff; font-weight: 600; }
.nav__link--cta:hover { background: var(--color-primary-dark); color: #fff; }
.nav__link--cta.is-active { color: #fff; }

.nav-toggle {
    display: none; width: 44px; height: 44px; border: none; background: none; cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-ink); border-radius: 2px; transition: all .2s ease; }

/* ---- Hero slider ---- */
.hero { position: relative; height: 78vh; min-height: 480px; max-height: 680px; overflow: hidden; background: var(--color-dark); }
.hero__slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1s ease; display: flex; align-items: center;
}
.hero__slide.is-active { opacity: 1; }
.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(13,22,19,0.82) 0%, rgba(13,22,19,0.45) 45%, rgba(13,22,19,0.15) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 620px; color: #fff; }
.hero__eyebrow {
    display: inline-block; padding: 6px 14px; border-radius: 999px;
    background: var(--color-primary); color: #fff; font-weight: 700; font-size: 0.78rem;
    letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 20px;
}
.hero__title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; color: #fff; margin-bottom: 14px; }
.hero__desc { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.92); max-width: 480px; margin-bottom: 28px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Slide content animation — subtle and immediate (no long delay). */
.hero__slide.is-active .hero__eyebrow,
.hero__slide.is-active .hero__title,
.hero__slide.is-active .hero__desc,
.hero__slide.is-active .hero__actions {
    animation: rise-in .6s cubic-bezier(.22,.68,.35,1) both;
}
.hero__slide.is-active .hero__title { animation-delay: .08s; }
.hero__slide.is-active .hero__desc { animation-delay: .16s; }
.hero__slide.is-active .hero__actions { animation-delay: .24s; }

@keyframes rise-in {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero__nav { position: absolute; z-index: 3; left: 0; right: 0; bottom: 28px; display: flex; align-items: center; justify-content: center; gap: 22px; }
.hero__arrow {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.08); color: #fff; cursor: pointer; display: grid; place-items: center;
    transition: all .18s ease; backdrop-filter: blur(4px);
}
.hero__arrow:hover { background: #fff; color: var(--color-dark); }
.hero__arrow svg { width: 20px; height: 20px; }
.hero__dots { display: flex; gap: 9px; }
.hero__dot { width: 9px; height: 9px; border-radius: 999px; border: none; background: rgba(255,255,255,0.45); cursor: pointer; transition: all .2s ease; padding: 0; }
.hero__dot.is-active { width: 26px; background: var(--color-primary); }

/* ---- Intro ---- */
.intro { padding: 88px 0; }
.intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.intro__media { position: relative; }
.intro__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.intro__badge {
    position: absolute; right: -18px; bottom: -22px; background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-md); padding: 20px 26px; display: flex; flex-direction: column; align-items: center;
    border: 1px solid var(--color-border);
}
.intro__badge strong { font-size: 2.2rem; color: var(--color-primary-dark); line-height: 1; }
.intro__badge span { font-size: 0.8rem; color: var(--color-muted); font-weight: 600; margin-top: 4px; }
.intro__body h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 16px; }
.intro__body p { color: var(--color-muted); font-size: 1.05rem; }
.intro__actions { display: flex; gap: 22px; align-items: center; margin-top: 26px; }

/* ---- Stats ---- */
.stats { background: var(--color-dark); color: #fff; padding: 48px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat { padding: 8px; }
.stat__value { display: block; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; color: var(--color-primary); line-height: 1; }
.stat__label { color: rgba(255,255,255,0.78); font-weight: 500; font-size: 0.95rem; }

/* ---- Feature sections ---- */
.sections { padding: 88px 0 40px; }
.feature {
    display: grid; grid-template-columns: 88px 1fr; gap: 30px; align-items: start;
    padding: 44px 0; border-bottom: 1px solid var(--color-border);
}
.feature:last-child { border-bottom: none; }
.feature--flip { direction: rtl; }
.feature--flip > * { direction: ltr; }
.feature__icon {
    width: 78px; height: 78px; border-radius: var(--radius); background: var(--color-primary-soft);
    color: var(--color-primary-dark); display: grid; place-items: center;
}
.feature__icon .icon { width: 38px; height: 38px; }
.feature__body h3 { font-size: 1.6rem; margin-bottom: 12px; }
.feature__body .kicker { margin-bottom: 6px; }

/* ---- Prose (rich text) ---- */
.prose { color: var(--color-muted); }
.prose h3 { color: var(--color-ink); margin-top: 1.6em; font-size: 1.25rem; }
.prose p { margin-bottom: 1em; }
.prose ul { padding-left: 20px; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose iframe { max-width: 100%; border-radius: var(--radius); margin: 1.2em 0; }
.prose img { border-radius: var(--radius); }

/* Responsive video embeds */
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 1.6em 0; background: var(--color-dark); border-radius: var(--radius); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; margin: 0; }
.video--portrait { aspect-ratio: 9 / 16; max-width: 430px; margin-left: auto; margin-right: auto; }

/* ---- References teaser ---- */
.ref-teaser { padding: 88px 0; background: var(--color-bg-soft); }
.ref-teaser__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 34px; gap: 20px; }
.ref-teaser__head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.ref-teaser__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.ref-card {
    background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
    padding: 20px; display: flex; align-items: center; gap: 12px; font-weight: 600; box-shadow: var(--shadow-sm);
    transition: all .18s ease;
}
.ref-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ref-card .ico { color: var(--color-primary-dark); width: 20px; height: 20px; }

/* ---- CTA ---- */
.cta { padding: 72px 0; background: var(--color-primary); color: #fff; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { color: #fff; margin-bottom: 8px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta p { color: rgba(255,255,255,0.9); margin: 0; }
.cta .btn--light { flex-shrink: 0; }

/* ---- Page hero / body ---- */
.page-hero { padding: 56px 0 40px; background: var(--color-bg-soft); border-bottom: 1px solid var(--color-border); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 8px; }
.page-hero__subtitle { color: var(--color-muted); font-size: 1.1rem; margin: 0; }
.breadcrumb { display: flex; gap: 8px; font-size: 0.85rem; color: var(--color-muted); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-primary-dark); }

.page-body { padding: 56px 0 88px; }

/* ---- References page ---- */
.references__intro { font-size: 1.1rem; color: var(--color-muted); margin-bottom: 36px; }
.references { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.reference {
    display: flex; gap: 18px; align-items: flex-start; padding: 26px;
    background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.reference__marker {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
    background: var(--color-primary-soft); color: var(--color-primary-dark); display: grid; place-items: center;
}
.reference__marker svg { width: 22px; height: 22px; }
.reference h3 { font-size: 1.15rem; margin-bottom: 6px; }
.reference p { color: var(--color-muted); margin: 0; font-size: 0.95rem; }

/* ---- Gallery ---- */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.album { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); transition: all .2s ease; }
.album:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.album__media { aspect-ratio: 4/3; overflow: hidden; background: var(--color-bg-soft); }
.album__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.album:hover .album__media img { transform: scale(1.05); }
.album__body { padding: 18px 22px; }
.album__body h3 { margin-bottom: 4px; }
.album__body span { color: var(--color-primary-dark); font-size: 0.9rem; font-weight: 600; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.photo { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--color-bg-soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo:hover img { transform: scale(1.06); }
.photo__caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px;
    color: #fff; font-weight: 600; font-size: 0.9rem;
    background: linear-gradient(transparent, rgba(13,22,19,0.85));
}

/* ---- Lightbox ---- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,16,14,0.94); display: grid; place-items: center; padding: 40px; }
.lightbox[hidden] { display: none; }
.lightbox__image { max-width: 92vw; max-height: 80vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__caption { color: #fff; text-align: center; margin-top: 14px; font-weight: 500; }
.lightbox__close {
    position: absolute; top: 24px; right: 24px; width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: #fff; cursor: pointer;
    display: grid; place-items: center; transition: all .18s ease;
}
.lightbox__close:hover { background: #fff; color: var(--color-dark); }
.lightbox__close svg { width: 22px; height: 22px; }

/* ---- Contact ---- */
.contact { display: grid; grid-template-columns: 380px 1fr; gap: 28px; }
.contact__info { display: flex; flex-direction: column; gap: 16px; }
.contact__item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); }
.contact__icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--color-primary-soft); color: var(--color-primary-dark); display: grid; place-items: center; }
.contact__icon .ico { width: 22px; height: 22px; }
.contact__item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.contact__item p { margin: 0; color: var(--color-muted); }
.contact__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); min-height: 460px; box-shadow: var(--shadow-sm); }
.contact__map iframe { display: block; min-height: 460px; }

/* ---- Empty state ---- */
.empty { text-align: center; color: var(--color-muted); padding: 40px 0; font-size: 1.05rem; }

/* ---- Footer ---- */
.site-footer { background: var(--color-dark); color: rgba(255,255,255,0.8); margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding: 64px 24px 48px; }
.site-footer__brand { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.site-footer__about { color: rgba(255,255,255,0.72); max-width: 360px; }
.site-footer__contact { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.site-footer__contact a, .site-footer__contact span { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.82); }
.site-footer__contact a:hover { color: #fff; }
.site-footer__contact .ico { color: var(--color-primary); }
.site-footer__title { color: #fff; font-size: 1rem; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.04em; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__links a { color: rgba(255,255,255,0.75); }
.site-footer__links a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.site-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.site-footer__web { color: var(--color-primary); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .intro__grid { grid-template-columns: 1fr; gap: 48px; }
    .intro__badge { right: 14px; bottom: -18px; }
    .contact { grid-template-columns: 1fr; }
    .references { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
    .topbar__link--hide { display: none; }
    .nav-toggle { display: flex; }
    .nav {
        position: absolute; top: calc(var(--header-h) + 40px); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 4px; background: #fff;
        padding: 12px 16px 20px; border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md); transform: translateY(-12px); opacity: 0; pointer-events: none;
        transition: all .2s ease;
    }
    .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav__link { padding: 13px 16px; border-radius: 10px; }
    .nav__link--cta { justify-content: center; margin-top: 6px; }

    .hero { height: 72vh; min-height: 420px; }
    .hero__overlay { background: linear-gradient(180deg, rgba(13,22,19,0.35) 0%, rgba(13,22,19,0.8) 100%); }
    .hero__content { max-width: 100%; text-align: center; margin: 0 auto; }
    .hero__actions { justify-content: center; }
    .hero__nav { bottom: 18px; }

    .stats__grid { grid-template-columns: 1fr; gap: 24px; }
    .feature { grid-template-columns: 1fr; gap: 18px; }
    .feature__icon { width: 60px; height: 60px; }
    .ref-teaser__head { flex-direction: column; align-items: flex-start; }
    .cta__inner { flex-direction: column; text-align: center; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 32px; }
    .site-footer__bottom-inner { flex-direction: column; text-align: center; }
    .intro { padding: 60px 0; }
    .sections, .ref-teaser, .page-body { padding-top: 56px; }
}
