/*
Theme Name: Uniform Team Pro
Description: Custom theme for uniform-team.com, a uniform supplier in Dammam. Navy, royal blue and tailor red from the logo, with the catalogue's ring and red-stripe motifs.
Version: 1.0.2
Author: biz-sky
Requires PHP: 7.4
Text Domain: uniform-team-pro
*/

:root {
	--navy: #0d1b3e;
	--navy-2: #16295c;
	--blue: #2438c4;
	--red: #e3262f;
	--red-d: #c11c24;
	--soft: #f3f5fa;
	--ink: #1a2238;
	--muted: #5d6680;
	--line: #e2e6f0;
	--white: #fff;
	--radius: 14px;
	--shadow: 0 18px 40px rgba(13, 27, 62, .12);
	--head: "Sora", "Inter", system-ui, sans-serif;
	--body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ar: "IBM Plex Sans Arabic", "Inter", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; font: 16px/1.65 var(--body); color: var(--ink); background: var(--white); overflow-x: hidden; }
[dir="rtl"], [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { font-family: var(--ar); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; margin: 0; padding: 10px 16px; background: var(--white); z-index: 100; inset-inline-start: 8px; top: 8px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; margin-top: 2rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px; font: 600 .95rem/1 var(--body); border: 2px solid transparent; transition: .2s; cursor: pointer; }
.btn-sm { padding: .6em 1.1em; font-size: .88rem; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-d); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--blue); color: var(--white); }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--red); color: var(--white); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

.kicker { display: inline-flex; align-items: center; gap: .6em; font: 600 .8rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.kicker::before { content: ""; width: 26px; height: 3px; background: var(--red); border-radius: 2px; }
[dir="rtl"] .kicker { letter-spacing: 0; }
.stripe { height: 8px; background: linear-gradient(90deg, var(--red) 0 62%, var(--navy) 62% 100%); }

/* Top bar & header */
.topbar { background: var(--navy); color: #c9d2ea; font-size: .84rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: .45em; }
.topbar a { color: #fff; }
.topbar a:hover { color: #ffb3b6; }
.topbar-links { gap: 20px !important; }
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.brand img { max-height: 52px; width: auto; }
.logo-text { font: 800 1.4rem var(--head); color: var(--navy); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav .menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu a { display: block; padding: 8px 12px; font-weight: 500; font-size: .95rem; color: var(--ink); border-radius: 8px; }
.site-nav .menu a:hover, .site-nav .current-menu-item > a { color: var(--red); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: 10px; padding: 11px 10px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.nav-toggle span:not(.screen-reader-text) { display: block; height: 2px; background: var(--navy); border-radius: 2px; }

/* Hero */
.hero { position: relative; background: radial-gradient(circle at 85% 20%, #e8ecfa 0, transparent 55%), var(--soft); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 70px 0 80px; }
.hero h1 { margin-bottom: .3em; }
.hero-ar { font: 600 1.15rem var(--ar); color: var(--blue); margin-bottom: 1em; }
.hero-text { font-size: 1.1rem; color: var(--muted); max-width: 34em; margin-bottom: 1.8em; }
.hero-phone { display: inline-flex; align-items: center; gap: .6em; margin-top: 26px; color: var(--muted); font-size: .95rem; }
.hero-phone strong { color: var(--navy); font: 700 1.15rem var(--head); }
.hero-phone svg { color: var(--red); }
.hero-media { position: relative; min-height: 460px; }
.ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(36, 56, 196, .25); }
.ring-1 { width: 440px; height: 440px; inset-inline-end: -20px; top: 10px; }
.ring-2 { width: 330px; height: 330px; inset-inline-end: 35px; top: 65px; border-color: rgba(227, 38, 47, .35); }
.ring-1::before, .ring-1::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--red); top: 60px; left: 50px; }
.ring-1::after { background: var(--blue); top: auto; bottom: 40px; left: auto; right: 70px; }
.hero-img { position: absolute; margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-0 { width: 56%; height: 82%; inset-inline-start: 22%; top: 4%; z-index: 2; background: linear-gradient(160deg, #fff, #e6eaf6); }
.hero-img-0 img { object-fit: contain; object-position: bottom; }
.hero-img-1 { width: 34%; height: 44%; inset-inline-start: 0; bottom: 0; z-index: 3; border: 5px solid var(--white); }
.hero-img-2 { width: 34%; height: 44%; inset-inline-end: 0; bottom: 6%; z-index: 1; border: 5px solid var(--white); }

/* Sections */
.section { padding: 84px 0; }
.section-soft { background: var(--soft); }
.section-navy { background: var(--navy); color: #c9d2ea; }
.head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.head .kicker { justify-content: center; }
.head-light h2 { color: var(--white); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; text-align: start; max-width: none; flex-wrap: wrap; }
.head-row .kicker { justify-content: flex-start; }
.head-row h2 { margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: var(--navy); }
.more { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .9rem; color: var(--red); }

/* Sectors */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sector { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .25s; position: relative; }
.sector::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: .3s; }
.sector:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sector:hover::after { transform: scaleX(1); }
.sector-img { aspect-ratio: 4 / 3; background: linear-gradient(160deg, #fff, #eceff7); overflow: hidden; }
.sector-img img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.sector:hover .sector-img img { transform: scale(1.04); }
.sector-body { padding: 20px 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sector-body h3 { margin: 0; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); padding: 34px 28px; overflow: hidden; }
.step-num { position: absolute; inset-inline-end: 20px; top: 12px; font: 800 3.4rem var(--head); color: rgba(255, 255, 255, .06); }
.step-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--red); color: var(--white); margin-bottom: 18px; }
.step-icon svg { width: 26px; height: 26px; }
.step h3 { color: var(--white); }
.step p { margin: 0; font-size: .95rem; }

/* Why */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.why-intro p { color: var(--muted); margin-bottom: 1.6em; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-item { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.why-item:nth-child(2), .why-item:nth-child(3) { background: var(--soft); }
.why-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--blue); color: var(--blue); margin-bottom: 14px; }
.why-item p { margin: 0; color: var(--muted); font-size: .94rem; }

/* Catalogue */
.catalogue { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; }
.cat-page { scroll-snap-align: start; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--white); transition: .2s; }
.cat-page:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-page img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }

/* Deals */
.deals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.deal { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; border-radius: var(--radius); border: 1.5px dashed #c5cce0; background: var(--white); color: var(--ink); transition: .2s; }
.deal:hover { border-color: var(--red); color: var(--ink); }
.deal-off { display: flex; align-items: baseline; gap: .3em; font: 700 .9rem var(--head); color: var(--red); }
.deal-off strong { font-size: 2.6rem; line-height: 1; }
.deal h3 { margin: 0; flex: 1; }

/* Posts */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .body { padding: 20px 22px 24px; }
.post-card .meta { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--red); }
.post-card p { margin: 0; color: var(--muted); font-size: .93rem; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--navy) 0 60%, var(--blue)); color: #d6dcf0; padding: 60px 0; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .12); inset-inline-end: -80px; top: -120px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta h2 { color: var(--white); margin-bottom: .3em; }
.cta p { margin: 0; }

/* Inner pages */
.page-hero { background: var(--soft); position: relative; }
.page-hero .wrap { padding: 56px 0 46px; }
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: 0; max-width: 900px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 50px; align-items: start; }
.content { font-size: 1.04rem; min-width: 0; }
.content h1, .content h2, .content h3 { margin-top: 1.2em; }
.content h2 { font-size: 1.6rem; }
.content h3 { font-size: 1.25rem; }
.content img { border-radius: 10px; }
.content ul, .content ol { padding-inline-start: 1.3em; }
.content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.content td, .content th { border: 1px solid var(--line); padding: 10px; }
.content iframe { max-width: 100%; width: 100%; min-height: 380px; border: 0; border-radius: 12px; }
.article-img { margin: 0 0 28px; }
.article-img img { width: 100%; }
.side { position: sticky; top: 100px; display: grid; gap: 22px; }
.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--white); }
.side-quote { background: var(--navy); color: #c9d2ea; border: 0; }
.side-quote h3 { color: var(--white); }
.side-phone { display: block; margin-top: 14px; color: var(--white); font: 700 1.1rem var(--head); }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.side-list a { display: flex; gap: 12px; align-items: center; color: var(--ink); font-size: .92rem; font-weight: 500; line-height: 1.35; }
.side-list img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }

/* Content saved by the old page builder */
.content-page .elementor-section, .content-page .elementor-container, .content-page .elementor-row { display: flex; flex-wrap: wrap; gap: 24px; width: 100%; }
.content-page .elementor-column, .content-page .elementor-widget-wrap { flex: 1 1 260px; min-width: 0; }
.content-page .elementor-widget-wrap { display: flex; flex-direction: column; gap: 12px; }
.content-page .elementor-button { display: inline-flex; padding: .7em 1.3em; background: var(--red); color: var(--white); border-radius: 999px; font-weight: 600; }
.content-page .elementor-image-gallery .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.content-page .gallery-item { margin: 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery-item { margin: 0; }
.pager { margin-top: 40px; }
.pager .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pager .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--navy); }
.pager .current { background: var(--navy); color: var(--white); }
.empty, .notfound { text-align: center; }
.notfound .big { display: block; font: 800 7rem/1 var(--head); color: var(--red); }
.search-form { display: flex; gap: 8px; justify-content: center; margin: 20px 0; flex-wrap: wrap; }
.search-field { padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; min-width: 240px; font: inherit; }
.search-submit { padding: 12px 22px; border: 0; border-radius: 999px; background: var(--navy); color: var(--white); font: 600 .95rem var(--body); cursor: pointer; }

/* Contact Form 7 */
.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .wpcf7 textarea, .wpcf7 select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.wpcf7 input[type="submit"] { background: var(--red); color: var(--white); border: 0; padding: 12px 28px; border-radius: 999px; font: 600 1rem var(--body); cursor: pointer; }

/* Footer */
.site-footer { background: #0a1530; color: #a8b2cf; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding: 64px 0 44px; }
.footer-logo { background: var(--white); display: inline-block; padding: 10px 14px; border-radius: 12px; margin-bottom: 16px; }
.footer-logo img { max-height: 44px; width: auto; }
.footer-ar { font: 600 1rem var(--ar); color: var(--white); }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #a8b2cf; }
.site-footer a:hover { color: var(--white); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { color: var(--red); margin-top: .3em; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: .85rem; }
.wa-float { position: fixed; inset-inline-end: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: var(--white); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); z-index: 60; }
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { color: var(--white); transform: scale(1.06); }

/* Responsive */
@media (max-width: 1024px) {
	.sectors, .posts { grid-template-columns: repeat(2, 1fr); }
	.deals { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.article-grid { grid-template-columns: 1fr; }
	.side { position: static; }
}
@media (max-width: 900px) {
	.nav-toggle { display: flex; }
	.site-nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: var(--white); flex-direction: column; align-items: stretch; padding: 90px 24px 24px; transform: translateX(24px); opacity: 0; visibility: hidden; transition: transform .3s, opacity .3s, visibility .3s; box-shadow: var(--shadow); z-index: 40; }
	.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
	.site-nav .menu { flex-direction: column; }
	.site-nav .menu a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
	.nav-toggle { position: relative; z-index: 45; }
	.hero-grid, .why { grid-template-columns: 1fr; }
	.hero-grid { padding: 48px 0 56px; }
	.hero-media { min-height: 380px; }
	.ring-1 { width: 340px; height: 340px; }
	.ring-2 { width: 250px; height: 250px; }
	.steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.section { padding: 60px 0; }
	.sectors, .posts, .deals, .why-grid, .footer-grid { grid-template-columns: 1fr; }
	.topbar-inner > span:first-child { display: none; }
	.topbar-inner { justify-content: center; }
	.hero-media { min-height: 320px; }
	.ring { display: none; }
	.brand img { max-height: 42px; }
	.catalogue { grid-auto-columns: 82%; }
	.content iframe { min-height: 280px; }
}
