/*
 * Kebap Hocası — public site teması (özgün kod).
 * Tipografi ve renkler layout'ta settings'ten üretilen CSS değişkenleriyle gelir:
 * --font-heading, --font-body, --fs-*, --c-accent, --c-bg, --c-dark, --c-text
 */

/* ---- Sıfırlama ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body, 'Lora', serif);
    font-size: var(--fs-base, 16px);
    line-height: 1.7;
    color: var(--c-text, #333);
    background: var(--c-bg, #fff);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-accent); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }
iframe { border: 0; display: block; }
.font-heading { font-family: var(--font-heading, 'Cinzel', serif); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- Üst bar + header ------------------------------------------------------- */

.site-header {
    position: relative;
    z-index: 50;
    background: var(--c-dark);
    color: #fff;
}
.site-header.transparent {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: transparent;
}
.site-header.transparent .main-bar { background: transparent; }

.top-bar {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    font-size: 12px;
}
.top-bar-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    gap: 12px;
}
.top-social { display: flex; gap: 4px; }
.top-social a, .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    color: rgba(255, 255, 255, .75);
}
.top-social a:hover, .footer-social a:hover { color: var(--c-accent); }
.top-social svg, .footer-social svg { width: 15px; height: 15px; }
.top-info { display: flex; align-items: center; gap: 18px; }
.top-info-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .8);
    letter-spacing: .3px;
}
.top-info-item svg { width: 13px; height: 13px; color: var(--c-accent); }

.main-bar { background: rgba(0, 0, 0, .25); transition: background .3s; }
.main-bar-in {
    display: flex;
    align-items: center;
    min-height: 88px;
    gap: 24px;
}

/* Kaydırınca yapışkan koyu header */
body.scrolled .site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--c-dark);
    box-shadow: 0 2px 14px rgba(0, 0, 0, .35);
    animation: headerIn .25s ease-out;
}
body.scrolled .site-header .top-bar { display: none; }
body.scrolled.is-sub { padding-top: 128px; }
@keyframes headerIn { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* Metin logo */
.logo a { display: flex; flex-direction: column; line-height: 1.15; }
.logo img { max-height: 56px; width: auto; }
.logo-title {
    font-family: var(--font-heading);
    font-size: 26px;
    letter-spacing: 1px;
    color: #fff;
}
.logo-sub {
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--c-accent);
}

/* Navigasyon */
.site-nav { margin-left: auto; }
.site-nav > ul { display: flex; gap: 4px; }
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a {
    display: block;
    padding: 12px 16px;
    font-size: var(--fs-menu, 13px);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .9);
}
.site-nav > ul > li > a:hover, .site-nav > ul > li > a.active { color: var(--c-accent); }
.site-nav .sub {
    position: absolute;
    top: 100%; left: 0;
    min-width: 230px;
    background: var(--c-dark);
    border-top: 2px solid var(--c-accent);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .22s ease;
    z-index: 60;
}
.site-nav .has-sub:hover > .sub, .site-nav .has-sub:focus-within > .sub {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.site-nav .sub a {
    display: block;
    padding: 11px 18px;
    font-size: 13px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .85);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-nav .sub a:hover { color: var(--c-accent); padding-left: 24px; }

/* Hamburger (mobil) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    padding: 6px;
    background: none;
    border: 0;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s;
    z-index: 40;
}
body.nav-open .nav-overlay { opacity: 1; visibility: visible; }

/* ---- Hero slider ------------------------------------------------------------ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 540px;
    overflow: hidden;
    background: var(--c-dark);
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.4s ease, transform 7s linear;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .15) 45%, rgba(0, 0, 0, .65) 100%);
}
.hero-info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
}
.hero-info h1 {
    font-size: var(--fs-h1, 64px);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: .3em;
}
.hero-info p { max-width: 640px; font-size: 17px; letter-spacing: .5px; }
.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    width: 26px; height: 42px;
    border: 2px solid rgba(255, 255, 255, .7);
    border-radius: 14px;
}
.hero-scroll span {
    position: absolute;
    left: 50%; top: 8px;
    width: 4px; height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: #fff;
    animation: wheel 1.6s infinite;
}
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---- Bölüm başlıkları --------------------------------------------------------- */

.section { padding: 84px 0; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title .subtitle {
    font-style: italic;
    color: var(--c-accent);
    font-size: 17px;
    margin-bottom: .2em;
}
.section-title h2, .section-title .font-heading { font-size: var(--fs-h2, 36px); letter-spacing: 1.5px; }

/* ---- Kategori karuseli --------------------------------------------------------- */

.cat-carousel-outer { position: relative; }
.cat-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(25% - 23px);
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.cat-carousel::-webkit-scrollbar { display: none; }
.cat-card {
    position: relative;
    display: block;
    overflow: hidden;
    scroll-snap-align: start;
    aspect-ratio: 2 / 3;
    background: var(--c-dark);
}
.cat-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.cat-card:hover img { transform: scale(1.07); }
.cat-card h3 {
    position: absolute;
    top: 26px; left: 0; right: 0;
    z-index: 2;
    text-align: center;
    color: #fff;
    font-size: 21px;
    letter-spacing: 1px;
    padding: 0 12px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.cat-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 45%);
    transition: background .4s;
}
.cat-card:hover .cat-fade {
    background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .1) 60%);
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px; height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background .2s;
}
.carousel-arrow:hover { background: var(--c-accent); }
.carousel-arrow.prev { left: -14px; }
.carousel-arrow.next { right: -14px; }

/* ---- Promo slider (paralaks) ---------------------------------------------------- */

.promo { position: relative; overflow: hidden; min-height: 420px; }
.promo-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.promo-slide.active { opacity: 1; position: relative; }
.promo-bg {
    position: absolute;
    inset: -12% 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
}
.promo-slide::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.promo-panel {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin: 90px auto;
    background: var(--c-bg);
    padding: 52px 44px;
    text-align: center;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.promo-panel h2 { font-size: 30px; letter-spacing: 1px; }
.promo .carousel-arrow.prev { left: 22px; }
.promo .carousel-arrow.next { right: 22px; }

/* ---- Telefon bandı ----------------------------------------------------------- */

.phone-band {
    background: var(--c-dark);
    color: #fff;
    text-align: center;
    padding: 64px 0;
}
.phone-band h2 { font-size: var(--fs-h2, 36px); letter-spacing: 1px; margin: 0; }

/* ---- Harita -------------------------------------------------------------------- */

.map-band iframe { width: 100%; height: 450px; }

/* ---- Alt sayfa başlığı ----------------------------------------------------------- */

.page-head {
    position: relative;
    background: var(--c-dark) center/cover no-repeat;
    color: #fff;
    padding: 170px 0 70px;
    text-align: center;
}
.page-head.compact { padding: 150px 0 54px; }
.page-head-shade { position: absolute; inset: 0; background: rgba(15, 15, 26, .62); }
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { font-size: 42px; letter-spacing: 2px; margin-bottom: .2em; }
.crumbs { font-size: 13px; letter-spacing: 1px; color: rgba(255, 255, 255, .75); }
.crumbs span { margin: 0 8px; opacity: .5; }
.crumbs a:hover { color: var(--c-accent); }

/* ---- Ürün listesi (orijinal düzen: fiyat görsel üzerinde, ad + açıklama altta) ---- */

.cat-desc { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.p-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px 30px;
}
.p-list.four { grid-template-columns: repeat(4, 1fr); }
.p-item { text-align: center; }
.p-img {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: #f5f5f5;
}
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.p-item:hover .p-img img { transform: scale(1.06); }
.p-price {
    position: absolute;
    left: 0;
    bottom: 14px;
    background: var(--c-accent);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .5px;
    padding: 6px 14px;
}
.p-desc { padding: 16px 10px 0; }
.p-desc h2 {
    font-family: var(--font-body);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .3px;
    margin-bottom: .3em;
}
.p-desc h2 a:hover { color: var(--c-accent); }
.p-desc p { font-size: 14px; color: #777; margin: 0; }
.product-price {
    font-family: var(--font-heading);
    color: var(--c-accent);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}
.product-price.big { font-size: 30px; margin-bottom: .6em; }
.empty-note { text-align: center; color: #777; padding: 40px 0; }

/* Kategori geçiş bağlantıları */
.cat-switch {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 56px;
    padding-top: 34px;
    border-top: 1px solid #eee;
}
.cat-switch.top {
    margin: 0 0 44px;
    padding-top: 0;
    border-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}
.cat-switch a {
    padding: 9px 18px;
    border: 1px solid #ddd;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.cat-switch a:hover, .cat-switch a.active {
    background: var(--c-dark);
    border-color: var(--c-dark);
    color: #fff;
}

/* ---- Ürün detay -------------------------------------------------------------------- */

.product-detail {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: start;
}
.product-detail-img img { width: 100%; }
.product-detail-info h2 { font-size: 32px; }
.lead { font-size: 18px; font-style: italic; color: #555; }
.btn-outline {
    display: inline-block;
    margin-top: 14px;
    padding: 11px 22px;
    border: 1px solid var(--c-accent);
    color: var(--c-accent);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all .2s;
}
.btn-outline:hover { background: var(--c-accent); color: #fff; }
.related { margin-top: 72px; }
.related > h3 { text-align: center; font-size: 26px; margin-bottom: 34px; }

/* ---- Menü genel bakış ---------------------------------------------------------------- */

.menu-group { margin-bottom: 72px; scroll-margin-top: 140px; }
.menu-group:last-child { margin-bottom: 0; }
.menu-group .section-title { margin-bottom: 30px; }
.menu-group .section-title a:hover { color: var(--c-accent); }

/* ---- Kampanyalar ----------------------------------------------------------------- */

.campaign-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.campaign-card {
    border: 1px solid #eee;
    background: var(--c-bg);
    transition: box-shadow .25s, transform .25s;
}
.campaign-card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .12); transform: translateY(-3px); }
.campaign-thumb { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #f5f5f5; }
.campaign-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.campaign-card:hover .campaign-thumb img { transform: scale(1.06); }
.campaign-body { padding: 22px 24px 26px; }
.campaign-body h2 { font-size: 21px; }
.campaign-detail { max-width: 820px; }
.campaign-dates { color: #777; font-size: 14px; }
.rich-text { margin: 1.2em 0; }
.rich-text h2, .rich-text h3 { font-family: var(--font-heading); margin-top: 1.2em; }
.rich-text ul, .rich-text ol { margin: 0 0 1em 1.4em; }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text img { margin: 1em 0; }
.rich-text blockquote {
    border-left: 3px solid var(--c-accent);
    margin: 1.2em 0;
    padding: .3em 0 .3em 1.2em;
    color: #666;
    font-style: italic;
}

/* ---- Galeri ---------------------------------------------------------------------- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.gallery-item { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: #f0f0f0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.06); }
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10, 10, 14, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; box-shadow: 0 20px 70px rgba(0, 0, 0, .6); }
.lightbox-close {
    position: absolute;
    top: 18px; right: 26px;
    background: none;
    border: 0;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
}

/* ---- İletişim ---------------------------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.contact-card {
    text-align: center;
    border: 1px solid #eee;
    padding: 40px 26px;
}
.contact-card h2 { font-size: 20px; letter-spacing: 1px; color: var(--c-accent); }
.contact-card a:hover { color: var(--c-accent); }

/* ---- Footer ----------------------------------------------------------------------- */

.site-footer { background: var(--c-dark); color: rgba(255, 255, 255, .8); }
.footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 70px 20px 50px;
}
.footer-col h2 { color: #fff; font-size: 21px; letter-spacing: 1px; margin-bottom: 1em; }
.footer-contact li { padding: 4px 0; }
.footer-contact .hours { color: var(--c-accent); margin-top: 10px; }
.footer-social { display: flex; gap: 6px; }
.footer-social a {
    width: 38px; height: 38px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
}
.footer-social a:hover { border-color: var(--c-accent); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 20px 0;
    font-size: 13px;
    text-align: center;
    color: rgba(255, 255, 255, .5);
}
.footer-bottom p { margin: 0; }

/* ---- Yüzen WhatsApp butonu -------------------------------------------------------- */

.wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 150;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    padding: 12px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .3);
    transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.wa-float svg { width: 20px; height: 20px; }

/* ---- Mobil ------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .cat-carousel { grid-auto-columns: calc(33.333% - 20px); }
    .p-list, .p-list.four { grid-template-columns: repeat(2, 1fr); }
    .hero-info h1 { font-size: calc(var(--fs-h1, 64px) * .7); }
}

@media (max-width: 768px) {
    .top-info { display: none; }
    .top-bar-in { justify-content: center; }
    .main-bar-in { min-height: 68px; gap: 14px; }
    .nav-toggle { display: flex; }
    .logo { margin-right: auto; }
    .logo-title { font-size: 21px; }

    .site-nav {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        width: min(300px, 84vw);
        background: var(--c-dark);
        padding: 84px 0 30px;
        transform: translateX(-100%);
        transition: transform .28s ease;
        overflow-y: auto;
        z-index: 45;
        margin-left: 0;
    }
    body.nav-open .site-nav { transform: translateX(0); }
    .site-nav > ul { flex-direction: column; gap: 0; }
    .site-nav > ul > li > a { padding: 14px 26px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
    .site-nav .sub {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: 0;
        background: rgba(0, 0, 0, .25);
        display: none;
    }
    .site-nav .has-sub.open > .sub { display: block; }
    .site-nav .sub a { padding-left: 42px; }

    .hero { height: 78vh; min-height: 440px; }
    .hero-info h1 { font-size: calc(var(--fs-h1, 64px) * .5); letter-spacing: 1.5px; }
    .hero-info p { font-size: 15px; }

    .section { padding: 56px 0; }
    .cat-carousel { grid-auto-columns: calc(60% - 12px); gap: 16px; }
    .carousel-arrow { display: none; }
    .promo-panel { margin: 60px 20px; padding: 38px 26px; }
    .p-list, .p-list.four { grid-template-columns: 1fr; }
    .campaign-grid { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; gap: 28px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; padding: 50px 20px 36px; }
    .page-head { padding: 130px 0 48px; }
    .page-head.compact { padding: 110px 0 42px; }
    .page-head h1 { font-size: 30px; }
    .phone-band h2 { font-size: 24px; }
    .map-band iframe { height: 320px; }
    body.scrolled.is-sub { padding-top: 68px; }
}

@media (max-width: 420px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .cat-carousel { grid-auto-columns: calc(80% - 8px); }
    .wa-float span { display: none; }
    .wa-float { padding: 13px; border-radius: 50%; }
}
