/*
Theme Name: gk-clinic
Theme URI: https://islp.ir
Author: کلینیک گفتاردرمانی سجاد گنج‌خانلو
Description: قالب اختصاصی، سبک و Mobile-First کلینیک گفتاردرمانی. همه‌ی تنظیمات از بخش «سفارشی‌سازی» قابل تغییر است.
Version: 1.0.1
Requires PHP: 7.4
Text Domain: gk-clinic
Tags: rtl-language-support, custom-colors, custom-logo, custom-menu, featured-images
*/

/* ==========================================================================
   ۱. متغیرها و پایه
   ========================================================================== */
:root {
	--p: var(--gk-primary, #0f766e);
	--a: var(--gk-accent, #f59e0b);
	--d: var(--gk-dark, #0f172a);
	--p-soft: #e8f3f2;
	--bg: #f7f9fa;
	--card: #fff;
	--line: #e2e8f0;
	--muted: #64748b;
	--r: 16px;
	--shadow: 0 2px 10px rgba(15, 23, 42, .07);
	--tb: 36px;   /* ارتفاع نوار بالایی */
	--hd: 60px;   /* ارتفاع هدر */
	--bb: 58px;   /* ارتفاع نوار پایینی */
	--ab: 0px;    /* ارتفاع نوار مدیریت وردپرس */
	--font: "Vazirmatn", "IRANSans", "IRANSansX", Tahoma, system-ui, -apple-system, "Segoe UI", sans-serif;
}
@supports (color: color-mix(in srgb, red, blue)) {
	:root { --p-soft: color-mix(in srgb, var(--p) 10%, #fff); }
}

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

/* جلوگیری از اسکرول افقی (clip برخلاف hidden جلوی sticky را نمی‌گیرد) */
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--tb) + var(--hd) + var(--ab) + 8px);
	overflow-x: clip;
	max-width: 100%;
}
body {
	margin: 0;
	padding-bottom: calc(var(--bb) + env(safe-area-inset-bottom, 0px));
	direction: rtl;
	text-align: right;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.9;
	color: var(--d);
	background: var(--bg);
	overflow-x: clip;
	max-width: 100%;
}
@supports not (overflow: clip) {
	html { overflow-x: hidden; }
	body { overflow-x: visible; }
}
body.gk-lock { overflow: hidden; }
img, svg, iframe, video { max-width: 100%; }
img { height: auto; vertical-align: middle; }
a { color: var(--p); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.5; font-weight: 800; overflow-wrap: anywhere; }
p { margin: 0 0 1em; overflow-wrap: anywhere; }
ul, ol { margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--a); outline-offset: 2px; }
.gk-i { flex: none; display: inline-block; vertical-align: middle; }

.gk-wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 16px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap;
}
.gk-skip {
	position: absolute; top: -60px; right: 8px; z-index: 200;
	background: var(--d); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.gk-skip:focus { top: 8px; }

/* نوار مدیریت وردپرس */
.admin-bar { --ab: 46px; }
@media (min-width: 783px) { .admin-bar { --ab: 32px; } }
@media (max-width: 600px) { .admin-bar { --ab: 0px; } }

/* ==========================================================================
   ۲. دکمه‌ها
   ========================================================================== */
.gk-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 20px; border: 0; border-radius: 12px;
	background: var(--p); color: #fff; font-weight: 700; line-height: 1.6;
	text-decoration: none; transition: transform .15s, box-shadow .15s, opacity .15s;
}
.gk-btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15, 23, 42, .18); }
.gk-btn--accent { background: var(--a); color: #1c1917; }
.gk-btn--light { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.gk-btn--lg { padding: 13px 28px; font-size: 1.05rem; }
.gk-btn[disabled] { opacity: .6; cursor: wait; }

.gk-iconbtn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px;
	background: transparent; color: var(--d);
}
.gk-iconbtn:hover { background: var(--p-soft); }

.gk-more {
	display: inline-flex; align-items: center; gap: 4px;
	font-weight: 700; font-size: .95rem; color: var(--p); white-space: nowrap;
}

/* ==========================================================================
   ۳. نوار بالایی ثابت
   ========================================================================== */
.gk-topbar {
	position: sticky; top: var(--ab); z-index: 60;
	height: var(--tb); background: var(--d); color: #fff; font-size: .82rem;
}
.gk-topbar__in {
	display: flex; align-items: center; gap: 14px; height: 100%; white-space: nowrap; min-width: 0;
}
.gk-topbar a { color: #fff; }
.gk-topbar__phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; flex: none; }
.gk-topbar__addr { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 auto; opacity: .9; }
.gk-topbar__addr span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gk-topbar__addr .gk-i { color: var(--a); }

/* ==========================================================================
   ۴. هدر اصلی
   ========================================================================== */
.gk-header {
	position: sticky; top: calc(var(--tb) + var(--ab)); z-index: 55;
	height: var(--hd); background: #fff; border-bottom: 1px solid var(--line);
}
.gk-header__in {
	display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; height: 100%;
}
.gk-logo { text-align: center; min-width: 0; }
.gk-logo__text {
	display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	font-size: 1rem; font-weight: 800; color: var(--p);
}
.gk-logo__text:hover { text-decoration: none; }
.gk-logo img, .gk-logo .custom-logo { max-height: 44px; width: auto; }
.gk-logo .custom-logo-link { display: inline-block; line-height: 0; }

/* فهرست دسکتاپ: در موبایل مخفی */
.gk-nav { display: none; }

.gk-searchbox {
	position: absolute; top: 100%; right: 0; left: 0;
	padding: 12px 0; background: #fff; border-bottom: 1px solid var(--line);	visibility: hidden; opacity: 0; transform: translateY(-8px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.gk-searchbox.is-open { visibility: visible; opacity: 1; transform: none; }
.gk-searchform { display: flex; gap: 8px; }
.gk-searchform input[type="search"] {
	flex: 1; min-width: 0; padding: 10px 14px;
	border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
}
.gk-searchform button {
	flex: none; width: 46px; border: 0; border-radius: 12px;
	background: var(--p); color: #fff; display: inline-flex; align-items: center; justify-content: center;
}

/* منوی کشویی موبایل */
.gk-overlay {
	position: fixed; inset: 0; z-index: 90; background: rgba(15, 23, 42, .55);
	visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s;
}
.gk-overlay.is-open { visibility: visible; opacity: 1; }
.gk-drawer {
	position: fixed; top: 0; bottom: 0; right: 0; z-index: 100;
	width: min(86vw, 340px); background: #fff; overflow-y: auto;
	transform: translateX(100%); visibility: hidden;
	transition: transform .28s ease, visibility .28s;
	box-shadow: -10px 0 30px rgba(15, 23, 42, .2);
}
.gk-drawer.is-open { transform: none; visibility: visible; }
.gk-drawer__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 8px 16px; border-bottom: 1px solid var(--line);
}
.gk-drawer__title { font-weight: 800; color: var(--p); }
.gk-menu-list { list-style: none; padding: 8px 0; }
.gk-menu-list li { margin: 0; }
.gk-menu-list a {
	display: block; padding: 12px 20px; color: var(--d); font-weight: 600;
	border-bottom: 1px solid #f1f5f9;
}
.gk-menu-list a:hover { background: var(--p-soft); color: var(--p); text-decoration: none; }
.gk-menu-list .sub-menu { list-style: none; background: var(--bg); }
.gk-menu-list .sub-menu a { padding-right: 36px; font-weight: 400; }

/* ==========================================================================
   ۵. بخش‌ها (عمومی)
   ========================================================================== */
.gk-main { min-height: 50vh; max-width: 100%; }
.gk-sec { padding: 34px 0; scroll-margin-top: calc(var(--tb) + var(--hd) + var(--ab) + 8px); }
.gk-sec__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.gk-sec__title { margin: 0; font-size: 1.3rem; position: relative; padding-right: 14px; }
.gk-sec__title::before {
	content: ""; position: absolute; right: 0; top: 18%; bottom: 18%;
	width: 5px; border-radius: 4px; background: var(--a);
}
.gk-card {
	background: var(--card); border: 1px solid var(--line);
	border-radius: var(--r); box-shadow: var(--shadow); min-width: 0;
}
.gk-ph {
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%; min-height: 120px; background: var(--p-soft); color: var(--p);
}

/* ==========================================================================
   ۶. بنر اصلی و موارد اعتمادساز
   ========================================================================== */
.gk-hero { padding: 12px 0 8px; }
.gk-hero__in { position: relative; isolation: isolate; color: #fff; }
.gk-hero__in::before {
	content: ""; position: absolute; inset: 0 16px; z-index: -1; border-radius: 22px;
	background: linear-gradient(160deg, var(--p) 0%, var(--d) 140%);
}
.gk-hero__text { padding: 32px 22px 64px; }
.gk-hero__title { font-size: 1.65rem; line-height: 1.6; margin-bottom: 10px; color: #fff; }
.gk-hero__sub { font-size: 1rem; opacity: .92; margin-bottom: 22px; }
.gk-hero.has-image .gk-hero__text { padding-bottom: 22px; }
.gk-hero__media { padding: 0 22px 64px; }
.gk-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }

.gk-trust {
	list-style: none; position: relative; margin-top: -36px; padding-inline: 12px;
	display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.gk-trust__item {
	display: flex; align-items: center; gap: 12px; padding: 12px 14px;
	background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.gk-trust__icon {
	flex: none; width: 44px; height: 44px; border-radius: 12px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--p-soft); color: var(--p);
}
.gk-trust__body { display: flex; flex-direction: column; line-height: 1.6; min-width: 0; }
.gk-trust__body strong { font-size: .95rem; }
.gk-trust__body small { color: var(--muted); font-size: .8rem; }

/* ==========================================================================
   ۷. آمار
   ========================================================================== */
.gk-stats { list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gk-stat {
	display: flex; flex-direction: column; align-items: center; gap: 2px;
	padding: 18px 8px; background: #fff; border: 1px solid var(--line);
	border-radius: var(--r); box-shadow: var(--shadow); text-align: center; min-width: 0;
}
.gk-stat__value { display: inline-flex; align-items: baseline; justify-content: center; gap: 2px; font-size: 2rem; font-weight: 800; color: var(--p); line-height: 1.4; }
.gk-stat__pre, .gk-stat__suf { font-size: 1.4rem; color: var(--a); }
.gk-stat__label { font-size: .9rem; color: var(--muted); font-weight: 600; }

/* ==========================================================================
   ۸. اسلایدرها
   ========================================================================== */
.gk-slider { position: relative; max-width: 100%; min-width: 0; }
.gk-slider__track {
	display: flex; gap: 14px; padding: 4px 2px 12px;
	overflow-x: auto; scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none;
}
.gk-slider__track::-webkit-scrollbar { display: none; }
.gk-slide { flex: 0 0 86%; min-width: 0; scroll-snap-align: start; }
.gk-slider--gallery .gk-slide { flex-basis: 90%; }

.gk-slider__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 4px; }
.gk-slider__btn {
	width: 38px; height: 38px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fff; border: 1px solid var(--line); color: var(--p);
}
.gk-slider__btn:hover { background: var(--p); color: #fff; }
.gk-slider__dots { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 60%; }
.gk-dot {
	width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px;
	background: #cbd5e1; transition: width .25s, background .25s;
}
.gk-dot.is-active { width: 22px; background: var(--p); }

/* ==========================================================================
   ۹. نظرات
   ========================================================================== */
.gk-testi { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 20px 18px; }
.gk-testi__quote { position: absolute; top: 14px; left: 16px; color: var(--a); opacity: .35; }
.gk-stars { display: flex; gap: 2px; color: #cbd5e1; }
.gk-star.is-on { color: var(--a); }
.gk-star.is-on .gk-i { fill: currentColor; }
.gk-testi__text { flex: 1; margin: 0; font-size: .95rem; color: #334155; }
.gk-testi__by { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.gk-testi__by strong { display: block; font-size: .95rem; }
.gk-testi__by small { display: block; color: var(--muted); font-size: .8rem; }
.gk-testi__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* ==========================================================================
   ۱۰. مطالب آموزشی و کارت نوشته
   ========================================================================== */
.gk-post { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.gk-post__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--p-soft); }
.gk-post__img img { width: 100%; height: 100%; object-fit: cover; }
.gk-post__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 16px 16px; }
.gk-post__title { margin: 0; font-size: 1.05rem; }
.gk-post__title a { color: var(--d); }
.gk-post__excerpt { margin: 0; flex: 1; font-size: .9rem; color: var(--muted); }

/* ==========================================================================
   ۱۱. بنر مشاوره
   ========================================================================== */
.gk-cta {
	display: flex; align-items: center; gap: 14px; padding: 18px;
	border-radius: 20px; color: #1c1917; background: linear-gradient(135deg, var(--a), #fbbf24);
	box-shadow: 0 8px 20px rgba(245, 158, 11, .3); flex-wrap: wrap;
}
.gk-cta:hover { text-decoration: none; transform: translateY(-1px); }
.gk-cta__icon {
	flex: none; width: 56px; height: 56px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fff; color: var(--p);
}
.gk-cta__body { display: flex; flex-direction: column; flex: 1; min-width: min(160px, 100%); line-height: 1.6; }
.gk-cta__body strong { font-size: 1.1rem; }
.gk-cta__body small { opacity: .8; }
.gk-cta__num { font-size: 1.2rem; font-weight: 800; background: rgba(255, 255, 255, .55); padding: 4px 14px; border-radius: 10px; }

/* ==========================================================================
   ۱۲. ویدیوها
   ========================================================================== */
.gk-vid { height: 100%; overflow: hidden; display: flex; flex-direction: column; }
.gk-vid__frame { position: relative; aspect-ratio: 16 / 9; background: #0f172a; }
.gk-vid__play {
	position: absolute; inset: 0; display: block; width: 100%; height: 100%;
	padding: 0; border: 0; background: #0f172a; overflow: hidden;
}
.gk-vid__play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.gk-vid__icon {
	position: absolute; top: 50%; right: 50%; transform: translate(50%, -50%);
	width: 58px; height: 58px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--a); color: #1c1917; box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.gk-vid__icon .gk-i { fill: currentColor; stroke: none; }
.gk-vid__frame iframe, .gk-vid__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.gk-vid__body { padding: 12px 16px 16px; }
.gk-vid__title { margin: 0 0 4px; font-size: 1rem; }
.gk-vid__excerpt { margin: 0; font-size: .88rem; color: var(--muted); }

/* ==========================================================================
   ۱۳. خدمات
   ========================================================================== */
.gk-services { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gk-service {
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	padding: 18px 10px; text-align: center; color: var(--d);
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.gk-service:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--p); box-shadow: 0 10px 22px rgba(15, 23, 42, .12); }
.gk-service__icon {
	width: 62px; height: 62px; border-radius: 18px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--p-soft); color: var(--p);
}
.gk-service__title { margin: 0; font-size: .95rem; }
.gk-service__text { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.8; }

/* ==========================================================================
   ۱۴. فرم تماس
   ========================================================================== */
.gk-contact { max-width: 640px; margin-inline: auto; padding: 20px 18px; }
.gk-contact__note { color: var(--muted); font-size: .95rem; }
.gk-form { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.gk-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gk-field label { font-weight: 700; font-size: .92rem; }
.gk-field input, .gk-field textarea {
	width: 100%; max-width: 100%; padding: 11px 14px; background: var(--bg);
	border: 1px solid var(--line); border-radius: 12px;
}
.gk-field input:focus, .gk-field textarea:focus { border-color: var(--p); background: #fff; outline: 0; box-shadow: 0 0 0 3px var(--p-soft); }
.gk-field textarea { min-height: 110px; resize: vertical; }
.gk-field input[type="tel"] { direction: ltr; text-align: right; }
.gk-field.gk-captcha { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.gk-captcha label { white-space: normal; }
.gk-captcha input { width: 90px; text-align: center; direction: ltr; }
/* فیلد مخفی ضدهرزنامه: بدون هیچ جابه‌جایی به بیرون از صفحه */
.gk-hp {
	position: absolute !important; top: 0; right: 0;
	width: 1px; height: 1px; margin: 0; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	opacity: 0; pointer-events: none; white-space: nowrap;
}
.gk-alert { padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; font-size: .95rem; }
.gk-alert--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.gk-alert--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ==========================================================================
   ۱۵. سؤالات متداول
   ========================================================================== */
.gk-faq { max-width: 760px; margin-inline: auto; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.gk-faq__item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gk-faq__h { margin: 0; font-size: 1rem; }
.gk-faq__q {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	width: 100%; padding: 14px 16px; border: 0; background: transparent;
	text-align: right; font-weight: 700; line-height: 1.7;
}
.gk-faq__q:hover { background: var(--p-soft); }
.gk-faq__sign {
	flex: none; width: 30px; height: 30px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--p-soft); color: var(--p); transition: transform .25s, background .25s, color .25s;
}
.gk-faq__q[aria-expanded="true"] .gk-faq__sign { transform: rotate(45deg); background: var(--p); color: #fff; }
.gk-faq__q[aria-expanded="true"] { color: var(--p); }
.gk-faq__a[hidden] { display: none; }
.gk-faq__a-in { padding: 0 16px 16px; color: #334155; font-size: .95rem; }
.gk-faq__a-in p:last-child { margin-bottom: 0; }

/* ==========================================================================
   ۱۶. تیم تخصصی
   ========================================================================== */
.gk-team { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gk-member { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px; text-align: center; }
.gk-member__photo {
	width: 104px; height: 104px; border-radius: 50%; overflow: hidden;
	margin-bottom: 8px; border: 3px solid var(--p-soft); background: var(--p-soft);
}
.gk-member__photo img { width: 100%; height: 100%; object-fit: cover; }
.gk-member__photo .gk-ph { min-height: 0; }
.gk-member__name { margin: 0; font-size: 1rem; }
.gk-member__spec { margin: 0 0 6px; font-size: .85rem; color: var(--muted); }

/* ==========================================================================
   ۱۷. درباره ما و گالری
   ========================================================================== */
.gk-about__text { max-width: 760px; margin: 0 auto 20px; color: #334155; text-align: justify; }
.gk-gal { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--p-soft); aspect-ratio: 3 / 2; }
.gk-gal img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   ۱۸. محتوای نوشته‌ها، صفحه‌ها و بخش سفارشی
   ========================================================================== */
.gk-content { font-size: 1rem; line-height: 2; color: #1e293b; overflow-wrap: anywhere; }
.gk-content h2, .gk-content h3, .gk-content h4 { margin-top: 1.6em; }
.gk-content img { border-radius: 12px; }
.gk-content a { text-decoration: underline; }
.gk-content ul, .gk-content ol { padding-right: 1.4em; margin-bottom: 1em; }
.gk-content blockquote {
	margin: 1.2em 0; padding: 10px 16px; border-right: 4px solid var(--a);
	background: var(--p-soft); border-radius: 8px;
}
.gk-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.gk-content th, .gk-content td { padding: 8px 10px; border: 1px solid var(--line); }
.gk-content .alignleft { float: left; margin: 0 12px 8px 0; }
.gk-content .alignright { float: right; margin: 0 0 8px 12px; }
.gk-content .aligncenter { display: block; margin-inline: auto; }
.gk-content iframe { width: 100%; }
.gk-content pre { max-width: 100%; overflow-x: auto; direction: ltr; text-align: left; }

.gk-page { max-width: 820px; margin: 0 auto; padding: 26px 16px 34px; }
.gk-page__title { font-size: 1.5rem; margin-bottom: 8px; }
.gk-page__meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; color: var(--muted); font-size: .85rem; }
.gk-page__thumb { margin-bottom: 18px; border-radius: var(--r); overflow: hidden; }
.gk-page__thumb img { width: 100%; }
.gk-page__box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }

.gk-archive-head { padding: 26px 0 8px; }
.gk-archive-head h1 { font-size: 1.4rem; margin: 0; }
.gk-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); padding: 12px 0 28px; }
.gk-grid .gk-card { height: 100%; }

.gk-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0 0 28px; }
.gk-pagination .page-numbers {
	min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fff; border: 1px solid var(--line); color: var(--d);
}
.gk-pagination .page-numbers.current { background: var(--p); border-color: var(--p); color: #fff; }
.gk-pagination a.page-numbers:hover { text-decoration: none; border-color: var(--p); }

.gk-notfound { max-width: 520px; margin: 0 auto; padding: 50px 16px; text-align: center; }
.gk-notfound__code { font-size: 4.5rem; font-weight: 800; color: var(--a); line-height: 1.2; }
.gk-notfound .gk-searchform { margin: 18px 0; }

/* ==========================================================================
   ۱۹. فوتر
   ========================================================================== */
.gk-footer { margin-top: 20px; background: var(--d); color: #cbd5e1; }
.gk-footer a { color: #e2e8f0; }
.gk-footer__grid { display: grid; gap: 28px; padding-block: 32px; grid-template-columns: minmax(0, 1fr); }
.gk-footer__col { min-width: 0; }
.gk-footer__brand { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.gk-footer__about { margin-bottom: 14px; font-size: .92rem; }
.gk-footer__title { font-size: 1.05rem; color: #fff; margin-bottom: 10px; }
.gk-footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.gk-footer__links a { font-size: .92rem; }
.gk-footer__addr { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px; font-size: .92rem; }
.gk-footer__addr .gk-i { color: var(--a); margin-top: 6px; }
.gk-social { display: flex; gap: 10px; }
.gk-social a {
	width: 42px; height: 42px; border-radius: 12px;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .1); color: #fff; transition: background .2s;
}
.gk-social a:hover { background: var(--a); color: #1c1917; text-decoration: none; }
.gk-map { margin-top: 14px; border-radius: 14px; overflow: hidden; background: #1e293b; }
.gk-map iframe { display: block; width: 100%; height: 220px; border: 0; }
.gk-footer__copy {
	padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .12);
	text-align: center; font-size: .82rem; color: #94a3b8;
}

/* ==========================================================================
   ۲۰. نوار پایینی ثابت
   ========================================================================== */
.gk-bottombar {
	position: fixed; right: 0; left: 0; bottom: 0; z-index: 9999;
	width: 100%; max-width: 100%;
	display: flex; height: calc(var(--bb) + env(safe-area-inset-bottom, 0px));
	padding-bottom: env(safe-area-inset-bottom, 0px);
	background: #fff; border-top: 1px solid var(--line);
	box-shadow: 0 -4px 14px rgba(15, 23, 42, .1);
	transform: translateZ(0);
}
.gk-bottombar a {
	flex: 1 1 50%; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
	font-weight: 800; font-size: .98rem; text-decoration: none;
}
.gk-bottombar__call { color: var(--p); background: #fff; }
.gk-bottombar__appt { color: #1c1917; background: var(--a); }
.gk-bottombar a:active { opacity: .85; }

/* ==========================================================================
   ۲۱. صفحه‌های بزرگ‌تر (Mobile-First: از کوچک به بزرگ)
   ========================================================================== */
@media (min-width: 640px) {
	:root { --hd: 66px; }
	.gk-wrap { padding-inline: 24px; }
	.gk-hero__in::before { inset: 0 24px; }
	.gk-hero__title { font-size: 2.1rem; }
	.gk-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.gk-slide { flex-basis: 47%; }
	.gk-slider--gallery .gk-slide { flex-basis: 60%; }
	.gk-services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.gk-team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.gk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gk-logo__text { font-size: 1.15rem; }
}

@media (min-width: 900px) {
	.gk-sec { padding: 46px 0; }
	.gk-sec__title { font-size: 1.5rem; }
	.gk-hero.has-image .gk-hero__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; }
	.gk-hero.has-image .gk-hero__text { padding: 44px 36px 76px; }
	.gk-hero.has-image .gk-hero__media { padding: 28px 36px 76px 0; }
	.gk-hero__text { padding: 52px 40px 80px; }
	.gk-hero__title { font-size: 2.5rem; }
	.gk-slide { flex-basis: calc((100% - 28px) / 3); }
	.gk-slider--gallery .gk-slide { flex-basis: calc((100% - 14px) / 2); }
	.gk-services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.gk-team { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.gk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.gk-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
	.gk-page { padding-block: 40px; }
	.gk-page__title { font-size: 1.9rem; }
}

/* ==========================================================================
   ۲۲. دسکتاپ: منوی افقی کامل به‌جای همبرگر
   ========================================================================== */
@media (min-width: 1100px) {
	:root { --hd: 72px; }

	.gk-burger { display: none; }
	.gk-overlay, .gk-drawer { display: none; }

	.gk-header__in {
		grid-template-columns: auto minmax(0, 1fr) 44px;
		gap: 24px;
	}
	.gk-logo { text-align: right; }
	.gk-logo__text { font-size: 1.1rem; }

	.gk-nav { display: block; min-width: 0; }
	.gk-nav__list {
		list-style: none; display: flex; align-items: center; justify-content: center;
		flex-wrap: nowrap; gap: 2px; margin: 0; padding: 0;
	}
	.gk-nav__list > li { position: relative; margin: 0; }
	.gk-nav__list a {
		display: block; padding: 8px 12px; border-radius: 10px;
		color: var(--d); font-weight: 700; font-size: .95rem; white-space: nowrap;
	}
	.gk-nav__list a:hover,
	.gk-nav__list .current-menu-item > a,
	.gk-nav__list .current-menu-ancestor > a { background: var(--p-soft); color: var(--p); text-decoration: none; }

	/* زیرمنوها */
	.gk-nav__list .menu-item-has-children > a::after {
		content: ""; display: inline-block; margin-inline-start: 6px; vertical-align: middle;
		border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0;
	}
	.gk-nav__list .sub-menu {
		list-style: none; margin: 0; padding: 6px; min-width: 200px;
		position: absolute; top: 100%; right: 0; z-index: 70;
		background: #fff; border: 1px solid var(--line); border-radius: 12px;
		box-shadow: 0 12px 28px rgba(15, 23, 42, .15);
		visibility: hidden; opacity: 0; transform: translateY(6px);
		transition: opacity .18s, transform .18s, visibility .18s;
	}
	.gk-nav__list li:hover > .sub-menu,
	.gk-nav__list li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
	.gk-nav__list .sub-menu a { font-weight: 600; font-size: .9rem; }

	.gk-bottombar { left: 50%; right: auto; width: 520px; transform: translateX(-50%); border-radius: 16px 16px 0 0; overflow: hidden; }
}

/* ==========================================================================
   ۲۳. دسترس‌پذیری و چاپ
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
	.gk-topbar, .gk-header, .gk-bottombar, .gk-drawer, .gk-overlay, .gk-footer .gk-map { display: none !important; }
	body { padding-bottom: 0; background: #fff; }
}