/* ==========================================================================
   SEO / erişilebilirlik / mobil bileşenleri — custom.css'in üzerine yüklenir
   ========================================================================== */

:root {
	--text-strong: #13283f;
	--text-body: #2b3b4c;
	--text-muted-aa: #4a6785; /* beyaz zemin üzerinde 5.6:1 kontrast */
	--focus-ring: #f2b705;
	--mobile-bar-h: 64px;
}

/* --- Taşma koruması (yatay kaydırma olmasın) --- */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
.rich-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.25em; }
.table-scroll table { min-width: 520px; }
.rich-content { overflow-wrap: anywhere; word-break: normal; }

/* --- Odak ve atlama bağlantısı --- */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 3px solid var(--focus-ring) !important;
	outline-offset: 2px;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100000;
	background: var(--brand-primary-dark); color: #fff !important; padding: 10px 16px; border-radius: 8px;
	transition: top .15s;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
[hidden] { display: none !important; }
.link-button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }

/* --- Başlık bağlantıları sabit header altında kalmasın --- */
.rich-content h2[id], .rich-content h3[id], [id^="kategori-"], #form, #faq-heading { scroll-margin-top: 120px; }

/* --- Header: arama ve alt menü --- */
.nav-search-toggle { background: none; border: 0; padding: 8px 10px; font-size: 18px; color: var(--brand-primary-dark); cursor: pointer; min-width: 44px; min-height: 44px; }
.navbar-header .nav-search-toggle { float: right; margin-top: 14px; margin-right: 4px; }
.nav-search-item { display: flex; align-items: center; }
.site-search { background: var(--brand-primary-light); border-top: 1px solid var(--brand-border); padding: 14px 0; }
.site-search form, .inline-search { display: flex; gap: 10px; max-width: 720px; margin: 0 auto; }
.inline-search { margin: 0 0 28px; max-width: none; }
.site-search input, .inline-search input {
	flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--brand-border); border-radius: 12px; font-size: 16px; background: #fff;
}
.site-search .btn, .inline-search .btn { height: 48px; border-radius: 12px; padding: 0 22px; }
.submenu-toggle { display: none; }
.navbar-nav > li.has-submenu:hover > .dropdown-menu,
.navbar-nav > li.has-submenu:focus-within > .dropdown-menu { display: block; }
.locale-link.is-active a, .mobile-nav-locales a.is-active { font-weight: 700; text-decoration: underline; }
@media (max-width: 991px) {
	.has-submenu { position: relative; }
	.submenu-toggle {
		display: flex; align-items: center; justify-content: center; position: absolute; right: 4px; top: 4px;
		width: 44px; height: 44px; background: none; border: 0; color: var(--brand-primary-dark);
	}
	.navbar-nav > li.has-submenu:hover > .dropdown-menu { display: none; }
	.navbar-nav > li.has-submenu.open > .dropdown-menu { display: block; position: static; float: none; box-shadow: none; border: 0; }
	.navbar-nav > li > a { min-height: 44px; display: flex !important; align-items: center; }
	.mobile-nav-tools { display: block !important; padding: 12px 15px; }
	.mobile-nav-locales { display: flex; gap: 18px; }
	.mobile-nav-locales a { padding: 10px 6px; min-width: 44px; text-align: center; }
	.top-row-list { flex-wrap: wrap; }
}

/* --- Sayfa başlığı + breadcrumb --- */
.page-hero { min-height: 220px; display: flex; align-items: center; padding: 34px 0; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .entry-title { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 6px 0 0; }
.page-hero-lead { max-width: 760px; margin: 12px 0 0; font-size: 18px; color: var(--text-body); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; }
.breadcrumbs li { color: var(--text-muted-aa); }
.breadcrumbs li + li::before { content: "›"; margin: 0 8px; color: var(--text-muted-aa); }
.breadcrumbs a { color: var(--brand-primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumbs [aria-current="page"] { color: var(--text-body); }
@media (max-width: 767px) {
	.page-hero { min-height: 170px; padding: 24px 0; }
	.page-hero-lead { font-size: 16px; }
}

/* --- Ana sayfa --- */
.hero-slide-img { background-image: none !important; }
.hero-slide-img picture, .hero-slide-img .hero-slide-media { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide-img .hero-slide-media { object-fit: cover; object-position: center; }
.hero-slide-title { font-size: clamp(24px, 3vw, 38px); }
.home-intro-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.home-intro h1 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; color: var(--brand-primary-dark); margin: 0 0 14px; }
.home-intro-text { font-size: 18px; color: var(--text-body); margin-bottom: 18px; }
.home-intro-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.home-intro-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--brand-border); background: #fff; color: var(--brand-primary-dark); font-weight: 600; }
.video-caption { display: block; padding: 12px 14px; font-weight: 600; color: var(--text-strong); }
.news-title { font-size: 18px; margin: 0 0 8px; }
@media (max-width: 991px) { .home-intro-grid { grid-template-columns: 1fr; } }

/* --- Kart ızgarası --- */
.card-section { margin: 40px 0; }
.card-section-title { font-size: 26px; color: var(--brand-primary-dark); margin: 0 0 20px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card-grid .treatment-card-title { font-size: 18px; }
.card-date { font-size: 14px; color: var(--text-muted-aa); margin-bottom: 6px; }
.treatment-card-body p { color: var(--text-body); }
@media (max-width: 991px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .card-grid { grid-template-columns: 1fr; } .treatment-card-thumb { height: 200px; } }

/* --- Hizmetler sayfası --- */
.category-jump ul { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.category-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--brand-primary-light); color: var(--brand-primary-dark); font-weight: 600; }
.service-category { padding: 10px 0 20px; border-bottom: 1px solid var(--brand-border); }
.service-category-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.service-category-head h2 { font-size: 28px; margin: 24px 0 0; }
.service-category-head h2 a { color: var(--brand-primary-dark); }
.service-category .card-section { margin-top: 18px; }
.category-intro { max-width: 860px; margin: 10px 0 30px; font-size: 18px; }

/* --- Makale düzeni --- */
.article-main { padding-bottom: 30px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; color: var(--text-muted-aa); margin: 0 0 22px; padding: 0 0 14px; border-bottom: 1px solid var(--brand-border); }
.article-meta a { color: var(--brand-primary-dark); font-weight: 600; }
.article-cover { margin: 0 0 24px; }
.article-cover img { border-radius: 14px; width: 100%; }
.article-side-image img { border-radius: 14px; width: 100%; }
.rich-content { font-size: 18px; line-height: 1.7; color: var(--text-body); }
.rich-content h2 { font-size: 28px; line-height: 1.25; margin: 1.6em 0 .6em; color: var(--brand-primary-dark); }
.rich-content h3 { font-size: 22px; line-height: 1.3; margin: 1.4em 0 .5em; color: var(--text-strong); }
.rich-content h4 { font-size: 19px; margin: 1.2em 0 .4em; }
.rich-content ul, .rich-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.rich-content li { margin-bottom: .35em; }
.rich-content a { color: #0f5fa8; text-decoration: underline; text-underline-offset: 2px; }
.rich-content img { border-radius: 12px; margin: 10px 0; }
.rich-content blockquote { border-left: 4px solid var(--brand-primary); background: var(--brand-primary-light); padding: 14px 18px; margin: 1.2em 0; border-radius: 0 10px 10px 0; }
.rich-content table { width: 100%; border-collapse: collapse; }
.rich-content th, .rich-content td { border: 1px solid var(--brand-border); padding: 8px 10px; text-align: left; }
@media (max-width: 767px) {
	.rich-content { font-size: 17px; }
	.rich-content h2 { font-size: 24px; }
	.rich-content h3 { font-size: 20px; }
}

/* --- İçindekiler --- */
.toc { background: var(--brand-primary-light); border: 1px solid var(--brand-border); border-radius: 14px; padding: 0; margin: 0 0 28px; }
.toc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; min-height: 48px; font-weight: 700; color: var(--brand-primary-dark); }
.toc summary::-webkit-details-marker { display: none; }
.toc-icon::after { content: "+"; font-size: 22px; line-height: 1; }
.toc[open] .toc-icon::after { content: "–"; }
.toc ol { margin: 0; padding: 0 18px 16px 38px; }
.toc li { margin: 6px 0; }
.toc .toc-l3 { margin-left: 18px; list-style: circle; }
.toc a { color: var(--brand-primary-dark); }

/* --- SSS --- */
.faq-block { margin: 40px 0; }
.faq-block > h2 { font-size: 28px; color: var(--brand-primary-dark); margin: 0 0 18px; }
.faq-item { border: 1px solid var(--brand-border); border-radius: 14px; background: #fff; margin-bottom: 12px; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; min-height: 52px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 18px; margin: 0; line-height: 1.4; color: var(--text-strong); font-weight: 600; }
.faq-icon { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-primary-light); position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--brand-primary-dark); transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 18px 16px; color: var(--text-body); font-size: 17px; line-height: 1.65; }

/* --- Yazar kutusu, kaynaklar, uyarı --- */
.author-box { display: flex; gap: 18px; align-items: flex-start; border: 1px solid var(--brand-border); border-radius: 16px; padding: 20px; margin: 36px 0 14px; background: #fff; }
.author-box-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: 0 0 96px; }
.author-box-name { font-size: 20px; font-weight: 700; margin: 0; }
.author-box-name a { color: var(--brand-primary-dark); }
.author-box-title { color: var(--text-muted-aa); margin: 2px 0 8px; font-size: 15px; }
.author-box-bio { font-size: 16px; margin: 0 0 10px; color: var(--text-body); }
.author-box-dates { list-style: none; padding: 0; margin: 0 0 8px; font-size: 14px; color: var(--text-muted-aa); }
.author-box-link { font-weight: 600; color: var(--brand-primary-dark); }
.medical-disclaimer { font-size: 15px; color: var(--text-body); background: #fff8e1; border-left: 4px solid #e0a800; padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 0 0 30px; }
.references { margin: 32px 0; font-size: 15px; }
.references h2 { font-size: 22px; }
.references-list ol, .references-list ul { padding-left: 1.2em; }
.inline-related { border: 1px solid var(--brand-border); border-radius: 14px; padding: 16px 20px; margin: 28px 0; background: var(--brand-primary-light); }
.inline-related-title { font-weight: 700; margin: 0 0 8px; color: var(--brand-primary-dark); }
@media (max-width: 599px) { .author-box { flex-direction: column; } }

/* --- Kenar çubuğu --- */
.sidebar-cta { border: 1px solid var(--brand-border); border-radius: 16px; padding: 18px; margin: 0 0 20px; background: #fff; }
.sidebar-cta-title, .sidebar-title { font-weight: 700; font-size: 18px; color: var(--brand-primary-dark); margin: 0 0 12px; }
.sidebar-cta .btn { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.btn-whatsapp { background: #128c4a !important; border-color: #128c4a !important; color: #fff !important; }
.sidebar-group { border-bottom: 1px solid var(--brand-border); }
.sidebar-group summary { cursor: pointer; padding: 12px 4px; font-weight: 600; min-height: 44px; }
.sidebar-group ul { list-style: none; padding: 0 0 10px 8px; margin: 0; }
.sidebar-group a { display: block; padding: 6px 4px; color: var(--text-body); }
.sidebar-group a.active { color: var(--brand-primary); font-weight: 700; }
@media (min-width: 992px) { .article-sidebar { position: sticky; top: 110px; } }

/* --- Sayfalama --- */
.pagination-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 30px 0; justify-content: center; }
.pagination-nav a, .pagination-nav span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--brand-border); color: var(--brand-primary-dark); }
.pagination-nav span[aria-current] { background: var(--brand-primary-dark); color: #fff; }

/* --- Formlar --- */
.lead-form-title { font-size: 24px; color: var(--brand-primary-dark); margin: 0 0 6px; }
.lead-form-intro { margin: 0 0 18px; color: var(--text-body); }
.lead-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.lead-field-wide { grid-column: 1 / -1; }
.lead-field label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 6px; color: var(--text-strong); }
.lead-field input, .lead-field select, .lead-field textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #9fb3c8; border-radius: 10px; font-size: 16px; background: #fff; color: var(--text-strong); margin: 0 !important;
}
.lead-field textarea { min-height: 110px; resize: vertical; }
.lead-consents { margin: 16px 0; display: grid; gap: 10px; }
.lead-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.lead-check input { width: 22px; height: 22px; flex: 0 0 22px; margin: 1px 0 0 !important; }
.lead-check a { text-decoration: underline; }
.lead-submit { min-height: 50px; padding: 0 34px; font-size: 17px; border-radius: 12px; }
.lead-form-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { color: #13703a; background: #e8f6ee; padding: 12px 14px; border-radius: 10px; }
.form-status.is-error { color: #a12020; background: #fdecec; padding: 12px 14px; border-radius: 10px; }
.lead-form-compact .lead-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 599px) { .lead-form-grid, .lead-form-compact .lead-form-grid { grid-template-columns: 1fr; } }

/* --- İletişim --- */
.hours-list { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 4px 0 0; }
.hours-list dt { font-weight: 600; }
.hours-list dd { margin: 0; }
.contact-info-card address { margin: 0; font-style: normal; }
.footer-nap { font-style: normal; }
.footer-title { font-size: 18px; }
.footer-disclaimer { font-size: 14px; opacity: .9; max-width: 820px; margin: 0 auto 10px; }

/* --- Video kartları --- */
.video-card-title { font-size: 18px; margin: 12px 0 6px; color: var(--text-strong); }
.youtube-thumb-box { position: relative; display: block; }
.youtube-thumb-box img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }

/* --- 404 / listeler --- */
.narrow-container { max-width: 820px; }
.link-list { columns: 2; padding-left: 1.2em; margin-bottom: 30px; }
.link-list li { margin-bottom: 8px; }
@media (max-width: 599px) { .link-list { columns: 1; } }

/* --- Mobil sabit CTA çubuğu (yalnızca mobil) --- */
.mobile-cta-bar { display: none; }
@media (max-width: 767px) {
	.mobile-cta-bar {
		display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
		height: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
		background: #fff; border-top: 1px solid var(--brand-border); box-shadow: 0 -6px 18px rgba(18, 60, 102, .12);
	}
	.mobile-cta-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--brand-primary-dark); text-decoration: none; min-height: 48px; }
	.mobile-cta-bar a .fa { font-size: 20px; }
	.mobile-cta-bar .mobile-cta-call { background: var(--brand-primary-dark); color: #fff; }
	.mobile-cta-bar .mobile-cta-whatsapp { background: #128c4a; color: #fff; }
	.mobile-cta-bar .site-social-icon { width: 20px; height: 20px; }
	body { padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom)); }
	.float-socials { display: none !important; }
	.back-to-top { bottom: calc(var(--mobile-bar-h) + 14px + env(safe-area-inset-bottom)) !important; }
	.consent-banner { bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom)) !important; }
}

/* --- Yukarı çık --- */
.back-to-top {
	position: fixed; right: 18px; bottom: 90px; z-index: 9980; width: 48px; height: 48px; border-radius: 50%;
	border: 0; background: var(--brand-primary-dark); color: #fff; box-shadow: 0 8px 20px rgba(18, 60, 102, .25); cursor: pointer;
}

/* --- Çerez onayı: "Kabul" ve "Reddet" eşit görünürlükte --- */
.consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 99999; display: flex; justify-content: center; }
.consent-inner { max-width: 760px; width: 100%; background: #fff; color: var(--text-strong); border: 1px solid var(--brand-border); border-radius: 16px; padding: 18px 20px; box-shadow: 0 18px 50px rgba(0, 0, 0, .18); }
.consent-title { font-weight: 700; margin: 0 0 4px; font-size: 17px; }
.consent-text { margin: 0 0 12px; font-size: 15px; }
.consent-text a { text-decoration: underline; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent-btn { min-height: 46px; border-radius: 10px; border: 2px solid var(--brand-primary-dark); background: var(--brand-primary-dark); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; }
@media (max-width: 767px) { .consent-banner { left: 0; right: 0; } .consent-inner { border-radius: 16px 16px 0 0; } }

/* --- İç sayfa banner görseli (1.5 MB PNG yerine WebP) --- */
.sub-page-banner {
	background-image:
		linear-gradient(90deg, rgba(247, 251, 255, 0.95) 0%, rgba(247, 251, 255, 0.86) 45%, rgba(247, 251, 255, 0.25) 100%),
		url("/images/inner-page-banner-ayseoner-minimal.webp") !important;
}
@media (max-width: 767px) {
	.sub-page-banner {
		background-image: linear-gradient(180deg, rgba(247, 251, 255, 0.96), rgba(247, 251, 255, 0.9)), url("/images/inner-page-banner-ayseoner-minimal-960w.webp") !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* --- Ana sayfa: sabit header altında hero (eski "top" kaydırması akışı itmiyordu, H1 bloğu üste biniyordu) --- */
@media (min-width: 992px) {
	.fixed-header.page-home .main-banner { top: 0 !important; }
	.page-home .hero-section { margin-top: 132px; }
}
.home-intro h1 { text-transform: none !important; letter-spacing: 0; }
.home-lead-section { padding-top: 40px; }

/* Tema tüm sütunlara display:flex veriyor; makale ve kenar çubuğu dikey akmalı */
#sub-page-content .row > .article-main,
#sub-page-content .row > .article-sidebar { display: block; }
#sub-page-content .row > .article-sidebar { align-self: flex-start; }
@media (max-width: 991px) { #sub-page-content .row > .article-main, #sub-page-content .row > .article-sidebar { width: 100%; } }
