/*
Theme Name: Personel Servis
Description: Harun SERTKAYA YAPIMIDIR. harun@plusreklam.com.tr
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: personel-servis
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--navy: #041941;
	--ink: #091739;
	--blue: #075fd4;
	--blue-hover: #004aaf;
	--pale: #d7ecff;
	--muted: #455774;
	--white: #fff;
	--red: #d5122b;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--site-header-height, 88px) + var(--wp-admin--admin-bar--height, 0px) + .75rem); }
body { margin: 0; background: var(--white); color: var(--ink); font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; vertical-align: middle; }
h1, h2, h3 { line-height: 1.15; }
h1, h2, h3, p, a { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.wrap { width: min(94%, 1440px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 110; top: calc(var(--wp-admin--admin-bar--height, 0px) + .5rem); left: .5rem; padding: .75rem 1rem; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: 0 4px 20px #04194118; }
@media (min-width: 601px) {
	.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
}
.header-inner { width: min(93%, 1470px); min-height: 88px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: clamp(.6rem, 1.5vw, 1.5rem); }
.brand, .custom-logo-link { display: inline-flex; align-items: center; gap: .75rem; min-width: 0; max-width: 28%; color: var(--ink); font-size: clamp(1.05rem, 2.1vw, 2.1rem); font-weight: 850; line-height: 1.12; text-decoration: none; text-transform: uppercase; letter-spacing: -.045em; }
.brand svg { flex: 0 0 auto; color: #004ba8; }
.custom-logo { width: auto; max-height: 60px; object-fit: contain; }
.site-menu, .site-menu ul { list-style: none; margin: 0; padding: 0; }
.site-nav { margin-inline-start: auto; }
.site-menu { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .45rem; }
.site-menu li { position: relative; }
.site-menu a { display: block; color: var(--ink); font-size: clamp(.85rem, 1.15vw, 1.06rem); font-weight: 730; text-decoration: none; }
.site-menu > li > a {
	position: relative;
	padding: .65rem .82rem;
	border-radius: .5rem;
	background-color: #e9f3ff;
	background-image: linear-gradient(115deg, transparent 38%, #ffffff75 50%, transparent 62%);
	background-size: 300% 100%;
	background-position: 100% 50%;
	transition: background-position .5s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.site-menu > li > a[aria-current="page"] { color: #fff; background-color: var(--blue-hover); }
.site-menu > li > a:hover, .site-menu > li > a:focus-visible {
	color: #fff;
	background-color: var(--blue-hover);
	background-position: 0 50%;
	box-shadow: 0 0 14px #2f9cff85;
}
.site-menu .sub-menu a:hover, .site-menu .sub-menu a:focus-visible { color: var(--blue-hover); background: #e9f3ff; }
.header-quote {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: .55rem 1rem;
	border-radius: .5rem;
	background: var(--red);
	color: #fff;
	font-size: .92rem;
	font-weight: 850;
	white-space: nowrap;
	text-decoration: none;
}
.header-quote:hover, .header-quote:focus-visible { background: #a90d21; }
.site-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 11rem; background: var(--white); border: 1px solid var(--pale); box-shadow: 0 8px 20px #04194118; }
.site-menu li:last-child > .sub-menu { right: 0; left: auto; }
.site-menu .sub-menu .sub-menu { position: static; border: 0; box-shadow: none; padding-inline-start: .8rem; }
.site-menu li:hover > .sub-menu, .site-menu li:focus-within > .sub-menu { display: block; }
.site-menu .sub-menu a { padding: .6rem 1rem; white-space: normal; }
.menu-toggle { display: none; }

.hero { position: relative; isolation: isolate; display: grid; overflow: hidden; min-height: clamp(450px, 36vw, 620px); background: var(--navy); color: var(--white); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(120deg, #061d4c, #031438); clip-path: polygon(0 0, 47% 0, 34% 100%, 0 100%); }
.hero-photo { position: absolute; z-index: -2; inset: 0 0 0 34%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-inner { display: grid; align-items: center; width: min(89%, 1370px); }
.hero-copy { width: 43%; padding: 3.3rem 0; }
.hero h1 { margin: 0 0 1.9rem; font-size: clamp(2.65rem, 5vw, 5.2rem); line-height: 1.04; letter-spacing: -.052em; font-weight: 850; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .85rem; min-height: 54px; padding: .6rem 1.7rem; border-radius: .6rem; background: var(--blue); color: var(--white); font-weight: 770; font-size: clamp(1.12rem, 1.9vw, 1.6rem); text-decoration: none; }
.button span { font-size: 1.65em; line-height: .7; }
.button:hover { background: var(--blue-hover); }
.hero :focus-visible, .contact :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

.services { padding: clamp(2.5rem, 3.8vw, 4.25rem) 0; background: linear-gradient(115deg, #cbe6fd, #e2f2ff 55%, #cce8ff); }
.section-title { margin: 0 0 1.75rem; text-align: center; font-size: clamp(2.05rem, 4vw, 3.65rem); letter-spacing: -.045em; font-weight: 850; }
.section-title::after { content: ""; display: block; width: 2.4em; height: 5px; margin: .28em auto 0; border-radius: 10px; background: var(--blue); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 1.45vw, 1.5rem); }
.service-card { display: flex; align-items: center; gap: clamp(.8rem, 1.5vw, 1.4rem); min-height: 158px; padding: clamp(1rem, 2vw, 1.9rem); border-radius: .95rem; background: var(--white); box-shadow: 0 10px 22px #173a6512; }
.service-icon { display: grid; flex: 0 0 auto; place-items: center; width: clamp(3rem, 6vw, 5.5rem); aspect-ratio: 1; border-radius: .75rem; background: var(--pale); color: #004ba8; }
.service-icon svg { width: 58%; height: auto; }
.service-card h3 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.8rem); letter-spacing: -.025em; }
.service-card p { margin: .5rem 0 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.service-card p:empty { display: none; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 4vw, 4rem); padding: clamp(3rem, 6vw, 6rem) 0; width: min(89%, 1200px); }
.detail-grid section { border-top: 4px solid var(--pale); padding-top: 1.35rem; }
.detail-grid h2, .contact h2 { margin: 0 0 .75rem; font-size: clamp(1.6rem, 3vw, 2.65rem); letter-spacing: -.035em; }
.detail-grid p { color: var(--muted); white-space: pre-line; }
.detail-grid img { border-radius: .75rem; }
.front-content { margin-bottom: 3rem; }
.contact { background: var(--navy); color: var(--white); padding: clamp(2.3rem, 4vw, 4.5rem) 0; }
.contact-inner { width: min(89%, 1200px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem 3rem; }
.contact p { margin: 0; color: #e1efff; }
.contact address { display: grid; align-content: start; gap: .4rem; font-style: normal; }
.contact a { color: var(--white); text-underline-offset: .2em; }
.postal-address { white-space: pre-line; }
.site-footer { background: #03102b; color: var(--white); padding: clamp(2.5rem, 5vw, 4rem) 0 0; }
.standard-content { width: min(89%, 1000px); min-height: 55vh; padding-block: 2.5rem 4rem; }
.standard-content .entry-content { margin-block: 1.5rem; }
.entry-content iframe, .entry-content video { max-width: 100%; }
.entry-content .aligncenter { margin-inline: auto; text-align: center; }
.entry-content .alignleft { float: left; margin: .5rem 1rem .5rem 0; }
.entry-content .alignright { float: right; margin: .5rem 0 .5rem 1rem; }
.entry-content::after { content: ""; display: block; clear: both; }
.standard-content textarea, .standard-content input { max-width: 100%; font: inherit; }

@media (max-width: 1080px) {
	.hero h1 { font-size: clamp(2.5rem, 5vw, 3.6rem); }
	.service-card { align-items: flex-start; }
}

@media (max-width: 1000px) {
	.header-inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto auto;
		min-height: 72px;
		gap: .5rem;
		padding-block: .55rem;
	}
	.brand, .custom-logo-link { grid-column: 1; max-width: 100%; font-size: clamp(.88rem, 3.1vw, 1.6rem); }
	.brand svg { width: 43px; height: auto; }
	.custom-logo { max-height: 48px; }
	.menu-toggle { grid-column: 2; display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .4rem .6rem; border: 1px solid #aecbeb; border-radius: .45rem; background: var(--white); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
	.header-quote { grid-column: 3; grid-row: 1; padding-inline: .7rem; }
	.site-nav { grid-column: 1 / -1; margin: 0; }
	.site-nav.is-enhanced {
		position: absolute;
		inset: 100% 0 auto;
		max-height: min(65vh, 34rem);
		overflow: auto;
		padding: .65rem 3.5% 1rem;
		background: var(--white);
		box-shadow: 0 12px 20px #04194122;
	}
	.site-nav.is-enhanced:not(.is-open) { display: none; }
	.site-menu { align-items: stretch; flex-direction: column; }
	.site-menu > li > a { padding: .55rem .7rem; }
	.site-menu .sub-menu { display: block; position: static; border: 0; box-shadow: none; padding-inline-start: .75rem; }
	.site-menu .sub-menu a { padding: .35rem; }
}

@media (max-width: 400px) {
	.brand { gap: .35rem; }
	.brand svg { width: 29px; }
	.header-quote { padding-inline: .55rem; font-size: .8rem; }
}

@media (max-width: 880px) {
	.hero { min-height: 390px; }
	.hero-copy { width: 49%; }
	.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.2rem); }
	.hero::after { clip-path: polygon(0 0, 53% 0, 36% 100%, 0 100%); }
	.hero-photo { left: 35%; }
	.service-card { flex-direction: column; }
}

@media (max-width: 600px) {
	.hero { display: flex; flex-direction: column; min-height: 0; }
	.hero::after { clip-path: none; }
	.hero-photo { position: static; z-index: auto; order: 2; aspect-ratio: 1.8; }
	.hero-photo img { object-position: center 61%; }
	.hero-copy { width: 100%; padding: 2.15rem 0 2rem; }
	.hero h1 { max-width: 14ch; margin-bottom: 1.15rem; font-size: clamp(2rem, 8.5vw, 3.1rem); }
	.button { min-height: 47px; padding-inline: 1.1rem; }
	.service-grid, .detail-grid { grid-template-columns: 1fr; }
	.service-card { min-height: 0; flex-direction: row; align-items: flex-start; }
}

.slides-section { padding-block: clamp(3rem, 6vw, 6rem); background: #f4f9ff; }
.slides-section .wrap { width: min(89%, 1200px); }
.slides-section .section-title { font-size: clamp(1.8rem, 3.6vw, 3rem); }
.slides-track { display: grid; gap: 1.5rem; }
.slide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); margin: 0; overflow: hidden; border-radius: 1rem; background: var(--navy); color: var(--white); }
.slide img { grid-column: 1 / -1; width: 100%; height: clamp(230px, 37vw, 450px); object-fit: cover; object-position: center; }
.slide.has-caption img { grid-column: 2; grid-row: 1; }
.slide figcaption { grid-column: 1; grid-row: 1; align-self: center; padding: clamp(1.25rem, 4vw, 3rem); }
.slide h3 { margin: 0 0 .6rem; font-size: clamp(1.35rem, 2.8vw, 2.4rem); }
.slide p { margin: 0; color: #e1efff; white-space: pre-line; }
.slides-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 1rem; }
.slides-controls button { min-height: 44px; padding: .45rem 1rem; border: 1px solid #aecbeb; border-radius: .45rem; background: var(--white); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.slides-controls button:hover { background: var(--pale); }
.contact-button { align-self: flex-start; font-size: 1rem; }

.page-banner { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(190px, 28vw, 400px); overflow: hidden; background: var(--navy); color: var(--white); }
.page-banner img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-banner::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(15deg, #031438 1%, #041941a6 60%, #04194145); }
.page-banner-inner { width: min(89%, 1200px); padding-block: clamp(1.7rem, 5.5vw, 5rem); }
.page-banner h1 { margin: 0; font-size: clamp(2rem, 5vw, 4.45rem); letter-spacing: -.045em; }

.blog-layout, .contact-page { width: min(89%, 1200px); }
.blog-layout { display: grid; grid-template-columns: minmax(0, 245px) minmax(0, 1fr); align-items: start; gap: clamp(1.25rem, 4vw, 3rem); }
.blog-sidebar, .blog-card, .contact-panel { border: 1px solid #dae7f7; border-radius: .9rem; background: #f7fbff; }
.blog-sidebar, .contact-panel { padding: clamp(1rem, 2.25vw, 1.75rem); }
.blog-sidebar h2, .contact-panel h2, .contact-page-map h2 { margin: 0 0 1rem; font-size: clamp(1.35rem, 2.5vw, 1.9rem); }
.blog-sidebar form { margin-block: 0 1.1rem; }
.secondary-menu, .secondary-menu ul { margin: 0; padding: 0; list-style: none; }
.secondary-menu ul { padding-inline-start: .85rem; }
.secondary-menu a { display: inline-block; padding: .25rem 0; text-underline-offset: .16em; }
.secondary-menu a[aria-current="page"] { font-weight: 750; }
.blog-card { overflow: hidden; margin-bottom: 1.25rem; }
.blog-card-image { width: 100%; max-height: 290px; object-fit: cover; }
.blog-card-copy { padding: clamp(1rem, 2.25vw, 1.65rem); }
.blog-card-copy time { color: var(--muted); }
.blog-card-copy h2 { margin: .3rem 0 .7rem; }
.blog-card-copy p:last-child { margin-bottom: 0; }
.content-column > :first-child, .form-panel .entry-content { margin-top: 0; }
.contact-page-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(1rem, 3vw, 2rem); }
.contact-page-map { margin-top: 2rem; }
.form-panel input:not([type="checkbox"]):not([type="radio"]), .form-panel select, .form-panel textarea { max-width: 100%; }
.form-panel textarea { width: 100%; }
.contact-details { display: grid; gap: .8rem; margin: 0; font-style: normal; }
.contact-row { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: .6rem; align-items: start; }
.contact-row svg { margin-top: .15rem; color: var(--blue); }
.contact-row strong, .contact-row span, .contact-row a { display: block; overflow-wrap: anywhere; }

.footer-grid { width: min(89%, 1200px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: clamp(1.5rem, 4vw, 3rem); }
.footer-grid h2 { margin: 0 0 1rem; font-size: 1.35rem; }
.footer-grid p { margin-top: 0; }
.site-footer a { color: #edf5ff; text-underline-offset: .2em; }
.site-footer .contact-row svg, .contact .contact-row svg { color: #a9d4ff; }
.footer-bottom { width: min(89%, 1200px); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 2rem; padding-block: 1.1rem; border-top: 1px solid #ffffff38; }
.map-frame, .map-placeholder { border-radius: .75rem; background: #e6f2ff; color: var(--ink); }
.map-frame { overflow: hidden; }
.map-frame iframe { display: block; width: 100%; height: 215px; border: 0; }
.contact-page-map iframe { height: clamp(240px, 35vw, 410px); }
.map-placeholder { display: grid; min-height: 130px; place-items: center; padding: 1rem; margin: 0; text-align: center; }

@media (max-width: 700px) {
	.slide { grid-template-columns: minmax(0, 1fr); }
	.slide.has-caption img { grid-column: 1; grid-row: 1; }
	.slide figcaption { grid-row: 2; }
	.blog-layout, .contact-page-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

.references { padding-block: clamp(2.25rem, 4.5vw, 4.25rem); background: #f4f9ff; }
.reference-window { container-type: inline-size; }
.reference-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.reference-list li { display: grid; flex: 0 0 clamp(7rem, 15vw, 11rem); place-items: center; height: 96px; padding: .8rem; border: 1px solid #dae7f7; border-radius: .65rem; background: var(--white); }
.reference-list img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.reference-copy { display: none; }
.reference-empty { margin: 0; text-align: center; color: var(--muted); }
.reference-toggle { display: block; min-height: 44px; margin: .75rem auto 0; padding: .35rem .8rem; border: 1px solid #aecbeb; border-radius: .45rem; background: var(--white); color: var(--ink); font: inherit; cursor: pointer; }

@supports (min-width: 100cqw) {
	.references-animated .reference-window { overflow: hidden; }
	.references-animated .reference-track { display: flex; width: max-content; animation: reference-scroll 22s linear infinite; }
	.references-animated .reference-list { display: flex; flex-wrap: nowrap; min-width: 100cqw; gap: 0; }
	.references-animated .reference-list li { margin-inline: .5rem; }
	.references-animated .reference-window:hover .reference-track,
	.references-paused .reference-track { animation-play-state: paused; }
}

@keyframes reference-scroll {
	from { transform: translateX(-50%); }
	to { transform: translateX(0); }
}

.company-stats { border-block: 1px solid #e6e9ef; background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100%, 1440px); margin-block: 0; padding: 0; list-style: none; }
.stats-grid li { display: grid; place-content: center; gap: .3rem; min-height: 106px; padding: .9rem .65rem; text-align: center; }
.stats-grid li + li { border-inline-start: 1px dashed #cbced4; }
.stat-value { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .55rem; }
.stat-value svg { flex: 0 0 auto; color: #ee1530; }
.stat-value strong { max-width: 100%; overflow-wrap: anywhere; color: #424242; font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1; }
.stats-grid li > span { color: #626770; font-size: .875rem; }

@media (max-width: 560px) {
	.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.stats-grid li:nth-child(odd) { border-inline-start: 0; }
	.stats-grid li:nth-child(n+3) { border-top: 1px dashed #cbced4; }
}

@media (prefers-reduced-motion: reduce) {
	.site-menu > li > a { transition: none; }
}
