/*
Theme Name: Seyit Güneş İnşaat
Theme URI: https://example.com
Author: Seyit Güneş İnşaat
Description: Seyit Güneş İnşaat Elektrik için kurumsal tema. Hizmetler, projeler (panelden yönetilir), referanslar, iletişim formu ve WhatsApp butonu içerir. Etkinleştirildiğinde projeler, görseller ve menü otomatik kurulur.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: seyitgunes
*/

:root {
	--navy: #0e1b2c;
	--navy-2: #16283f;
	--steel: #34526f;
	--orange: #f28c1b;
	--orange-d: #d97606;
	--yellow: #ffc233;
	--ink: #1b2430;
	--muted: #5f6b7a;
	--line: #e3e7ec;
	--soft: #f4f6f8;
	--white: #fff;
	--radius: 10px;
	--shadow: 0 10px 30px rgba(14, 27, 44, .10);
	--head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 400 17px/1.65 var(--body); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-d); text-decoration: none; }
a:hover { color: var(--orange); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.08; margin: 0 0 .5em; letter-spacing: .2px; color: inherit; }
h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
h3 { font-size: 24px; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.screen-reader-text, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.eyebrow { font: 600 13px/1 var(--body); letter-spacing: 2.4px; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--orange); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 6px; background: var(--orange); color: var(--navy); font: 600 16px/1 var(--body); letter-spacing: .3px; border: 2px solid var(--orange); cursor: pointer; transition: .2s; }
.btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: var(--white); border-color: var(--white); }
.btn--wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn--wa:hover { background: #1fb457; border-color: #1fb457; color: #fff; }
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--block { width: 100%; }

/* Topbar & header */
.topbar { background: var(--navy); color: #b9c6d6; font-size: 14px; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.topbar a { color: #fff; margin-left: 18px; }
.topbar a:hover { color: var(--yellow); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font: 700 26px/1 var(--head); letter-spacing: 1px; }
.brand__text small { font-size: 12.5px; color: var(--muted); letter-spacing: 1px; margin-top: 3px; }
.custom-logo { max-height: 56px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav .menu { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.site-nav .menu a { color: var(--ink); font-weight: 500; font-size: 16px; position: relative; }
.site-nav .menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--orange); transition: .25s; }
.site-nav .menu a:hover::after, .site-nav .menu .current-menu-item a::after { right: 0; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 6px 0; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--navy) var(--hero) center 70% / cover no-repeat; padding: clamp(80px, 12vw, 150px) 0 0; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,27,44,.92) 0%, rgba(14,27,44,.7) 45%, rgba(14,27,44,.15) 100%); }
.hero__in { max-width: 760px; margin-left: max(16px, (100% - 1200px) / 2); }
.hero h1 { color: #fff; }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: #d8e1ec; max-width: 620px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stats { list-style: none; margin: 70px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); color: var(--ink); border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow); overflow: hidden; }
.stats li { padding: 26px 24px; border-right: 1px solid var(--line); }
.stats li:last-child { border-right: 0; }
.stats strong { display: block; font: 700 46px/1 var(--head); color: var(--navy); }
.stats strong::after { content: ""; display: block; width: 26px; height: 3px; background: var(--orange); margin-top: 10px; }
.stats span { display: block; color: var(--muted); margin-top: 10px; font-size: 15px; }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--dark { background: var(--navy); color: #d8e1ec; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--soft { background: var(--soft); }
.section__head { max-width: 720px; margin-bottom: 44px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* About */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.about__media { position: relative; padding-bottom: 60px; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about__media--small { position: absolute; right: -24px; bottom: 0; width: 52%; border: 6px solid #fff; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 10px; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230e1b2c' stroke-width='2.4'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.scard { background: var(--navy-2); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.06); transition: .25s; }
.scard:hover { transform: translateY(-4px); border-color: var(--orange); }
.scard__img { aspect-ratio: 16/10; overflow: hidden; }
.scard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.scard:hover .scard__img img { transform: scale(1.05); }
.scard__body { padding: 24px 24px 28px; }
.scard__body p { font-size: 16px; color: #b9c6d6; }
.scard ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.scard li { font-size: 15px; padding-left: 18px; position: relative; color: #e6ecf3; }
.scard li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 3px; background: var(--orange); }

/* Projects */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters--center { justify-content: center; margin-bottom: 36px; }
.filters button { border: 1px solid var(--line); background: #fff; padding: 9px 16px; border-radius: 40px; font: 500 15px/1 var(--body); color: var(--ink); cursor: pointer; transition: .2s; }
.filters button:hover { border-color: var(--orange); }
.filters button.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: .25s; }
.pcard[hidden] { display: none; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pcard__link { color: inherit; display: block; height: 100%; }
.pcard__link:hover { color: inherit; }
.pcard__img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pcard:hover .pcard__img img { transform: scale(1.05); }
.tag { position: absolute; top: 14px; left: 14px; background: rgba(14,27,44,.85); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 4px; }
.pcard__metric { position: absolute; right: 14px; bottom: 14px; background: var(--orange); color: var(--navy); font: 700 18px/1 var(--head); padding: 8px 12px; border-radius: 4px; }
.pcard__body { padding: 20px 22px 24px; }
.pcard__loc { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pcard__body h3 { margin-bottom: 6px; color: var(--navy); }
.pcard__client { margin: 0; color: var(--orange-d); font-weight: 600; font-size: 15px; }

/* Ongoing */
.tag--live { left: auto; right: 14px; background: #1f8f4e; }
.tag--static { position: static; display: inline-block; margin-bottom: 12px; }
.live { color: #1f8f4e; }
.live-proj { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.live-proj + .live-proj { margin-top: 24px; }
.live-proj__media { display: grid; gap: 12px; }
.live-proj__media.has-two { grid-template-columns: 1fr 1fr; }
.live-proj__media.has-two figure img { aspect-ratio: 4/3; }
.live-proj figure { margin: 0; position: relative; border-radius: 8px; overflow: hidden; }
.live-proj figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.live-proj figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(14,27,44,.8); color: #fff; font-size: 13px; padding: 4px 8px; border-radius: 4px; }
.live-proj__body h3 { font-size: 30px; color: var(--navy); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 18px 0 22px; }
.facts dt { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 18px; color: var(--navy); }
@media (max-width: 900px) { .live-proj { grid-template-columns: 1fr; padding: 16px; } }

/* References */
.refs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.refs li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-height: 92px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px; font: 600 21px/1.1 var(--head); color: var(--navy); letter-spacing: .4px; transition: .2s; }
.refs li:hover { border-color: var(--orange); color: var(--orange-d); }

/* CTA band */
.cta-band { background: var(--orange); }
.cta-band__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 42px 0; flex-wrap: wrap; }
.cta-band h2 { color: var(--navy); margin: 0; font-size: clamp(26px, 3vw, 38px); }
.cta-band .hero__cta { margin: 0; }
.cta-band .btn:not(.btn--wa) { background: var(--navy); border-color: var(--navy); color: #fff; }
.cta-band .btn:not(.btn--wa):hover { background: var(--navy-2); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.people { display: grid; gap: 14px; margin: 24px 0; }
.person { display: flex; gap: 16px; align-items: center; background: var(--soft); border-radius: var(--radius); padding: 18px; }
.person__av { flex: 0 0 54px; height: 54px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: grid; place-items: center; font: 700 26px/1 var(--head); }
.person strong { display: block; font-size: 18px; }
.person a { display: block; color: var(--ink); font-weight: 500; }
.person a.person__wa { color: #1a9e4b; font-size: 14px; margin-top: 2px; }
.contact__addr { color: var(--muted); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/9; }
.map iframe { width: 100%; height: 100%; border: 0; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid #cfd6de; border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.notice { padding: 14px 16px; border-radius: 6px; background: #fff3e0; border-left: 4px solid var(--orange); }
.notice--ok { background: #e8f7ee; border-color: #25a55a; }

/* Page hero & single */
.page-hero { position: relative; isolation: isolate; color: #fff; background: var(--navy) var(--hero) center / cover no-repeat; padding: clamp(70px, 10vw, 120px) 0; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,27,44,.92), rgba(14,27,44,.55)); }
.page-hero h1 { color: #fff; }
.page-hero p { color: #d8e1ec; max-width: 640px; }
.single { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.single__img { border-radius: var(--radius); margin-bottom: 28px; box-shadow: var(--shadow); width: 100%; }
.single__side { background: var(--soft); border-radius: var(--radius); padding: 26px; position: sticky; top: 100px; }
.single__side dl { margin: 0 0 22px; }
.single__side dt { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.single__side dd { margin: 2px 0 14px; font-weight: 600; font-size: 18px; color: var(--navy); }
.back { display: block; margin-top: 16px; text-align: center; }
.prose { max-width: 780px; }
.entry { margin-bottom: 48px; }

/* Footer */
.site-footer { background: var(--navy); color: #b9c6d6; padding-top: 64px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.brand--footer { color: #fff; margin-bottom: 14px; }
.brand--footer small { color: #8fa1b6; }
.footer__unvan { font-size: 13px; letter-spacing: .3px; line-height: 1.5; }
.footer__muted { color: #8fa1b6; }
.site-footer h4 { color: #fff; font-size: 20px; letter-spacing: .5px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #e6ecf3; }
.site-footer a:hover { color: var(--yellow); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0 26px; font-size: 14px; flex-wrap: wrap; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: .2s; }
.wa-float:hover { transform: scale(1.08); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1024px) {
	.services, .pgrid { grid-template-columns: repeat(2, 1fr); }
	.about { gap: 40px; }
	.single { grid-template-columns: 1fr; }
	.single__side { position: static; }
}
@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
	.site-nav.is-open { display: flex; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
	.site-nav .menu a::after { display: none; }
	.site-nav .btn { margin-top: 14px; }
	.about, .contact { grid-template-columns: 1fr; }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.stats li:nth-child(2) { border-right: 0; }
	.stats li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.footer__grid { grid-template-columns: 1fr; }
	.topbar__addr { display: none; }
	.topbar__in { justify-content: center; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.services, .pgrid { grid-template-columns: 1fr; }
	.form__row { grid-template-columns: 1fr; }
	.form { padding: 20px; }
	.stats strong { font-size: 36px; }
	.stats li { padding: 20px 16px; }
	.about__media--small { right: -6px; }
	.brand__text strong { font-size: 22px; }
	.topbar a { margin-left: 10px; }
	.cta-band__in { flex-direction: column; align-items: flex-start; }
}

/* Mobil taşma düzeltmeleri */
.about > *, .contact > *, .live-proj > *, .single > * { min-width: 0; }
.about__media img { width: 100%; }
.form .hp { width: 1px !important; height: 1px; padding: 0; border: 0; }

.credit { font-size: 13px; color: var(--muted); margin: -18px 0 24px; }
.credit a { color: var(--muted); text-decoration: underline; }
.pcard__rep { position: absolute; left: 14px; bottom: 14px; background: rgba(14,27,44,.7); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 4px; }

/* Fotoğrafı olmayan projeler için sade kutu */
.ph { width: 100%; height: 100%; min-height: 100%; aspect-ratio: 16/10; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 22px; background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%); color: #fff; position: relative; overflow: hidden; }
.ph::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border: 18px solid rgba(242,140,27,.25); border-radius: 50%; }
.ph__k { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--yellow); }
.ph__t { font: 700 26px/1.1 var(--head); max-width: 85%; }
.ph--big { aspect-ratio: 16/9; }
.ph { align-items: center; justify-content: center; }
.ph__ico { color: rgba(255,255,255,.35); }
.ph--big { align-items: flex-start; justify-content: flex-end; }
