/* ==========================================================================
   Ajans Theme – main.css
   Temel stiller, tipografi, düzen, header ve footer. Mobil öncelikli.
   Değişkenler eklentideki "Tasarım" panelinden üretilir; aşağıdakiler yedektir
   (:where ile sıfır özgüllük, böylece eklenti değerleri her zaman kazanır).
   ========================================================================== */

:where(:root) {
	--color-primary: #448e00;
	--color-primary-soft: #ecf4e6;
	--color-primary-contrast: #ffffff;
	--color-secondary: #17301f;
	--color-secondary-contrast: #ffffff;
	--color-accent: #f2a516;
	--color-bg: #ffffff;
	--color-surface: #f3f6ef;
	--color-card: #ffffff;
	--color-text: #2c3830;
	--color-heading: #0f1d14;
	--color-muted: #5f6d64;
	--color-border: #dbe3d5;
	--color-button: #448e00;
	--color-button-hover: #356f00;
	--color-button-text: #ffffff;
	--color-header: #ffffff;
	--color-footer: #0f1d14;
	--color-footer-text: #c3cec6;
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-heading: var(--font-body);
	--fw-heading: 700;
	--fs-h1: clamp(35px, calc(35px + 23 * ((100vw - 375px) / 1065)), 58px);
	--fs-h2: clamp(28px, calc(28px + 12 * ((100vw - 375px) / 1065)), 40px);
	--fs-h3: clamp(20px, calc(20px + 4 * ((100vw - 375px) / 1065)), 24px);
	--fs-h4: 19px;
	--fs-body: 17px;
	--fs-button: 16px;
	--lh-body: 1.65;
	--container: 1240px;
	--radius: 8px;
	--radius-card: 14px;
	--radius-button: 8px;
	--section-pad: clamp(57px, calc(57px + 47 * ((100vw - 375px) / 1065)), 104px);
	--shadow: 0 1px 2px rgba(16, 28, 20, .05), 0 6px 20px rgba(16, 28, 20, .06);
	--shadow-lg: 0 2px 6px rgba(16, 28, 20, .06), 0 18px 44px rgba(16, 28, 20, .10);
	--header-h: 78px;
}

:root {
	--gutter: 20px;
	--focus: 0 0 0 3px var(--color-bg), 0 0 0 5px var(--color-primary);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* Reset --------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	margin: 0;
	min-height: 100vh;
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

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

img {
	border-style: none;
}

button,
input,
select,
textarea {
	color: inherit;
	font: inherit;
}

a {
	color: var(--color-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}

a:hover {
	color: var(--color-button-hover);
}

:focus-visible {
	border-radius: 4px;
	box-shadow: var(--focus);
	outline: 2px solid transparent;
}

::selection {
	background: var(--color-primary);
	color: var(--color-primary-contrast);
}

/* Tipografi ----------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-weight: var(--fw-heading);
	letter-spacing: -.02em;
	line-height: 1.15;
	margin: 0 0 .5em;
	text-wrap: balance;
}

h1 { font-size: var(--fs-h1); letter-spacing: -.03em; line-height: 1.06; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
h4 { font-size: var(--fs-h4); line-height: 1.3; }
h5, h6 { font-size: 1rem; }

p {
	margin: 0 0 1em;
}

ul,
ol {
	margin: 0 0 1em;
	padding-left: 1.25em;
}

address {
	font-style: normal;
}

hr {
	border: 0;
	border-top: 1px solid var(--color-border);
	margin: 2em 0;
}

/* Erişilebilirlik ----------------------------------------------------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--color-card);
	clip: auto !important;
	clip-path: none;
	color: var(--color-heading);
	display: block;
	height: auto;
	left: 8px;
	padding: 12px 20px;
	top: 8px;
	width: auto;
	z-index: 100000;
}

.skip-link {
	background: var(--color-heading);
	border-radius: var(--radius);
	color: var(--color-bg);
	font-weight: 600;
	left: 12px;
	padding: 10px 16px;
	position: absolute;
	top: -100px;
	z-index: 1000;
}

.skip-link:focus {
	color: var(--color-bg);
	top: 12px;
}

.site-main:focus {
	outline: none;
}

/* Düzen --------------------------------------------------------------- */
.container {
	margin-inline: auto;
	max-width: calc(var(--container) + var(--gutter) * 2);
	padding-inline: var(--gutter);
	width: 100%;
}

.container--narrow {
	max-width: calc(800px + var(--gutter) * 2);
}

.grid {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr;
}

.btn-group {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.empty-state {
	background: var(--color-surface);
	border: 1px dashed var(--color-border);
	border-radius: var(--radius-card);
	color: var(--color-muted);
	padding: 32px;
	text-align: center;
}

.empty-state .btn {
	margin-top: 8px;
}

/* Header -------------------------------------------------------------- */
.site-header {
	background: var(--color-header);
	border-bottom: 1px solid var(--color-border);
	position: relative;
	z-index: 50;
}

.has-sticky-header .site-header {
	position: sticky;
	top: 0;
}

.admin-bar.has-sticky-header .site-header {
	top: var(--wp-admin--admin-bar--height, 0px);
}

.site-header.is-scrolled {
	box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
}

.site-header__inner {
	align-items: center;
	display: flex;
	gap: 16px;
	min-height: var(--header-h);
}

.site-logo {
	align-items: center;
	color: var(--color-heading);
	display: inline-flex;
	flex-shrink: 0;
	text-decoration: none;
}

.site-logo__img {
	max-width: 200px;
	object-fit: contain;
	object-position: left center;
	width: auto;
}

.site-logo__img--desktop,
.site-logo__img--light {
	display: none;
}

.site-logo__img--mobile {
	display: block;
}

.site-logo__text {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: var(--fw-heading);
	letter-spacing: -.02em;
}

.site-header__actions {
	align-items: center;
	display: flex;
	gap: 8px;
	margin-left: auto;
}

.header-phone,
.header-cta {
	display: none;
}

.header-phone {
	align-items: center;
	color: var(--color-heading);
	font-weight: 600;
	gap: 8px;
	text-decoration: none;
	white-space: nowrap;
}

.header-phone .ajans-icon {
	color: var(--color-primary);
}

.icon-btn {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: var(--radius);
	color: var(--color-heading);
	cursor: pointer;
	display: inline-flex;
	height: 44px;
	justify-content: center;
	padding: 0;
	width: 44px;
}

.icon-btn:hover {
	background: var(--color-surface);
}

.icon-btn--outline {
	border: 1px solid var(--color-border);
	border-radius: 50%;
}

.theme-toggle__sun,
.nav-toggle__close {
	display: none;
}

:root[data-theme="dark"] .theme-toggle__sun {
	display: inline-flex;
}

:root[data-theme="dark"] .theme-toggle__moon {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
	display: inline-flex;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
	display: none;
}

/* Mobil menü (varsayılan) */
.site-nav {
	background: var(--color-header);
	border-top: 1px solid var(--color-border);
	display: none;
	inset: var(--header-h) 0 auto 0;
	max-height: calc(100vh - var(--header-h));
	max-height: calc(100dvh - var(--header-h));
	overflow-y: auto;
	padding: 12px var(--gutter) 28px;
	position: absolute;
}

.site-nav.is-open {
	display: block;
}

.site-nav .menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav .menu a {
	border-bottom: 1px solid var(--color-border);
	color: var(--color-heading);
	display: block;
	font-weight: 600;
	padding: 14px 0;
	text-decoration: none;
}

.site-nav .menu .current-menu-item > a,
.site-nav .menu a:hover {
	color: var(--color-primary);
}

.site-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0 0 0 16px;
}

.site-nav .sub-menu a {
	font-weight: 500;
}

.site-nav__extra {
	display: grid;
	gap: 12px;
	padding-top: 20px;
}

.site-nav__contact {
	align-items: center;
	color: var(--color-heading);
	display: inline-flex;
	font-weight: 600;
	gap: 10px;
	text-decoration: none;
}

.site-nav__extra .btn {
	justify-content: center;
	width: 100%;
}

body.nav-open {
	overflow: hidden;
}

/* Şeffaf header */
.has-transparent-header .site-header:not(.is-scrolled) {
	background: transparent;
	border-bottom-color: transparent;
	left: 0;
	position: fixed;
	right: 0;
}

.has-transparent-header .site-header:not(.is-scrolled):not(.nav-is-open) .site-logo__text,
.has-transparent-header .site-header:not(.is-scrolled):not(.nav-is-open) .header-phone,
.has-transparent-header .site-header:not(.is-scrolled):not(.nav-is-open) .icon-btn {
	color: #fff;
}

.has-transparent-header .site-header:not(.is-scrolled):not(.nav-is-open) .site-logo:has(.site-logo__img--light) .site-logo__img {
	display: none;
}

.has-transparent-header .site-header:not(.is-scrolled):not(.nav-is-open) .site-logo__img--light {
	display: block;
}

.has-transparent-header .site-header.nav-is-open {
	background: var(--color-header);
}

.has-transparent-header .hero {
	padding-top: calc(var(--section-pad) + var(--header-h));
}

/* Sayfa başlığı ------------------------------------------------------- */
.page-header {
	padding: calc(var(--section-pad) * .55) 0 calc(var(--section-pad) * .5);
}

.page-title {
	font-size: var(--fs-h1);
	margin-bottom: .3em;
	max-width: 20ch;
}

.page-lead {
	color: var(--color-muted);
	font-size: 1.15em;
	max-width: 62ch;
}

/* Breadcrumb */
.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	font-size: .875rem;
	gap: 4px;
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.breadcrumb li {
	align-items: center;
	color: var(--color-muted);
	display: inline-flex;
}

.breadcrumb li + li::before {
	color: var(--color-border);
	content: "/";
	margin-right: 4px;
}

.breadcrumb a {
	color: var(--color-muted);
	text-decoration: none;
}

.breadcrumb a:hover {
	color: var(--color-primary);
	text-decoration: underline;
}

.breadcrumb [aria-current] {
	color: var(--color-heading);
}

/* İçerik -------------------------------------------------------------- */
.entry-content {
	max-width: 72ch;
}

.entry-content > * + * {
	margin-top: 0;
}

.entry-content h2 {
	font-size: calc(var(--fs-h2) * .8);
	margin-top: 1.6em;
}

.entry-content h3 {
	margin-top: 1.4em;
}

.entry-content img {
	border-radius: var(--radius);
}

.entry-content blockquote {
	border-left: 3px solid var(--color-primary);
	color: var(--color-heading);
	font-size: 1.1em;
	margin: 1.5em 0;
	padding-left: 20px;
}

.entry-content table {
	border-collapse: collapse;
	display: block;
	overflow-x: auto;
	width: 100%;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--color-border);
	padding: 10px 12px;
	text-align: left;
}

.entry-content pre {
	background: var(--color-surface);
	border-radius: var(--radius);
	overflow-x: auto;
	padding: 16px;
}

.entry-cover {
	border-radius: var(--radius-card);
	margin: 0 0 32px;
	overflow: hidden;
}

.entry-cover img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	width: 100%;
}

.entry-meta {
	color: var(--color-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: .9rem;
	gap: 6px 16px;
}

.alignwide {
	margin-inline: calc(-1 * var(--gutter));
}

.alignfull {
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

.wp-caption-text,
figcaption {
	color: var(--color-muted);
	font-size: .875rem;
}

/* Footer -------------------------------------------------------------- */
.site-footer {
	background: var(--color-footer);
	color: var(--color-footer-text);
	font-size: .95rem;
	padding-top: calc(var(--section-pad) * .75);
}

.site-footer a {
	color: var(--color-footer-text);
	text-decoration: none;
}

.site-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.site-footer__grid {
	display: grid;
	gap: 36px;
	grid-template-columns: 1fr;
	padding-bottom: 40px;
}

.site-footer .site-logo,
.site-footer .site-logo__text {
	color: #fff;
}

.site-footer__desc {
	margin: 16px 0 20px;
	max-width: 38ch;
}

.site-footer__title {
	color: #fff;
	font-size: 1rem;
	letter-spacing: 0;
	margin-bottom: 14px;
}

.footer-links {
	display: grid;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.contact-list {
	display: grid;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.contact-list li {
	align-items: flex-start;
	display: flex;
	gap: 10px;
}

.contact-list .ajans-icon {
	flex-shrink: 0;
	margin-top: 3px;
}

.site-footer .contact-list .ajans-icon {
	color: var(--color-primary);
}

.site-footer__bottom {
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, .1);
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-bottom: 28px;
	padding-top: 24px;
}

.site-footer__copy {
	margin: 0;
}

.legal-links ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.link-button {
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: .2em;
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.social-links a {
	align-items: center;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 50%;
	display: inline-flex;
	height: 42px;
	justify-content: center;
	width: 42px;
}

.site-footer .social-links a:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-primary-contrast);
	text-decoration: none;
}

.social-links--dark a {
	border-color: var(--color-border);
	color: var(--color-heading);
}

/* Hareket tercihi ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}
