/*
Theme Name: SD Grup Mühendislik
Theme URI: https://www.sdgrupmuhendislik.com.tr/
Author: Oxit Bilişim Teknolojileri
Author URI: https://www.oxit.com.tr/
Description: SD Grup Mühendislik kurumsal teması. Elektrik, proje ve taahhüt hizmetleri için lacivert-turuncu kurumsal tasarım.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: sdgrup
*/

/* Site styles live in css/custom.css; this file only adds what the WordPress templates need:
   admin-bar offsets, the inner page banner and content typography, the page CTA and the 404 page. */

/* ---- Logged-in admin bar: keep the sticky header below it ---- */
body.admin-bar .sisf-main-header.sd-header-fixed #sisf-page-header-inner {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .sisf-main-header.sd-header-fixed #sisf-page-header-inner {
		top: 46px;
	}
}

@media (max-width: 600px) {
	body.admin-bar .sisf-main-header.sd-header-fixed #sisf-page-header-inner {
		top: 0;
	}
}

/* ---- Inner page banner (page.php, index.php for posts, 404.php) ----
   On desktop the header overlays the top of the page (like the home hero), so the banner leaves room
   for the 38px top bar + 86px header bar. From 1024px down the header sits in the flow. */
.sd-page-banner {
	padding: 170px 0 60px;
	color: #FFFFFF;
}

.sd-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	color: rgba(255, 255, 255, .7);
	font-size: 14px;
	font-weight: 500;
}

.sd-breadcrumb a {
	color: rgba(255, 255, 255, .85);
	transition: color .3s ease;
}

.sd-breadcrumb a:hover,
.sd-breadcrumb a:focus-visible {
	color: #F28A00;
}

.sd-breadcrumb [aria-current="page"] {
	color: #F28A00;
}

.sd-breadcrumb-sep {
	color: rgba(255, 255, 255, .35);
}

.sd-page-title {
	max-width: 900px;
	margin: 0;
	color: #FFFFFF;
	font-size: 48px;
	font-weight: 700;
	line-height: 1.15;
}

.sd-page-title::after {
	content: '';
	display: block;
	width: 64px;
	height: 3px;
	margin-top: 22px;
	border-radius: 3px;
	background: #F28A00;
}

/* ---- Page content ---- */
.sd-page-section {
	padding: 80px 0;
	background: #FFFFFF;
}

.sd-page-content {
	max-width: 880px;
	margin: 0 auto;
	color: #526273;
	font-size: 16px;
	line-height: 1.75;
}

.sd-page-content > *:first-child {
	margin-top: 0;
}

.sd-page-content > *:last-child {
	margin-bottom: 0;
}

.sd-page-content h2,
.sd-page-content h3,
.sd-page-content h4 {
	margin: 40px 0 14px;
	color: #0B2F52;
	font-weight: 700;
	line-height: 1.3;
}

.sd-page-content h2 {
	font-size: 32px;
}

.sd-page-content h3 {
	font-size: 24px;
}

.sd-page-content h4 {
	font-size: 20px;
}

.sd-page-content p {
	margin: 0 0 18px;
}

.sd-page-content a {
	color: #D97700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sd-page-content a:hover {
	color: #0B2F52;
}

.sd-page-content ul,
.sd-page-content ol {
	margin: 0 0 22px;
	padding-left: 0;
	list-style: none;
}

.sd-page-content li {
	position: relative;
	margin-bottom: 10px;
	padding-left: 30px;
}

.sd-page-content ul > li::before {
	content: '';
	position: absolute;
	top: .55em;
	left: 6px;
	width: 10px;
	height: 10px;
	border: 2px solid #F28A00;
	border-radius: 50%;
}

.sd-page-content ol {
	counter-reset: sd-ol;
}

.sd-page-content ol > li {
	counter-increment: sd-ol;
}

.sd-page-content ol > li::before {
	content: counter(sd-ol, decimal-leading-zero);
	position: absolute;
	top: 0;
	left: 0;
	color: #F28A00;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.75rem;
}

.sd-page-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.sd-page-content figure,
.sd-page-thumb {
	margin: 0 0 28px;
}

.sd-page-content figcaption,
.sd-page-content .wp-caption-text {
	margin-top: 8px;
	color: #6B7A8C;
	font-size: 14px;
	text-align: center;
}

.sd-page-thumb img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
}

.sd-page-content blockquote {
	margin: 28px 0;
	padding: 20px 24px;
	border-left: 4px solid #F28A00;
	border-radius: 0 12px 12px 0;
	background: #FFF8EF;
	color: #0B2F52;
	font-size: 18px;
}

.sd-page-content blockquote p:last-child {
	margin-bottom: 0;
}

.sd-page-content table {
	width: 100%;
	margin: 0 0 24px;
	border-collapse: collapse;
	font-size: 15px;
}

.sd-page-content th,
.sd-page-content td {
	padding: 12px 14px;
	border: 1px solid #E2E8EF;
	text-align: left;
}

.sd-page-content th {
	background: #F5F7FA;
	color: #0B2F52;
	font-weight: 700;
}

.sd-page-content .alignleft {
	float: left;
	margin: 6px 24px 16px 0;
}

.sd-page-content .alignright {
	float: right;
	margin: 6px 0 16px 24px;
}

.sd-page-content .aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.sd-page-content::after {
	content: '';
	display: table;
	clear: both;
}

/* Post list (index.php for blog, archive and search pages) */
.sd-post-list {
	display: grid;
	gap: 20px;
	max-width: 880px;
	margin: 0 auto;
}

.sd-post-card {
	padding: 26px 28px;
	border: 1px solid #E2E8EF;
	border-radius: 16px;
	background: #FFFFFF;
	box-shadow: 0 10px 30px rgba(11, 47, 82, .06);
}

.sd-post-card h2 {
	margin: 0 0 10px;
	font-size: 22px;
	line-height: 1.3;
}

.sd-post-card h2 a {
	color: #0B2F52;
}

.sd-post-card h2 a:hover {
	color: #F28A00;
}

.sd-post-card p {
	margin: 0;
	color: #526273;
}

.sd-post-list .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.sd-post-list .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #E2E8EF;
	border-radius: 999px;
	color: #0B2F52;
	font-weight: 600;
}

.sd-post-list .page-numbers.current,
.sd-post-list .page-numbers:hover {
	border-color: #F28A00;
	background: #F28A00;
	color: #0B2F52;
}

/* ---- Contact call-to-action at the end of inner pages ---- */
.sd-page-cta {
	padding: 0 0 88px;
	background: #FFFFFF;
}

.sd-page-cta-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
	padding: 44px 48px;
	overflow: hidden;
	border-radius: 20px;
}

.sd-page-cta-box h2 {
	margin: 0 0 8px;
	color: #FFFFFF;
	font-size: 30px;
	line-height: 1.25;
}

.sd-page-cta-box p {
	max-width: 560px;
	margin: 0;
	color: rgba(255, 255, 255, .8);
	font-size: 16px;
	line-height: 1.65;
}

.sd-page-cta-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
}

.sd-page-cta .sis-btn-default,
.sd-404 .sis-btn-default {
	background-color: #F28A00;
	color: #0B2F52;
	white-space: nowrap;
}

.sd-page-cta .sis-btn-default:hover,
.sd-404 .sis-btn-default:hover {
	color: #FFFFFF;
}

.sd-page-cta-phone,
.sd-404-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #FFFFFF;
	font-weight: 600;
	transition: color .3s ease;
}

.sd-page-cta-phone:hover,
.sd-404-link:hover,
.sd-page-cta-phone:focus-visible,
.sd-404-link:focus-visible {
	color: #F28A00;
}

.sd-page-cta-phone svg,
.sd-404-link svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: #F28A00;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---- 404 ---- */
/* The dark 404 block sits right above the dark footer, so a hairline keeps the two apart. */
.sd-404 {
	padding: 210px 0 120px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
	color: #FFFFFF;
	text-align: center;
}

.sd-404-code {
	display: block;
	color: transparent;
	font-size: 160px;
	font-weight: 800;
	letter-spacing: -4px;
	line-height: 1;
	-webkit-text-stroke: 2px rgba(242, 138, 0, .75);
}

.sd-404 h1 {
	margin: 18px 0 14px;
	color: #FFFFFF;
	font-size: 40px;
	line-height: 1.2;
}

.sd-404 p {
	max-width: 560px;
	margin: 0 auto 32px;
	color: rgba(255, 255, 255, .78);
	font-size: 17px;
	line-height: 1.7;
}

.sd-404-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px 28px;
}

@media (max-width: 1024px) {
	.sd-page-banner {
		padding: 64px 0 56px;
	}

	.sd-page-title {
		font-size: 40px;
	}

	.sd-404 {
		padding: 88px 0 96px;
	}
}

@media (max-width: 767px) {
	.sd-page-banner {
		padding: 48px 0 44px;
	}

	.sd-page-title {
		font-size: 30px;
	}

	.sd-page-section {
		padding: 52px 0;
	}

	.sd-page-content h2 {
		font-size: 26px;
	}

	.sd-page-content h3 {
		font-size: 21px;
	}

	.sd-page-content .alignleft,
	.sd-page-content .alignright {
		float: none;
		margin: 0 0 20px;
	}

	.sd-page-cta {
		padding-bottom: 56px;
	}

	.sd-page-cta-box {
		padding: 32px 24px;
	}

	.sd-page-cta-box h2 {
		font-size: 24px;
	}

	.sd-404 {
		padding: 64px 0 72px;
	}

	.sd-404-code {
		font-size: 104px;
	}

	.sd-404 h1 {
		font-size: 28px;
	}
}
