/*
Theme Name: Vencilla Textiles
Theme URI: https://textiles.vencilla.com
Author: Vencilla Medtex LLP
Description: Elementor-ready dark premium theme for Vencilla Group corporate hub. Full Elementor & WooCommerce support. Premium Clash Display + Satoshi typography.
Version: 2.0.0
Requires at least: 6.2
Requires PHP: 7.4
Tags: elementor, dark, business, portfolio, e-commerce
Text Domain: vencilla-textiles
*/

/* ── Premium Fonts (Fontshare CDN) loaded in functions.php ── */

:root {
  /* Brand palette – Group */
  --vc-bg:           #070B08;
  --vc-bg2:          #11271A;
  --vc-surface:      #101828;
  --vc-gold:         #CDA24E;
  --vc-gold-bright:  #E8C679;
  --vc-gold-muted:   rgba(201,162,39,.18);
  --vc-pharma:       #173A5E;
  --vc-pharma-a:     #5EC8E8;
  --vc-textiles:     #16331F;
  --vc-textiles-a:   #CDA24E;
  --vc-ink:          #EDEFF3;
  --vc-muted:        #7A8494;
  --vc-border:       rgba(237,239,243,.08);

  /* Typography */
  --font-display: 'Clash Display', 'Space Grotesk', sans-serif;
  --font-body:    'Satoshi', 'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', 'IBM Plex Mono', monospace;

  /* Spacing scale */
  --s-xs:  8px;
  --s-sm:  16px;
  --s-md:  32px;
  --s-lg:  64px;
  --s-xl:  120px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--vc-bg);
  color: var(--vc-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--vc-gold); color: #06090F; }
:focus-visible { outline: 2px solid var(--vc-gold-bright); outline-offset: 3px; }

/* ── Custom cursor ── */
.vc-cursor-dot,
.vc-cursor-ring {
  position: fixed; top: 0; left: 0;
  border-radius: 50%; pointer-events: none;
  z-index: 9999; transform: translate(-50%,-50%);
  transition: width .18s, height .18s, border-color .18s;
}
.vc-cursor-dot  { width: 5px; height: 5px; background: var(--vc-gold-bright); }
.vc-cursor-ring { width: 32px; height: 32px; border: 1.5px solid rgba(201,162,39,.45); }
.vc-cursor-ring.is-hovered { width: 52px; height: 52px; border-color: rgba(233,199,92,.9); }
@media (hover:none) { .vc-cursor-dot, .vc-cursor-ring { display: none; } }

/* ── Elementor overrides ── */
.elementor-section .elementor-container { max-width: 100%; }
.elementor-page { background: var(--vc-bg); }

/* Full-width page sections */
.elementor-section.vc-full  { padding-left: 0 !important; padding-right: 0 !important; }
.elementor-section.vc-inner { padding-left: 5vw !important; padding-right: 5vw !important; }

/* ── Shared typography atoms ── */
.vc-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .17em;
  color: var(--vc-gold);
  text-transform: uppercase;
}
.vc-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.02;
}
.vc-body-lg { font-size: 17px; line-height: 1.65; color: var(--vc-muted); }
.vc-rule { height: 1px; background: var(--vc-border); width: 100%; }
.vc-gold-rule {
  height: 1px; width: 0; background: var(--vc-gold);
  transition: width 1s ease;
}
.vc-gold-rule.in-view { width: 110px; }

/* ── Buttons ── */
.vc-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .05em;
  padding: 13px 24px;
  border-radius: 2px;
  border: 1px solid var(--vc-border);
  background: transparent;
  color: var(--vc-ink);
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .22s;
  white-space: nowrap;
}
.vc-btn:hover { transform: translateY(-2px); }
.vc-btn-gold:hover { border-color: var(--vc-gold); background: var(--vc-gold-muted); color: var(--vc-gold-bright); }
.vc-btn-pharma:hover { border-color: var(--vc-pharma-a); background: rgba(94,200,232,.08); }
.vc-btn-textiles:hover { border-color: var(--vc-textiles-a); background: rgba(205,162,78,.08); }
.vc-btn-cta {
  background: var(--vc-gold);
  border-color: var(--vc-gold);
  color: #06090F;
  font-weight: 500;
}
.vc-btn-cta:hover { background: var(--vc-gold-bright); border-color: var(--vc-gold-bright); transform: translateY(-2px); }
.vc-link-underline {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .05em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

/* ── Navigation ── */
#vc-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 5vw;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: linear-gradient(to bottom, rgba(6,9,15,.9) 0%, transparent 100%);
  transition: background .3s;
}
#vc-nav.scrolled { background: rgba(6,9,15,.96); }
.vc-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 15px; letter-spacing: .06em; color: var(--vc-ink);
}
.vc-logo svg { width: 22px; height: 22px; }
.vc-logo img { height: 28px; width: auto; }
.vc-nav-links {
  display: flex; gap: 34px; list-style: none;
  font-size: 14px; font-family: var(--font-body);
}
.vc-nav-links a {
  position: relative; color: var(--vc-muted);
  transition: color .25s;
}
.vc-nav-links a:hover { color: var(--vc-ink); }
.vc-nav-links a::after {
  content: ''; position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1px;
  background: var(--vc-gold);
  transition: width .25s;
}
.vc-nav-links a:hover::after { width: 100%; }
.vc-nav-tag {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; color: var(--vc-muted);
}
.vc-nav-cta {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .06em; padding: 9px 18px;
  border: 1px solid var(--vc-gold-muted);
  border-radius: 2px; color: var(--vc-gold-bright);
  transition: border-color .25s, background .25s;
}
.vc-nav-cta:hover { border-color: var(--vc-gold); background: var(--vc-gold-muted); }
@media (max-width:860px) {
  .vc-nav-links, .vc-nav-tag { display: none; }
}

/* ── Hero section ── */
.vc-hero {
  position: relative; width: 100%; height: 100vh;
  min-height: 640px; display: flex; align-items: center;
  overflow: hidden; background: var(--vc-bg);
}
#vc-hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.vc-hero-inner {
  position: relative; z-index: 5;
  padding: 0 5vw; max-width: 900px;
}
.vc-hero-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 7.5vw, 5.8rem);
  line-height: 1.01;
  letter-spacing: -.02em;
  margin-top: 18px;
}
.vc-scroll-cue {
  position: absolute; bottom: 36px; left: 5vw; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; color: var(--vc-muted);
}
.vc-scroll-cue-line {
  width: 1px; height: 30px;
  background: linear-gradient(to bottom, var(--vc-gold), transparent);
  animation: scrollLine 1.9s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (prefers-reduced-motion:reduce) {
  .vc-scroll-cue-line { animation: none; }
}

/* ── Division cards ── */
.vc-division-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--vc-border);
}
@media (max-width:860px) { .vc-division-grid { grid-template-columns: 1fr; } }
.vc-division-card {
  padding: 88px 6vw;
  transition: background .4s;
}
.vc-division-card.pharma {
  background: radial-gradient(ellipse at 0% 0%, rgba(23,58,94,.55) 0%, transparent 65%);
  border-right: 1px solid var(--vc-border);
}
.vc-division-card.textiles {
  background: radial-gradient(ellipse at 0% 0%, rgba(22,51,31,.55) 0%, transparent 65%);
}
@media (max-width:860px) {
  .vc-division-card.pharma { border-right: none; border-bottom: 1px solid var(--vc-border); }
}
.vc-division-index {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--vc-muted); letter-spacing: .1em;
}
.vc-division-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 600; margin: 16px 0 14px;
}
.vc-division-body { color: var(--vc-muted); line-height: 1.68; font-size: 15.5px; max-width: 400px; }

/* ── Stats strip ── */
.vc-stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--vc-border);
  border-bottom: 1px solid var(--vc-border);
}
@media (max-width:720px) { .vc-stats-grid { grid-template-columns: repeat(2,1fr); } }
.vc-stat {
  padding: 50px 28px;
  border-right: 1px solid var(--vc-border);
}
.vc-stat:last-child { border-right: none; }
.vc-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--vc-gold-bright);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.vc-stat-label {
  display: block; margin-top: 10px;
  font-size: 13px; color: var(--vc-muted);
}

/* ── Certification / trust badge strip ── */
.vc-cert-strip {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; padding: 32px 5vw;
  border-top: 1px solid var(--vc-border);
  border-bottom: 1px solid var(--vc-border);
}
.vc-cert-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: .1em; color: var(--vc-muted);
  padding: 7px 14px; border-radius: 2px;
  border: 1px solid var(--vc-border);
  transition: border-color .25s, color .25s;
}
.vc-cert-badge:hover { border-color: var(--vc-gold); color: var(--vc-gold-bright); }
.vc-cert-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--vc-gold); }

/* ── Manifest / document list ── */
.vc-manifest-list { margin-top: 32px; border-top: 1px solid var(--vc-border); }
.vc-manifest-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 16px 0; border-bottom: 1px solid var(--vc-border);
  font-family: var(--font-mono); font-size: 13.5px;
}
.vc-manifest-doc { color: var(--vc-ink); white-space: nowrap; }
.vc-manifest-leader {
  flex: 1; border-bottom: 1px dotted rgba(237,239,243,.2);
  transform: translateY(-4px);
}
.vc-manifest-status { color: var(--vc-pharma-a); white-space: nowrap; letter-spacing: .06em; font-size: 12px; }

/* ── Scrolling ticker ── */
.vc-ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--vc-border);
  border-bottom: 1px solid var(--vc-border);
  padding: 22px 0;
  background: var(--vc-surface);
}
.vc-ticker {
  display: flex; white-space: nowrap;
  animation: ticker 28s linear infinite;
}
.vc-ticker-item {
  font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: .13em; color: var(--vc-muted);
  padding: 0 30px;
}
.vc-ticker-dot { color: var(--vc-gold); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion:reduce) { .vc-ticker { animation: none; } }

/* ── Fabric / product tiles ── */
.vc-tile-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--vc-border);
}
@media (max-width:900px) { .vc-tile-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:520px) { .vc-tile-grid { grid-template-columns: 1fr; } }
.vc-tile {
  background: var(--vc-bg); padding: 28px 22px;
  opacity: 0; transform: translateY(22px);
  transition: background .3s, opacity .6s ease, transform .6s ease;
}
.vc-tile.in-view { opacity: 1; transform: translateY(0); }
.vc-tile:hover { background: var(--vc-surface); }
.vc-tile-code {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: .08em; color: var(--vc-muted);
}
.vc-tile-name { margin-top: 9px; font-size: 15px; font-weight: 500; }

/* ── WooCommerce product card in shop loop ── */
.vc-product-card {
  background: var(--vc-bg); position: relative;
  overflow: hidden; display: flex; flex-direction: column;
  transition: background .3s;
}
.vc-product-card:hover { background: var(--vc-surface); }
.vc-product-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.vc-product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.vc-product-card:hover .vc-product-thumb img { transform: scale(1.04); }
.vc-product-info { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.vc-product-cat {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; color: var(--vc-muted); margin-bottom: 8px;
}
.vc-product-name {
  font-family: var(--font-display); font-size: 17px;
  font-weight: 600; line-height: 1.25; color: var(--vc-ink);
}
.vc-product-spec { font-size: 13px; color: var(--vc-muted); margin-top: 6px; }
.vc-product-actions { margin-top: auto; padding-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ── WooCommerce single product ── */
.vc-single-product { padding: 140px 5vw 100px; }
.vc-single-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width:860px) { .vc-single-layout { grid-template-columns: 1fr; } }
.vc-product-gallery img { width: 100%; border-radius: 4px; border: 1px solid var(--vc-border); }
.vc-product-header-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; color: var(--vc-pharma-a);
  border: 1px solid rgba(94,200,232,.3);
  padding: 5px 12px; border-radius: 2px; margin-bottom: 18px;
}
.vc-product-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 700; line-height: 1.05;
}
.vc-product-desc { color: var(--vc-muted); font-size: 15.5px; line-height: 1.7; margin-top: 18px; }
.vc-spec-table { width: 100%; border-collapse: collapse; margin-top: 28px; }
.vc-spec-table tr { border-bottom: 1px solid var(--vc-border); }
.vc-spec-table td { padding: 12px 4px; font-size: 14px; }
.vc-spec-table td:first-child { color: var(--vc-muted); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .05em; width: 44%; }
.vc-spec-table td:last-child { color: var(--vc-ink); font-weight: 500; }
.vc-doc-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--vc-border);
  font-size: 14px;
}
.vc-doc-row .doc-name { color: var(--vc-ink); display: flex; align-items: center; gap: 9px; }
.vc-doc-row .doc-status {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: .06em; color: var(--vc-pharma-a);
}
.vc-inquiry-box {
  margin-top: 32px;
  background: var(--vc-surface);
  border: 1px solid var(--vc-border);
  border-radius: 4px; padding: 28px;
}
.vc-inquiry-box h3 {
  font-family: var(--font-display); font-size: 18px;
  font-weight: 600; margin-bottom: 18px;
}
.vc-inquiry-box input,
.vc-inquiry-box textarea,
.vc-inquiry-box select {
  width: 100%; background: var(--vc-bg);
  border: 1px solid var(--vc-border); color: var(--vc-ink);
  padding: 11px 14px; border-radius: 2px; font-size: 14px;
  font-family: var(--font-body); margin-bottom: 12px;
  transition: border-color .25s;
}
.vc-inquiry-box input:focus,
.vc-inquiry-box textarea:focus { border-color: var(--vc-gold); outline: none; }
.vc-inquiry-box textarea { resize: vertical; min-height: 90px; }

/* ── Related products ── */
.vc-related { padding: 80px 5vw 100px; border-top: 1px solid var(--vc-border); }
.vc-related-heading {
  font-family: var(--font-display); font-size: 1.6rem;
  font-weight: 600; margin-bottom: 32px;
}

/* ── Page / blog content ── */
.vc-page-wrap { padding: 140px 5vw 100px; max-width: 780px; margin: 0 auto; }
.vc-page-wrap h1 { font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); font-weight: 700; }
.vc-entry-meta { font-family: var(--font-mono); font-size: 12px; color: var(--vc-muted); margin-top: 12px; }
.vc-content { margin-top: 30px; color: var(--vc-muted); line-height: 1.85; font-size: 16px; }
.vc-content h2 { font-family: var(--font-display); color: var(--vc-ink); font-size: 1.5rem; margin: 36px 0 14px; }
.vc-content h3 { font-family: var(--font-display); color: var(--vc-ink); font-size: 1.2rem; margin: 26px 0 10px; }
.vc-content a { color: var(--vc-gold-bright); text-decoration: underline; }
.vc-content ul { margin: 14px 0 14px 22px; }
.vc-content blockquote { border-left: 2px solid var(--vc-gold); padding-left: 20px; color: var(--vc-ink); margin: 22px 0; }

/* ── Footer ── */
.vc-footer { padding: 110px 5vw 56px; border-top: 1px solid var(--vc-border); }
.vc-footer-cta {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700; max-width: 700px;
  line-height: 1.05;
}
.vc-footer-email {
  display: inline-block; margin-top: 30px;
  font-family: var(--font-mono); font-size: 14px;
  color: var(--vc-gold-bright);
  border-bottom: 1px solid var(--vc-gold-bright);
  padding-bottom: 4px; transition: color .25s;
}
.vc-footer-email:hover { color: var(--vc-gold); border-color: var(--vc-gold); }
.vc-footer-bottom {
  display: flex; justify-content: space-between; margin-top: 88px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--vc-muted); letter-spacing: .05em; flex-wrap: wrap; gap: 8px;
}

/* ── Utility / Elementor helpers ── */
.vc-bg       { background: var(--vc-bg) !important; }
.vc-bg2      { background: var(--vc-bg2) !important; }
.vc-surface  { background: var(--vc-surface) !important; }
.vc-no-pad   { padding: 0 !important; }
.vc-pad-x    { padding-left: 5vw !important; padding-right: 5vw !important; }
.vc-border-t { border-top: 1px solid var(--vc-border) !important; }
.vc-border-b { border-bottom: 1px solid var(--vc-border) !important; }
.vc-text-muted  { color: var(--vc-muted) !important; }
.vc-text-gold   { color: var(--vc-gold-bright) !important; }
.vc-text-pharma { color: var(--vc-pharma-a) !important; }
.vc-text-textiles { color: var(--vc-textiles-a) !important; }
.vc-font-display { font-family: var(--font-display) !important; }
.vc-font-mono   { font-family: var(--font-mono) !important; }
.elementor-widget-heading .elementor-heading-title { font-family: var(--font-display); }
.elementor-widget-text-editor { color: var(--vc-muted); line-height: 1.75; }

/* Elementor container default background */
.elementor-section-wrap > .elementor-section {
  background-color: var(--vc-bg);
}
