/*
Theme Name: Tajjers B2B Sportswear
Theme URI: https://tajjers.com
Author: Abdul Hadi Naseer
Description: Custom B2B sportswear theme. Black, white and red. Products and categories are managed from the WordPress dashboard.
Version: 1.0.0
Text Domain: tajjers
*/

/* ---------- Tokens ---------- */
:root {
  --red: #e10600;
  --red-dark: #b80500;
  --black: #0b0b0b;
  --ink: #141414;
  --grey-900: #1b1b1b;
  --grey-600: #5c5c5c;
  --grey-200: #e6e6e6;
  --grey-100: #f4f4f4;
  --white: #ffffff;
  --wrap: 1240px;
  --gutter: 24px;
  --radius: 4px;
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: .01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--head); font-weight: 700; font-size: 1.1rem;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .85em 1.6em; border: 2px solid var(--red);
  background: var(--red); color: var(--white);
  border-radius: var(--radius); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--dark { background: var(--black); border-color: var(--black); }
.btn--dark:hover { background: var(--grey-900); border-color: var(--grey-900); }
.btn--sm { font-size: .95rem; padding: .6em 1.2em; }

/* ---------- Top bar ---------- */
.topbar { background: var(--black); color: #cfcfcf; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a:hover { color: var(--white); }
.topbar__left, .topbar__right { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--grey-200);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 2rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.brand__mark { width: 14px; height: 34px; background: var(--red); transform: skewX(-18deg); display: inline-block; }
.brand img { max-height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav a { font-family: var(--head); font-weight: 700; font-size: 1.08rem; text-transform: uppercase; letter-spacing: .06em; position: relative; padding: 6px 0; }
.nav li a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--red); transition: width .2s; }
.nav li a:hover::after, .nav li.current-menu-item a::after, .nav li.current_page_item a::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--black); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--black); color: var(--white);
  padding: clamp(64px, 9vw, 130px) 0 clamp(64px, 9vw, 120px);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(225,6,0,.12) 46px 48px);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; right: -8%; top: -20%; width: 38%; height: 150%;
  background: var(--red); transform: skewX(-18deg); opacity: .95;
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-family: var(--head); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: .95rem; color: var(--red); margin-bottom: 18px; }
.hero .eyebrow { color: #ff4a43; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--red); -webkit-text-stroke: 0; }
.hero p.lead { font-size: 1.2rem; color: #d4d4d4; max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__panel { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.hero__panel h3 { font-size: 1.5rem; margin-bottom: 14px; }
.hero__panel ul { list-style: none; margin: 0; padding: 0; }
.hero__panel li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--grey-200); font-weight: 500; }
.hero__panel li:first-child { border-top: 0; }
.hero__panel li::before { content: ''; flex: 0 0 10px; height: 10px; margin-top: 9px; background: var(--red); transform: skewX(-18deg); }

/* ---------- Strip ---------- */
.strip { background: var(--black); color: var(--white); border-top: 1px solid #222; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__item { padding: 26px 22px; border-left: 1px solid #262626; font-family: var(--head); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .06em; }
.strip__item:first-child { border-left: 0; }
.strip__item small { display: block; font-family: var(--body); font-weight: 400; font-size: .9rem; text-transform: none; letter-spacing: 0; color: #a9a9a9; margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--grey { background: var(--grey-100); }
.section--black { background: var(--black); color: var(--white); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.section__head p { margin: 0; max-width: 520px; color: var(--grey-600); }
.section--black .section__head p { color: #b9b9b9; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cat-card {
  position: relative; display: flex; align-items: flex-end; min-height: 440px; overflow: hidden;
  background: var(--grey-900); color: var(--white); border-radius: var(--radius);
}
.cat-card__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s; }
.cat-card__bg--empty { background: repeating-linear-gradient(115deg, #141414 0 28px, #1d1d1d 28px 56px); }
.cat-card::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,.88) 5%, rgba(0,0,0,.15) 65%); }
.cat-card:hover .cat-card__bg { transform: scale(1.05); }
.cat-card__body { position: relative; z-index: 2; padding: 34px; width: 100%; }
.cat-card__body h3 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 8px; }
.cat-card__body p { color: #d0d0d0; margin-bottom: 18px; max-width: 440px; }
.cat-card__cta { font-family: var(--head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-bottom: 3px solid var(--red); padding-bottom: 3px; }
.cat-card__tag { position: absolute; top: 22px; left: 22px; z-index: 2; background: var(--red); color: var(--white); font-family: var(--head); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; font-size: .9rem; }
.admin-hint { grid-column: 1 / -1; border: 2px dashed var(--red); padding: 26px; border-radius: var(--radius); background: #fff5f4; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0,0,0,.1); border-color: var(--black); }
.card__img { aspect-ratio: 1 / 1; background: var(--grey-100); overflow: hidden; position: relative; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.06); }
.card__img--empty { background: repeating-linear-gradient(115deg, #efefef 0 22px, #e6e6e6 22px 44px); }
.card__body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__cat { font-family: var(--head); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-size: .82rem; }
.card__title { font-family: var(--head); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; line-height: 1.1; margin: 0; }
.card__meta { color: var(--grey-600); font-size: .92rem; margin-top: auto; padding-top: 10px; }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.chip { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 8px 18px; border: 2px solid var(--black); border-radius: 100px; font-size: 1rem; transition: all .2s; }
.chip:hover, .chip.is-active { background: var(--red); border-color: var(--red); color: var(--white); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; background: #151515; border-top: 4px solid var(--red); border-radius: var(--radius); counter-increment: step; }
.step::before { content: '0' counter(step); display: block; font-family: var(--head); font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--red); margin-bottom: 12px; }
.step h3 { font-size: 1.5rem; }
.step p { color: #b9b9b9; margin: 0; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ticks { list-style: none; margin: 24px 0 32px; padding: 0; }
.ticks li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--grey-200); font-weight: 500; }
.ticks li::before { content: ''; flex: 0 0 12px; height: 12px; margin-top: 9px; background: var(--red); transform: skewX(-18deg); }
.split__visual { position: relative; min-height: 440px; background: var(--black); border-radius: var(--radius); overflow: hidden; }
.split__visual::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 40px, rgba(225,6,0,.18) 40px 42px); }
.split__visual::after { content: ''; position: absolute; right: -10%; bottom: -10%; width: 55%; height: 130%; background: var(--red); transform: skewX(-18deg); }
.split__visual span { position: absolute; left: 32px; bottom: 28px; z-index: 2; font-family: var(--head); font-weight: 800; font-size: clamp(2.4rem, 5vw, 4rem); color: var(--white); text-transform: uppercase; line-height: .95; }

/* ---------- CTA band ---------- */
.cta { background: var(--red); color: var(--white); padding: 70px 0; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta h2 { margin: 0; max-width: 720px; }
.cta .btn { background: var(--black); border-color: var(--black); }
.cta .btn:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ---------- Page header ---------- */
.page-hero { background: var(--black); color: var(--white); padding: clamp(48px, 6vw, 84px) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -6%; top: -30%; width: 26%; height: 170%; background: var(--red); transform: skewX(-18deg); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 0; }
.page-hero p { color: #cfcfcf; max-width: 640px; margin: 14px 0 0; }
.breadcrumbs { font-size: .9rem; color: #9a9a9a; margin-bottom: 12px; }
.breadcrumbs a:hover { color: var(--white); }

/* ---------- Content ---------- */
.content { max-width: 820px; }
.content h2 { font-size: 2rem; margin-top: 1.6em; }
.content h3 { margin-top: 1.4em; }
.content ul { padding-left: 1.2em; }
.content li { margin-bottom: .4em; }
.content a { color: var(--red); text-decoration: underline; }

/* ---------- Single product ---------- */
.product { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.product__img { background: var(--grey-100); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; }
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product__img--empty { background: repeating-linear-gradient(115deg, #efefef 0 22px, #e6e6e6 22px 44px); }
.spec { width: 100%; border-collapse: collapse; margin: 24px 0 30px; }
.spec th, .spec td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--grey-200); }
.spec th { width: 42%; font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--grey-200); border-top: 5px solid var(--red); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: 13px 14px; border: 2px solid var(--grey-200); border-radius: var(--radius);
  background: var(--white); color: var(--ink); transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); outline: 0; }
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; font-weight: 600; }
.notice--ok { background: #eaf7ee; border-left: 5px solid #1f9d4d; }
.notice--err { background: #fdeceb; border-left: 5px solid var(--red); }
.contact-layout { display: grid; grid-template-columns: 1.4fr .6fr; gap: 44px; align-items: start; }
.contact-side { background: var(--black); color: var(--white); padding: 34px; border-radius: var(--radius); }
.contact-side h3 { color: var(--white); }
.contact-side p { color: #cfcfcf; margin-bottom: 14px; }
.contact-side a { color: var(--white); border-bottom: 2px solid var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #bdbdbd; padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 50px; }
.site-footer .brand { color: var(--white); margin-bottom: 16px; }
.site-footer h4 { color: var(--white); font-size: 1.15rem; letter-spacing: .12em; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #232323; padding: 22px 0; font-size: .9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 16px; border: 2px solid var(--black); font-family: var(--head); font-weight: 700; }
.pagination .current, .pagination .page-numbers:hover { background: var(--red); border-color: var(--red); color: var(--white); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero::after { width: 60%; right: -25%; opacity: .55; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .product { grid-template-columns: 1fr; gap: 36px; }
  .contact-layout { grid-template-columns: 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--grey-200); box-shadow: 0 18px 30px rgba(0,0,0,.1);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--grey-200); }
  .nav li a::after { display: none; }
  .nav .btn { margin-top: 18px; }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .strip__item:nth-child(3) { border-left: 0; }
  .strip__item { border-top: 1px solid #262626; }
  .strip__item:nth-child(-n+2) { border-top: 0; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { min-height: 360px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .topbar__right { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta .wrap { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; }
  .card__body { padding: 14px; }
  .card__title { font-size: 1.1rem; }
}
@media (max-width: 420px) {
  :root { --gutter: 18px; }
  .grid { grid-template-columns: 1fr; }
  .strip .wrap { grid-template-columns: 1fr; }
  .strip__item { border-left: 0; border-top: 1px solid #262626; }
  .strip__item:first-child { border-top: 0; }
}
