/*
Theme Name: G&G Kurumsal
Theme URI: https://www.ggkurumsal.com
Author: Optivisible
Author URI: https://optivisible.com
Description: G&G Kurumsal Danışmanlık için özel tasarlanmış tema. Etkinleştirildiğinde sayfaları, menüyü ve anasayfayı otomatik kurar.
Version: 1.1.3
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: gg-kurumsal
*/

/* ---------- Temel ---------- */
:root {
	--gg-navy: #0F2A44;
	--gg-navy-dark: #0B2036;
	--gg-accent: #C08A4A;
	--gg-accent-ink: #876134;
	--gg-cream: #F5F2EC;
	--gg-line: #E6E0D5;
	--gg-text: #1E2329;
	--gg-muted: #5A6470;
	--gg-sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--gg-display: 'Sora', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: #FFFFFF;
	color: var(--gg-text);
	font-family: var(--gg-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--gg-navy); }
a:hover { color: var(--gg-text); }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
details summary { position: relative; padding-right: 32px; }
details summary::after { content: '+'; position: absolute; right: 0; top: -2px; font-size: 24px; font-weight: 400; color: var(--gg-accent-ink); }
details[open] summary::after { content: '–'; }
:focus-visible { outline: 3px solid var(--gg-accent); outline-offset: 2px; }
.gg-skip { position: absolute; left: -9999px; top: 8px; background: var(--gg-navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.gg-skip:focus { left: 16px; color: #fff; }
.gg-content [id] { scroll-margin-top: 90px; }

.gg-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.gg-wrap--narrow { max-width: 820px; }

/* ---------- Butonlar ---------- */
.gg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: 999px; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.gg-btn--dark { background: var(--gg-navy); color: #FFFFFF; }
.gg-btn--dark:hover { background: #1A3B5C; color: #FFFFFF; }
.gg-btn--ghost { border: 1.5px solid #D8D2C7; color: var(--gg-navy); padding: 10px 18px; }
.gg-btn--ghost:hover, .gg-btn--ghost.is-active { border-color: var(--gg-accent); background: var(--gg-cream); color: var(--gg-navy); }
.gg-btn--accent { background: var(--gg-accent); color: var(--gg-navy); font-weight: 700; padding: 14px 26px; font-size: 16px; }
.gg-btn--accent:hover { background: #CF9A5A; color: var(--gg-navy); }

/* ---------- Header ---------- */
.gg-header { position: sticky; top: 0; z-index: 50; background: #FFFFFF; border-bottom: 1px solid #ECE8E1; }
.admin-bar .gg-header { top: 32px; }
.gg-header__top { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* Logo: eski sitedeki yapı (G&G + KURUMSAL DANIŞMANLIK, ortalı) */
.gg-logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; flex-shrink: 0; color: #2D3C5D; }
.gg-logo__mark { font-family: 'Arial Black', 'Arial Bold', Gadget, Arial, sans-serif; font-weight: 900; font-size: 34px; letter-spacing: 0.1em; padding-left: 0.1em; color: #2D3C5D; line-height: 1; }
.gg-logo__sub { margin-top: 6px; font-family: Tahoma, Verdana, 'Segoe UI', sans-serif; font-weight: 700; font-size: 10.5px; letter-spacing: 0.15em; padding-left: 0.15em; color: #2D3C5D; white-space: nowrap; }
.gg-logo:hover .gg-logo__mark, .gg-logo:hover .gg-logo__sub { color: var(--gg-navy); }
.gg-logo--img { display: inline-flex; }
.gg-logo__img { display: block; height: 56px; width: auto; max-width: 240px; object-fit: contain; }
.gg-logo--light .gg-logo__img { filter: brightness(0) invert(1); }
@media (max-width: 1060px) { .gg-logo__img { height: 46px; } }

.gg-header__contact { display: flex; align-items: center; gap: 20px; }
.gg-header__tel, .gg-header__wa { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--gg-navy); }
.gg-header__tel svg { color: var(--gg-accent-ink); }
.gg-header__wa svg { color: #1E8E4E; }
.gg-header__tel:hover, .gg-header__wa:hover { color: var(--gg-accent-ink); }

.gg-nav-wrap { border-top: 1px solid #F0ECE5; }
.gg-nav { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gg-menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: 4px 20px; font-weight: 600; font-size: 15.5px; }
.gg-menu > li { position: relative; }
.gg-menu a { display: block; text-decoration: none; padding: 13px 0; border-bottom: 2px solid transparent; color: var(--gg-navy); white-space: nowrap; }
.gg-menu a:hover { color: var(--gg-accent-ink); }
.gg-menu .current-menu-item > a,
.gg-menu .current_page_item > a,
.gg-menu .current_page_parent > a,
.gg-menu .current-menu-ancestor > a,
.gg-menu .current-menu-parent > a { color: var(--gg-accent-ink); border-bottom-color: var(--gg-accent); }
.gg-menu .menu-item-has-children > a { display: flex; align-items: center; gap: 6px; }
.gg-menu .menu-item-has-children > a::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); opacity: .7; }
.gg-menu .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; left: -12px; top: 100%; min-width: 220px; background: #FFFFFF; border: 1px solid #ECE8E1; border-radius: 14px; box-shadow: 0 18px 36px rgba(15, 42, 68, 0.12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 60; }
.gg-menu li:hover > .sub-menu, .gg-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.gg-menu .sub-menu a { padding: 10px 12px; border-bottom: 0; border-radius: 10px; font-size: 15px; }
.gg-menu .sub-menu a:hover, .gg-menu .sub-menu .current-menu-item > a { background: var(--gg-cream); color: var(--gg-navy); }
.gg-nav-mobile-cta { display: none; }

.gg-burger { display: none; width: 46px; height: 46px; border: 1.5px solid #D8D2C7; border-radius: 12px; background: #FFFFFF; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.gg-burger span { display: block; width: 20px; height: 2px; background: var(--gg-navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.gg-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gg-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.gg-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
	.gg-header__contact { gap: 16px; }
	.gg-header__tel, .gg-header__wa { font-size: 14px; }
	.gg-menu { font-size: 14.5px; gap: 4px 14px; }
}
@media (max-width: 1060px) {
	.gg-header__contact { display: none; }
	.gg-burger { display: flex; }
	.gg-logo__mark { font-size: 28px; }
	.gg-logo__sub { font-size: 9px; }
	.gg-nav-wrap { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #FFFFFF; border-bottom: 1px solid #ECE8E1; box-shadow: 0 18px 30px rgba(15, 42, 68, 0.08); padding: 4px 0 24px; max-height: calc(100vh - 80px); overflow-y: auto; }
	.gg-nav-wrap.is-open { display: block; }
	.gg-menu { flex-direction: column; gap: 0; font-size: 18px; }
	.gg-menu a { padding: 14px 0; border-bottom: 1px solid #F0ECE5; white-space: normal; }
	.gg-menu .current-menu-item > a, .gg-menu .current_page_item > a, .gg-menu .current_page_parent > a, .gg-menu .current-menu-ancestor > a, .gg-menu .current-menu-parent > a { border-bottom-color: #F0ECE5; }
	.gg-menu .menu-item-has-children > a::after { display: none; }
	.gg-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; background: transparent; }
	.gg-menu .sub-menu a { font-size: 16px; padding: 12px 0; border-radius: 0; border-bottom: 1px solid #F0ECE5; color: var(--gg-muted); }
	.gg-menu .sub-menu a:hover { background: transparent; }
	.gg-nav-mobile-cta { display: flex; flex-wrap: wrap; gap: 10px; max-width: 1200px; margin: 18px auto 0; padding: 0 24px; }
	.gg-nav-mobile-cta .gg-btn { flex: 1 1 160px; padding: 14px 18px; font-size: 16px; }
}
@media (max-width: 782px) { .admin-bar .gg-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .gg-header { top: 0; } }

.gg-btn--wa { background: #1E8E4E; color: #FFFFFF; }
.gg-btn--wa:hover { background: #177540; color: #FFFFFF; }

/* ---------- Sosyal medya ---------- */
.gg-sosyal { display: flex; flex-wrap: wrap; gap: 10px; }
.gg-sosyal__link { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: background .15s, color .15s; }
.gg-sosyal--acik .gg-sosyal__link { background: var(--gg-cream); color: var(--gg-navy); }
.gg-sosyal--acik .gg-sosyal__link:hover { background: var(--gg-navy); color: #FFFFFF; }
.gg-sosyal--koyu .gg-sosyal__link { background: #1A324D; color: #C9D3DE; }
.gg-sosyal--koyu .gg-sosyal__link:hover { background: var(--gg-accent); color: var(--gg-navy); }
.gg-footer .gg-sosyal { margin-top: 12px; }
.gg-sosyal-wrap { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.gg-sosyal-baslik { font-family: var(--gg-display); font-weight: 600; font-size: 15px; color: var(--gg-navy); }

/* ---------- Referanslar (kayan logolar) ---------- */
.gg-ref { overflow: hidden; }
.gg-ref--blok { padding: 0 0 clamp(60px, 8.67vw, 104px); }
.gg-ref--blok .gg-wrap { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.gg-ref__baslik { margin: 0; font-family: var(--gg-display); font-weight: 700; font-size: clamp(26px, 3.17vw, 38px); letter-spacing: -0.02em; color: var(--gg-navy); }
.gg-ref--serit { border-bottom: 1px solid #ECE8E1; }
.gg-ref--serit .gg-ref__in { max-width: 1200px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; gap: 28px; }
.gg-ref__label { flex-shrink: 0; font-size: 14px; font-weight: 600; color: var(--gg-muted); max-width: 180px; }
.gg-ref__marquee { display: flex; overflow: hidden; min-width: 0; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.gg-ref__track { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 56px; padding-right: 56px; flex-shrink: 0; animation: gg-kay var(--gg-ref-sure, 30s) linear infinite; }
.gg-ref__marquee:hover .gg-ref__track { animation-play-state: paused; }
.gg-ref__item { flex-shrink: 0; height: 64px; display: flex; align-items: center; }
.gg-ref__logo { max-height: 56px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.gg-ref__item:hover .gg-ref__logo { filter: none; opacity: 1; }
@keyframes gg-kay { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .gg-ref__track { animation: none; } .gg-ref__marquee { overflow-x: auto; } }
@media (max-width: 700px) { .gg-ref--serit .gg-ref__in { flex-direction: column; align-items: flex-start; gap: 12px; } .gg-ref__label { max-width: none; } .gg-ref__marquee { width: 100%; } }

/* ---------- Sabit WhatsApp düğmesi ---------- */
.gg-wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: inline-flex; align-items: center; gap: 10px; background: #1E8E4E; color: #FFFFFF; text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 18px 12px 14px; border-radius: 999px; box-shadow: 0 10px 28px rgba(14, 70, 38, 0.32); transition: transform .15s, background .15s; }
.gg-wa-float:hover { background: #177540; color: #FFFFFF; transform: translateY(-2px); }
@media (max-width: 700px) { .gg-wa-float { padding: 14px; right: 16px; bottom: 16px; } .gg-wa-float span { display: none; } }

/* ---------- Footer ---------- */
.gg-footer { background: var(--gg-navy-dark); color: #9FB0C2; font-size: 15px; }
.gg-footer a { color: #C9D3DE; text-decoration: none; }
.gg-footer a:hover { color: #FFFFFF; }
.gg-footer__top { max-width: 1200px; margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.gg-footer__col { display: flex; flex-direction: column; gap: 10px; }
.gg-footer__brand p { margin: 8px 0 0; max-width: 280px; }
.gg-footer__title { font-family: var(--gg-display); font-weight: 600; color: #FFFFFF; font-size: 15px; margin-bottom: 4px; }
.gg-logo--light, .gg-logo--light .gg-logo__mark, .gg-logo--light .gg-logo__sub { color: #FFFFFF; }
.gg-footer__brand .gg-logo { align-self: flex-start; }
.gg-footer__bottom { max-width: 1200px; margin: 0 auto; padding: 22px 24px 28px; border-top: 1px solid #1F3650; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.gg-footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
@media (max-width: 900px) { .gg-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gg-footer__top { grid-template-columns: 1fr; } }

/* ---------- Sayfa başlığı (blog, yazı, düz sayfalar) ---------- */
.gg-page-hero { background: var(--gg-cream); }
.gg-page-hero .gg-wrap { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(44px, 5.5vw, 64px); display: flex; flex-direction: column; gap: 16px; }
.gg-page-hero h1 { margin: 0; font-family: var(--gg-display); font-weight: 700; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.12; letter-spacing: -0.025em; color: var(--gg-navy); }
.gg-crumb { font-size: 14px; color: var(--gg-muted); }
.gg-crumb a { color: var(--gg-muted); }
.gg-lead { margin: 0; font-size: 19px; color: #4A5562; max-width: 680px; }
.gg-meta { font-size: 15px; color: var(--gg-muted); }
.gg-eyebrow { font-size: 13px; letter-spacing: 0.1em; font-weight: 700; color: var(--gg-accent-ink); }
.gg-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.gg-pill { background: #FFFFFF; color: var(--gg-navy); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 18px; border-radius: 999px; border: 1px solid #E0D9CC; }
.gg-pill.is-active, .gg-pill:hover { background: var(--gg-navy); color: #FFFFFF; border-color: var(--gg-navy); }

/* ---------- Blog listesi ---------- */
.gg-list { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(64px, 8vw, 104px); }
.gg-featured { text-decoration: none; display: flex; flex-wrap: wrap; align-items: center; border: 1px solid var(--gg-line); border-radius: 24px; overflow: hidden; margin-bottom: 32px; }
.gg-featured__img { flex: 1 1 440px; min-width: 0; display: block; }
.gg-featured__body { flex: 1 1 400px; min-width: 0; padding: clamp(24px, 3vw, 36px) clamp(22px, 3.3vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.gg-featured__title { font-family: var(--gg-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; color: var(--gg-navy); }
.gg-featured__excerpt { font-size: 16px; color: var(--gg-muted); }
.gg-more { font-weight: 600; color: var(--gg-navy); margin-top: 4px; }
.gg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.gg-card { background: var(--gg-cream); border-radius: 18px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; }
.gg-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.gg-card__title { font-family: var(--gg-display); font-weight: 600; font-size: 19px; line-height: 1.35; color: var(--gg-navy); }
.gg-card--empty { background: transparent; border: 1.5px dashed #D8D0C2; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 32px; min-height: 260px; color: var(--gg-muted); }
.gg-thumb-ph { display: flex; align-items: center; justify-content: center; background: #E3DCCF; width: 100%; }
.gg-thumb-ph span { font-family: var(--gg-display); font-weight: 700; font-size: 28px; color: #B9AE9C; }
.gg-pagination { margin-top: 40px; }
.gg-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.gg-pagination .page-numbers { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--gg-line); text-decoration: none; font-weight: 600; }
.gg-pagination .page-numbers.current { background: var(--gg-navy); color: #FFFFFF; border-color: var(--gg-navy); }

/* ---------- Yazı ve düz sayfa içeriği ---------- */
.gg-single-thumb { margin-top: 40px; }
.gg-prose-wrap { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.gg-prose { font-size: 18px; line-height: 1.75; color: #2B3138; }
.gg-prose h2 { font-family: var(--gg-display); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.25; color: var(--gg-navy); margin: 1.8em 0 .6em; }
.gg-prose h3 { font-family: var(--gg-display); font-size: 21px; color: var(--gg-navy); margin: 1.6em 0 .5em; }
.gg-prose a { color: var(--gg-accent-ink); font-weight: 600; }
.gg-prose ul, .gg-prose ol { padding-left: 1.3em; }
.gg-prose li { margin-bottom: .4em; }
.gg-prose blockquote { margin: 1.6em 0; padding: 18px 24px; background: var(--gg-cream); border-radius: 14px; font-family: var(--gg-display); color: var(--gg-navy); }
.gg-prose img { height: auto; border-radius: 16px; }
.gg-cta-box { background: var(--gg-navy); color: #C9D3DE; border-radius: 24px; padding: clamp(26px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.gg-cta-box > div { display: flex; flex-direction: column; gap: 6px; flex: 1 1 320px; }
.gg-cta-box__title { font-family: var(--gg-display); font-weight: 700; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.25; color: #FFFFFF; }

/* ---------- Formlar ---------- */
.gg-content input:not([type="checkbox"]):not([type="file"]), .gg-content select, .gg-content textarea { width: 100%; color: var(--gg-text); }
.gg-content input:focus, .gg-content select:focus, .gg-content textarea:focus { outline: 2px solid var(--gg-accent); outline-offset: 1px; border-color: var(--gg-accent) !important; }
.gg-content button[type="submit"]:hover { background: #1A3B5C !important; }
.gg-form-msg { padding: 14px 18px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.gg-form-msg--ok { background: #E6F2EA; color: #1E5B34; border: 1px solid #BFDCC9; }
.gg-form-msg--hata { background: #FBEAEA; color: #8A2222; border: 1px solid #EFC6C6; }
.gg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Mobil ince ayarlar ---------- */
@media (max-width: 700px) {
	.gg-content [style*="border-radius: 28px"], .gg-content [style*="border-radius: 24px; padding: 48px"] { border-radius: 20px !important; }
	.gg-content details { padding: 16px 18px !important; }
	.gg-content [style*="border-right: 1px solid #E6E0D5"] { border-right: 0 !important; padding-right: 0 !important; }
	.gg-content details summary { font-size: 16px !important; }
}
