/*
Theme Name: Timur Akbari – Kadence Child
Theme URI: https://timurakbari.com
Description: Dt. Timur Akbari için Kadence alt teması. Tüm özelleştirmeler burada tutulur; Kadence güncellemelerinde kaybolmaz.
Author: timurakbari.com
Template: kadence
Version: 2.0.0
Text Domain: ta-child
*/

/*
 * Tasarım dili
 * - Renk: düz su yeşili alanlar, degrade yok. Gölge yok, kart kalıbı yok.
 * - Yazı: başlıklar Schibsted Grotesk (sağlam, sade), metin Source Serif 4
 *   (hekimin kendi anlatımı gibi okunan, kitap hissi veren serif).
 * - Köşe: butonlarda 6px, görsellerde 4px. Hap (pill) buton yok.
 * - Hiyerarşi; etiket, ikon ve süslerle değil, yazı boyutu ve boşlukla kurulur.
 */

:root {
	--su: #3F7479;          /* ana renk: Instagram su yeşilinin koyusu (beyaz yazıyla AA) */
	--su-acik: #A8CDD0;     /* Instagram kapaklarındaki açık ton */
	--su-orta: #78ABAE;     /* Instagram kapaklarının ana tonu */
	--derin: #24494C;       /* koyu panel ve footer (aynı renk ailesi) */
	--buz: #EAF3F3;         /* açık zemin */
	--murekkep: #1D2B2D;    /* metin */
	--gri: #566B6E;         /* ikincil metin */
	--cizgi: #D5E3E4;       /* ayırıcı */

	--f-baslik: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
	--f-metin: "Source Serif 4", Georgia, "Times New Roman", serif;

	/* Kadence global değişkenlerini ez */
	--global-body-font-family: var(--f-metin);
	--global-heading-font-family: var(--f-baslik);
	--global-palette1: var(--su);
	--global-palette2: #335F63;
	--global-palette3: var(--murekkep);
	--global-palette4: var(--murekkep);
	--global-palette5: var(--gri);
	--global-palette7: var(--buz);
	--global-palette8: #F5FAFA;
}

/* ---------- Temel tipografi ---------- */
body {
	font-family: var(--f-metin);
	font-size: 18px;
	line-height: 1.7;
	color: var(--murekkep);
	-webkit-font-smoothing: antialiased;
	font-optical-sizing: auto;
}
h1, h2, h3, h4, .site-title, .main-navigation, .header-button, .ta-btn, .ta-crumbs, summary, .mobile-navigation {
	font-family: var(--f-baslik);
}
h1, h2, h3 { color: var(--murekkep); letter-spacing: -0.015em; font-weight: 650; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.15; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0 0 1.1em; }
a { color: var(--su); text-underline-offset: 3px; }
a:hover { color: #335F63; }
:focus-visible { outline: 3px solid var(--su); outline-offset: 3px; }

.site-title { font-weight: 700; letter-spacing: -0.02em; }
.site-title small { font-weight: 400; }
.main-navigation .primary-menu-container > ul > li > a { font-size: 15px; font-weight: 500; color: var(--murekkep); }
.main-navigation .primary-menu-container > ul > li.current-menu-item > a { color: var(--su); }
.header-button-wrap .header-button,
.header-button-wrap .button {
	border-radius: 6px !important;
	background: var(--su) !important;
	font-weight: 600;
	font-size: 15px;
	box-shadow: none !important;
}

/* ---------- Yerleşim ---------- */
.entry-content > * { margin-top: 0; margin-bottom: 0; }
.ta-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.ta-narrow { max-width: 720px; }
.ta-section { padding: clamp(56px, 8vw, 112px) 0; }
.ta-section.is-buz { background: var(--buz); }
.ta-section.is-derin { background: var(--derin); color: #DDEBEC; }
.ta-section.is-derin h2, .ta-section.is-derin h3 { color: #fff; }
.ta-lead { font-size: 1.2rem; line-height: 1.6; color: var(--gri); max-width: 34em; }

/* ---------- Butonlar ---------- */
.ta-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ta-btn {
	display: inline-block;
	background: var(--su);
	color: #fff !important;
	text-decoration: none;
	padding: 15px 24px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	border: 1.5px solid var(--su);
}
.ta-btn:hover { background: #335F63; border-color: #335F63; }
.ta-btn.is-ghost { background: transparent; color: var(--murekkep) !important; border-color: var(--murekkep); }
.ta-btn.is-ghost:hover { background: var(--murekkep); color: #fff !important; }
.ta-btn.is-wa { background: var(--su); border-color: var(--su); }

/* ---------- Ana sayfa: hero ---------- */
.ta-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.ta-hero .ta-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.ta-hero h1 { margin: 0 0 24px; max-width: 11em; }
.ta-hero .ta-lead { margin-bottom: 0; }
.ta-hero-meta { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--cizgi); font-family: var(--f-baslik); font-size: 15px; color: var(--gri); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
.ta-hero-meta strong { display: block; color: var(--murekkep); font-weight: 600; }
.ta-portrait { margin: 0; }
.ta-portrait img, .ta-portrait .ta-portrait-yer { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; border-radius: 4px; display: block; }
.ta-portrait .ta-portrait-yer { background: var(--su); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; font-family: var(--f-baslik); }
.ta-portrait-yer span { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 700; line-height: .9; letter-spacing: -0.04em; color: rgba(255,255,255,.92); }
.ta-portrait figcaption { font-family: var(--f-baslik); font-size: 14px; color: var(--gri); margin-top: 12px; }

/* ---------- Tedavi dizini (liste, kart değil) ---------- */
.ta-index-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: end; margin-bottom: 40px; }
.ta-index-head h2 { margin: 0; }
.ta-index-head p { margin: 0; color: #C3DBDC; }
.ta-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.ta-index li { border-top: 1px solid rgba(255,255,255,.14); }
.ta-index a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 22px 0 24px; text-decoration: none; color: inherit; }
.ta-index h3 { margin: 0; font-size: 1.3rem; color: #fff; }
.ta-index p { grid-column: 1 / -1; margin: 0; font-size: 1rem; line-height: 1.55; color: #C3DBDC; max-width: 32em; }
.ta-index .ta-git { font-family: var(--f-baslik); font-size: 14px; color: var(--su-acik); align-self: center; }
.ta-index a:hover h3 { color: var(--su-acik); }
.ta-index a:focus-visible { outline-color: var(--su-acik); }

/* Açık zeminde aynı dizin (Tedaviler, Kocaeli sayfaları) */
.ta-index.is-acik li { border-top-color: var(--cizgi); }
.ta-index.is-acik h3 { color: var(--murekkep); }
.ta-index.is-acik p { color: var(--gri); }
.ta-index.is-acik .ta-git { color: var(--su); }
.ta-index.is-acik a:hover h3 { color: var(--su); }

/* ---------- Yaklaşım / süreç ---------- */
.ta-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.ta-split h2 { margin-top: 0; }
.ta-surec { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.ta-surec li { counter-increment: s; display: grid; grid-template-columns: 56px minmax(0, 1fr); padding: 20px 0; border-top: 1px solid var(--cizgi); }
.ta-surec li:before { content: counter(s); font-family: var(--f-baslik); font-size: 1.5rem; font-weight: 600; color: var(--su); line-height: 1.2; }
.ta-surec h3 { margin: 0 0 4px; }
.ta-surec p { margin: 0; color: var(--gri); font-size: 1rem; }

/* ---------- Hekim bölümü ---------- */
.ta-hekim p { max-width: 34em; }
.ta-adres { font-family: var(--f-baslik); font-size: 15px; line-height: 1.6; }
.ta-adres dt { color: var(--gri); font-weight: 400; margin-top: 18px; }
.ta-adres dd { margin: 0; color: var(--murekkep); font-weight: 600; font-size: 17px; }
.ta-adres a { color: var(--murekkep); }

/* ---------- SSS ---------- */
.ta-faqs { border-bottom: 1px solid var(--cizgi); }
.ta-faq { border-top: 1px solid var(--cizgi); margin: 0; padding: 0; background: none; }
.ta-faq summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; font-weight: 600; font-size: 1.08rem; color: var(--murekkep); position: relative; }
.ta-faq summary::-webkit-details-marker { display: none; }
.ta-faq summary:after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--su); border-bottom: 2px solid var(--su); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.ta-faq[open] summary:after { transform: translateY(-30%) rotate(-135deg); }
.ta-faq > p { margin: 0; padding: 0 48px 24px 0; color: var(--gri); max-width: 40em; }

/* ---------- Randevu bandı ---------- */
.ta-cta { background: var(--su); color: #fff; padding: clamp(40px, 6vw, 72px) 0; }
.ta-cta .ta-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.ta-cta h2 { color: #fff; margin: 0 0 8px; max-width: 18em; }
.ta-cta p { margin: 0; color: #F0F7F7; font-family: var(--f-baslik); font-size: 15px; }
.ta-cta .ta-btns { margin: 0; }
.ta-cta .ta-btn { background: #fff; color: var(--derin) !important; border-color: #fff; }
.ta-cta .ta-btn:hover { background: var(--derin); color: #fff !important; border-color: var(--derin); }
.ta-cta .ta-btn.is-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.7); }
.ta-cta .ta-btn.is-ghost:hover { background: #fff; color: var(--derin) !important; }

/* ---------- İç sayfalar ---------- */
.ta-page-hero { padding: clamp(40px, 6vw, 80px) 0 32px; }
.ta-page-hero .ta-inner { max-width: 820px; }
.ta-page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 0 0 18px; }
.ta-crumbs { font-size: 14px; color: var(--gri); margin-bottom: 28px; }
.ta-crumbs a { color: var(--gri); text-decoration: underline; text-decoration-color: var(--cizgi); }
.ta-crumbs a:hover { color: var(--su); }
.ta-content { max-width: 820px; margin: 0 auto; padding: 0 24px 64px; }
.ta-content > * { max-width: 680px; }
.ta-content h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 2.2em 0 .6em; }
.ta-content ul, .ta-content ol { padding-left: 1.2em; }
.ta-content li { margin-bottom: .45em; }
.ta-content li::marker { color: var(--su); }
.ta-summary { border-left: 3px solid var(--su); padding: 4px 0 4px 22px; margin: 8px 0 32px; font-size: 1.12rem; line-height: 1.65; color: var(--murekkep); }
.ta-summary strong { font-family: var(--f-baslik); font-weight: 600; color: var(--su); }
.ta-note { margin-top: 40px; font-size: .95rem; color: var(--gri); border-top: 1px solid var(--cizgi); padding-top: 20px; }

/* Liste ve iletişim (İletişim sayfası) */
.ta-iletisim { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.ta-map iframe { width: 100%; min-height: 420px; border: 0; border-radius: 4px; display: block; filter: saturate(.85); }

/* ---------- Sabit butonlar ---------- */
.ta-float { position: fixed; right: 20px; bottom: 20px; z-index: 9999; }
.ta-float a { display: flex; align-items: center; gap: 10px; background: var(--su); color: #fff; text-decoration: none; font-family: var(--f-baslik); font-weight: 600; font-size: 15px; padding: 12px 18px 12px 14px; border-radius: 6px; box-shadow: 0 6px 18px rgba(36, 73, 76, .22); }
.ta-float a:hover { background: #335F63; color: #fff; }
.ta-float svg { width: 22px; height: 22px; fill: #fff; }
.ta-float .is-call { display: none; }
.ta-mobile-bar { display: none; }

/* ---------- Footer ---------- */
.site-footer .site-middle-footer-wrap, .site-footer .site-bottom-footer-wrap { background: var(--derin); }
.site-footer, .site-footer p, .site-footer li { color: #C3DBDC; font-size: 16px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--su-acik); text-decoration: underline; }
.ta-foot h4 { color: #fff; font-family: var(--f-baslik); font-size: 15px; font-weight: 600; margin: 0 0 14px; }
.ta-foot ul { list-style: none; margin: 0; padding: 0; }
.ta-foot li { padding: 3px 0; }
.site-bottom-footer-wrap { border-top: 1px solid rgba(255,255,255,.1); }
.site-bottom-footer-wrap, .site-bottom-footer-wrap p { font-family: var(--f-baslik); font-size: 13px !important; color: #9BBCBE !important; }

/* Kadence blog arşivi */
.loop-entry { box-shadow: none !important; border: 1px solid var(--cizgi); border-radius: 4px; }

/* ---------- Duyarlı ---------- */
@media (max-width: 900px) {
	.ta-hero .ta-inner, .ta-split, .ta-index-head, .ta-iletisim { grid-template-columns: 1fr; }
	.ta-index { grid-template-columns: 1fr; }
	.ta-portrait { max-width: 420px; }
	.ta-index-head { gap: 12px; }
}
@media (max-width: 640px) {
	body { font-size: 17px; }
	.ta-hero-meta { grid-template-columns: 1fr; }
	.ta-float { display: none; }
	.ta-mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; border-top: 1px solid rgba(0,0,0,.08); }
	.ta-mobile-bar a { padding: 15px 10px; text-align: center; font-family: var(--f-baslik); font-weight: 600; font-size: 15px; text-decoration: none; }
	.ta-mobile-bar .is-call { background: #fff; color: var(--su); }
	.ta-mobile-bar .is-wa { background: var(--su); color: #fff; }
	body { padding-bottom: 52px; }
	.ta-faq > p, .ta-faq summary { padding-right: 36px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* ---------- Kadence içerik sıfırlamaları ---------- */
.entry-content ul.ta-index, .entry-content ol.ta-surec { padding-left: 0; margin-left: 0; }
.entry-content dl.ta-adres, .entry-content dl.ta-adres dd { margin-left: 0; }
.ta-content .ta-index { grid-template-columns: 1fr; margin: 8px 0 0; }
.ta-content .ta-index a { padding: 18px 0 20px; }
.ta-content .ta-index h3 { font-size: 1.12rem; }

/* ---------- İç sayfalar: tek sol hizası ---------- */
.ta-page-hero .ta-inner { max-width: 1160px !important; }
.ta-page-hero h1, .ta-page-hero .ta-lead { max-width: 760px; }
.ta-content { max-width: 1160px; }
.ta-content > *, .ta-content.is-layout-constrained > * { max-width: 680px; margin-left: 0 !important; margin-right: auto !important; }

/* ---------- Tedavi kartları (görselli) ---------- */
.ta-index.is-kart { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.ta-index.is-kart.sutun-2, .ta-content .ta-index.is-kart { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ta-index.is-kart li { border-top: 0; }
.ta-index.is-kart a { display: block; padding: 0; }
.ta-kart-gorsel { margin: 0 0 18px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--buz); }
.ta-kart-gorsel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ta-index.is-kart h3 { margin: 0 0 6px; }
.ta-index.is-kart p { font-size: .98rem; }
.ta-index.is-kart a:focus-visible { outline-offset: 6px; }
@media (max-width: 900px) {
	.ta-index.is-kart { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.ta-index.is-kart, .ta-index.is-kart.sutun-2, .ta-content .ta-index.is-kart { grid-template-columns: 1fr; }
}

/* ---------- Gerçek fotoğraflar ---------- */
.ta-foto { margin: 36px 0 0; }
.ta-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 4px; display: block; }
.ta-foto figcaption { font-family: var(--f-baslik); font-size: 14px; color: var(--gri); margin-top: 10px; }
.ta-foto.is-hakkimda { max-width: 420px; margin: 0 0 32px; }
.ta-foto.is-hakkimda img { object-position: top center; }
