/* === Tema Değişkenleri === */
:root{--color-primary:153 27 27;--color-secondary:42 24 16;--color-accent:217 119 6;--radius-base:1rem;--radius-button:9999px;--font-body:"Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, Cambria, serif;--font-brand:"Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, Cambria, serif;}

/* === Global Özel CSS === */
/* =====================================================================
   Besni Hazır Yemek · Anadolu Sofrası
   Tema motoru katmanı: renkler, yazı tipleri, zemin ve tüm bileşenlerin uyumu.
   ===================================================================== */
:root {
    --color-primary: 164 81 47;
    --color-secondary: 57 41 31;
    --color-accent: 182 93 60;
    --radius-base: 10px;
    --radius-button: 999px;
    --font-body: "Segoe UI", "Gill Sans Nova", Seravek, Ubuntu, Calibri, "Noto Sans", Roboto, sans-serif;
    --font-brand: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", serif;
    --t-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", serif;
    --t-primary: #A4512F;
    --t-on-primary: #FFFFFF;
    --t-cta: #B65D3C;
    --t-on-cta: #FFF8EE;
    --t-accent: #B65D3C;
    --t-secondary: #39291F;
    --t-bg: #F7F0E4;
    --t-surface: #FFFAF2;
    --t-surface-2: #F0E6D4;
    --t-surface-3: #E8DCC6;
    --t-ink: #2E2018;
    --t-text: #4A3A2E;
    --t-text-2: #5A4A3E;
    --t-muted: #83705F;
    --t-line: #E0D2BB;
    --t-header-bg: rgb(247 240 228 / 0.95);
    --t-nav: #39291F;
    --t-footer-bg: #2E2018;
    --t-menu-bg: var(--t-surface);
    --t-menu-ink: var(--t-nav);
    --t-shadow: 0 1px 0 rgb(57 41 31 / 0.06), 0 16px 32px -20px rgb(57 41 31 / 0.45);
}

html body[class], html body {
    background-color: var(--t-bg);
    color: var(--t-text);
}

::selection {
    background: var(--t-cta);
    color: var(--t-on-cta);
}

/* ---------- Yazı ---------- */
h1, h2, h3, h4 {
    font-family: var(--t-head);
}

h1, main#main-content h2 {
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    
}

main#main-content h3 {
    font-weight: 650;
    letter-spacing: -0.005em;
    text-transform: none;
}

/* ---------- Nötr renkler: site sınıfları tema zeminine uyar ---------- */
body .bg-white { background-color: var(--t-surface); }
body .bg-slate-50 { background-color: var(--t-surface-2); }
body .bg-slate-100 { background-color: var(--t-surface-3); }
body .hover\:bg-slate-50:hover, body .hover\:bg-white:hover { background-color: var(--t-surface-2); }
body .hover\:bg-slate-100:hover { background-color: var(--t-surface-3); }
body .text-slate-900, body .text-slate-800 { color: var(--t-ink); }
body .text-slate-700 { color: var(--t-text); }
body .text-slate-600 { color: var(--t-text-2); }
body .text-slate-500, body .text-slate-400 { color: var(--t-muted); }
body .text-secondary { color: var(--t-ink); }
body .border-slate-100, body .border-slate-200, body .border-slate-300,
body .border-slate-200\/80, body .divide-slate-200 > * + * { border-color: var(--t-line); }
body .ring-slate-200, body .ring-slate-300, body .ring-slate-900\/5, body .ring-slate-900\/10 { --tw-ring-color: var(--t-line); }
body .prose { --tw-prose-body: var(--t-text); --tw-prose-headings: var(--t-ink); --tw-prose-bold: var(--t-ink); --tw-prose-links: var(--t-primary); --tw-prose-bullets: var(--t-accent); --tw-prose-counters: var(--t-muted); --tw-prose-quotes: var(--t-ink); --tw-prose-quote-borders: var(--t-accent); --tw-prose-hr: var(--t-line); --tw-prose-th-borders: var(--t-line); --tw-prose-td-borders: var(--t-line); }

/* Editör içeriğindeki başlıklar (prose-headings:text-secondary) tema başlık rengini alır */
body main .prose :is(h1, h2, h3, h4) { color: var(--t-ink); }
body main .prose a { color: var(--t-primary); }

/* Ana renk zemini üzerindeki yazılar (sarı gibi açık ana renklerde koyu yazı) */
body .bg-primary, body .bg-primary .text-white, body .bg-primary [class*="text-white"] { color: var(--t-on-primary); }

/* ---------- Üst menü ---------- */
[data-site-header][class] {
    background-color: var(--t-header-bg);
    border-bottom-color: var(--t-line);
    
}
[data-site-header] nav a, [data-site-header] nav button { color: var(--t-nav); }
[data-site-header] nav a.text-primary, [data-site-header] nav a:hover { color: var(--t-primary); }
[data-site-header] .text-secondary, [data-site-header] [class*="text-secondary"] { color: var(--t-nav); }
[data-site-header] nav .w-60, [data-site-header] [data-mobile-nav] { background-color: var(--t-menu-bg); }
[data-site-header] nav .w-60 a, [data-site-header] [data-mobile-nav] a, [data-site-header] [data-mobile-nav] button { color: var(--t-menu-ink); }
[data-site-header] [data-mobile-nav] a.text-primary, [data-site-header] nav .w-60 a.text-primary { color: var(--t-primary); }
[data-site-header] > div.bg-secondary { background-color: #39291F; }

/* ---------- Butonlar ---------- */
a.rounded-button.bg-primary, button.rounded-button.bg-primary, button.bg-primary, [data-site-header] a.bg-primary {
    background-color: var(--t-cta);
    color: var(--t-on-cta);
    letter-spacing: .02em; box-shadow: 0 8px 18px -10px rgb(182 93 60 / 0.8);
}
a.rounded-button.bg-primary:hover, button.bg-primary:hover, [data-site-header] a.bg-primary:hover {
    background-color: var(--t-cta);
    filter: brightness(1.06);
}

/* ---------- Formlar ---------- */
body .form-input, body .form-textarea, body .form-select, body input[type="text"], body input[type="email"], body input[type="tel"], body textarea, body select {
    background-color: var(--t-surface);
    color: var(--t-ink);
    border-color: var(--t-line);
}
body ::placeholder { color: var(--t-muted); opacity: 1; }

/* ---------- Yemek menüsü kategori başlıkları (satır içi renk yerine tema rengi) ---------- */
main#main-content [data-menu-heading] { background-color: #39291F !important; color: #F7F0E4 !important; }
main#main-content [data-menu-heading] h3 { color: inherit; }

/* ---------- Koyu bantlar ve alt bilgi ---------- */
footer.bg-secondary { background-color: var(--t-footer-bg); }

/* ---------- Sekmeler ve menü ---------- */
body .aria-selected\:bg-white[aria-selected="true"] { background-color: var(--t-surface); }
body .aria-selected\:text-secondary[aria-selected="true"] { color: var(--t-ink); }
/* Menü: geniş ekranda tek satır; daha darda sıkılaşır, gerekirse satır kırar (taşma olmaz) */
@media (min-width: 1024px) and (max-width: 1439px) {
    [data-site-header] nav a { padding-inline: .5rem; font-size: .875rem; }
}
@media (min-width: 1536px) {
    [data-site-header] a.bg-primary, [data-site-header] a[href^="tel:"] { white-space: nowrap; }
}

/* ---------- Hareket azaltma tercihi ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body .ring-white { --tw-ring-color: var(--t-bg); }
body .bg-slate-200 { background-color: var(--t-line); }

/* ===================== ANADOLU SOFRASI — imza ===================== */
/* Bölüm başlıkları: ince süs çizgisi ve baklava; üst başlık italik kiremit */
main#main-content h2[id^="home-section-"]::after {
    content: "◆"; display: block; width: 150px; margin-top: 14px; color: #B65D3C; font-size: 10px; line-height: 1; text-align: center;
    background: linear-gradient(#C9A98A, #C9A98A) left center / 62px 1px no-repeat, linear-gradient(#C9A98A, #C9A98A) right center / 62px 1px no-repeat;
}
main#main-content .text-center h2[id^="home-section-"]::after { margin-inline: auto; }
main#main-content h2[id^="home-section-"] + p.text-primary, main#main-content p.text-primary.font-medium {
    font-family: var(--t-head); font-style: italic; font-size: 1.05rem; color: #A4512F;
}

/* Kartlar: kâğıt, çift çizgi çerçeve */
main#main-content .rounded-theme.border, main#main-content article.group {
    background: #FFFAF2; border-color: #E0D2BB; box-shadow: var(--t-shadow); outline: 1px solid #E0D2BB; outline-offset: -7px;
}
main#main-content article.group img, main#main-content [data-lightbox-group] img { transition: transform 1.2s ease; }
main#main-content article.group:hover img { transform: scale(1.05); }
main#main-content .bg-primary\/10 { background: #F3E3D6; color: #A4512F; }

/* İç sayfa başlığı: krem, altta kilim şeridi */
main#main-content header.bg-slate-50 { background: #F0E6D4; position: relative; border: 0; padding-bottom: 14px; }
main#main-content header.bg-slate-50::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: linear-gradient(135deg, #657348 25%, transparent 25%) -12px 0 / 24px 24px, linear-gradient(225deg, #657348 25%, transparent 25%) -12px 0 / 24px 24px, linear-gradient(315deg, #B65D3C 25%, transparent 25%) 0 0 / 24px 24px, linear-gradient(45deg, #B65D3C 25%, transparent 25%) 0 0 / 24px 24px, #F7F0E4; background-size: 24px 24px; opacity: .85; }

/* SSS: kâğıt kartlar */
main#main-content details { background: #FFFAF2; border: 1px solid #E0D2BB !important; border-radius: 10px; padding-inline: 1.2rem; margin-bottom: .7rem; }
main#main-content div.divide-y:has(> details) { border: 0; }
main#main-content details summary { font-family: var(--t-head); font-size: 1.08rem; }

/* Menü listesi: yemek kitabı noktalı çizgileri */
main#main-content .border-dashed { border-color: #CDB79C; }

/* Alt bilgi: kilim şeridi */
footer.bg-secondary { position: relative; padding-top: 12px; }
footer.bg-secondary::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: linear-gradient(135deg, #657348 25%, transparent 25%) -12px 0 / 24px 24px, linear-gradient(225deg, #657348 25%, transparent 25%) -12px 0 / 24px 24px, linear-gradient(315deg, #B65D3C 25%, transparent 25%) 0 0 / 24px 24px, linear-gradient(45deg, #B65D3C 25%, transparent 25%) 0 0 / 24px 24px, #F7F0E4; background-size: 24px 24px; }
footer.bg-secondary h2 { font-family: var(--t-head); font-weight: 600; }
[data-floating-phone] { background-color: #B65D3C !important; }


/* === Animasyonlar (Keyframes) === */
@keyframes as-yakin { to { transform: scale(1.03); } }

@keyframes as-don { to { transform: rotate(360deg); } }

/* === Sayfa Grubu Özel CSS'leri === */
/* Sayfa Grubu: home */
body.page-home {
main#main-content > section:first-child { background: radial-gradient(70% 90% at 90% 10%, #F3E3D6, transparent 70%), #F7F0E4; color: #2E2018; }
main#main-content > section:first-child [class*="text-white"]:not(.rounded-button) { color: #5A4A3E; }
main#main-content > section:first-child h1 { color: #2E2018; }
main#main-content > section:first-child a.ring-white\/30 { --tw-ring-color: #B65D3C; color: #2E2018; }
main#main-content > section:first-child a.ring-white\/30:hover { background: rgb(0 0 0 / 0.04); }

/* ===================== ANADOLU SOFRASI — ana sayfa ===================== */
main#main-content > section:first-child { border-bottom: 1px solid #E0D2BB; }
main#main-content > section:first-child h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.04; font-weight: 600; text-wrap: balance; }
main#main-content > section:first-child .bg-accent { background: #B65D3C; }
/* Görsel: kemer biçimi */
main#main-content > section:first-child img {
    border-radius: 999px 999px 18px 18px; border: 8px solid #FFFAF2; box-shadow: 0 30px 60px -30px rgb(57 41 31 / 0.6);
    animation: as-yakin 16s ease-in-out infinite alternate;
}

main#main-content > section:first-child .lg\:col-span-6:last-child { position: relative; }
/* Usta mührü */
main#main-content > section:first-child .lg\:col-span-6:last-child::after {
    content: ""; position: absolute; right: -24px; top: -28px; width: 128px; height: 128px;
    background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20200%20200%27%3E%3Cdefs%3E%3Cpath%20id%3D%27c%27%20d%3D%27M100%2C100%20m-74%2C0%20a74%2C74%200%201%2C1%20148%2C0%20a74%2C74%200%201%2C1%20-148%2C0%27%2F%3E%3C%2Fdefs%3E%3Ccircle%20cx%3D%27100%27%20cy%3D%27100%27%20r%3D%2797%27%20fill%3D%27%23B65D3C%27%2F%3E%3Ccircle%20cx%3D%27100%27%20cy%3D%27100%27%20r%3D%2788%27%20fill%3D%27none%27%20stroke%3D%27%23FFF8EE%27%20stroke-width%3D%271%27%20stroke-dasharray%3D%272%204%27%2F%3E%3Ctext%20font-family%3D%27Georgia%2C%20serif%27%20font-size%3D%2715%27%20font-weight%3D%27700%27%20letter-spacing%3D%274%27%20fill%3D%27%23FFF8EE%27%3E%3CtextPath%20href%3D%27%23c%27%3EORHAN%20USTA%20%E2%80%A2%201994%27TEN%20BER%C4%B0%20%E2%80%A2%20ORHAN%20USTA%20%E2%80%A2%20%3C%2FtextPath%3E%3C%2Ftext%3E%3Ccircle%20cx%3D%27100%27%20cy%3D%27100%27%20r%3D%2744%27%20fill%3D%27%2339291F%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
    filter: drop-shadow(0 10px 16px rgb(57 41 31 / 0.35)); animation: as-don 30s linear infinite;
}


/* Kayan bant: kilim kenarlı */
main#main-content section.marquee { background: #39291F; border: 0; box-shadow: inset 0 6px 0 #B65D3C, inset 0 -6px 0 #657348; }
main#main-content section.marquee * { color: #F7F0E4 !important; font-family: var(--t-head); font-style: italic; }

/* Usta hikâyesi: fotoğraf polaroid gibi */
main#main-content section:has(> div > .lg\:grid-cols-2) img, main#main-content section .lg\:grid-cols-2 > div > img {
    border-radius: 14px; border: 10px solid #FFFAF2; box-shadow: var(--t-shadow); transform: rotate(-1.2deg);
}
main#main-content .lg\:grid-cols-2 p:first-of-type::first-letter { font-family: var(--t-head); }

/* Rakamlar: zeytin yeşili */
main#main-content > section.bg-primary { background: #657348; }
main#main-content > section.bg-primary * { color: #F1EEDC; }
main#main-content > section.bg-primary .order-first { font-family: var(--t-head); color: #FFFFFF !important; }

/* Süreç: kiremit daireler */
main#main-content ol .rounded-full.bg-secondary { background: #B65D3C; font-family: var(--t-head); }

/* Avantajlar */
main#main-content li.border-t-2.border-primary { border-top: 1px solid #C9A98A; position: relative; }
main#main-content li.border-t-2.border-primary::before { content: "◆"; position: absolute; top: -9px; left: 0; padding-right: 8px; background: #F0E6D4; color: #B65D3C; font-size: 12px; }

/* Arama şeridi */
main#main-content section.bg-primary\/5 { background: #F0E6D4; border-color: #E0D2BB !important; }
main#main-content section.bg-primary\/5 a.bg-secondary { background: #39291F; }
}

/* === Yüzen İletişim Butonları === */
[data-floating-phone]{background-color:#991B1B;color:#FFFFFF}
[data-floating-whatsapp]{background-color:#25D366;color:#111111}
