/* Site: üst bant, galeri, iletişim, footer, yasal metinler, Proje Hakkında, yukarı çık */

/* ---- Üst bant ---- */
.site-nav { background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.site-nav .site-nav-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 10px 28px; background: transparent; max-width: 100%;
}
.nav-logo { display: flex; align-items: center; flex: none; opacity: 1 !important; }
.nav-logo img { height: 58px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 28px; flex: 1; }
.nav-phones { display: flex; align-items: center; gap: 18px; flex: none; }
.site-nav .nav-phones a { font-size: 20px; font-weight: 700; letter-spacing: .3px; text-transform: none; white-space: nowrap; color: #1A775F; }
.nav-phones i { margin-right: 4px; }
.nav-toggle { display: none; }
@media (max-width: 1279px) {
    .site-nav .site-nav-inner { flex-wrap: nowrap; gap: 10px; padding: 8px 14px; }
    .nav-logo img { height: 44px; }
    .nav-phones { margin-left: auto; gap: 8px; }
    .nav-toggle {
        display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; flex: none;
        width: 44px; height: 44px; border: 0; border-radius: 50%; background: #1A775F; cursor: pointer;
    }
    .nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-toggle:focus-visible { outline: 3px solid #0d4f3e; outline-offset: 2px; }
    .site-nav .nav-links {
        position: absolute; top: 100%; left: 0; right: 0; flex: none; flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; box-shadow: 0 12px 24px rgba(0, 0, 0, .12); padding: 0 14px;
        max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
        transition: max-height .35s ease, opacity .25s ease, padding .35s ease, visibility .35s;
    }
    .site-nav .nav-links.is-open { max-height: 420px; opacity: 1; visibility: visible; padding: 6px 14px 12px; }
    .site-nav .nav-links a { padding: 14px 6px; font-size: 16px; border-bottom: 1px solid #edf0ee; text-align: left; }
    .site-nav .nav-links a:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
    .nav-ptxt { display: none; }
    .site-nav .nav-phones a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #eaf4f0; }
    .nav-phones i { margin: 0; font-size: 18px; }
    .nav-phones a:nth-child(2) { display: flex !important; }
    .nav-phones a:nth-child(2) i { color: #25D366; }
}
@media (prefers-reduced-motion: reduce) { .nav-toggle span, .site-nav .nav-links { transition: none; } }

/* ---- Galeri ---- */
.gal-tabs { display: flex; justify-content: center; gap: 12px; margin: 10px auto 28px; flex-wrap: wrap; }
.gal-tab {
    display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 150px; padding: 12px 26px;
    background: #fff; color: #1A775F; border: 1.5px solid #1A775F; border-radius: 40px;
    font-family: 'Montserrat', sans-serif; cursor: pointer;
    transition: background-color .25s, color .25s, box-shadow .25s;
}
.gal-tab strong { font-size: 15px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.gal-tab span { font-size: 12px; opacity: .85; }
.gal-tab:hover { box-shadow: 0 6px 18px rgba(26, 119, 95, .18); }
.gal-tab[aria-selected="true"] { background: #1A775F; color: #fff; }
.gal-tab:focus-visible { outline: 3px solid #0d4f3e; outline-offset: 3px; }
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; animation: galFade .4s ease; }
.gal-grid[hidden] { display: none; }
.gal-item { position: relative; display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 10; background: #dfe4ec; cursor: zoom-in; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.gal-item::after {
    content: "\f00e"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif; font-weight: 900;
    position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%;
    background: rgba(26, 119, 95, .92); color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 14px; opacity: 0; transition: opacity .25s;
}
.gal-item:hover img { transform: scale(1.06); }
.gal-item:hover::after, .gal-item:focus-visible::after { opacity: 1; }
.gal-item:focus-visible { outline: 3px solid #1A775F; outline-offset: 2px; }
@keyframes galFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 991px) { .gal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .gal-grid { grid-template-columns: 1fr; gap: 12px; } .gal-tab { min-width: 130px; padding: 10px 18px; } }
@media (prefers-reduced-motion: reduce) { .gal-grid { animation: none; } .gal-item img { transition: none; } }

/* ---- İletişim: solda bilgi paneli, sağda harita ---- */
.ct-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; background: #1A775F; font-family: 'Montserrat', Arial, sans-serif; }
.ct-info { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; padding: 56px 40px; color: #fff; text-align: center; }
.ct-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 64px; }
.ct-block { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ct-label { font-size: 21px; font-weight: 400; letter-spacing: .3px; }
.ct-strong { font-size: 19px; font-weight: 700; line-height: 1.5; color: #fff; text-decoration: none; }
a.ct-strong:hover { text-decoration: underline; }
.ct-line { width: 70%; max-width: 450px; border: 0; border-top: 1px solid rgba(255, 255, 255, .35); margin: 0; }
.ct-map { min-height: 480px; background: #dfe4e8; }
.ct-map iframe { width: 100%; height: 100%; min-height: 480px; border: 0; display: block; }
@media (max-width: 850px) {
    .ct-section { grid-template-columns: 1fr; }
    .ct-info { padding: 44px 20px; gap: 28px; }
    .ct-label { font-size: 18px; }
    .ct-strong { font-size: 17px; }
    .ct-map, .ct-map iframe { min-height: 360px; }
}

/* ---- Formdaki onay kutuları ---- */
.req { color: #c0392b; }

/* ---- Yasal metin popup'ları ---- */
.legal-popup { padding: 25px; box-sizing: border-box; max-width: 900px; font-size: 14px; line-height: 1.65; color: #222; }
.legal-popup p { margin: 0 0 10px; font-size: 14px; }
.legal-popup ul { margin: 0 0 12px 20px; padding: 0; list-style: disc; }
.legal-popup li { font-size: 14px; margin-bottom: 4px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 13px; }
.legal-table td { border: 1px solid #ccc; padding: 6px 8px; min-width: 60px; height: 28px; }
.legal-table tr:first-child td { background: #f1f4f2; font-weight: 700; }

/* ---- Yukarı çık ---- */
.back-to-top {
    position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border: 0; border-radius: 50%;
    background: #1A775F; color: #fff; cursor: pointer; z-index: 99997;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .3s, transform .3s, visibility .3s, background-color .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: #0d4f3e; }
.back-to-top:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #1A775F; }
.back-to-top svg { width: 22px; height: 22px; }
@media (max-width: 850px) { .back-to-top { bottom: 84px; right: 14px; width: 44px; height: 44px; } }

/* Galeri: başlık üstte ortada, görseller altta tam genişlikte, aralarında boşluk */
.gallerySect .container { display: block; height: auto; }
.gallerySect article {
    position: static; float: none; width: 100%; margin: 0 0 48px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.gallerySect article .title2 { text-align: center; margin-bottom: 20px; }
.gallerySect article a.download-button { display: inline-block; width: auto; margin: 0 auto; left: 0; position: static; }
.galleryWidget.gal2 { float: none; width: 100%; margin: 0; right: auto; left: auto; clear: both; }
.galleryWidget.gal2::after { display: none; }
@media (max-width: 576px) { .gallerySect article { margin-bottom: 32px; } }

/* Lightbox (kat planları + galeri) — sadece masaüstü: oklar sağ/sol kenarda, görsel alt çizginin üstünde */
@media (min-width: 851px) {
    .fancybox-container.kp-fancy .kp-nav { top: 50%; bottom: auto; transform: translateY(-50%); width: 52px; height: 52px; }
    .fancybox-container.kp-fancy .kp-nav--prev { left: 16px; right: auto; }
    .fancybox-container.kp-fancy .kp-nav--next { left: auto; right: 16px; }
    .kp-fancy .fancybox-caption-wrap { padding-top: 20px; }
    .fancybox-container.kp-fancy .fancybox-caption { text-align: center; }
    .fancybox-container.kp-fancy .fancybox-caption-wrap { text-align: center; }
}

/* ---- Formdaki logo: üstten boşluk ---- */
.form-inner .logoForm, .logoForm { margin: 32px auto 24px; }

/* ---- Footer (sade, yeni) ---- */
.site-footer.custom-footer { display: block; background: #0f4a3b; padding: 0; color: #fff; font-family: 'Montserrat', Arial, sans-serif; }
.sf-inner { max-width: 1200px; margin: 0 auto; padding: 44px 28px 22px; }
.sf-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.sf-logo { height: 64px; width: auto; display: block; }
.sf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.sf-links a, .sf-contact a { color: rgba(255, 255, 255, .86); font-size: 13px; text-decoration: none; transition: color .2s; }
.sf-links a:hover, .sf-contact a:hover { color: #fff; text-decoration: underline; }
.sf-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sf-contact a:first-child { font-size: 17px; font-weight: 700; color: #fff; }
.sf-bottom { display: flex; justify-content: center; text-align: center; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding-top: 20px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.sf-bottom a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.sf-bottom a .underline-part { text-decoration: underline; }
@media (max-width: 850px) {
    .sf-inner { padding: 34px 18px 18px; }
    .sf-top { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; }
    .sf-contact { align-items: center; }
    .sf-bottom { justify-content: center; text-align: center; }
}

/* Form paneli (320px, sağda sabit) açıkken üst bant onun altında kalmasın */
@media (min-width: 851px) {
    .site-nav { width: calc(100% - 320px); transition: width .35s ease; }
    body.form-panel-closed .site-nav { width: 100%; }
}

/* Lightbox: yüklenirken görünür, akıcı yükleme göstergesi */
.fancybox-loading { border-color: rgba(255, 255, 255, .25); border-top-color: #fff; }

/* Form paneli (masaüstü): kısa ekranlarda kesilmesin, kendi içinde kaysın */
@media (min-width: 851px) {
    .form-holder { display: block; }
    .form-inner { display: flex; flex-direction: column; height: 100%; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
    .form-inner > .form { margin: auto 0; padding: 8px 0 16px; width: 100%; }
    /* yukarı çık butonu formun üstüne binmesin */
    .back-to-top { right: 340px; transition: opacity .3s, transform .3s, visibility .3s, background-color .2s, right .35s ease; }
    body.form-panel-closed .back-to-top { right: 20px; }
}

/* Alçak masaüstü ekranlarda formu sıkılaştır (buton kesilmesin) */
@media (min-width: 851px) and (max-height: 1050px) {
    .form-inner .logoForm, .logoForm { margin: 12px auto 6px; }
    .logoForm img { width: 170px; height: auto; }
    .form-title { margin-bottom: 4px; }
    .form-title br { display: none; }
    .form-title h1 { font-size: 15px; }
    .form-title h2 { font-size: 22px; }
    .contact_form LI { margin-bottom: 10px; }
    .contact_form .form-textarea { height: 56px; min-height: 56px; }
    .etkBtn { margin-bottom: 8px !important; }
    .etkBtn label { font-size: 11px !important; line-height: 1.4; }
}
@media (min-width: 851px) and (max-height: 760px) {
    .logoForm img { width: 140px; }
    .contact_form LI { margin-bottom: 6px; }
}

/* Galeri: "Devamını Göster" */
.gal-item.gal-extra { display: none; }
.gal-item.gal-reveal { animation: galReveal .6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes galReveal { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
.gal-more {
    grid-column: 1 / -1; justify-self: center; margin-top: 12px; display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 30px; background: #fff; color: #1A775F; border: 1.5px solid #1A775F; border-radius: 40px;
    font: 700 14px 'Montserrat', Arial, sans-serif; letter-spacing: .5px; text-transform: uppercase; cursor: pointer;
    transition: background-color .25s, color .25s, box-shadow .25s;
}
.gal-more[hidden] { display: none; }
.gal-more svg { width: 18px; height: 18px; transition: transform .35s ease; }
.gal-more.is-open svg { transform: rotate(180deg); }
.gal-more:hover { background: #1A775F; color: #fff; box-shadow: 0 6px 18px rgba(26, 119, 95, .22); }
.gal-more:focus-visible { outline: 3px solid #0d4f3e; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .gal-item.gal-reveal { animation: none; } .gal-more svg { transition: none; } }

/* Sol alttaki sabit butonlar: WhatsApp (altta) → Katalog → Onay Tercihleri */
.catalog-fab {
    position: fixed; left: 24px; bottom: 96px; width: 56px; height: 56px; border-radius: 50%;
    background: #1A775F; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .25); z-index: 99998; text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.catalog-fab:hover { transform: scale(1.08); box-shadow: 0 6px 14px rgba(0, 0, 0, .32); }
.catalog-fab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #1A775F; }
.catalog-fab svg { width: 26px; height: 26px; }
.catalog-tip {
    position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); background: #333; color: #fff;
    font: 600 13px/1 'Montserrat', Arial, sans-serif; padding: 9px 12px; border-radius: 6px; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity .2s;
}
.catalog-fab:hover .catalog-tip, .catalog-fab:focus-visible .catalog-tip { opacity: 1; }
@media (max-width: 600px) { .catalog-fab { left: 27px; width: 50px; height: 50px; } .catalog-fab svg { width: 24px; height: 24px; } }

/* Üst bant: menü başlıkları ve telefonlar büyütüldü */
.site-nav .nav-links a { font-size: 15.5px; }
.nav-phones i { font-size: 16px; }
@media (min-width: 1280px) and (max-width: 1500px) {
    .site-nav .nav-links { gap: 18px; }
    .site-nav .nav-links a { font-size: 14.5px; }
    .site-nav .nav-phones { gap: 14px; }
    .site-nav .nav-phones a { font-size: 18px; }
}
@media (max-width: 1279px) { .site-nav .nav-links a { font-size: 16px; } .site-nav .nav-phones a { font-size: 15px; } }
@media (max-width: 600px) { .nav-phones i { font-size: 20px; } }
.site-nav .nav-links a { white-space: nowrap; }
@media (min-width: 1280px) and (max-width: 1380px) {
    .site-nav .nav-links { gap: 14px; }
    .site-nav .nav-links a { font-size: 14px; }
    .site-nav .nav-phones { gap: 10px; }
    .site-nav .nav-phones a { font-size: 16px; }
    .site-nav .site-nav-inner { gap: 14px; padding-left: 20px; padding-right: 20px; }
}

/* ---- Proje Hakkında — ferah kart düzeni (yazı görselin üzerine binmez) ---- */
.pb-section { background: #fff; padding: 96px 0 88px; font-family: 'Montserrat', Arial, sans-serif; }
.pb-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.pb-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.pb-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #1A775F; margin-bottom: 14px; }
.pb-head h2 { margin: 0; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.2; font-weight: 700; color: #1d2b27; }
.pb-head h2 em { font-style: normal; color: #1A775F; }
.pb-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 56px 40px; }
.pb-tile { grid-column: span 2; display: flex; flex-direction: column; }
.pb-tile:nth-child(4) { grid-column: 2 / span 2; }
.pb-tile:nth-child(5) { grid-column: 4 / span 2; }
.pb-tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; border-radius: 16px; box-shadow: 0 14px 34px rgba(0, 0, 0, .10); }
.pb-txt { padding: 28px 4px 0; }
.pb-n { display: block; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: #1A775F; margin-bottom: 10px; }
.pb-txt h3 { margin: 0 0 14px; font-size: 22px; line-height: 1.3; font-weight: 700; color: #1d2b27; }
.pb-txt p { margin: 0; font-size: 15.5px; line-height: 1.8; color: #5a6662; }
.pb-nav { display: none; }
@media (max-width: 1100px) {
    .pb-grid { gap: 48px 28px; }
    .pb-txt h3 { font-size: 20px; }
    .pb-txt p { font-size: 15px; }
}
@media (max-width: 850px) {
    .pb-section { padding: 56px 0 40px; }
    .pb-wrap { padding: 0; }
    .pb-head { padding: 0 24px; margin-bottom: 28px; }
    /* telefonda yana kaydırmalı kartlar */
    .pb-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 24px 18px; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; overscroll-behavior-x: contain; cursor: grab; }
    .pb-tile, .pb-tile:nth-child(4), .pb-tile:nth-child(5) { grid-column: auto; flex: 0 0 84%; scroll-snap-align: center; background: #f6f9f8; border-radius: 18px; overflow: hidden; }
    .pb-tile img { border-radius: 0; box-shadow: none; aspect-ratio: 4 / 3; }
    .pb-txt { padding: 22px 22px 26px; }
    .pb-txt h3 { font-size: 19px; }
    .pb-txt p { font-size: 15px; line-height: 1.7; }
    .pb-nav { display: flex; justify-content: center; gap: 14px; margin-top: 10px; }
    .pb-nav button {
        width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid #1A775F; background: #fff; color: #1A775F; cursor: pointer;
        display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s;
    }
    .pb-nav button:active { background: #1A775F; color: #fff; }
    .pb-nav svg { width: 20px; height: 20px; }
}
.nav-phones i { font-size: 18px; }
@media (max-width: 1279px) { .site-nav .nav-phones a { font-size: 16px; } }

/* Üst bant (masaüstü): numaralar ekran genişliğine göre büyür; menü buna yer açar */
@media (min-width: 1280px) {
    .site-nav .nav-phones a { font-size: clamp(20px, 1.75vw, 28px); font-weight: 800; }
    .nav-phones i { font-size: clamp(19px, 1.6vw, 26px); }
    .site-nav .nav-phones { gap: clamp(10px, 1vw, 22px); }
    .site-nav .nav-links { gap: clamp(10px, .9vw, 24px); }
    .site-nav .nav-links a { font-size: clamp(12.5px, .9vw, 15px); }
}
}

/* Hamburger düzeninde (601–1279px) numaralar da büyük */
@media (min-width: 601px) and (max-width: 1279px) {
    .site-nav .nav-phones a { font-size: 15px; font-weight: 700; }
    .nav-phones i { font-size: 15px; }
    .site-nav .nav-phones { gap: 14px; }
}

/* Numara yazısı span içinde: eski style.css tüm span'leri 13px yapıyor, bağlanın boyutunu devral */
.nav-ptxt { font-size: inherit; font-weight: inherit; line-height: inherit; }
/* 1280–1365px: numara yazısı gerçekten büyük olduğu için burada biraz daha kısık tut (taşmasın) */
@media (min-width: 1280px) and (max-width: 1365px) {
    .site-nav .nav-phones a { font-size: 19px; }
    .nav-phones i { font-size: 18px; }
    .site-nav .nav-phones { gap: 10px; }
}

/* Üst bant son ayar: menü başlıkları ve numaralar birlikte büyür, tek satıra sığar */
@media (min-width: 1280px) {
    .site-nav .nav-links { gap: clamp(10px, .85vw, 22px); }
    .site-nav .nav-links a { font-size: clamp(13px, 1.03vw, 17px); }
    .site-nav .nav-phones { gap: clamp(10px, .8vw, 20px); }
    .site-nav .nav-phones a { font-size: 15px; font-weight: 700; }
    .nav-phones i { font-size: 15px; }
}
