/*
Theme Name: Esra Bağdat
Theme URI: https://esrabagdat.com
Author: Esra Bağdat
Description: esrabagdat.com için kurumsal kimliğe uygun, SEO, GEO ve erişilebilirlik odaklı blok tema.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: esrabagdat
*/

/* ---------- Genel ---------- */
:root { --eb-radius: 6px; --eb-shadow: 0 1px 2px rgba(3,48,96,.06), 0 6px 24px rgba(3,48,96,.07); }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(a, button, summary, input):focus-visible { outline: 3px solid #0B65BD; outline-offset: 3px; border-radius: 2px; }
img { height: auto; }
.wp-site-blocks { overflow-x: clip; }

/* ---------- Üst bilgi ---------- */
.eb-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid #E2E2E2; }
.admin-bar .eb-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .eb-header { top: 46px; } }
.eb-brand { line-height: 1.15; text-decoration: none; }
.eb-brand a { text-decoration: none; color: #033060; }
.eb-brand__name { font-family: var(--wp--preset--font-family--heading); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: 1.05rem; margin: 0; }
.eb-brand__tag { font-size: .78rem; color: #054787; margin: 0; letter-spacing: .02em; }
.eb-header .wp-block-navigation a { text-decoration: none; color: #033060; }
.eb-header .wp-block-navigation a:hover { color: #0B65BD; }
.eb-header .eb-lang a { font-size: .85rem; border: 1px solid #CDDBFE; padding: .2rem .55rem; border-radius: 4px; }
.eb-header .wp-block-button__link { padding: .6rem 1.1rem; font-size: .92rem; }
@media (max-width: 900px) { .eb-header .eb-header-cta { display: none; } }

/* ---------- Ortak bileşenler ---------- */
.eb-eyebrow { font-family: var(--wp--preset--font-family--body); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #0B65BD; margin-bottom: .5rem !important; }
.eb-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.6; color: #333; }
.eb-hero h1 { max-width: 18ch; }
.eb-hero .eb-hero__img img { border-radius: var(--eb-radius); box-shadow: var(--eb-shadow); aspect-ratio: 1 / 1; object-fit: cover; }
.eb-proof { font-size: .92rem; color: #054787; border-top: 1px solid #E2E2E2; padding-top: 1rem; }
.eb-proof strong { color: #033060; }

.eb-card { background: #fff; border: 1px solid #E2E2E2; border-radius: var(--eb-radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.eb-card:hover { box-shadow: var(--eb-shadow); transform: translateY(-2px); }
.eb-card .wp-block-image { margin: 0; }
.eb-card .wp-block-image img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.eb-card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.eb-card__body h3 { margin: 0; }
.eb-card__body ul { margin: 0; padding-left: 1.1rem; font-size: .95rem; }
.eb-card__body .eb-more { margin-top: auto; font-weight: 600; }
.eb-more a { text-decoration: none; }
.eb-more a:hover { text-decoration: underline; }
.wp-block-columns.eb-cards > .wp-block-column { display: flex; }

.eb-steps { counter-reset: ebstep; }
.eb-step { border-top: 3px solid #0B65BD; padding-top: 1rem; }
.eb-step__num { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 2.25rem; color: #0B65BD; line-height: 1; margin: 0 0 .4rem; }
.eb-step h3 { margin: 0 0 .35rem; }

.eb-band { border-radius: var(--eb-radius); }
.eb-band a:not(.wp-block-button__link) { color: inherit; }
.eb-band--navy .wp-block-button__link { background: #fff; color: #033060; }
.eb-band--navy .wp-block-button__link:hover { background: #CDDBFE; color: #033060; }
.eb-band--navy .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); }

.is-style-outline .wp-block-button__link { border-width: 1px; }

/* Bilgi kutusu: Kısa cevap */
.eb-answer { background: #F7F5F0; border-left: 4px solid #0B65BD; padding: 1.1rem 1.3rem; border-radius: 0 var(--eb-radius) var(--eb-radius) 0; }

/* ---------- SSS ---------- */
.eb-faq { border-top: 1px solid #E2E2E2; }
.eb-faq .wp-block-details { border-bottom: 1px solid #E2E2E2; padding: 1rem 0; margin: 0; }
.eb-faq .wp-block-details summary { font-family: var(--wp--preset--font-family--heading); font-weight: 600; color: #033060; cursor: pointer; list-style: none; position: relative; padding-right: 2rem; font-size: 1.08rem; }
.eb-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.eb-faq .wp-block-details summary::after { content: "+"; position: absolute; right: .25rem; top: -.1rem; font-size: 1.4rem; color: #0B65BD; font-weight: 400; transition: transform .2s; }
.eb-faq .wp-block-details[open] summary::after { transform: rotate(45deg); }
.eb-faq .wp-block-details > :not(summary) { margin-top: .6rem; }

/* ---------- Yazılar ---------- */
.eb-post-meta { font-size: .9rem; color: #054787; gap: .5rem 1rem; }
.eb-post-meta a { text-decoration: none; }
.single .wp-block-post-content h2 { margin-top: 2.5rem; }
.single .wp-block-post-content h3 { margin-top: 1.75rem; }
.single .wp-block-post-content > p:first-of-type { font-size: 1.12rem; }
.wp-block-post-featured-image img { border-radius: var(--eb-radius); }
.eb-author { background: #F7F5F0; border-radius: var(--eb-radius); padding: 1.4rem 1.6rem; }
.eb-author img { border-radius: 50%; width: 88px; height: 88px; object-fit: cover; }
.eb-author p { margin: 0; }
.eb-postcard { border-bottom: 1px solid #E2E2E2; padding-bottom: 1.5rem; }
.eb-postcard .wp-block-post-title a { text-decoration: none; color: #033060; }
.eb-postcard .wp-block-post-title a:hover { color: #0B65BD; }
.eb-postcard .wp-block-post-featured-image img { aspect-ratio: 16 / 9; object-fit: cover; }
.wp-block-post-terms a { text-decoration: none; }
.eb-related a { font-weight: 600; text-decoration: none; }
.eb-related a:hover { text-decoration: underline; }
.eb-lang-switch { font-size: .92rem; }

/* ---------- Alt bilgi ---------- */
.eb-footer { font-size: .92rem; }
.eb-footer a { color: #fff; text-decoration: none; }
.eb-footer a:hover { text-decoration: underline; }
.eb-footer h2 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--wp--preset--font-family--body); font-weight: 600; opacity: .85; }
.eb-footer ul { list-style: none; padding: 0; margin: 0; }
.eb-footer li { margin: .35rem 0; }

/* ---------- WhatsApp düğmesi ---------- */
.eb-wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: #033060; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 18px rgba(0,0,0,.18); transition: transform .2s; }
.eb-wa:hover { transform: scale(1.06); background: #0B65BD; }
.eb-wa svg { width: 28px; height: 28px; fill: #fff; }
.eb-wa .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .eb-header, .eb-footer, .eb-wa { display: none !important; } }

/* ---------- Bölümler (içerik sayfaları) ---------- */
.eb-section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); margin-top: 0 !important; margin-bottom: 0 !important; }
.eb-section + .eb-section:not(.has-background) { padding-top: 0; }
.has-background + .eb-section:not(.has-background) { padding-top: var(--wp--preset--spacing--60); }
.eb-section--hero { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.eb-section--cta { padding-top: var(--wp--preset--spacing--50); }
main > .wp-block-post-content > .eb-section:first-child { margin-top: 0; }
.wp-block-post-content.is-layout-constrained > .eb-section { margin-block-start: 0; }
.eb-intro { margin-bottom: var(--wp--preset--spacing--50); }
.eb-intro > * { margin-left: 0 !important; }
.eb-hero .wp-block-column:first-child { flex-basis: 58%; }
.eb-hero .wp-block-buttons { margin-top: 1.5rem; }
.eb-hero .eb-lead { font-family: var(--wp--preset--font-family--heading); color: #054787; font-weight: 500; }
.eb-hero__img img, .eb-about__img img { border-radius: var(--eb-radius); width: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.eb-about__img img { max-width: 460px; }
.eb-cards { margin-bottom: var(--wp--preset--spacing--40); }
.eb-cards > .wp-block-column > .eb-card { width: 100%; }
.eb-band--navy h2, .eb-band--navy .wp-block-heading { color: #fff; }
.eb-pad { padding: clamp(1.75rem, 5vw, 3.25rem); }
.eb-small { font-size: .9rem; opacity: .9; }
.eb-h3 { font-size: var(--wp--preset--font-size--large); }
.eb-related-box { margin-top: var(--wp--preset--spacing--50); padding-top: var(--wp--preset--spacing--40); border-top: 1px solid #E2E2E2; }
.eb-related-box h2 { font-size: 1.15rem; }
.eb-lang-switch { margin-top: var(--wp--preset--spacing--40); }
.eb-lang-switch a { text-decoration: none; font-weight: 600; }
.wp-block-post-content p.eb-answer + h2 { margin-top: 2.25rem; }
.eb-section h2 + .eb-faq { margin-top: 1rem; }
@media (max-width: 781px) {
	.eb-hero .wp-block-column:last-child { order: -1; max-width: 280px; }
	.eb-hero h1 { font-size: 2rem; }
	.eb-cards { gap: 1.25rem; }
}

.eb-card h3 a, .eb-postcard .wp-block-post-title a { color: #033060; text-decoration: none; }
.eb-card h3 a:hover { color: #0B65BD; text-decoration: underline; }

.eb-hero .wp-block-column:only-child { flex-basis: 100% !important; max-width: 820px; }
.eb-hero .wp-block-column:only-child h1 { max-width: 20ch; }

/* Ana sayfa hero v2 (27.11.2026) */
.eb-checks { list-style: none; padding-left: 0; margin: 1.25rem 0 0; }
.eb-checks li { position: relative; padding-left: 2rem; margin-bottom: .7rem; font-size: 1.05rem; line-height: 1.45; }
.eb-checks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 1.1rem; height: .55rem; border-left: 3px solid #0B65BD; border-bottom: 3px solid #0B65BD; transform: rotate(-45deg); }
.eb-checks a { color: #033060; font-weight: 700; text-decoration: none; }
.eb-checks a:hover { color: #0B65BD; text-decoration: underline; }
.eb-map { background: #033060; color: #fff; border-radius: 16px; padding: 2.25rem 2rem !important; }
.eb-map > * { margin-block: 0 !important; }
.eb-map__label { font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #CDDBFE; margin-bottom: 1.5rem !important; }
.eb-map__step { position: relative; padding: 0 0 2.25rem 4.25rem; }
.eb-map__step::before { counter-increment: ebmap; content: counter(ebmap); position: absolute; left: 0; top: 0; width: 3rem; height: 3rem; border-radius: 50%; background: #CDDBFE; color: #033060; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.25rem; display: flex; align-items: center; justify-content: center; }
.eb-map__step:not(.is-last)::after { content: ""; position: absolute; left: calc(1.5rem - 1px); top: 3rem; bottom: 0; width: 2px; background: #0B65BD; }
.eb-map__step.is-last { padding-bottom: 0; }
.eb-map__step.is-last::before { background: #fff; }
.eb-map__steps { counter-reset: ebmap; }
.eb-map__step h3 { color: #fff; font-size: 1.35rem; margin: .35rem 0 .2rem; }
.eb-map__step p { color: #CDDBFE; margin: 0; font-size: .95rem; }
.eb-map__foot { margin-top: 1.75rem !important; padding-top: 1.25rem; border-top: 1px solid #054787; color: #CDDBFE; font-size: .92rem; }
.eb-stats { border-top: 1px solid #E2E2E2; border-bottom: 1px solid #E2E2E2; padding-block: 1.75rem; }
.eb-stats .wp-block-column { text-align: center; }
.eb-stats p { margin: 0; }
.eb-stats .eb-stat__num { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.75rem; color: #033060; }
.eb-about__img img { aspect-ratio: 386 / 616; max-width: 340px; }
@media (max-width: 781px) {
	.eb-hero .wp-block-column.eb-hero__map { order: 0; max-width: none; }
	.eb-stats .wp-block-columns { gap: 1rem; }
}

.eb-hero .wp-block-column.eb-hero__map { flex: 0 0 38%; }
.eb-hero .wp-block-column:first-child:not(:only-child) { flex: 1 1 56%; }
@media (max-width: 781px) { .eb-hero .wp-block-column.eb-hero__map { flex-basis: 100%; } }

/* Sözlük (28.11.2026) */
.eb-toc { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem !important; }
.eb-toc a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; min-height: 2.5rem; border: 1px solid #E2E2E2; border-radius: 8px; font-family: var(--wp--preset--font-family--heading); font-weight: 700; color: #033060; text-decoration: none; }
.eb-toc a:hover { background: #033060; color: #fff; }
.eb-glossary h2.eb-letter { font-size: 2rem; color: #0B65BD; border-bottom: 2px solid #CDDBFE; padding-bottom: .3rem; margin-top: 2.5rem; scroll-margin-top: 90px; }
.eb-term-block { padding: 1.1rem 0; border-bottom: 1px solid #E2E2E2; }
.eb-term-block > * { margin-block: 0 0 .5rem !important; }
.eb-term-block h3.eb-term { font-size: 1.3rem; color: #033060; scroll-margin-top: 90px; }
.eb-term__alt { display: inline-block; margin-left: .4rem; font-family: var(--wp--preset--font-family--body); font-size: .85rem; font-weight: 400; color: #5a5a5a; font-style: italic; }
.eb-term__why { background: #F7F5F0; padding: .65rem .9rem; border-radius: 8px; font-size: .97rem; }
.eb-term__more { font-size: .92rem; }
.eb-term__more a { font-weight: 600; text-decoration: none; }

/* Nasıl çalışıyoruz (28.11.2026) */
mark.eb-fill { background: #FFF1B8; color: #5a4200; padding: 0 .25em; border-radius: 3px; font-weight: 600; }
.eb-process li { margin-bottom: .8rem; }
.eb-table table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.eb-table th { background: #033060; color: #fff; text-align: left; font-family: var(--wp--preset--font-family--heading); }
.eb-table th, .eb-table td { border: 1px solid #E2E2E2; padding: .7rem .8rem; vertical-align: top; }
.eb-table td a { font-weight: 600; text-decoration: none; }
@media (max-width: 781px) { .eb-table { overflow-x: auto; } .eb-table table { min-width: 640px; } }

/* Çalışma biçimleri (29.11.2026) */
.eb-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-block: 1rem 1.25rem !important; }
.eb-way { background: #F7F5F0; border-top: 3px solid #0B65BD; border-radius: 8px; padding: 1.1rem 1.2rem; }
.eb-way > * { margin-block: 0 !important; }
.eb-way h3 { font-size: 1.08rem; color: #033060; margin-bottom: .45rem !important; }
.eb-way p { font-size: .95rem; line-height: 1.55; }
@media (max-width: 781px) { .eb-ways { grid-template-columns: 1fr; } }

/* Programlar (29.11.2026) */
.eb-program { background: #033060; color: #fff; border-radius: 12px; padding: 1.5rem 1.6rem; margin-block: 1.5rem 2rem !important; }
.eb-program > * { margin-block: 0 0 .55rem !important; }
.eb-program h3 { color: #fff; font-size: 1.35rem; }
.eb-program p { color: #fff; }
.eb-program strong { color: #CDDBFE; }
.eb-program__label { font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #CDDBFE !important; }
.eb-program__meta { font-weight: 600; color: #CDDBFE !important; }
.eb-program__cta { margin-bottom: 0 !important; margin-top: .9rem !important; }
.eb-program__cta a { display: inline-block; background: #fff; color: #033060; font-weight: 700; padding: .6rem 1.1rem; border-radius: 6px; text-decoration: none; }
.eb-program__cta a:hover { background: #CDDBFE; }


/* Galeri (konuşmacı sayfası): eşit 4:5 kareler, altyazı görselin altında */
.wp-block-gallery.has-nested-images figure.wp-block-image{flex-direction:column !important;align-items:stretch !important;justify-content:flex-start !important;flex-grow:0 !important}
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image img{aspect-ratio:4/5;height:auto !important;object-fit:cover;flex:none !important}
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption.wp-element-caption{position:static !important;background:none !important;color:#0b1f3a !important;padding:.45em .1em 0 !important;font-size:.85rem;line-height:1.35;text-align:left;max-height:none !important;overflow:visible !important;flex:none !important;text-shadow:none}

/* Referanslar */
.wp-block-quote.eb-testimonial{border-left:3px solid #0B65BD;background:#F7F5F0;border-radius:0 8px 8px 0;padding:1.4rem 1.6rem;margin:1rem 0 2.2rem;}
.eb-testimonial .eb-testimonial__lead{font-family:'Mulish',sans-serif;font-size:1.3rem;line-height:1.4;color:#033060;margin:0 0 .8rem;}
.eb-testimonial p{margin:0 0 .8rem;}
.eb-testimonial cite{display:block;font-style:normal;font-size:.9rem;color:#5a5f66;margin-top:.4rem;}
.eb-testimonial cite strong{color:#033060;}
