/*
Theme Name: Uniform Team
Description: ثيم خاص بمحلات الفريق للزي الموحد (تيم يونيفورم) بالدمام – أزرق نيلي وأصفر شريط القياس، بخياطة متقطعة وقطع قماش.
Version: 1.0.0
Author: biz-sky
Requires PHP: 7.4
Text Domain: uniform-team
*/

:root {
	--indigo: #1d2b64;
	--indigo-d: #121b45;
	--indigo-2: #2f3f8f;
	--tape: #f5c518;
	--tape-d: #dcae08;
	--thread: #d8343c;
	--canvas: #f6f1e7;
	--canvas-2: #efe7d6;
	--ink: #1e2233;
	--muted: #626779;
	--line: #e4dccb;
	--radius: 16px;
	--shadow: 0 16px 34px rgba(18, 27, 69, .14);
	--stitch: 2px dashed rgba(29, 43, 100, .35);
	--ticks: repeating-linear-gradient(90deg, rgba(30,34,51,.55) 0 1px, transparent 1px 10px);
	--ticks-big: repeating-linear-gradient(90deg, rgba(30,34,51,.7) 0 2px, transparent 2px 50px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: "Almarai", Tahoma, sans-serif;
	font-size: 16px;
	line-height: 1.85;
	color: var(--ink);
	background: #fff;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo-2); text-decoration: none; }
a:hover { color: var(--thread); }
h1, h2, h3, h4 { font-family: "El Messiri", "Almarai", sans-serif; line-height: 1.4; margin: 0 0 .5em; color: var(--indigo-d); font-weight: 700; }
.wrap { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: 20px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.screen-reader-text:focus { width: auto; height: auto; clip: auto; clip-path: none; margin: 0; inset-inline-start: 10px; top: 10px; z-index: 999; background: #fff; padding: 8px 14px; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .72em 1.5em; border-radius: 999px;
	font-weight: 700; font-size: 15px; line-height: 1.4;
	border: 2px solid transparent; cursor: pointer;
	transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-tape { background: var(--tape); color: var(--indigo-d); box-shadow: 0 0 0 3px rgba(245,197,24,.25); }
.btn-tape:hover { background: var(--tape-d); color: var(--indigo-d); }
.btn-indigo { background: var(--indigo); color: #fff; }
.btn-indigo:hover { background: var(--indigo-d); color: #fff; }
.btn-outline { border-color: var(--indigo); color: var(--indigo); }
.btn-outline:hover { background: var(--indigo); color: #fff; }
.kicker {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 700; font-size: 14px; color: var(--thread);
	margin-bottom: 8px;
}

/* Top bar */
.topbar { background: var(--indigo-d); color: #c9cfe8; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 6px 18px; padding-block: 6px; flex-wrap: wrap; }
.tb-info, .tb-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tb-info span, .topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--tape); }
.topbar svg { color: var(--tape); }
.tb-social svg { color: inherit; }

/* Header */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 0 var(--tape), 0 6px 18px rgba(18,27,69,.06); }
.header-row { display: flex; align-items: center; gap: 20px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--indigo-d); }
.brand img { max-height: 52px; width: auto; }
.brand-name { font-family: "El Messiri", sans-serif; font-weight: 700; font-size: 17px; line-height: 1.3; padding-inline-start: 10px; border-inline-start: var(--stitch); }
.logo-text { font-family: "El Messiri", sans-serif; font-weight: 700; font-size: 22px; color: var(--indigo); }
.main-nav { margin-inline-start: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav a { display: block; padding: 7px 13px; color: var(--ink); font-weight: 700; font-size: 14.5px; border-radius: 999px; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--canvas); color: var(--indigo); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 2px solid var(--indigo); background: #fff; border-radius: 12px; cursor: pointer; padding: 11px 9px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--indigo); border-radius: 2px; }

/* Hero */
.hero { background: var(--canvas); position: relative; overflow: hidden; }
.hero::before {
	content: ""; position: absolute; inset: 0;
	background-image: repeating-linear-gradient(45deg, rgba(29,43,100,.035) 0 2px, transparent 2px 12px);
	pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding-block: 64px 70px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 16px; }
.hero h1::after { content: ""; display: block; width: 120px; height: 0; border-top: 3px dashed var(--thread); margin-top: 14px; }
.hero-copy p { font-size: 18px; color: #3d4256; margin: 0 0 12px; max-width: 560px; }
.hero-copy .hero-en { font-size: 14px; color: var(--muted); text-align: right; font-style: italic; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-swatches { position: relative; height: 470px; }
.swatch { position: absolute; margin: 0; background: #fff; padding: 10px; border-radius: var(--radius); box-shadow: var(--shadow); }
.swatch::after { content: ""; position: absolute; inset: 5px; border: var(--stitch); border-radius: calc(var(--radius) - 4px); pointer-events: none; }
.swatch img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius) - 6px); }
.swatch-1 { width: 58%; height: 78%; top: 0; inset-inline-start: 0; transform: rotate(2deg); z-index: 2; }
.swatch-2 { width: 46%; height: 52%; top: 4%; inset-inline-end: 0; transform: rotate(-3deg); }
.swatch-3 { width: 44%; height: 46%; bottom: 0; inset-inline-end: 6%; transform: rotate(3deg); z-index: 3; }
.tag-label {
	position: absolute; bottom: 8%; inset-inline-start: 6%; z-index: 4;
	background: var(--indigo); color: #fff; padding: 12px 20px 12px 30px; border-radius: 10px;
	direction: ltr; display: flex; flex-direction: column; line-height: 1.1; transform: rotate(-4deg);
	box-shadow: var(--shadow);
}
.tag-label::before { content: ""; position: absolute; left: 10px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--canvas); }
.tag-label span { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #c9cfe8; }
.tag-label strong { font-family: "El Messiri", sans-serif; font-size: 26px; color: var(--tape); }

/* Measuring tape band */
.tape {
	background-color: var(--tape);
	background-image: var(--ticks-big), var(--ticks);
	background-size: 100% 14px, 100% 8px;
	background-repeat: repeat-x;
	background-position: top, top;
	border-block: 2px solid var(--tape-d);
	padding: 22px 0 14px;
}
.tape-row { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; }
.tape-row span { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--indigo-d); }

/* Sections */
.section { padding-block: 80px; }
.section-canvas { background: var(--canvas); }
.section-head { margin-bottom: 38px; }
.section-head.center { text-align: center; }
.section-head h2 { font-size: clamp(26px, 3vw, 38px); margin: 0; }

/* Sectors */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sector { position: relative; display: flex; flex-direction: column; background: var(--canvas); border-radius: var(--radius); padding: 12px; color: var(--indigo-d); transition: transform .25s, box-shadow .25s; }
.sector::after { content: ""; position: absolute; inset: 6px; border: var(--stitch); border-radius: calc(var(--radius) - 4px); pointer-events: none; }
.sector:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sector-img { display: block; aspect-ratio: 4 / 3; border-radius: calc(var(--radius) - 6px); overflow: hidden; background: #fff; }
.sector-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.sector:hover .sector-img img { transform: scale(1.05); }
.sector-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 8px 4px; font-family: "El Messiri", sans-serif; font-weight: 700; font-size: 19px; }
.sector-label svg { color: var(--thread); }

/* Embroidery */
.section-indigo { background: var(--indigo); color: #d7dbf0; position: relative; overflow: hidden; }
.section-indigo::before { content: ""; position: absolute; inset: 18px; border: 2px dashed rgba(245,197,24,.3); border-radius: 22px; pointer-events: none; }
.embroid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.section-indigo .kicker { color: var(--tape); }
.section-indigo h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); }
.embroid-copy p { font-size: 17px; }
.checks { list-style: none; margin: 18px 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { position: relative; padding-inline-start: 34px; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 20px; height: 20px; border-radius: 50%; background: var(--tape); }
.checks li::after { content: ""; position: absolute; inset-inline-start: 6px; top: calc(.45em + 5px); width: 8px; height: 5px; border-inline-start: 2px solid var(--indigo-d); border-bottom: 2px solid var(--indigo-d); transform: rotate(-45deg); }
[dir="rtl"] .checks li::after { transform: rotate(45deg) scaleX(-1); }
.embroid-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.embroid-grid figure { margin: 0; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 4px solid #fff; outline: 2px dashed rgba(245,197,24,.6); outline-offset: 5px; }
.embroid-grid figure:nth-child(even) { transform: translateY(26px); }
.embroid-grid img { width: 100%; height: 100%; object-fit: cover; }

/* Product cards */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.product:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-img { display: block; aspect-ratio: 1; background: var(--canvas); overflow: hidden; position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 16px 16px 14px; display: flex; flex-direction: column; flex: 1; border-top: 3px dashed var(--line); }
.product h3 { font-size: 16.5px; line-height: 1.5; margin-bottom: 6px; }
.product h3 a { color: var(--indigo-d); }
.product h3 a:hover { color: var(--thread); }
.product p { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; flex: 1; overflow-wrap: anywhere; }
.product-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.product-actions .link { font-weight: 700; font-size: 14px; }
.product-actions .quote { display: inline-flex; align-items: center; gap: 6px; background: var(--canvas); color: var(--indigo); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; }
.product-actions .quote:hover { background: var(--tape); }

/* Customers */
.customers { margin: 0 auto; max-width: 980px; background: #fff; padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow); }
.customers img { border-radius: 10px; width: 100%; }

/* Visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.visit-img { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 8px solid var(--indigo); }
.visit-card { background: var(--canvas); border-radius: var(--radius); padding: 34px; position: relative; }
.visit-card::after { content: ""; position: absolute; inset: 8px; border: var(--stitch); border-radius: calc(var(--radius) - 4px); pointer-events: none; }
.visit-card h2 { font-size: clamp(24px, 2.6vw, 32px); }
.visit-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.visit-list li { display: flex; gap: 10px; align-items: flex-start; }
.visit-list svg { color: var(--thread); margin-top: .35em; }
.visit-card .hero-actions { position: relative; z-index: 1; }

/* Page head */
.page-head { background: var(--indigo); color: #d7dbf0; padding-block: 44px 38px; position: relative; border-bottom: 6px solid var(--tape); }
.page-head::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 8px; background-image: var(--ticks); opacity: .5; }
.page-head h1 { color: #fff; font-size: clamp(24px, 3.4vw, 38px); margin: 0; overflow-wrap: anywhere; }
.crumbs { font-size: 14px; margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--tape); }
.crumbs span { opacity: .5; }

/* Content */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 42px; padding-block: 50px 70px; align-items: start; }
.entry { min-width: 0; }
.entry-featured { margin-bottom: 24px; }
.entry-featured img { border-radius: var(--radius); }
.entry-content { font-size: 17px; overflow-wrap: break-word; }
.entry-content [style*="font-family"], .entry-content font { font-family: inherit !important; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.1em; line-height: 1.6; }
.entry-content h1 { font-size: 28px; }
.entry-content h2 { font-size: 23px; }
.entry-content h3 { font-size: 20px; }
.entry-content h4 { font-size: 18px; }
.entry-content p { margin: 0 0 1em; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content img { border-radius: 10px; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content .alignleft { float: left; margin: 0 20px 14px 0; }
.entry-content .alignright { float: right; margin: 0 0 14px 20px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px; display: block; overflow-x: auto; max-width: 100%; }
.entry-content table tbody, .entry-content table thead { display: table; width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 7px 9px; }
.entry-content th { font-weight: 700; color: var(--indigo-d); }
.entry-content td[width], .entry-content table[width] { width: auto; }
.gallery { display: grid; gap: 12px; margin: 20px 0; grid-template-columns: repeat(3, 1fr); }
.gallery-columns-1 { grid-template-columns: 1fr; max-width: 640px; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item { margin: 0; background: var(--canvas); border-radius: 12px; padding: 6px; }
.gallery-item img { width: 100%; height: auto; border-radius: 8px; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--muted); text-align: center; }
.quote-box { margin-top: 34px; background: var(--canvas); border-radius: var(--radius); padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border: var(--stitch); }
.quote-box strong { display: block; font-family: "El Messiri", sans-serif; font-size: 19px; color: var(--indigo-d); }
.quote-box span { font-size: 14.5px; color: var(--muted); }

/* Sidebar */
.side .sticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 22px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.box h3 { font-size: 19px; padding-bottom: 8px; border-bottom: 2px dashed var(--line); }
.box-cta { background: var(--indigo); color: #d7dbf0; border: 0; position: relative; }
.box-cta::after { content: ""; position: absolute; inset: 6px; border: 2px dashed rgba(245,197,24,.35); border-radius: calc(var(--radius) - 4px); pointer-events: none; }
.box-cta h3 { color: #fff; border-bottom-color: rgba(255,255,255,.15); }
.box-cta p { font-size: 14.5px; }
.box-cta .btn { width: 100%; position: relative; z-index: 1; }
.side-phone { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; color: #fff; font-weight: 700; }
.side-hours { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px !important; margin: 8px 0 0; }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.side-list a { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; color: var(--ink); font-size: 14.5px; font-weight: 700; }
.side-list img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; background: var(--canvas); }
.side-list a:hover { color: var(--thread); }
.search-form { display: flex; gap: 6px; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 14px; background: var(--canvas); }
.search-submit { padding: 10px 16px; border: 0; border-radius: 999px; background: var(--indigo); color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.search-submit:hover { background: var(--thread); }
.pagination { margin-top: 40px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.pagination .current { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.empty { text-align: center; max-width: 520px; margin-inline: auto; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.empty .search-form { width: 100%; }

/* Footer */
.site-footer { background: var(--indigo-d); color: #aeb5d6; font-size: 14.5px; position: relative; }
.tape-edge { height: 14px; background-color: var(--tape); background-image: var(--ticks-big), var(--ticks); background-size: 100% 14px, 100% 8px; background-repeat: repeat-x; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr; gap: 40px; padding-block: 56px 36px; }
.footer-logo { display: inline-block; background: #fff; padding: 8px 14px; border-radius: 12px; margin-bottom: 14px; }
.footer-logo img { max-height: 48px; width: auto; }
.ltr-line { font-size: 13px; opacity: .8; text-align: right; }
.site-footer h4 { color: #fff; font-size: 18px; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #e2e5f4; }
.site-footer a:hover { color: var(--tape); }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; }
.contact-list svg { color: var(--tape); margin-top: .35em; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed rgba(245,197,24,.5); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 18px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; }

/* Responsive */
@media (max-width: 1100px) {
	.brand-name { display: none; }
	.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
	.nav-toggle { display: flex; }
	.header-row { flex-wrap: wrap; gap: 12px; }
	.header-actions { margin-inline-start: auto; }
	.main-nav { order: 3; width: 100%; display: none; margin: 0; }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; padding-bottom: 8px; }
	.main-nav a { border-radius: 10px; }
	.hero-grid, .embroid, .visit-grid { grid-template-columns: 1fr; }
	.hero-swatches { height: 420px; max-width: 560px; width: 100%; margin-inline: auto; }
	.sectors { grid-template-columns: repeat(2, 1fr); }
	.products { grid-template-columns: repeat(2, 1fr); }
	.layout { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }
	.embroid-grid { max-width: 480px; }
}
@media (max-width: 600px) {
	.section { padding-block: 56px; }
	.tb-hours { display: none; }
	.topbar .wrap { justify-content: center; }
	.header-actions .btn span { display: none; }
	.header-actions .btn { padding: .7em; }
	.brand img { max-height: 42px; }
	.hero-grid { padding-block: 40px 50px; }
	.hero-swatches { height: 330px; }
	.tag-label { padding: 8px 14px 8px 24px; }
	.tag-label strong { font-size: 20px; }
	.tape-row { flex-direction: column; align-items: flex-start; }
	.sectors { grid-template-columns: 1fr 1fr; gap: 14px; }
	.sector-label { font-size: 15px; padding-inline: 4px; }
	.sector-label svg { display: none; }
	.products { grid-template-columns: 1fr 1fr; gap: 12px; }
	.product-body { padding: 12px 12px 10px; }
	.product h3 { font-size: 14.5px; }
	.product p { display: none; }
	.product-actions { flex-direction: column; align-items: stretch; text-align: center; }
	.product-actions .quote { justify-content: center; }
	.section-indigo::before { inset: 8px; }
	.visit-card { padding: 26px 20px; }
	.footer-grid { grid-template-columns: 1fr; }
	.gallery, .gallery-columns-4 { grid-template-columns: repeat(2, 1fr); }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 0 auto 14px; }
}
