/*
Theme Name: MJIT Solution — Wholesale Partner Theme
Theme URI: https://mjitsolution.com
Author: MJIT Solution
Author URI: https://mjitsolution.com
Description: A modern, UK-focused wholesale product presentation theme with a streamlined product upload module.
Version: 3.3.0
License: GNU General Public License v2 or later
Text Domain: mjitsolutionsllc-theme
*/

:root {
  --ink: #111827;
  --ink-soft: #25324a;
  --navy: #101a33;
  --navy-2: #17264a;
  --paper: #f6f8fb;
  --white: #ffffff;
  --muted: #64748b;
  --line: #e5eaf2;
  --lime: #c6f36b;
  --lime-dark: #8bb82f;
  --blue: #4767ff;
  --blue-soft: #e9edff;
  --success: #15803d;
  --danger: #b42318;
  --shadow: 0 20px 60px rgba(16, 26, 51, .10);
  --shadow-hover: 0 28px 80px rgba(16, 26, 51, .18);
  --radius: 22px;
  --container: 1220px;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', system-ui, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.65; overflow-x: hidden; }
h1,h2,h3,h4,h5,h6 { font-family: 'Space Grotesk', system-ui, sans-serif; color: var(--navy); line-height: 1.1; letter-spacing: -.035em; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease); }
a:hover { color: var(--blue); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.site-content { overflow: hidden; }

/* Brand chrome */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(16,26,51,.94); color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(18px); }
.site-header .container { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { display: flex; align-items: center; }
.site-title { margin: 0; }
.site-title a { display: inline-flex; align-items: center; gap: 11px; color: #fff; font: 700 1.2rem/1 'Space Grotesk', sans-serif; letter-spacing: .12em; }
.site-title a::before { content: 'MJ'; display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: var(--lime); color: var(--navy); font-size: .9rem; letter-spacing: -.08em; box-shadow: 0 8px 24px rgba(198,243,107,.22); }
.site-title a:hover { color: var(--lime); transform: translateY(-1px); }
.main-navigation ul { display: flex; align-items: center; gap: 28px; }
.main-navigation a { color: rgba(255,255,255,.75); font-size: .88rem; font-weight: 700; letter-spacing: .02em; }
.main-navigation a:hover, .main-navigation .current-menu-item a { color: var(--lime); }
.main-navigation li:last-child a { display: inline-flex; padding: 11px 16px; color: var(--navy); background: var(--lime); border-radius: 999px; }
.main-navigation li:last-child a:hover { color: var(--navy); background: #dcff94; transform: translateY(-2px); }
.menu-toggle { display: none; border: 0; background: transparent; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; display: block; background: #fff; margin: 5px 0; transition: .25s var(--ease); }

/* Intro, buttons and sections */
section { padding: 112px 0; }
.section-kicker, .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); text-transform: uppercase; font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.section-kicker::before, .eyebrow::before { content: ''; width: 25px; height: 2px; background: var(--lime-dark); }
.section-title { max-width: 760px; margin: 14px auto 54px; text-align: center; font-size: clamp(2.2rem, 5vw, 4.2rem); }
.section-title::after { content: ''; display: block; width: 54px; height: 5px; margin: 22px auto 0; background: var(--lime); border-radius: 9px; }
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border: 1px solid transparent; border-radius: 999px; background: var(--lime); color: var(--navy); font-weight: 800; font-size: .9rem; box-shadow: 0 10px 22px rgba(198,243,107,.18); overflow: hidden; }
.button::after { content: '↗'; font-size: 1rem; transition: transform .25s var(--ease); }
.button:hover { color: var(--navy); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(198,243,107,.3); }
.button:hover::after { transform: translate(3px,-3px); }
.button.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); box-shadow: none; }
.button.secondary:hover { color: var(--navy); border-color: var(--lime); background: var(--lime); }

/* Hero */
.hero-section { position: relative; min-height: 690px; display: flex; align-items: center; padding: 140px 0 120px; background: var(--navy); color: #fff; isolation: isolate; overflow: hidden; }
.hero-section::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(16,26,51,.98) 0%, rgba(16,26,51,.82) 48%, rgba(16,26,51,.40) 100%); z-index: -1; }
.hero-section::after { content: ''; position: absolute; width: 600px; height: 600px; right: -170px; top: -230px; border: 1px solid rgba(198,243,107,.25); border-radius: 50%; box-shadow: 0 0 0 45px rgba(198,243,107,.04), 0 0 0 90px rgba(198,243,107,.025); z-index: -1; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .34; z-index: -2; filter: saturate(.7) contrast(1.08); }
.hero-content { max-width: 820px; animation: rise .9s var(--ease) both; }
.hero-content .eyebrow { color: var(--lime); }
.hero-content h1 { max-width: 850px; margin: 20px 0 24px; color: #fff; font-size: clamp(3.25rem, 7vw, 6.7rem); }
.hero-content p { max-width: 620px; margin-bottom: 36px; color: rgba(255,255,255,.78); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-content .button { margin-right: 10px; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

/* Cards, grids and content blocks */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card, .product-card, .stat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(16,26,51,.04); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); }
.card { display: flex; flex-direction: column; padding: 18px; }
.card:hover, .product-card:hover { transform: translateY(-8px); border-color: rgba(71,103,255,.35); box-shadow: var(--shadow-hover); }
.card-img-wrapper { height: 230px; margin-bottom: 25px; border-radius: 16px; overflow: hidden; background: var(--blue-soft); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover img, .product-card:hover .card-img-wrapper img { transform: scale(1.06); }
.card-title { margin: 0 6px 10px; font-size: 1.35rem; }
.card-description { margin: 0 6px 22px; color: var(--muted); font-size: .95rem; }
.card .button { align-self: flex-start; margin: auto 6px 5px; padding: 11px 17px; }
.two-column { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 76px; align-items: center; }
.two-column-image { overflow: hidden; border-radius: 28px; box-shadow: var(--shadow); }
.two-column-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .8s var(--ease); }
.two-column:hover img { transform: scale(1.035); }
.two-column-content h2 { margin: 13px 0 20px; font-size: clamp(2rem, 4vw, 3.4rem); }
.two-column-content p { margin-bottom: 22px; color: var(--muted); }
.two-column-content li, .wholesale-benefits li { position: relative; padding: 9px 0 9px 28px; color: var(--ink-soft); }
.two-column-content li::before, .wholesale-benefits li::before { content: '✓'; position: absolute; left: 0; color: var(--lime-dark); font-weight: 900; }

/* Product catalogue */
.shop-products-section { padding: 92px 0 120px; }
.shop-products-section .section-header { margin-bottom: 42px; }
.shop-products-section .section-header .section-title { margin-bottom: 0; }
.shop-products-section .grid { align-items: stretch; }
.product-card { position: relative; display: flex; flex-direction: column; padding: 12px; overflow: hidden; }
.product-card .card-img-wrapper { height: 270px; margin-bottom: 18px; border-radius: 16px; background: #eef2f7; }
.product-info { display: flex; flex: 1; flex-direction: column; padding: 0 8px 8px; }
.product-name { min-height: 2.35em; margin-bottom: 12px; font-size: 1.22rem; }
.product-meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.price-tag { display: block; margin-bottom: 9px; color: var(--navy); font: 800 1.25rem 'Space Grotesk', sans-serif; }
.rating-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 13px; font-size: .8rem; }
.stars { color: #d89516; letter-spacing: 1px; }
.review-count { color: var(--muted); letter-spacing: 0; }
.detail-item { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; font-size: .78rem; }
.detail-label { color: var(--muted); }
.detail-value { overflow: hidden; color: var(--ink-soft); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.product-description { margin-top: 16px; color: var(--muted); font-size: .88rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.no-products { grid-column: 1/-1; padding: 60px; text-align: center; background: #fff; border: 1px dashed #cbd5e1; border-radius: var(--radius); color: var(--muted); }

/* Stats and dark CTA */
.stats-section, .wholesale-cta { background: var(--navy); color: #fff; }
.stats-section h2, .wholesale-cta h2 { color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 40px; }
.stat-card { padding: 30px; text-align: center; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.stat-card:hover { transform: translateY(-5px); background: rgba(198,243,107,.1); border-color: rgba(198,243,107,.45); }
.stat-number { margin-bottom: 6px; color: var(--lime); font: 700 clamp(2.3rem,5vw,4rem) 'Space Grotesk', sans-serif; }
.stat-label { color: rgba(255,255,255,.68); font-size: .9rem; }
.wholesale-cta { padding: 100px 0; }
.wholesale-cta .two-column-content h2 { margin-top: 14px; }
.wholesale-cta .two-column-content p, .wholesale-cta .wholesale-benefits li { color: rgba(255,255,255,.74); }
.wholesale-cta .two-column-image { border: 1px solid rgba(255,255,255,.15); }

/* Footer */
.site-footer { padding: 72px 0 28px; background: #0b1225; color: rgba(255,255,255,.68); }
.footer-logo { color: #fff; font: 700 1.2rem 'Space Grotesk', sans-serif; letter-spacing: .12em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; margin: 27px 0 40px; }
.footer-nav a { color: rgba(255,255,255,.68); font-size: .9rem; font-weight: 700; }
.footer-nav a:hover { color: var(--lime); }
.site-info { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.46); font-size: .8rem; }
.site-info a { color: rgba(255,255,255,.55); }
.site-info a:hover { color: var(--lime); }

/* Utility content pages */
.content-area > .site-main > section:not(.hero-section) .container { max-width: 900px; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.active { opacity: 1; transform: none; }
#loading-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--navy); transition: opacity .5s var(--ease), visibility .5s; }
#loading-overlay.hidden { opacity: 0; visibility: hidden; }
.loader-wrapper { position: relative; display: grid; place-items: center; width: 80px; height: 80px; border: 1px solid rgba(198,243,107,.25); border-radius: 50%; animation: spin 1.3s linear infinite; }
.loader-wrapper::after { content: ''; width: 13px; height: 13px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 22px var(--lime); }
.loader-circle { display: none; }
.loader-logo, .loader-text-glitch { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
#custom-cursor, #cursor-follower { display: none; }

@media (max-width: 900px) {
  .main-navigation ul { gap: 16px; }
  .main-navigation a { font-size: .8rem; }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .two-column { gap: 38px; }
}
@media (max-width: 700px) {
  .container { width: min(var(--container), calc(100% - 32px)); }
  .site-header .container { min-height: 72px; }
  .menu-toggle { display: block; }
  .main-navigation { position: absolute; top: 72px; left: 0; right: 0; display: none; padding: 20px 16px 25px; background: var(--navy); border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 30px rgba(0,0,0,.16); }
  .main-navigation.active { display: block; }
  .main-navigation ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-navigation li:last-child a { justify-content: center; }
  .main-navigation a { display: block; padding: 12px 8px; text-align: center; }
  section { padding: 78px 0; }
  .hero-section { min-height: 620px; padding: 110px 0 90px; }
  .hero-content h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .hero-content .button { width: 100%; margin: 5px 0; }
  .grid, .stats-grid, .two-column { grid-template-columns: 1fr; }
  .two-column { gap: 34px; }
  .card-img-wrapper, .product-card .card-img-wrapper { height: 225px; }
  .footer-nav { gap: 14px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
