/*
Theme Name: Gündüz Ofis
Description: Gündüz Ofis için sade ve modern tema.
Version: 1.0.2
Requires PHP: 7.4
Text Domain: gunduz
*/

:root {
	--bg: #faf8f5;
	--surface: #f2eee8;
	--surface-2: #ebe5dc;
	--ink: #1f1c19;
	--ink-2: #3b3631;
	--muted: #6f675e;
	--line: #e3ddd3;
	--accent: #b0532c;
	--accent-ink: #8e3f1f;
	--accent-soft: #f4e4da;
	--dark: #23201c;
	--wa: #1f9d55;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgba(31, 28, 25, .04), 0 8px 24px rgba(31, 28, 25, .06);
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.03em; }
h3 { font-size: 1.05rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.icon { flex-shrink: 0; }

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

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .9em; }
.eyebrow-light { color: #f1c7ae; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 46em; }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 48px; padding: 0 1.4em;
	border-radius: 999px; border: 1.5px solid var(--accent);
	background: var(--accent); color: #fff;
	font: inherit; font-weight: 700; font-size: .95rem; line-height: 1;
	cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
	white-space: nowrap;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 1.1em; font-size: .88rem; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--surface); color: var(--ink); border-color: var(--surface-2); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--surface); border-color: var(--surface); color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.btn-wa { background: var(--wa); border-color: var(--wa); }
.btn-wa:hover { background: #17834a; border-color: #17834a; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--ink); }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(250, 248, 245, .88);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { color: var(--accent); }
.brand-text { font-size: 1.25rem; letter-spacing: -.03em; font-weight: 500; }
.brand-text strong { font-weight: 800; }
.custom-logo-link img { max-height: 44px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu a { display: block; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.site-nav .menu a:hover { color: var(--ink); background: var(--surface); }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--ink); background: var(--surface); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; color: var(--ink); cursor: pointer; }

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed; inset: 76px 0 auto 0;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 16px var(--gutter) 24px;
		background: var(--bg); border-bottom: 1px solid var(--line);
		box-shadow: 0 20px 30px rgba(31, 28, 25, .08);
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: opacity .2s, transform .2s, visibility .2s;
	}
	.site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.site-nav .menu { flex-direction: column; gap: 2px; }
	.site-nav .menu a { padding: 12px 14px; font-size: 1.05rem; border-radius: 12px; }
	.site-nav .btn { min-height: 48px; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding-top: clamp(24px, 4vw, 48px); }
.section-alt { background: var(--surface); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0; }
.section-lead { color: var(--muted); margin: .6em 0 0; max-width: 34em; }

.page-head { padding: clamp(40px, 7vw, 88px) 0 clamp(8px, 2vw, 16px); }
.page-head h1 { margin-bottom: .3em; }

/* ---------- Hero ---------- */

.hero { padding-top: 8px; }
.hero-card {
	position: relative; overflow: hidden;
	min-height: clamp(460px, 72vh, 660px);
	display: flex; align-items: center;
	border-radius: calc(var(--radius) + 6px);
	background: #4a3a2c var(--hero) 72% center / cover no-repeat;
	color: #fff;
}
.hero-card::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(28, 20, 14, .72) 0%, rgba(28, 20, 14, .45) 45%, rgba(28, 20, 14, 0) 75%);
}
.hero-content { position: relative; max-width: 600px; padding: clamp(28px, 6vw, 72px); }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero-lead { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: rgba(255, 255, 255, .85); max-width: 30em; margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 700px) {
	.hero-card { align-items: flex-end; background-position: 80% center; }
	.hero-card::before { background: linear-gradient(0deg, rgba(28, 20, 14, .85) 0%, rgba(28, 20, 14, .55) 55%, rgba(28, 20, 14, .15) 100%); }
	.hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Features ---------- */

.features-section { padding-bottom: 0; }
.features {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, 1fr);
	border: 1px solid var(--line); border-radius: var(--radius);
	background: #fff; overflow: hidden;
}
.feature { display: flex; gap: 16px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature:nth-child(3n) { border-right: 0; }
.feature:nth-last-child(-n + 3) { border-bottom: 0; }
.feature h3 { margin-bottom: .3em; }
.feature p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }

@media (max-width: 900px) {
	.features { grid-template-columns: 1fr 1fr; }
	.feature:nth-child(n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
	.feature:nth-child(2n) { border-right: 0; }
	.feature:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 560px) {
	.features { grid-template-columns: 1fr; }
	.feature:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px; }
	.feature:last-child { border-bottom: 0; }
}

/* ---------- Product cards ---------- */

.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 2vw, 24px); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { display: flex; flex-direction: column; color: var(--ink); }
.card:hover { color: var(--ink); }
.card-media {
	aspect-ratio: 1; display: grid; place-items: center;
	background: var(--surface); border-radius: var(--radius); overflow: hidden;
	transition: background .3s;
}
.section-alt .card-media { background: #fff; }
.card-media img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-media { background: var(--surface-2); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; padding: 14px 4px 0; }
.card-title { font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.card-meta { color: var(--muted); font-size: .88rem; }

@media (max-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .cards, .cards-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .cards, .cards-4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Split ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.split-media img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 3 / 2; }
.split-text p { color: var(--muted); font-size: 1.05rem; }
.split-text .link-arrow { margin-top: .5em; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 18px); }
.gallery-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.gallery-item:hover img { transform: scale(1.04); }
@media (max-width: 800px) { .gallery, .gallery-4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Prose ---------- */

.prose { max-width: 760px; }
.prose p { color: var(--ink-2); font-size: 1.06rem; line-height: 1.8; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose h3 { font-size: 1.5rem; }
.prose > :first-child { margin-top: 0; }
.prose img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.split .prose { max-width: none; }

/* ---------- Product page ---------- */

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: clamp(20px, 3vw, 32px); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.product-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.product-main {
	display: grid; place-items: center; aspect-ratio: 1;
	background: var(--surface); border-radius: calc(var(--radius) + 4px); overflow: hidden; cursor: zoom-in;
}
.product-main img { width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.product-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb {
	width: 84px; height: 84px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm);
	background: var(--surface); cursor: pointer; overflow: hidden; display: grid; place-items: center;
	transition: border-color .2s;
}
.thumb img { width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.thumb:hover { border-color: var(--surface-2); }
.thumb.is-active { border-color: var(--accent); }

.product-info { position: sticky; top: 100px; }
.product-info h1 { margin-bottom: .25em; }
.product-info .lead { margin-bottom: 1.6em; }

.sizes { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; margin-bottom: 24px; }
.sizes-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sizes-title .icon { color: var(--accent); }
.sizes-title small { color: var(--muted); font-weight: 500; }
.sizes table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sizes th { text-align: left; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 20px 8px; }
.sizes td { padding: 12px 20px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.sizes td:first-child { font-weight: 700; }
.sizes td:nth-child(2) { color: var(--muted); }

.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.product-actions .btn { flex: 1 1 220px; }

.assure { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: .93rem; }
.assure li { display: flex; align-items: center; gap: 10px; }
.assure .icon { color: var(--accent); }

@media (max-width: 860px) {
	.product-grid { grid-template-columns: 1fr; }
	.product-info { position: static; }
}
.sizes th, .sizes td { white-space: nowrap; }
@media (max-width: 480px) {
	.sizes { overflow-x: auto; }
	.sizes th, .sizes td { padding-left: 10px; padding-right: 10px; }
	.sizes th { letter-spacing: .02em; font-size: .7rem; }
	.sizes table { font-size: .88rem; }
	.thumb { width: 68px; height: 68px; }
}

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card {
	display: flex; gap: 16px; align-items: flex-start;
	padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
	transition: border-color .2s, transform .2s;
}
a.contact-card:hover { border-color: var(--surface-2); color: var(--ink); transform: translateY(-1px); }
.contact-card strong { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-card span > a { display: block; }
.contact-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.contact-card-wa .contact-icon { background: #e3f4ea; color: var(--wa); }

.form-card { padding: clamp(22px, 4vw, 40px); border-radius: calc(var(--radius) + 4px); background: var(--surface); }
.form-card h2 { font-size: 1.5rem; margin-bottom: 1em; }

.map { margin-top: clamp(28px, 5vw, 56px); border-radius: var(--radius); overflow: hidden; background: var(--surface); height: clamp(300px, 38vw, 460px); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.4) contrast(1.02); }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Contact Form 7 */
.wpcf7 form p { margin: 0 0 14px; }
.wpcf7 label { display: block; font-weight: 600; font-size: .9rem; }
.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 textarea,
.wpcf7 select {
	width: 100%; margin-top: 6px; padding: 13px 16px;
	font: inherit; font-size: 1rem; color: var(--ink);
	background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
	transition: border-color .2s, box-shadow .2s;
}
.wpcf7 textarea { height: 160px; min-height: 120px; resize: vertical; }
.wpcf7 form br { display: none; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.wpcf7 input[type="submit"] {
	min-height: 50px; padding: 0 2em; border: 0; border-radius: 999px;
	background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--accent-ink); }
.wpcf7 .wpcf7-response-output { margin: 16px 0 0 !important; border-radius: var(--radius-sm); padding: 12px 16px !important; }
.wpcf7-not-valid-tip { font-size: .85rem; margin-top: 4px; }

/* ---------- CTA band ---------- */

.cta-band { padding: 0 0 clamp(56px, 8vw, 96px); }
.cta-inner {
	display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
	background: var(--dark); color: #fff;
	border-radius: calc(var(--radius) + 6px);
	padding: clamp(32px, 5vw, 64px);
	max-width: calc(var(--wrap));
}
.cta-band .wrap.cta-inner { width: calc(100% - var(--gutter) * 2); }
.cta-inner h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); max-width: 18em; }
.cta-inner p { color: rgba(255, 255, 255, .7); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) { .cta-actions, .cta-actions .btn { width: 100%; } }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 72px); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { color: var(--muted); margin-top: 16px; max-width: 24em; }
.site-footer h3 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2em; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-menu a { color: var(--ink-2); }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; color: var(--ink-2); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { color: var(--accent); margin-top: 3px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 28px; color: var(--muted); font-size: .85rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- WhatsApp float ---------- */

.wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 40;
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
	background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(31, 157, 85, .35);
	transition: transform .2s;
}
.wa-float:hover { color: #fff; transform: scale(1.06); }

/* ---------- Lightbox ---------- */

.lightbox {
	width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
	background: rgba(20, 17, 14, .94);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 86vh; border-radius: 10px; object-fit: contain; }
.lightbox button {
	position: absolute; display: grid; place-items: center; width: 48px; height: 48px;
	border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next { display: none; }

/* ---------- Posts ---------- */

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; }
.post-card img { border-radius: var(--radius); margin-bottom: 16px; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card h2 { font-size: 1.3rem; }
.post-card p:last-child { color: var(--muted); }
.empty { color: var(--muted); }

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