/*
 * VEO Yapı teması — Porto (web/default) üzerine yüklenir.
 * Eski veoyapi.com tasarımı (Bootstrap 5 + style.css) birebir korunur; eski CSS'teki
 * global header/footer/a seçicileri Porto bileşenlerini bozmasın diye veo- önekiyle scope'landı.
 */

/* ---------- Marka renkleri: Porto bileşenleri var(--primary) okur ---------- */
:root {
    --veo-main: #537b4f;
    --veo-second: #545454;
    --veo-third: #f5f5f5;
    --veo-footer-text: #fff;

    --primary: #537b4f;
    --primary-100: #4a6e47;
    --primary-200: #466843;
    --primary-300: #42623f;
    --primary--100: #5b8756;
    --primary--200: #63935e;
    --primary--300: #6b9f66;
    --primary-rgba-10: rgba(83, 123, 79, .1);
    --primary-rgba-20: rgba(83, 123, 79, .2);
    --primary-rgba-30: rgba(83, 123, 79, .3);
    --primary-rgba-50: rgba(83, 123, 79, .5);
    --primary-rgba-80: rgba(83, 123, 79, .8);
    --secondary: #545454;
    --bs-primary: #537b4f;
    --bs-primary-rgb: 83, 123, 79;
    --bs-link-color: #537b4f;
    --bs-link-color-rgb: 83, 123, 79;
}

/* Eski site saf Bootstrap 5 tipografisini kullanıyordu: sistem fontu, 16px, koyu metin,
   orta kalınlıkta başlıklar. Porto'nun ince başlık / gri metin varsayılanları geri alınır. */
body,
h1, h2, h3, h4, h5, h6,
.veo-header, .veo-footer {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body {
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
}
.main p, .veo-home p { color: #212529; font-size: 1rem; line-height: 1.5; }
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
    line-height: 1.2;
    color: inherit;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }

a { color: var(--veo-main); }

/* Eski site Bootstrap 5 konteyner genişliklerini kullanıyordu (Porto 1140px'te durur) */
@media (min-width: 1400px) {
    /* Porto'nun seçicisiyle aynı özgüllük gerekir */
    .container:not(.container-bs):not(.container-xl-custom):not(.container-xxl-custom) { max-width: 1320px; }
}

/* ---------- Eski içeriklerde (HTML bloklar / sayfalar) kullanılan yardımcı sınıflar ---------- */
.bg-main-color { background-color: var(--veo-main) !important; }
.bg-second-color { background-color: var(--veo-second) !important; }
.bg-third-color { background-color: var(--veo-third) !important; }
.text-main-color { color: var(--veo-main) !important; }
.text-second-color { color: var(--veo-second) !important; }
.border-start-1 { border-left: 1px solid var(--veo-second); }
.vh-70 { height: 70vh !important; }
.img-responsive { max-width: 100%; height: auto; }

/* ---------- Header ---------- */
.veo-header {
    position: relative;
    z-index: 20;
    padding-top: 10px;
}
/* Logo eski sitedeki gibi kolon genişliğinde ve header'ın altındaki görselin üzerine taşar */
.veo-header__logo { display: block; }
.veo-header__logo img { width: 100%; max-width: 190px; position: relative; z-index: 21; }

/* Sağ üst: "360 Görüntüle" vb. (Admin > CMS > Html Bloklar: header_top_bar) */
.veo-header__top { display: flex; justify-content: flex-end; gap: 10px; }
.veo-header__top .veo-contact-btn { width: 200px; }

/* Header'ın altındaki ilk görsel (ana sayfa slider'ı, sayfa banner'ı) header'ın altına kayar */
.veo-overlap { margin-top: -4%; }

@media (max-width: 991.98px) {
    .veo-header { padding-bottom: 10px; }
    .veo-overlap { margin-top: 0; }
}

/* ---------- Menü ---------- */
.veo-menu { position: relative; text-align: end; }
.veo-menu ul { list-style: none; margin: 0; padding: 0; }
.veo-menu__toggle { display: none; }
.veo-menu__link,
.veo-menu__dropdown a {
    display: block;
    white-space: nowrap;
    color: green;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
}
.veo-menu__link:hover,
.veo-menu__dropdown a:hover { color: var(--primary-200); }
.veo-menu__burger { display: none; }

@media (min-width: 992px) {
    .veo-menu__list > li { display: inline-block; position: relative; }
    .veo-menu__link { padding: 15px 0 15px 40px; margin: 0; }
    .veo-menu__dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        text-align: start;
        background: #fff;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
        animation: veoGrow .3s ease-in-out;
    }
    .veo-menu__item--dropdown:hover > .veo-menu__dropdown,
    .veo-menu__item--dropdown:focus-within > .veo-menu__dropdown { display: block; }
    .veo-menu__dropdown a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(29, 107, 0, .1);
    }
}

@media (max-width: 991.98px) {
    .veo-menu__burger {
        display: inline-block;
        padding: 10px 14px;
        font-size: 22px;
        color: var(--veo-main);
        cursor: pointer;
        margin: 0;
    }
    .veo-menu__list {
        display: none;
        position: absolute;
        right: 0;
        top: 100%;
        width: min(90vw, 320px);
        background: #fff;
        text-align: start;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    }
    #veoMenuToggle:checked ~ .veo-menu__list { display: block; animation: veoGrow .3s ease-in-out; }
    .veo-menu__link { padding: 15px 20px; margin: 0; border-bottom: 1px solid rgba(29, 107, 0, .1); }
    .veo-menu__dropdown { display: none; }
    .veo-menu__toggle:checked ~ .veo-menu__dropdown { display: block; }
    .veo-menu__dropdown a { padding: 12px 20px 12px 32px; background: var(--veo-main); color: #fff; }
}

@keyframes veoGrow {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- Ana sayfa bölümleri (CMS HTML bloklarında kullanılan id'ler) ---------- */
#image-section { background-size: cover; background-position: center; }
#card-section { margin-top: -5%; position: relative; z-index: 2; }
#contact-section iframe { min-height: 360px; border: 0; }
@media (max-width: 767.98px) {
    #card-section { margin-top: 5%; }
}

/* ---------- Bilgi sayfaları ---------- */
.veo-page__title { margin: 3rem 0 1rem; text-align: center; color: var(--veo-main); font-weight: 500; font-size: 2.5rem; }
.veo-page__content { padding-bottom: 2rem; }
.veo-page__content iframe { width: 100%; min-height: 360px; border: 0; }
.veo-child-card { border: 0; background: var(--veo-third); height: 100%; transition: transform .2s; }
.veo-child-card:hover { transform: translateY(-4px); }
.veo-child-card img { aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Footer ---------- */
.veo-footer {
    margin-top: 3rem;
    background-color: var(--veo-second);
    color: var(--veo-footer-text);
}
.veo-footer h4 { color: var(--veo-footer-text); font-size: 1.5rem; margin-bottom: .5rem; }
.veo-footer hr { border-top: 2px solid #fff; opacity: .25; margin: 1rem 0; }
.veo-footer ul { list-style: none; padding-left: 0; margin: 0; }
.veo-footer li { margin: 0; line-height: 1.5; }
.veo-footer a { color: var(--veo-footer-text); }
.veo-footer a:hover { color: var(--veo-third); text-decoration: underline; }
.veo-footer__logo { max-height: 200px; }
.veo-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .15); font-size: .85rem; }

/* ---------- Sağda sabit "Sizi arayalım" formu ---------- */
.veo-callback__toggle {
    position: fixed;
    top: 20%;
    right: 0;
    z-index: 9999;
    padding: 0;
    border: 0;
    background: transparent;
    transition: right .5s;
}
.veo-callback__panel {
    position: fixed;
    top: 20%;
    right: -100%;
    z-index: 9999;
    width: 338px;
    max-width: calc(100vw - 60px);
    padding: 30px;
    border-radius: 10px;
    background: var(--veo-main);
    box-shadow: 1px 0 5px #000;
    transition: right .5s;
}
.veo-callback__panel h5 { color: #fff; margin-bottom: 1rem; }
.veo-callback.is-open .veo-callback__panel { right: 0; }
.veo-callback.is-open .veo-callback__toggle { right: min(338px, calc(100vw - 60px)); }
.veo-callback__message { font-size: .85rem; }

