/*
Theme Name:   Gemlik Avukat
Theme URI:    https://gemlikavukat.com/
Description:  Gemlik Avukat için modern, editoryal ve erişilebilir bir GeneratePress child theme'i. Hukuk bürosu kimliğine uygun tipografi, sakin bir renk paleti ve Gutenberg uyumlu bileşenler içerir.
Author:       Gemlik Avukat
Template:     generatepress
Version:      2.0.0
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  gemlik-avukat
Tags:         legal, business, blog, custom-colors, custom-menu, editor-style, featured-images, block-styles, wide-blocks, accessibility-ready
*/

/* =========================================================================
   1. TASARIM TOKEN'LARI
   ========================================================================= */
:root {
	/* --- Metin renkleri ---------------------------------------------------
	   Kontrast hedefi: gövde metni ≥ 7:1, ikincil metin ≥ 4.5:1 (WCAG AA/AAA).
	   Ölçüm: paper (#fbfaf8) üzerinde
	     ink      #0f172a → 16.8:1
	     ink-soft #1e293b → 13.9:1
	     slate    #3f4c5f →  9.2:1   (eskiden #475569 = 7.5:1)
	     muted    #55606f →  6.6:1   (eskiden #64748b = 4.9:1 — küçük metinde zayıftı)
	--------------------------------------------------------------------- */
	--g-ink:        #0f172a;
	--g-ink-soft:   #1e293b;
	--g-slate:      #3f4c5f;
	--g-muted:      #55606f;
	--g-line:       #dfe5ec;
	--g-line-soft:  #eef2f7;
	--g-paper:      #fbfaf8;
	--g-surface:    #ffffff;
	--g-accent:     #a37a1f;
	--g-accent-soft:#f6eeda;
	--g-accent-deep:#6f5210;
	--g-accent-ink: #5c440d;

	/* Koyu zemin üzerinde metin (hero/footer) */
	--g-on-ink:      #e8edf5;   /* 12.4:1 — gövde metni */
	--g-on-ink-soft: #c3cddd;   /*  8.2:1 — ikincil metin */

	--g-font-display: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Times New Roman', serif;
	--g-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;

	--g-radius-sm: 6px;
	--g-radius-md: 12px;
	--g-radius-lg: 20px;
	--g-radius-pill: 999px;

	--g-shadow-soft: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -12px rgba(15,23,42,.12);
	--g-shadow-lift: 0 2px 4px rgba(15,23,42,.05), 0 18px 40px -18px rgba(15,23,42,.22);

	--g-rule: 1px solid var(--g-line);
	--g-measure: 68ch;
	--g-wrap: 1180px;
	--g-wrap-narrow: 720px;

	/* --- Boşluk ölçeği (akışkan) ----------------------------------------- */
	--g-space-1: .5rem;
	--g-space-2: .75rem;
	--g-space-3: 1.25rem;
	--g-space-4: 2rem;
	--g-space-5: 3rem;
	--g-space-6: clamp(3.25rem, 2.2rem + 3.2vw, 5rem);
	--g-space-7: clamp(4rem, 2.6rem + 4.4vw, 6.5rem);

	/* --- Tipografi ölçeği ------------------------------------------------ */
	--g-fs-xs:  .8125rem;   /* 13px — etiket */
	--g-fs-sm:  .875rem;    /* 14px — ikincil */
	--g-fs-base:1.0625rem;  /* 17px — gövde */
	--g-fs-lg:  1.1875rem;  /* 19px — giriş paragrafı */
	--g-lh-tight: 1.15;
	--g-lh-snug:  1.35;
	--g-lh-body:  1.75;

	--g-ease: cubic-bezier(.22,.61,.36,1);
}

/* =========================================================================
   2. TEMEL
   ========================================================================= */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
	background-color: var(--g-paper);
	color: var(--g-ink-soft);
	font-family: var(--g-font-body);
	font-size: var(--g-fs-base);
	line-height: var(--g-lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.g-heading {
	font-family: var(--g-font-display);
	font-weight: 600;
	line-height: var(--g-lh-tight);
	letter-spacing: -0.015em;
	color: var(--g-ink);
	text-wrap: balance;
	margin: 0 0 .6em;
}

/* Başlık hiyerarşisi: her seviye arasında net boyut ve ağırlık farkı.
   Üst üste gelen başlıklarda nefes payı korunur. */
h1 + h2, h2 + h3, h3 + h4 { margin-top: 1.6em; }

h1 { font-size: clamp(2.1rem, 1.45rem + 2.4vw, 3.4rem); letter-spacing: -0.022em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.35vw, 2.15rem); letter-spacing: -0.018em; }
h3 { font-size: clamp(1.2rem, 1.06rem + .6vw, 1.5rem); line-height: var(--g-lh-snug); }
h4 { font-size: 1.0625rem; line-height: var(--g-lh-snug); }

/* Giriş paragrafı: gövdreden belirgin biçimde ayrışır */
.g-lead, .g-hero p, .g-page__lead, .g-article__lead {
	font-size: var(--g-fs-lg);
	line-height: 1.65;
	color: var(--g-slate);
}

p, ul, ol, blockquote { margin: 0 0 1.25em; }
p, li { text-wrap: pretty; }
/* Uzun okuma metninde satır uzunluğu sınırlanır (68ch ≈ ideal). */
.entry-content > p, .g-article__body > p, .g-page__body > p { max-width: var(--g-measure); }

ul, ol { padding-left: 1.35em; }
li + li { margin-top: .4em; }

a { color: var(--g-accent-deep); text-underline-offset: .18em; text-decoration-thickness: .06em; }
a:hover { color: var(--g-ink); }

/* Küçük/ikincil metin: artık WCAG AA'yı geçen bir renk kullanır */
.g-muted, .g-meta, small { color: var(--g-muted); font-size: var(--g-fs-sm); }

:focus-visible {
	outline: 2px solid var(--g-accent);
	outline-offset: 3px;
	border-radius: 3px;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

hr, .wp-block-separator {
	border: 0;
	border-top: var(--g-rule);
	margin: var(--g-space-5) 0;
}

/* Okunabilirlik: uzun içerikte başlık öncesi nefes */
.entry-content h2, .entry-content h3,
.g-article__body h2, .g-article__body h3,
.g-page__body h2, .g-page__body h3 { margin-top: 2.1em; }
.entry-content > *:first-child, .g-article__body > *:first-child, .g-page__body > *:first-child { margin-top: 0; }

/* Blok alıntı: kurumsal ve okunaklı */
blockquote, .wp-block-quote {
	margin: 1.75em 0; padding: .25em 0 .25em 1.35em;
	border-left: 3px solid var(--g-accent);
	color: var(--g-slate); font-size: 1.05rem;
}
blockquote cite, .wp-block-quote cite { display: block; margin-top: .6em; font-size: var(--g-fs-sm); color: var(--g-muted); font-style: normal; }

/* Tablo: taşma yerine yatay kaydırma */
.entry-content table, .g-article__body table {
	width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: var(--g-fs-sm);
	display: block; overflow-x: auto; white-space: nowrap;
}
.entry-content th, .entry-content td { border: var(--g-rule); padding: .6em .8em; text-align: left; }
.entry-content th { background: var(--g-line-soft); font-weight: 600; color: var(--g-ink); }

/* Erişilebilirlik: yalnızca ekran okuyucu */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}

/* =========================================================================
   3. YERLEŞİM
   ========================================================================= */
.g-wrap { width: 100%; max-width: var(--g-wrap); margin-inline: auto; padding-inline: var(--g-space-3); }
.g-wrap--narrow { max-width: var(--g-wrap-narrow); }
.g-section { padding-block: var(--g-space-6); }
.g-section--tight { padding-block: var(--g-space-5); }
.g-section--paper { background: var(--g-paper); }
.g-section--ink { background: var(--g-ink); color: #cbd5e1; }
.g-section--ink h1, .g-section--ink h2, .g-section--ink h3 { color: #fff; }
.g-section--accent { background: var(--g-accent-soft); }

.g-stack > * + * { margin-top: var(--g-space-3); }
.g-grid { display: grid; gap: var(--g-space-3); }
.g-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g-grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* =========================================================================
   4. ÜST BİLGİ + NAVİGASYON
   ========================================================================= */
.g-topbar {
	background: var(--g-ink);
	color: #cbd5e1;
	font-size: .82rem;
	letter-spacing: .01em;
}
.g-topbar__inner {
	display: flex; flex-wrap: wrap; gap: var(--g-space-2) var(--g-space-3);
	align-items: center; justify-content: space-between;
	padding-block: .55rem;
}
.g-topbar a { color: #e2e8f0; text-decoration: none; }
.g-topbar a:hover { color: #fff; }
.g-topbar__meta { display: flex; flex-wrap: wrap; gap: var(--g-space-3); align-items: center; }

.site-header { position: relative; background: var(--g-surface); border-bottom: var(--g-rule); }
.g-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: var(--g-space-3); padding-block: var(--g-space-2);
}
.g-brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.g-brand__name {
	font-family: var(--g-font-display);
	font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em;
	color: var(--g-ink); line-height: 1.1;
}
.g-brand__tag { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--g-accent); font-weight: 600; }

.g-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--g-space-3); }
.g-nav a {
	font-size: .92rem; font-weight: 500; color: var(--g-ink-soft);
	text-decoration: none; padding-block: .4rem; position: relative;
}
.g-nav a::after {
	content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
	height: 2px; background: var(--g-accent); transition: right .28s var(--g-ease);
}
.g-nav a:hover::after, .g-nav .current-menu-item > a::after { right: 0; }

/* --- Açılır alt menü (Çalışma Alanları) ------------------------------- */
.g-topbar__sep { opacity: .45; }

.g-menu__caret {
	display: inline-block; width: 6px; height: 6px; margin-left: .4rem;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg); opacity: .7;
}
.g-nav .menu-item-has-children { position: relative; }
.g-nav .sub-menu {
	position: absolute; left: 0; top: 100%; z-index: 65;
	display: block; min-width: 265px; margin: 0; padding: .4rem;
	list-style: none;
	background: var(--g-surface); border: var(--g-rule); border-radius: var(--g-radius-sm);
	box-shadow: var(--g-shadow-lift);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s var(--g-ease), transform .18s var(--g-ease), visibility .18s;
}
.g-nav .menu-item-has-children:hover > .sub-menu,
.g-nav .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.g-nav .sub-menu li { border: 0; }
.g-nav .sub-menu a {
	display: block; padding: .55rem .7rem; font-size: var(--g-fs-sm);
	border-radius: var(--g-radius-sm); white-space: nowrap;
}
.g-nav .sub-menu a::after { display: none; }
.g-nav .sub-menu a:hover { background: var(--g-accent-soft); color: var(--g-ink); }

/* --- Header telefon CTA ------------------------------------------------ */
.g-header__cta {
	display: flex; flex-direction: column; justify-content: center; gap: 1px;
	padding: .5rem .95rem; min-height: 46px; flex: none;
	background: var(--g-accent); color: #fff; border-radius: var(--g-radius-sm);
	text-decoration: none; line-height: 1.15;
	transition: background-color .2s var(--g-ease), transform .2s var(--g-ease);
}
.g-header__cta:hover { background: var(--g-accent-deep); color: #fff; transform: translateY(-1px); }
.g-header__cta-label { font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.g-header__cta-number { font-size: .95rem; font-weight: 700; white-space: nowrap; }

.g-nav-toggle { display: none; }

@media (max-width: 1040px) {
	.g-header__cta { display: none; }
}

@media (max-width: 860px) {
	.g-nav-toggle {
		display: inline-flex; align-items: center; gap: .5rem;
		background: var(--g-surface); border: var(--g-rule); border-radius: var(--g-radius-sm);
		padding: .55rem .8rem; font: inherit; font-size: .85rem; font-weight: 600;
		color: var(--g-ink); cursor: pointer; min-height: 44px;
	}
	.g-nav-toggle__bars { display: inline-block; width: 16px; height: 2px; background: currentColor; position: relative; }
	.g-nav-toggle__bars::before, .g-nav-toggle__bars::after {
		content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor;
	}
	.g-nav-toggle__bars::before { top: -5px; } .g-nav-toggle__bars::after { top: 5px; }
	.g-nav-toggle[aria-expanded="true"] .g-nav-toggle__bars { background: transparent; }
	.g-nav-toggle[aria-expanded="true"] .g-nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
	.g-nav-toggle[aria-expanded="true"] .g-nav-toggle__bars::after  { transform: translateY(-5px) rotate(-45deg); }

	.g-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--g-surface); border-bottom: var(--g-rule);
		box-shadow: var(--g-shadow-lift); padding: var(--g-space-2) var(--g-space-3) var(--g-space-3);
		z-index: 60; max-height: calc(100vh - 120px); overflow-y: auto;
	}
	.g-nav.is-open { display: block; }
	.g-nav ul { flex-direction: column; gap: 0; }
	.g-nav li { border-bottom: 1px solid var(--g-line-soft); }
	.g-nav li:last-child { border-bottom: 0; }
	.g-nav a { display: block; padding: .85rem 0; font-size: 1rem; }
	.g-nav a::after { display: none; }

	/* Mobilde alt menü içeride açılır, taşma yapmaz. */
	.g-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; background: transparent; min-width: 0;
		padding: 0 0 .4rem .9rem;
	}
	.g-nav .sub-menu a { padding: .5rem 0; font-size: .93rem; color: var(--g-slate); }
	.g-menu__caret { display: none; }
}

/* =========================================================================
   5. HERO
   ========================================================================= */
.g-hero {
	position: relative;
	background: linear-gradient(135deg, #0b1220 0%, #16243c 55%, #1d3050 100%);
	color: var(--g-on-ink);
	overflow: hidden;
}
.g-hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(58% 48% at 88% 8%, rgba(163,122,31,.26), transparent 72%),
		repeating-linear-gradient(115deg, rgba(255,255,255,.022) 0 1px, transparent 1px 78px);
}
.g-hero__inner { position: relative; z-index: 1; padding-block: clamp(3.25rem, 7vw, 6.5rem); }

/* Kontrast: başlık saf beyaz, gövde 12.4:1 oranında açık ton. */
.g-hero h1 { color: #ffffff; max-width: 24ch; margin-bottom: .5em; }
.g-hero p { color: var(--g-on-ink); max-width: 60ch; font-size: var(--g-fs-lg); line-height: 1.65; }
.g-hero a:not(.g-btn) { color: #f0d89a; text-decoration-color: rgba(240,216,154,.45); }
.g-hero a:not(.g-btn):hover { color: #ffffff; }

.g-hero__eyebrow {
	display: inline-flex; align-items: center; gap: .55rem;
	font-size: var(--g-fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: #e3c477; margin-bottom: var(--g-space-2);
}
.g-hero__eyebrow::before { content: ""; width: 28px; height: 1px; background: #e3c477; }
.g-hero__actions { display: flex; flex-wrap: wrap; gap: var(--g-space-2); margin-top: var(--g-space-4); }

/* Hero içinde güven şeridi: hızlı bilgi noktaları */
.g-hero__points {
	display: flex; flex-wrap: wrap; gap: var(--g-space-3) var(--g-space-4);
	margin-top: var(--g-space-4); padding-top: var(--g-space-3);
	border-top: 1px solid rgba(255,255,255,.16);
	font-size: var(--g-fs-sm); color: var(--g-on-ink-soft);
}
.g-hero__points span { display: inline-flex; align-items: center; gap: .45rem; }
.g-hero__points span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--g-accent); flex: none; }

/* =========================================================================
   6. BUTONLAR
   ========================================================================= */
.g-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .85em 1.6em; min-height: 46px;
	font-family: var(--g-font-body); font-size: .9rem; font-weight: 600; letter-spacing: .01em;
	border-radius: var(--g-radius-sm); border: 1px solid transparent;
	text-decoration: none; cursor: pointer;
	transition: background-color .2s var(--g-ease), color .2s var(--g-ease), border-color .2s var(--g-ease), transform .2s var(--g-ease);
}
.g-btn--primary { background: var(--g-ink); color: #fff; }
.g-btn--primary:hover { background: var(--g-accent-deep); color: #fff; transform: translateY(-1px); }
.g-btn--accent { background: var(--g-accent); color: #fff; }
.g-btn--accent:hover { background: var(--g-accent-deep); color: #fff; transform: translateY(-1px); }
.g-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.g-btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.7); }
.g-btn--outline { background: transparent; color: var(--g-ink); border-color: var(--g-line); }
.g-btn--outline:hover { border-color: var(--g-ink); background: var(--g-surface); }

/* =========================================================================
   7. KARTLAR
   ========================================================================= */
.g-card {
	background: var(--g-surface); border: var(--g-rule); border-radius: var(--g-radius-md);
	padding: var(--g-space-3); box-shadow: var(--g-shadow-soft);
	transition: box-shadow .25s var(--g-ease), transform .25s var(--g-ease), border-color .25s var(--g-ease);
}
.g-card:hover { box-shadow: var(--g-shadow-lift); transform: translateY(-2px); border-color: #cbd5e1; }
.g-card h3 { font-size: 1.15rem; margin-bottom: .35em; }
.g-card p:last-child { margin-bottom: 0; }
.g-card__icon {
	width: 40px; height: 40px; border-radius: var(--g-radius-sm);
	background: var(--g-accent-soft); color: var(--g-accent-deep);
	display: grid; place-items: center; margin-bottom: var(--g-space-2); font-weight: 700;
}
.g-card--rule { border-top: 3px solid var(--g-accent); }

.g-linkgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--g-space-2); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g-linkgrid a {
	display: flex; align-items: center; justify-content: space-between; gap: var(--g-space-2);
	padding: .95rem 1.1rem; background: var(--g-surface);
	border: var(--g-rule); border-radius: var(--g-radius-sm);
	text-decoration: none; color: var(--g-ink); font-weight: 500; font-size: .95rem;
	transition: border-color .2s var(--g-ease), background-color .2s var(--g-ease);
}
.g-linkgrid a::after { content: "→"; color: var(--g-accent); transition: transform .2s var(--g-ease); }
.g-linkgrid a:hover { border-color: var(--g-accent); background: #fffdf7; }
.g-linkgrid a:hover::after { transform: translateX(3px); }

/* =========================================================================
   8. BÖLGESEL SAYFA
   ========================================================================= */
.gemlik-regional { padding-block: var(--g-space-5); }
.gemlik-regional__inner { width: 100%; max-width: var(--g-wrap); margin-inline: auto; padding-inline: var(--g-space-3); }

.gemlik-regional__header {
	border-left: 3px solid var(--g-accent);
	padding-left: var(--g-space-3);
	margin-bottom: var(--g-space-5);
}
.gemlik-regional__title { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); margin-bottom: .3em; }
.gemlik-regional__lead { color: var(--g-slate); font-size: 1.08rem; max-width: var(--g-measure); margin: 0; }

.gemlik-regional__section {
	background: var(--g-surface); border: var(--g-rule); border-radius: var(--g-radius-md);
	padding: var(--g-space-4); margin-bottom: var(--g-space-3);
}
.gemlik-regional__section h2 { font-size: 1.25rem; }
.gemlik-regional__section p:last-child { margin-bottom: 0; }

.gemlik-regional__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.gemlik-regional__links a {
	display: flex; align-items: center; gap: .55rem;
	padding: .7rem .9rem; border: var(--g-rule); border-radius: var(--g-radius-sm);
	text-decoration: none; color: var(--g-ink-soft); font-size: .93rem;
	transition: border-color .2s var(--g-ease), color .2s var(--g-ease);
}
.gemlik-regional__links a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--g-accent); flex: none; }
.gemlik-regional__links a:hover { border-color: var(--g-accent); color: var(--g-ink); }

/* =========================================================================
   9. SSS (details/summary tabanlı, JS'siz çalışır)
   ========================================================================= */
.g-faq { border-top: var(--g-rule); }
.g-faq__item { border-bottom: var(--g-rule); }
.g-faq__q {
	display: flex; align-items: flex-start; justify-content: space-between; gap: var(--g-space-3);
	width: 100%; padding: 1.1rem 0; cursor: pointer; list-style: none;
	font-family: var(--g-font-display); font-size: 1.08rem; font-weight: 600; color: var(--g-ink);
}
.g-faq__q::-webkit-details-marker { display: none; }
.g-faq__q::after {
	content: "+"; flex: none; font-family: var(--g-font-body); font-weight: 500;
	font-size: 1.3rem; line-height: 1; color: var(--g-accent); transition: transform .25s var(--g-ease);
}
.g-faq__item[open] .g-faq__q::after { transform: rotate(45deg); }
.g-faq__a { padding-bottom: 1.1rem; color: var(--g-slate); max-width: var(--g-measure); }
.g-faq__a p:last-child { margin-bottom: 0; }

/* =========================================================================
   10. YAZI / İÇERİK
   ========================================================================= */
.entry-content { max-width: var(--g-wrap-narrow); margin-inline: auto; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2 { margin-top: 2em; padding-top: 1.5em; border-top: var(--g-rule); }
.entry-content h3 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content blockquote {
	border-left: 3px solid var(--g-accent);
	padding: .4em 0 .4em 1.25em; margin: 1.6em 0;
	font-family: var(--g-font-display); font-style: italic; font-size: 1.15rem; color: var(--g-ink);
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { padding: .7rem .8rem; border: var(--g-rule); text-align: left; }
.entry-content th { background: var(--g-paper); font-weight: 600; color: var(--g-ink); }
.entry-content code { background: var(--g-line-soft); padding: .15em .4em; border-radius: 4px; font-size: .9em; }

.wp-block-button__link { border-radius: var(--g-radius-sm) !important; }

.post-meta { font-size: .85rem; color: var(--g-muted); }
.post-meta a { color: var(--g-slate); }

/* =========================================================================
   11. SABİT İLETİŞİM DÜĞMESİ
   ========================================================================= */
/* Footer kuralları bölüm 17'dedir (tek kaynak). */
.g-whatsapp {
	position: fixed; right: 18px; bottom: 18px; z-index: 70;
	display: inline-flex; align-items: center; gap: .5rem;
	background: #128c4a; color: #fff; font-weight: 600; font-size: .9rem;
	padding: .8rem 1.15rem; border-radius: var(--g-radius-pill);
	box-shadow: 0 10px 30px rgba(0,0,0,.22);
	text-decoration: none; min-height: 46px;
}
.g-whatsapp:hover { background: #0f7a40; color: #fff; }
@media (max-width: 600px) { .g-whatsapp { right: 12px; bottom: 12px; padding: .75rem 1rem; } }

/* =========================================================================
   12. YARDIMCI
   ========================================================================= */
.g-lede { font-size: 1.15rem; color: var(--g-slate); max-width: var(--g-measure); }
.g-muted { color: var(--g-muted); }
.g-eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--g-accent); }
.g-note {
	background: var(--g-accent-soft); border-left: 3px solid var(--g-accent);
	border-radius: 0 var(--g-radius-sm) var(--g-radius-sm) 0;
	padding: var(--g-space-3); font-size: .95rem;
}
.g-rule-t { border-top: var(--g-rule); padding-top: var(--g-space-3); }

/* =========================================================================
   16. PORTAL BİLEŞENLERİ
   ========================================================================= */

/* --- Bölüm başlığı: ortalanmış, açıklamalı ---------------------------- */
.g-sechead { max-width: 62ch; margin-bottom: var(--g-space-4); }
.g-sechead--center { margin-inline: auto; text-align: center; }
.g-sechead p { color: var(--g-slate); font-size: var(--g-fs-lg); line-height: 1.6; margin: .5em 0 0; }

/* --- Hizmet ızgarası --------------------------------------------------- */
.g-services { display: grid; gap: var(--g-space-3); grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); }
.g-service {
	display: flex; flex-direction: column; gap: .55rem;
	background: var(--g-surface); border: var(--g-rule); border-radius: var(--g-radius-md);
	padding: var(--g-space-3) var(--g-space-3) var(--g-space-3);
	text-decoration: none; color: inherit;
	box-shadow: var(--g-shadow-soft);
	transition: transform .22s var(--g-ease), box-shadow .22s var(--g-ease), border-color .22s var(--g-ease);
}
.g-service:hover { transform: translateY(-3px); box-shadow: var(--g-shadow-lift); border-color: var(--g-accent); color: inherit; }
.g-service__icon {
	display: grid; place-items: center; width: 42px; height: 42px; flex: none;
	background: var(--g-accent-soft); color: var(--g-accent-ink);
	border-radius: var(--g-radius-sm); font-family: var(--g-font-display);
	font-size: 1.15rem; font-weight: 700;
}
.g-service h3 { font-size: 1.12rem; margin: 0; line-height: 1.3; }
.g-service p { margin: 0; font-size: var(--g-fs-sm); line-height: 1.65; color: var(--g-slate); }
.g-service__more { margin-top: auto; padding-top: .5rem; font-size: var(--g-fs-sm); font-weight: 600; color: var(--g-accent-deep); }
.g-service:hover .g-service__more { color: var(--g-ink); }

/* --- Güven / gerekçe listesi ------------------------------------------ */
.g-trust { display: grid; gap: var(--g-space-3); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.g-trust__item { padding-left: 1.6rem; position: relative; }
.g-trust__item::before {
	content: ""; position: absolute; left: 0; top: .55em;
	width: 9px; height: 9px; border-radius: 2px; background: var(--g-accent);
}
.g-trust__item h3 { font-size: 1.02rem; margin: 0 0 .25em; }
.g-trust__item p { margin: 0; font-size: var(--g-fs-sm); color: var(--g-slate); line-height: 1.65; }

/* --- İçerik listesi (rehber / güncel) --------------------------------- */
.g-posts { display: grid; gap: var(--g-space-3); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g-post {
	display: flex; flex-direction: column; gap: .45rem;
	background: var(--g-surface); border: var(--g-rule); border-radius: var(--g-radius-md);
	padding: var(--g-space-3); text-decoration: none; color: inherit;
	transition: transform .22s var(--g-ease), box-shadow .22s var(--g-ease), border-color .22s var(--g-ease);
}
.g-post:hover { transform: translateY(-3px); box-shadow: var(--g-shadow-lift); border-color: var(--g-accent); color: inherit; }
.g-post__cat {
	font-size: var(--g-fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	color: var(--g-accent-deep);
}
.g-post h3 { font-size: 1.05rem; margin: 0; line-height: 1.35; }
.g-post p { margin: 0; font-size: var(--g-fs-sm); color: var(--g-slate); line-height: 1.6; }
.g-post__meta { margin-top: auto; padding-top: .5rem; font-size: var(--g-fs-xs); color: var(--g-muted); }

/* Liste hâlinde içerik (yan sütun / arşiv) */
.g-postlist { list-style: none; margin: 0; padding: 0; }
.g-postlist li { padding: .7rem 0; border-bottom: var(--g-rule); margin: 0; }
.g-postlist li:last-child { border-bottom: 0; }
.g-postlist a { font-weight: 500; text-decoration: none; }
.g-postlist a:hover { text-decoration: underline; }
.g-postlist time { display: block; font-size: var(--g-fs-xs); color: var(--g-muted); margin-top: .15rem; }

/* --- CTA şeridi -------------------------------------------------------- */
.g-cta {
	background: linear-gradient(135deg, #0b1220 0%, #17263f 60%, #1d3050 100%);
	color: var(--g-on-ink); border-radius: var(--g-radius-md);
	padding: clamp(1.75rem, 1rem + 3vw, 3rem);
}
.g-cta h2 { color: #fff; margin-bottom: .35em; }
.g-cta p { color: var(--g-on-ink); margin-bottom: var(--g-space-3); max-width: 58ch; }
.g-cta__actions { display: flex; flex-wrap: wrap; gap: var(--g-space-2); }

/* --- Bilgi kutusu (mevzuat / not) ------------------------------------- */
.g-note {
	background: var(--g-accent-soft); border-left: 3px solid var(--g-accent);
	border-radius: 0 var(--g-radius-sm) var(--g-radius-sm) 0;
	padding: var(--g-space-3); margin: 1.75em 0;
}
.g-note h3, .g-note h4 { margin-top: 0; font-size: 1.02rem; }
.g-note p:last-child, .g-note ul:last-child { margin-bottom: 0; }

/* =========================================================================
   17. FOOTER
   ========================================================================= */
.site-footer {
	background: #0b1220; color: var(--g-on-ink-soft);
	margin-top: var(--g-space-7); padding-block: var(--g-space-5) var(--g-space-3);
	font-size: var(--g-fs-sm);
}
.site-footer a { color: var(--g-on-ink-soft); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.g-footer__grid {
	display: grid; gap: var(--g-space-4);
	grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
}
.g-footer__col h2, .g-footer__col h3 {
	color: #fff; font-family: var(--g-font-body); font-size: var(--g-fs-xs);
	font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	margin: 0 0 .9em;
}
.g-footer__brand { font-family: var(--g-font-display); font-size: 1.35rem; color: #fff; margin: 0 0 .35em; }
.g-footer__about { margin: 0 0 1em; line-height: 1.7; max-width: 38ch; }
.g-footer__menu, .g-footer__col ul { list-style: none; margin: 0; padding: 0; }
.g-footer__menu li, .g-footer__col li { margin-bottom: .55em; line-height: 1.5; }
.g-footer__contact li { display: flex; gap: .55rem; align-items: flex-start; }
.g-footer__contact li span:first-child { color: var(--g-accent); flex: none; }
.g-footer__bottom {
	margin-top: var(--g-space-4); padding-top: var(--g-space-3);
	border-top: 1px solid rgba(255,255,255,.12);
	display: flex; flex-wrap: wrap; gap: var(--g-space-2) var(--g-space-3);
	justify-content: space-between; align-items: center;
	font-size: var(--g-fs-xs); color: #93a1b5;
}
.g-footer__legal { display: flex; flex-wrap: wrap; gap: .35rem 1rem; list-style: none; margin: 0; padding: 0; }
.g-footer__legal a { color: #a9b6c8; }
.g-footer__disclaimer { font-size: var(--g-fs-xs); color: #93a1b5; line-height: 1.6; margin: .8em 0 0; }

@media (max-width: 900px) {
	.g-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.g-footer__grid { grid-template-columns: 1fr; gap: var(--g-space-3); }
	.g-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================
   18. MAKALE VE SAYFA */

.g-article__header { padding-block: var(--g-space-5) var(--g-space-3); border-bottom: var(--g-rule); }
.g-article__title { font-size: clamp(1.8rem, 1.3rem + 2vw, 3rem); margin-bottom: .35em; }
.g-article__lead { font-size: 1.15rem; color: var(--g-slate); max-width: var(--g-measure); margin: 0 0 var(--g-space-2); }
.g-article__thumb { margin-block: var(--g-space-4); }
.g-article__thumb img { border-radius: var(--g-radius-md); width: 100%; }
.g-article__body { padding-block: var(--g-space-4); }
.g-article__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: var(--g-space-4) 0; }
.g-tag {
	display: inline-block; padding: .3rem .7rem; font-size: .8rem;
	background: var(--g-accent-soft); color: var(--g-accent-deep);
	border-radius: var(--g-radius-pill); text-decoration: none;
}
.g-tag:hover { background: var(--g-accent); color: #fff; }

.g-related { margin-top: var(--g-space-5); padding-top: var(--g-space-4); border-top: var(--g-rule); }
.g-related h2 { font-size: 1.3rem; }
.g-related .g-card { display: block; text-decoration: none; color: inherit; }
.g-related .g-card h3 { font-size: 1.02rem; }

.g-article__cta,
.g-page__cta {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	color: #cbd5e1; border-radius: var(--g-radius-md);
	padding: var(--g-space-4); margin-top: var(--g-space-5);
}
.g-article__cta h2,
.g-page__cta h2 { color: #fff; font-size: 1.3rem; }
.g-article__cta p { color: #cbd5e1; }

.g-page__header { padding-block: var(--g-space-5) var(--g-space-4); border-bottom: var(--g-rule); }
.g-page__header--ink {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #24344d 100%);
	color: #cbd5e1; border-bottom: 0;
}
.g-page__header--ink .g-page__title { color: #fff; }
.g-page__title { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.7rem); margin-bottom: .3em; }
.g-page__lead { font-size: 1.1rem; color: var(--g-slate); max-width: var(--g-measure); margin: 0; }
.g-page__header--ink .g-page__lead { color: #cbd5e1; }
.g-page__body { padding-block: var(--g-space-4); }

.g-contact-cards {
	display: grid; gap: var(--g-space-3); margin: var(--g-space-4) 0;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.g-contact-cards h3 { font-size: 1rem; margin-bottom: .3em; }
.g-contact-cards p { margin: 0; }

.g-pagelinks { margin: var(--g-space-4) 0; font-size: .9rem; }
.g-pagelinks a { margin-right: .6rem; }

@media print {
	.g-article__cta, .g-related, .g-whatsapp { display: none !important; }
}

/* =========================================================================
   15. YAZDIRMA
   ========================================================================= */
@media print {
	.g-topbar, .g-nav, .g-whatsapp, .site-footer, .g-hero__actions { display: none !important; }
	body { background: #fff; color: #000; font-size: 11pt; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
}

/* =========================================================================
   19. ÖN SAYFA (tam genişlik)
   ========================================================================= */
/*
 * SORUN: GeneratePress sayfa içeriğini `.grid-container` sarmalayıcısına alır
 * ve ona max-width uygular. Ön sayfadaki bölümlerin (hero, hizmet ızgarası,
 * CTA) tam genişlik olması gerekir; aksi hâlde içerik sol tarafta sıkışır.
 *
 * ÇÖZÜM: Kapsayıcıdan taşma (break-out) tekniği. Yatay kaydırma oluşmaması
 * için body üzerinde overflow-x kapatılır.
 */
body.gemlik-theme { overflow-x: hidden; }

.g-page--front {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
	padding: 0;
}

.g-page--front .g-front,
.g-page--front .g-front__body {
	width: 100%;
	max-width: none;
	padding: 0;
	margin: 0;
}

/* Bölümler kendi iç boşluğunu yönetir. */
.g-front__body > section { margin-block: 0; }
.g-front__body > * { max-width: none; }

/* Ön sayfada GeneratePress başlık alanı bastırılır (hero kendi h1'ini taşır). */
.g-page--front .entry-header,
.g-page--front .page-header { display: none; }

@media print {
	.g-front__body, .g-front, .g-page--front { max-width: none; width: auto; margin: 0; }
}
