/*
Theme Name: ساهک وافل
Template: kadence
Description: پوسته ساهک وافل (فرزند Kadence) — هم‌سبک صفحه اصلی سه‌بعدی.
Version: 0.1.0
Requires PHP: 7.4
Text Domain: sahak
*/

/* ---------- tokens (same as the 3D homepage) ---------- */
@font-face {
	font-family: Vazirmatn;
	src: url("sahak3d/assets/fonts/Vazirmatn-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}
:root:root {
	--navy: #022c43;
	--navy-2: #063a57;
	--orange: #ff9f00;
	--concrete: #d7d5cf;
	--paper: #f3f2ee;
	--steel: #4b4f54;
	--ink: #1b1d20;
	--muted: #5f6268;
	--radius: 6px;
	--global-palette1: var(--orange);
	--global-palette2: #e08c00;
	--global-palette3: var(--navy);
	--global-palette4: var(--ink);
	--global-palette5: var(--steel);
	--global-palette6: var(--muted);
	--global-palette7: var(--concrete);
	--global-palette8: var(--paper);
	--global-palette9: #fff;
	--global-palette-btn-bg: var(--orange);
	--global-palette-btn-bg-hover: #ffb233;
	--global-palette-btn: var(--navy);
	--global-palette-btn-hover: var(--navy);
	--global-body-font-family: Vazirmatn, Tahoma, sans-serif;
	--global-heading-font-family: Vazirmatn, Tahoma, sans-serif;
	--global-content-width: 1180px;
}
body {
	font-family: Vazirmatn, Tahoma, sans-serif;
	background: var(--paper);
	color: var(--ink);
	line-height: 1.9;
	font-size: 17px;
}
h1, h2, h3, h4, h5, h6 { font-family: inherit; color: var(--navy); line-height: 1.4; font-weight: 800; }
a { color: var(--navy); text-decoration-color: var(--orange); text-underline-offset: 3px; }
a:hover { color: #c77a00; }
::selection { background: var(--orange); color: var(--navy); }

/* ---------- header ---------- */
#masthead.sk-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; }
.admin-bar #masthead.sk-header { top: 32px; }
.sk-header__in {
	max-width: var(--global-content-width); margin: 0 auto; height: 64px;
	display: flex; align-items: center; gap: 24px; padding: 0 clamp(16px, 3vw, 32px);
}
.sk-logo { display: block; height: 34px; flex: none; }
.sk-logo img { height: 100%; width: auto; display: block; }
.sk-nav { flex: 1; min-width: 0; }
.sk-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.sk-nav__list > li { position: relative; }
.sk-nav__list a { display: block; color: #fff; text-decoration: none; opacity: .88; padding: 8px 10px; font-size: 15px; white-space: nowrap; }
.sk-nav__list a:hover, .sk-nav__list a:focus-visible, .sk-nav__list .current-menu-item > a { opacity: 1; color: var(--orange); }
.sk-nav__list .menu-item-has-children > a::after { content: "⌄"; margin-inline-start: 6px; font-size: 12px; opacity: .7; }
.sk-nav__list .sub-menu {
	list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; inset-inline-start: 0;
	min-width: 220px; max-height: 70vh; overflow: auto; background: var(--navy-2); border-top: 2px solid var(--orange);
	border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.sk-nav__list li:hover > .sub-menu, .sk-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sk-nav__list .sub-menu a { padding: 7px 16px; font-size: 14px; }
.sk-header__actions { display: flex; align-items: center; gap: 10px; flex: none; margin-inline-start: auto; }
.sk-cta {
	background: var(--orange); color: var(--navy); font-weight: 700; padding: 7px 16px; border-radius: 999px;
	text-decoration: none; white-space: nowrap; font-size: 15px;
}
.sk-cta:hover { color: var(--navy); filter: brightness(1.08); }
.sk-header .sk-menu-btn { display: none; }
@media (max-width: 1024px) {
	.sk-nav { display: none; }
	.sk-header .sk-menu-btn { display: inline-flex; }
}
@media (max-width: 420px) {
	.sk-cta { padding: 6px 12px; font-size: 14px; }
}

/* ---------- page title band: concrete grid of 80×80 moulds ---------- */
.entry-hero.page-hero-section, .entry-hero.post-hero-section, .entry-hero.post-archive-hero-section {
	background-color: var(--navy);
	background-image:
		linear-gradient(90deg, rgba(255, 159, 0, .9) 0 4px, transparent 4px),
		linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
	background-size: 100% 100%, 48px 48px, 48px 48px;
	background-position: right top, center, center;
	background-repeat: no-repeat, repeat, repeat;
	color: #fff;
}
.entry-hero .entry-hero-container-inner { background: transparent !important; }
.entry-hero .hero-section-overlay { display: none; }
.entry-hero .entry-header { padding-block: clamp(36px, 6vw, 72px); min-height: 0 !important; text-align: start; }
.entry-hero .entry-title, .entry-hero .archive-title { color: #fff; font-size: clamp(28px, 4vw, 44px); margin: 0; }
.entry-hero .kadence-breadcrumbs, .entry-hero .rank-math-breadcrumb, .entry-hero .entry-meta, .entry-hero .entry-meta a { color: rgba(255, 255, 255, .75); font-size: 14px; }
.entry-hero .entry-taxonomies a { background: var(--orange); color: var(--navy); border: 0; }

/* ---------- content ---------- */
.content-bg, .entry.content-bg { background: #fff; border-radius: var(--radius); box-shadow: 0 1px 0 rgba(2, 44, 67, .06); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 1.6em; }
.entry-content h2::after { content: ""; display: block; width: 48px; height: 4px; background: var(--orange); margin-top: 10px; border-radius: 2px; }
.entry-content img { border-radius: var(--radius); }
.wp-block-button__link, .button, button.button, input[type="submit"] {
	background: var(--orange); color: var(--navy); font-weight: 700; border-radius: 999px; padding: .6em 1.6em; font-family: inherit;
}
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--navy); border: 2px solid var(--navy); }

/* blocks used on the designed pages */
.sk-lead { font-size: 1.15em; color: var(--steel); }
.sk-band { background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 48px) !important; }
.sk-band :is(h2, h3, p, li) { color: #fff; }
.sk-band h2::after { background: var(--orange); }
.sk-cards { gap: 16px !important; }
.sk-cards > .wp-block-column {
	background: var(--paper); border-radius: var(--radius); padding: 20px 22px; border-top: 4px solid var(--orange); margin: 0;
}
.sk-cards > .wp-block-column h3 { font-size: 18px; margin: 0 0 6px; }
.sk-cards > .wp-block-column p { margin: 0; color: var(--steel); font-size: 15px; line-height: 1.8; }
.sk-specs { border-collapse: collapse; width: 100%; }
.sk-specs td, .sk-specs th { border: 0; border-bottom: 1px solid var(--concrete); padding: 10px 4px; text-align: start; }
.sk-specs th { color: var(--muted); font-weight: 500; width: 45%; }
.sk-checks { list-style: none; padding: 0; }
.sk-checks li { position: relative; padding-inline-start: 30px; margin: 8px 0; }
.sk-checks li::before {
	content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 18px; height: 18px; border-radius: 4px;
	background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23022c43' stroke-width='2.2'/%3E%3C/svg%3E") center/12px no-repeat;
}
.sk-cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.sk-cta-box p { margin: 0; }

/* ---------- footer ---------- */
.sk-footer { background: var(--navy); color: rgba(255, 255, 255, .82); font-size: 15px; margin-top: 64px; }
.sk-footer__in {
	max-width: var(--global-content-width); margin: 0 auto; padding: 48px clamp(16px, 3vw, 32px) 24px;
	display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px;
}
.sk-footer h2 { color: #fff; font-size: 16px; margin: 0 0 12px; }
.sk-footer h2::after { content: ""; display: block; width: 32px; height: 3px; background: var(--orange); margin-top: 8px; }
.sk-footer ul { list-style: none; margin: 0; padding: 0; }
.sk-footer li { margin: 6px 0; line-height: 1.7; }
.sk-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.sk-footer a:hover { color: var(--orange); }
.sk-footer__brand img { height: 36px; width: auto; }
.sk-footer__brand p { margin: 12px 0 0; line-height: 1.9; }
.sk-footer__bar {
	max-width: var(--global-content-width); margin: 0 auto; padding: 16px clamp(16px, 3vw, 32px);
	border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px;
}
.sk-social a + a { margin-inline-start: 16px; }
@media (max-width: 1024px) { .sk-footer__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sk-footer__in { grid-template-columns: 1fr; } }
.entry-content .wp-block-columns .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sk-band .sk-specs th { color: rgba(255, 255, 255, .65); }
.sk-band .sk-specs td, .sk-band .sk-specs th { border-color: rgba(255, 255, 255, .15); }
.entry-meta .posted-by, .entry-meta .meta-label { display: none; }
.loop-entry.content-bg { overflow: hidden; }
.loop-entry .entry-title a { text-decoration: none; }

/* about: numbers band; services: steps */
.sk-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.sk-stats li { border-inline-start: 4px solid var(--orange); padding-inline-start: 16px; }
.sk-stats b { display: block; font-size: clamp(28px, 3.4vw, 40px); color: var(--orange); line-height: 1.2; }
.sk-stats span { color: rgba(255, 255, 255, .8); font-size: 15px; }
.sk-cards h3 a { color: inherit; text-decoration: none; }
.sk-cards h3 a:hover { color: #c77a00; }
.sk-contact-cards p a { font-weight: 700; }
.sk-steps { list-style: none; counter-reset: s; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.sk-steps li { counter-increment: s; background: var(--paper); border-radius: var(--radius); padding: 18px 20px; font-weight: 700; color: var(--navy); }
.sk-steps li::before { content: "۰" counter(s, persian); display: block; color: var(--orange); font-size: 26px; font-weight: 800; }

/* Section links (services#build) land below the sticky header. */
.entry-content [id] { scroll-margin-top: 96px; }
