/*
Theme Name:        UNIFEX
Theme URI:         https://unifexgroup.pk
Author:            UNIFEX Group
Author URI:        https://unifexgroup.pk
Description:       Premium WordPress theme for uniform manufacturing and retail businesses. Built for enterprise clients, government contracts, and security sector procurement. Elementor Pro compatible with full CPT, ACF, and one-click demo import system.
Version:           1.0.0
Requires at least: 6.2
Tested up to:      6.5
Requires PHP:      8.0
License:           GPL v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       unifex
Tags:              custom-colors, custom-logo, custom-menu, custom-header, full-width-template, sticky-post, threaded-comments, editor-style, featured-images, footer-widgets, post-formats, right-sidebar, rtl-language-support, translation-ready, blog, business, portfolio
*/

/* ============================================================
   UNIFEX THEME — BASE STYLES
   Design System: Navy + Gold | Bebas Neue + DM Serif + DM Sans
   ============================================================ */

/* --- CSS CUSTOM PROPERTIES --- */
:root {
  --ux-navy:        #0A0E1A;
  --ux-navy-mid:    #111827;
  --ux-navy-light:  #1C2333;
  --ux-gold:        #C9A84C;
  --ux-gold-light:  #E2C97E;
  --ux-gold-dark:   #9E7A2A;
  --ux-white:       #FFFFFF;
  --ux-off-white:   #F5F4F0;
  --ux-warm-gray:   #8A8A8A;
  --ux-border:      #E2E0DC;
  --ux-text:        #1A1A2E;
  --ux-text-light:  #5A5A6E;
  --ux-success:     #2E7D32;
  --ux-error:       #C62828;

  --ux-font-display: 'Bebas Neue', sans-serif;
  --ux-font-serif:   'DM Serif Display', serif;
  --ux-font-body:    'DM Sans', sans-serif;

  --ux-radius-sm:   4px;
  --ux-radius-md:   8px;
  --ux-radius-lg:   12px;
  --ux-radius-xl:   20px;
  --ux-radius-full: 9999px;

  --ux-shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --ux-shadow-md:   0 4px 16px rgba(0,0,0,.12);
  --ux-shadow-lg:   0 8px 32px rgba(0,0,0,.16);
  --ux-shadow-xl:   0 20px 60px rgba(0,0,0,.2);
  --ux-shadow-gold: 0 4px 20px rgba(201,168,76,.35);

  --ux-ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ux-ease-out:    cubic-bezier(0, 0, 0.2, 1);
  --ux-dur-fast:    150ms;
  --ux-dur:         250ms;
  --ux-dur-slow:    450ms;

  --ux-container:   1280px;
  --ux-header-h:    80px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ux-font-body);
  color: var(--ux-text);
  background: var(--ux-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--ux-font-serif);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ux-text);
}

/* --- ACCESSIBILITY --- */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--ux-off-white);
  clip: auto !important;
  color: var(--ux-text);
  display: block;
  font-size: .875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}
:focus-visible {
  outline: 2px solid var(--ux-gold);
  outline-offset: 2px;
}

/* --- LAYOUT --- */
.ux-container {
  max-width: var(--ux-container);
  margin: 0 auto;
  padding: 0 2rem;
}
.ux-container--narrow { max-width: 900px; }
.ux-section { padding: 6rem 0; }
.ux-section--dark { background: var(--ux-navy); }
.ux-section--light { background: var(--ux-off-white); }

/* --- TYPOGRAPHY --- */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-family: var(--ux-font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
h6 { font-family: var(--ux-font-body); font-size: .875rem; font-weight: 600; }
p { color: var(--ux-text-light); line-height: 1.75; }

.ux-display {
  font-family: var(--ux-font-display);
  letter-spacing: 0.04em;
  line-height: 0.95;
}

/* --- SECTION HEADER --- */
.ux-section-header { margin-bottom: 3.5rem; }
.ux-section-header.center { text-align: center; }
.ux-section-header.center p { margin-inline: auto; }
.ux-section-header.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.ux-section-header h2 { margin-top: .5rem; }
.ux-section-header p { margin-top: .75rem; max-width: 56ch; font-size: 1.0625rem; }

.ux-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--ux-font-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ux-gold);
  padding: .3rem .85rem;
  border: 1px solid rgba(201,168,76,.35);
  border-radius: var(--ux-radius-full);
}
.ux-tag--light { color: var(--ux-gold-light); border-color: rgba(226,201,126,.3); }

/* --- BUTTONS --- */
.ux-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ux-font-body);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .03em;
  border: none;
  cursor: pointer;
  border-radius: var(--ux-radius-md);
  transition: all var(--ux-dur) var(--ux-ease);
  white-space: nowrap;
  text-decoration: none;
}
.ux-btn--primary {
  background: var(--ux-gold);
  color: var(--ux-navy);
  padding: .875rem 1.75rem;
  box-shadow: var(--ux-shadow-gold);
}
.ux-btn--primary:hover {
  background: var(--ux-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(201,168,76,.45);
  color: var(--ux-navy);
}
.ux-btn--secondary {
  background: transparent;
  color: var(--ux-white);
  padding: .875rem 1.75rem;
  border: 1.5px solid rgba(255,255,255,.35);
}
.ux-btn--secondary:hover {
  border-color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.08);
  color: var(--ux-white);
}
.ux-btn--outline {
  background: transparent;
  color: var(--ux-text);
  padding: .75rem 1.5rem;
  border: 1.5px solid var(--ux-border);
}
.ux-btn--outline:hover {
  border-color: var(--ux-gold);
  color: var(--ux-gold);
}
.ux-btn--ghost-gold {
  background: transparent;
  color: var(--ux-gold-light);
  padding: .75rem 1.5rem;
  border: 1px solid rgba(226,201,126,.35);
}
.ux-btn--ghost-gold:hover {
  background: rgba(226,201,126,.1);
  border-color: var(--ux-gold-light);
  color: var(--ux-gold-light);
}
.ux-btn--lg { padding: 1rem 2.25rem; font-size: 1rem; }
.ux-btn--full { width: 100%; justify-content: center; }

/* --- CARDS --- */
.ux-card {
  background: var(--ux-white);
  border: 1px solid var(--ux-border);
  border-radius: var(--ux-radius-xl);
  overflow: hidden;
  transition: all var(--ux-dur) var(--ux-ease);
}
.ux-card:hover { transform: translateY(-4px); box-shadow: var(--ux-shadow-lg); }

/* --- FORMS --- */
.ux-field { display: flex; flex-direction: column; gap: .4rem; }
.ux-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ux-text);
}
.ux-input,
.ux-select,
.ux-textarea {
  font-family: var(--ux-font-body);
  font-size: .875rem;
  color: var(--ux-text);
  background: var(--ux-off-white);
  border: 1.5px solid var(--ux-border);
  border-radius: var(--ux-radius-md);
  padding: .8rem 1rem;
  outline: none;
  width: 100%;
  transition: border-color var(--ux-dur-fast), box-shadow var(--ux-dur-fast), background var(--ux-dur-fast);
}
.ux-input:focus, .ux-select:focus, .ux-textarea:focus {
  border-color: var(--ux-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
  background: var(--ux-white);
}
.ux-textarea { resize: vertical; min-height: 120px; }

/* --- ANIMATIONS --- */
@keyframes ux-fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ux-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ux-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.4); }
}
@keyframes ux-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.ux-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s var(--ux-ease-out), transform .65s var(--ux-ease-out);
}
.ux-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* --- WP CORE CLASSES --- */
.alignleft  { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin-inline: auto; margin-bottom: 1rem; }
.alignwide  { margin-inline: -2rem; }
.alignfull  { margin-inline: calc(50% - 50vw); width: 100vw; max-width: 100vw; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .8rem; color: var(--ux-warm-gray); text-align: center; margin-top: .4rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.gallery-item { overflow: hidden; border-radius: var(--ux-radius-md); }
.gallery-icon img { width: 100%; object-fit: cover; }

.sticky { position: relative; }
.post-password-form { padding: 2rem; background: var(--ux-off-white); border-radius: var(--ux-radius-lg); }

/* --- PAGINATION --- */
.ux-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
}
.ux-pagination a,
.ux-pagination span {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1.5px solid var(--ux-border);
  border-radius: var(--ux-radius-md);
  font-size: .875rem;
  font-weight: 600;
  color: var(--ux-text-light);
  transition: all var(--ux-dur-fast);
}
.ux-pagination a:hover { border-color: var(--ux-gold); color: var(--ux-gold); }
.ux-pagination .current { background: var(--ux-gold); border-color: var(--ux-gold); color: var(--ux-navy); }

/* --- BREADCRUMBS --- */
.ux-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--ux-warm-gray);
  margin-bottom: 1.5rem;
}
.ux-breadcrumb a { color: var(--ux-warm-gray); transition: color var(--ux-dur-fast); }
.ux-breadcrumb a:hover { color: var(--ux-gold); }
.ux-breadcrumb span.sep { color: var(--ux-border); }

/* --- CONTENT AREA --- */
.ux-entry-content { max-width: 72ch; }
.ux-entry-content h2,
.ux-entry-content h3,
.ux-entry-content h4 { margin-top: 2rem; margin-bottom: .75rem; }
.ux-entry-content p  { margin-bottom: 1.25rem; }
.ux-entry-content ul,
.ux-entry-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.ux-entry-content ul { list-style: disc; }
.ux-entry-content ol { list-style: decimal; }
.ux-entry-content li { color: var(--ux-text-light); margin-bottom: .4rem; }
.ux-entry-content a { color: var(--ux-gold-dark); text-decoration: underline; }
.ux-entry-content blockquote {
  border-left: 3px solid var(--ux-gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(201,168,76,.05);
  border-radius: 0 var(--ux-radius-md) var(--ux-radius-md) 0;
}
.ux-entry-content blockquote p { color: var(--ux-text); font-style: italic; font-size: 1.0625rem; }
.ux-entry-content pre {
  background: var(--ux-navy);
  color: var(--ux-gold-light);
  padding: 1.5rem;
  border-radius: var(--ux-radius-lg);
  overflow-x: auto;
  font-size: .85rem;
  margin-bottom: 1.5rem;
}
.ux-entry-content code {
  font-family: 'Fira Code', monospace;
  font-size: .85em;
  background: rgba(201,168,76,.1);
  color: var(--ux-gold-dark);
  padding: .15em .4em;
  border-radius: var(--ux-radius-sm);
}
.ux-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: .875rem;
}
.ux-entry-content th {
  background: var(--ux-off-white);
  color: var(--ux-text);
  font-weight: 700;
  text-align: left;
  padding: .75rem 1rem;
  border: 1px solid var(--ux-border);
}
.ux-entry-content td {
  padding: .75rem 1rem;
  border: 1px solid var(--ux-border);
  color: var(--ux-text-light);
}
.ux-entry-content tr:nth-child(even) td { background: var(--ux-off-white); }
.ux-entry-content img { border-radius: var(--ux-radius-lg); margin-bottom: 1.5rem; }
.ux-entry-content hr {
  border: none;
  border-top: 1px solid var(--ux-border);
  margin: 2rem 0;
}

/* --- SIDEBAR --- */
.ux-layout--sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.ux-widget { margin-bottom: 2rem; }
.ux-widget-title {
  font-family: var(--ux-font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ux-text);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--ux-gold);
}

/* --- COMMENTS --- */
.ux-comments-title { margin-bottom: 2rem; font-size: 1.5rem; }
.comment-list { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
.comment {
  padding: 1.5rem;
  background: var(--ux-off-white);
  border-radius: var(--ux-radius-lg);
  border: 1px solid var(--ux-border);
}
.comment-author { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .fn { font-weight: 700; font-size: .9rem; }
.comment-metadata { font-size: .75rem; color: var(--ux-warm-gray); }
.comment-content p { font-size: .9rem; }
.reply { margin-top: .75rem; }
.reply a {
  font-size: .8rem; font-weight: 600;
  color: var(--ux-gold-dark);
  border: 1px solid var(--ux-gold-dark);
  padding: .3rem .75rem;
  border-radius: var(--ux-radius-full);
  transition: all var(--ux-dur-fast);
}
.reply a:hover { background: var(--ux-gold-dark); color: var(--ux-white); }
.children {
  padding-left: 2rem;
  margin-top: 1rem;
  border-left: 2px solid var(--ux-border);
}

/* --- RESPONSIVE UTILITIES --- */
@media (max-width: 1024px) {
  .ux-layout--sidebar { grid-template-columns: 1fr; }
  .ux-section { padding: 4.5rem 0; }
}
@media (max-width: 640px) {
  :root { --ux-header-h: 64px; }
  .ux-section { padding: 3.5rem 0; }
  .ux-container { padding: 0 1.25rem; }
  .ux-btn--lg { padding: .875rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ux-reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
