/*
Theme Name: Tlamane Industrial
Theme URI: https://tlamanegroupon.co.za/
Author: Tlamane Groupon
Description: Lightweight industrial catalogue and quotation theme for Tlamane Groupon.
Version: 1.5.1
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: tlamane
*/

:root {
  --navy: #102943;
  --navy-2: #173b5f;
  --orange: #e46f26;
  --orange-dark: #bd5319;
  --steel: #60717e;
  --paper: #f5f3ee;
  --white: #fff;
  --charcoal: #252a2e;
  --line: #d8dee3;
  --muted: #5c6972;
  --success: #176d4a;
  --shadow: 0 15px 40px rgba(16, 41, 67, .12);
  --radius: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--charcoal); background: var(--white); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4 { margin: 0 0 .65em; color: var(--navy); font-weight: 750; letter-spacing: -.025em; line-height: 1.14; }
h1 { font-size: clamp(2rem, 3.5vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 2.4vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
p { margin: 0 0 1.1rem; }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.section { padding: 82px 0; }
.section--paper { background: var(--paper); }
.section--navy { color: var(--white); background: var(--navy); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.eyebrow { margin-bottom: 13px; color: var(--orange); font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.lead { max-width: 760px; color: var(--muted); font-size: 1.15rem; }
.section--navy .lead { color: #d8e3ec; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-head > div { max-width: 760px; }
.button { position: relative; display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; overflow: hidden; padding: 12px 22px; border: 2px solid var(--orange); border-radius: 7px; color: var(--white); background: var(--orange); box-shadow: 0 8px 20px rgba(228,111,38,.18); font-weight: 750; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.button:hover { color: var(--white); border-color: var(--orange-dark); background: var(--orange-dark); box-shadow: 0 12px 28px rgba(189,83,25,.28); transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button--outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.button--outline:hover { color: var(--white); border-color: var(--navy); background: var(--navy); }
.button--light { color: var(--white); border-color: rgba(255,255,255,.55); background: transparent; }
.button--light:hover { color: var(--navy); border-color: var(--white); background: var(--white); }

.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(16,41,67,.08); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
.header-inner { position: relative; display: grid; min-height: 82px; grid-template-columns: minmax(220px,1fr) auto minmax(220px,1fr); align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); }
.brand__mark { width: 50px; height: 50px; flex: 0 0 50px; filter: drop-shadow(0 5px 10px rgba(16,41,67,.16)); }
.brand__name { display: block; font-size: 1.08rem; font-weight: 850; line-height: 1.1; }
.brand__tag { display: block; margin-top: 4px; color: var(--steel); font-size: .68rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.primary-nav { display: contents; }
.nav-list { display: flex; grid-column: 2; align-items: center; justify-content: center; gap: 34px; margin: 0; padding: 0; list-style: none; }
.nav-list > li > a, .nav-products__toggle { display: inline-flex; min-height: 42px; align-items: center; border: 0; color: var(--navy); background: transparent; font-weight: 750; cursor: pointer; transition: color .18s ease; }
.nav-list > li > a:hover, .nav-list > li > a:focus-visible, .nav-products__toggle:hover, .nav-products__toggle:focus-visible, .nav-products.is-open > .nav-products__toggle { color: var(--orange); }
.nav-products { position: relative; }
.nav-products__toggle { gap: 6px; padding: 0; }
.nav-chevron { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.nav-products.is-open .nav-chevron { transform: rotate(180deg); }
.header-quote { grid-column: 3; justify-self: end; color: var(--white); }
.mega-menu { position: absolute; visibility: hidden; display: grid; width: min(430px,calc(100vw - 40px)); grid-template-columns: 1fr; top: calc(100% + 18px); left: 50%; padding: 10px; border: 1px solid rgba(16,41,67,.12); border-radius: 14px; opacity: 0; background: var(--white); box-shadow: 0 22px 60px rgba(16,41,67,.18); transform: translate(-50%,-8px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.nav-products:hover .mega-menu, .nav-products:focus-within .mega-menu, .nav-products.is-open .mega-menu { visibility: visible; opacity: 1; transform: translate(-50%,0); }
.mega-menu::before { position: absolute; width: 100%; height: 20px; top: -20px; left: 0; content: ""; }
.mega-menu__section { padding: 18px 20px; }
.mega-menu__section--products { border-radius: 10px; background: var(--paper); }
.mega-menu__title { display: block; margin-bottom: 12px; color: var(--orange-dark); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.mega-menu ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.mega-menu li a { display: block; padding: 8px 9px; border-radius: 7px; color: var(--navy); font-size: .9rem; font-weight: 730; line-height: 1.32; }
.mega-menu li a:hover, .mega-menu li a:focus-visible { color: var(--orange-dark); background: rgba(228,111,38,.09); }
.mega-menu li a span { display: block; margin-top: 2px; color: var(--muted); font-size: .72rem; font-weight: 550; }
.mega-menu__all { display: inline-flex; gap: 7px; margin: 13px 9px 2px; color: var(--orange-dark); font-size: .88rem; font-weight: 800; }
.nav-toggle { display: none; width: 46px; height: 42px; padding: 8px; border: 0; color: var(--navy); background: transparent; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 6px; background: currentColor; }

.hero { position: relative; display: grid; min-height: 650px; align-items: center; overflow: hidden; color: var(--white); background: var(--navy); }
.hero__slides, .hero__slide, .hero__veil { position: absolute; inset: 0; }
.hero__slide { visibility: hidden; opacity: 0; transform: scale(1.025); transition: opacity 1s ease, transform 7s ease, visibility 1s ease; }
.hero__slide.is-active { visibility: visible; opacity: 1; transform: scale(1); }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__veil { background: linear-gradient(90deg, rgba(7,26,43,.94) 0%, rgba(11,35,57,.83) 45%, rgba(11,35,57,.28) 78%, rgba(11,35,57,.1) 100%); }
.hero__content { position: relative; z-index: 1; max-width: 760px; padding: 94px 0; }
.hero h1 { color: var(--white); font-size: clamp(2.15rem, 3.8vw, 3.6rem); }
.hero p { max-width: 660px; color: #e5edf3; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero .eyebrow { color: #ffb37c; font-size: .78rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }
.hero__controls { position: absolute; z-index: 3; display: flex; right: 0; bottom: 68px; left: 0; align-items: center; justify-content: flex-end; gap: 12px; pointer-events: none; }
.hero__arrow, .hero__dots button { pointer-events: auto; cursor: pointer; }
.hero__arrow { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.48); border-radius: 50%; color: var(--white); background: rgba(7,26,43,.42); font-size: 1.8rem; line-height: 1; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.hero__arrow:hover { border-color: var(--orange); background: var(--orange); transform: translateY(-1px); }
.hero__dots { display: flex; gap: 7px; padding: 8px 11px; border-radius: 999px; background: rgba(7,26,43,.42); backdrop-filter: blur(7px); }
.hero__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); transition: width .2s ease, background .2s ease; }
.hero__dots button.is-active { width: 25px; border-radius: 999px; background: var(--orange); }
.trust-strip { position: relative; z-index: 2; margin-top: -36px; }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.trust-item { padding: 23px 26px; border-right: 1px solid var(--line); }
.trust-item:last-child { border: 0; }
.trust-item strong { display: block; color: var(--navy); font-size: 1rem; }
.trust-item span { color: var(--muted); font-size: .9rem; }

.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4,1fr); }
.grid--3 { grid-template-columns: repeat(3,1fr); }
.category-grid { grid-template-columns: repeat(5,1fr); }
.category-card, .product-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 7px 22px rgba(16,41,67,.06); transition: .22s ease; }
.grid > .product-card { display: flex; flex-direction: column; }
.category-card:hover, .product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card__image, .product-card__image { display: block; aspect-ratio: 4/3; overflow: hidden; background: #e8ecef; }
.category-card__image img, .product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.category-card:hover img, .product-card:hover img { transform: scale(1.035); }
.category-card__body, .product-card__body { padding: 24px; }
.product-card__body { display: flex; flex: 1; flex-direction: column; }
.category-card__body p, .product-card__body p { color: var(--muted); }
.text-link { display: inline-flex; gap: 7px; align-items: center; color: var(--orange-dark); font-weight: 800; }
.text-link::after { content: "\2192"; }
.product-card__type { display: block; margin-bottom: 9px; color: var(--orange-dark); font-size: .73rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-card__cta { align-self: flex-start; margin-top: auto; }
.button--small { min-height: 42px; padding: 8px 17px; font-size: .88rem; }
.featured-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.carousel-arrows { display: flex; gap: 8px; }
.carousel-arrows button { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(16,41,67,.22); border-radius: 50%; color: var(--navy); background: var(--white); box-shadow: 0 5px 14px rgba(16,41,67,.08); font-size: 1.25rem; cursor: pointer; transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease; }
.carousel-arrows button:hover, .carousel-arrows button:focus-visible { color: var(--white); border-color: var(--orange); background: var(--orange); transform: translateY(-2px); }
.product-carousel, .product-carousel__viewport { overflow: hidden; }
.product-carousel__track { display: flex; gap: 24px; transition: transform .55s cubic-bezier(.22,.75,.3,1); will-change: transform; }
.product-carousel__track > [data-product-slide] { display: flex; flex: 0 0 calc((100% - 48px)/3); }
.product-carousel__track > [data-product-slide] > .product-card { width: 100%; height: 100%; }
.product-carousel__track > .product-card { flex-direction: column; }
.product-carousel .product-card__body { display: flex; flex: 1; flex-direction: column; }
.product-carousel .product-card__body .product-card__cta { margin-top: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.split__media { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.split__media img { width: 100%; min-height: 420px; object-fit: cover; }
.check-list { display: grid; gap: 12px; margin: 22px 0 28px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { position: absolute; left: 0; content: "\2713"; color: var(--orange); font-weight: 900; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 38px 42px; border-radius: var(--radius); background: var(--navy); box-shadow: var(--shadow); }
.cta-band h2 { margin-bottom: 8px; color: var(--white); font-size: clamp(1.55rem,3vw,2.35rem); }
.cta-band p { margin: 0; color: #d8e3ec; }

.page-hero { padding: 76px 0 66px; color: var(--white); background: linear-gradient(130deg,var(--navy),#1f527d); }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem,3vw,2.8rem); }
.page-hero p { max-width: 720px; color: #dce8f0; font-size: 1.15rem; }
.breadcrumbs { margin-bottom: 20px; color: #bed0de; font-size: .85rem; }
.breadcrumbs a { color: var(--white); }
.product-layout { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(380px,.95fr); gap: 58px; align-items: start; }
.product-detail { padding-top: 74px; }
.product-gallery { position: sticky; top: 110px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #edf0f1; }
.product-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product-summary__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.product-summary__meta .product-card__type { margin: 0; }
.product-summary h1 { font-size: clamp(1.9rem,3vw,2.8rem); }
.product-summary__intro { margin-bottom: 24px; color: var(--muted); font-size: 1.12rem; }
.product-summary .lead { font-size: 1.08rem; }
.product-summary__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.spec-table { width: 100%; margin: 24px 0 30px; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 38%; color: var(--navy); background: var(--paper); }
.notice { padding: 14px 17px; border-left: 4px solid var(--orange); color: var(--muted); background: #fff7ef; font-size: .9rem; }

.quote-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 50px; align-items: start; }
.contact-card { padding: 30px; border-radius: var(--radius); color: var(--white); background: var(--navy); }
.contact-card h2, .contact-card h3 { color: var(--white); }
.contact-card a { color: var(--white); }
.contact-list { display: grid; gap: 20px; margin-top: 26px; }
.contact-list strong { display: block; color: #f2b181; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field--wide { grid-column: 1/-1; }
.quote-form label { display: block; margin-bottom: 6px; color: var(--navy); font-weight: 750; }
.quote-form input, .quote-form textarea, .quote-form select { width: 100%; min-height: 49px; padding: 11px 13px; border: 1px solid #bfc8ce; border-radius: 6px; color: var(--charcoal); background: var(--white); }
.quote-form textarea { min-height: 145px; resize: vertical; }
.quote-form input:focus, .quote-form textarea:focus, .quote-form select:focus { outline: 3px solid rgba(228,111,38,.2); border-color: var(--orange); }
.hp-field { position: absolute !important; left: -9999px !important; }
.form-status { grid-column: 1/-1; padding: 13px 15px; border-radius: 6px; }
.form-status--success { color: #0f5132; border: 1px solid #badbcc; background: #d1e7dd; }
.form-status--error { color: #842029; border: 1px solid #f5c2c7; background: #f8d7da; }

.site-footer { color: #d8e1e8; background: #091d31; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .7fr .95fr; gap: 60px; padding: 66px 0 48px; }
.site-footer h3 { color: var(--white); font-size: 1rem; }
.site-footer a { color: #d8e1e8; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 9px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.13); color: #9eafbc; font-size: .83rem; }
.empty-state { padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; background: var(--paper); }
.pagination { margin-top: 35px; }
.pagination .page-numbers { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; margin-right: 6px; border: 1px solid var(--line); border-radius: 5px; }
.pagination .current { color: var(--white); border-color: var(--navy); background: var(--navy); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 980px) {
  .header-inner { display: flex; min-height: 82px; justify-content: space-between; }
  .nav-toggle { display: block; }
  .primary-nav { position: absolute; display: none; top: 82px; right: -20px; left: -20px; max-height: calc(100vh - 82px); overflow-y: auto; padding: 18px 20px 26px; border-top: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .nav-list { display: grid; gap: 3px; margin-bottom: 16px; }
  .nav-list > li > a, .nav-products__toggle { width: 100%; min-height: 48px; justify-content: space-between; padding: 6px 8px; border-bottom: 1px solid rgba(16,41,67,.08); }
  .header-quote { width: 100%; }
  .mega-menu { position: static; visibility: visible; display: none; width: 100%; grid-template-columns: 1fr; padding: 7px 0 10px; border: 0; opacity: 1; box-shadow: none; transform: none; transition: none; }
  .nav-products:hover .mega-menu, .nav-products:focus-within .mega-menu { display: none; }
  .nav-products.is-open .mega-menu { display: grid; transform: none; }
  .mega-menu__section { padding: 15px 10px; }
  .mega-menu__section--products { margin-top: 4px; }
  .mega-menu::before { display: none; }
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .category-grid { grid-template-columns: repeat(3,1fr); }
  .grid--3 { grid-template-columns: repeat(2,1fr); }
  .product-carousel__track > [data-product-slide] { flex-basis: calc((100% - 24px)/2); }
  .split, .product-layout, .quote-layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 60px 0; }
  .hero { min-height: 600px; }
  .hero__veil { background: rgba(7,26,43,.82); }
  .hero__content { padding: 70px 0 90px; }
  .hero__slide img { object-position: 62% center; }
  .hero__controls { bottom: 52px; justify-content: center; }
  .hero__arrow { width: 38px; height: 38px; }
  .trust-grid, .grid--4, .grid--3, .footer-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .section-head, .cta-band, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .featured-actions { width: 100%; justify-content: space-between; }
  .product-carousel__track > [data-product-slide] { flex-basis: 100%; }
  .cta-band { padding: 30px 24px; }
  .quote-form { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .header-inner { min-height: 70px; }
  .primary-nav { top: 70px; max-height: calc(100vh - 70px); }
  .brand { gap: 9px; }
  .brand__mark { width: 40px; height: 40px; flex-basis: 40px; }
  .brand__name { font-size: .92rem; }
  .brand__tag { margin-top: 3px; font-size: .56rem; letter-spacing: .08em; }
  .product-detail { padding-top: 48px; }
  .product-summary__meta { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .hero__slide { transform: none !important; }
}
