/*
Theme Name: JIYAN Workholding
Theme URI: https://jiyanvise.com
Description: Minimalist industrial theme for JIYAN CNC workholding — green + gray palette, video hero, WooCommerce ready.
Author: JIYAN
Author URI: https://jiyanvise.com
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Tags: industrial, minimal, responsive, woocommerce, two-columns
Text Domain: jiyan
*/

/* =====================================================================
   JIYAN — Corporate Website
   Design system: minimalist, industrial-precision, green + gray
   v1.1.0 — hardened against WooCommerce / plugin style conflicts
   ===================================================================== */

:root {
  /* Palette */
  --ink:        #1A1F24;
  --ink-soft:   #2A3138;
  --bg:         #FFFFFF;
  --bg-soft:    #F4F5F6;
  --bg-dark:    #1A1E21;
  --muted:      #3F4954;
  --muted-2:    #69727D;
  --line:       #E4E6EA;
  --line-dark:  #2C333A;

  --brand:      #1B8B5E;
  --brand-dark: #14704D;
  --brand-soft: #EAF5EF;
  --accent:     #E67E22;

  --radius:     14px;
  --radius-sm:  10px;
  --radius-lg:  22px;
  --shadow-sm:  0 1px 2px rgba(26,31,36,.06), 0 2px 8px rgba(26,31,36,.05);
  --shadow:     0 6px 24px rgba(26,31,36,.08);
  --shadow-lg:  0 18px 50px rgba(26,31,36,.14);

  --maxw:       1200px;
  --header-h:   72px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-head: "Space Grotesk", var(--font);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink) !important;
  background: var(--bg) !important;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; color: var(--ink) !important; letter-spacing: -.01em; }
input, textarea, select { font-family: inherit; font-size: 16px; }

/* ---------- Layout — force full width, block WC wrappers ---------- */
.container {
  width: 100% !important;
  max-width: var(--maxw) !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
}
.site-content, .content-area, .entry-content,
#primary, #main, .woocommerce div#primary,
body.woocommerce-page #primary, body.woocommerce #primary {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* Kill WooCommerce sidebar / wrapper columns */
.woocommerce #content, .woocommerce-page #content,
.woocommerce .content-area, .woocommerce-page .content-area,
.woocommerce .site-main, .woocommerce-page .site-main,
div.product .summary, div.product .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
.woocommerce .col2-set, .woocommerce-page .col2-set { display: none !important; }

.section { padding: 96px 0 !important; }
.section--tight { padding: 72px 0 !important; }
.section--soft { background: var(--bg-soft) !important; }
.section--dark { background: var(--bg-dark) !important; color: #E8EDF4 !important; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff !important; }
.section--dark p { color: #CBD5E2 !important; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand) !important;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.section--dark .eyebrow { color: #5EC896 !important; }
.section--dark .eyebrow::before { background: #5EC896; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px) !important; margin: 14px 0 16px; color: var(--ink) !important; }
.section-head p { color: var(--muted) !important; font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
  text-decoration: none !important;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--brand) !important; color: #fff !important; box-shadow: 0 6px 18px rgba(27,139,94,.30) !important; border: none !important; }
.btn-primary:hover { background: var(--brand-dark) !important; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(27,139,94,.38) !important; }
.btn-ghost { background: transparent !important; color: var(--ink) !important; border: 1.5px solid var(--line) !important; }
.btn-ghost:hover { border-color: var(--ink) !important; transform: translateY(-2px); }
.section--dark .btn-ghost { color: #fff !important; border-color: var(--line-dark) !important; }
.section--dark .btn-ghost:hover { border-color: #fff !important; }
.btn-light { background: #fff !important; color: var(--ink) !important; }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow) !important; }
.btn-arrow { gap: 7px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
  width: 100%;
}
.site-header.scrolled { border-bottom-color: var(--line) !important; box-shadow: var(--shadow-sm) !important; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: .02em; color: var(--ink) !important; }
.brand .logo { width: 34px; height: 34px; }
.brand .logo rect { fill: var(--brand); }
.brand small { display: block; font-family: var(--font); font-weight: 500; font-size: 10.5px; letter-spacing: .22em; color: var(--muted-2) !important; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.nav-links li { list-style: none !important; }
.nav-links a {
  position: relative; display: block; padding: 9px 15px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink-soft) !important; transition: color .18s, background .18s;
  text-decoration: none !important;
}
.nav-links a:hover { color: var(--brand) !important; background: var(--brand-soft) !important; }
.nav-links a.active, .nav-links .current-menu-item > a, .nav-links .current_page_item > a { color: var(--brand) !important; }
.nav-cta { display: flex; align-items: center; gap: 12px; margin-left: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s;
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(5px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 0%, transparent 72%);
  opacity: .6;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 8px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 13.5px; font-weight: 500; color: var(--ink-soft) !important; box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px) !important; margin: 22px 0 20px; letter-spacing: -.025em; color: var(--ink) !important; }
.hero h1 .grad { background: linear-gradient(100deg, var(--brand), #2AA876); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--muted) !important; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--ink) !important; }
.hero-stats .lbl { font-size: 13.5px; color: var(--muted) !important; }
.hero-visual { position: relative; }
.hero-visual .card { background: var(--bg-dark); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); }
.hero-visual svg { width: 100%; height: auto; }

/* ---------- Hero — video background ---------- */
.hero--video { position: relative; min-height: 88vh; display: flex; align-items: center; padding: 120px 0 96px; overflow: hidden; }
.hero--video::before { display: none; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  background:
    radial-gradient(120% 120% at 82% 8%, rgba(27,139,94,.42), transparent 55%),
    radial-gradient(100% 100% at 8% 95%, rgba(20,112,77,.38), transparent 52%),
    linear-gradient(135deg, #0b131c 0%, #122230 55%, #0b141c 100%);
}
.hero--video::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 78% 32%, #000, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 75% at 78% 32%, #000, transparent 78%);
}
.hero-scrim { position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(14,22,33,.92) 0%, rgba(14,22,33,.72) 38%, rgba(14,22,33,.35) 100%),
    linear-gradient(0deg, rgba(14,22,33,.85) 0%, rgba(14,22,33,0) 45%);
}
.hero--video .container { position: relative; z-index: 2; }
.hero-grid--center { display: block; }
.hero-copy--center { max-width: 760px; }
.hero--video .hero-copy h1,
.hero--video .hero-copy .lead,
.hero--video .hero-copy .hero-stats .num,
.hero--video .hero-copy .hero-stats .lbl { color: #fff !important; }
.hero--video .hero-copy .lead { color: #D7DEE8 !important; }
.hero--video .hero-badge { background: rgba(255,255,255,.12) !important; border-color: rgba(255,255,255,.22) !important; color: #E7ECF2 !important; backdrop-filter: blur(6px); }
.hero--video .hero-badge .dot { box-shadow: 0 0 0 4px rgba(34,197,94,.30); }
.btn-ghost-light { color: #fff !important; border-color: rgba(255,255,255,.45) !important; background: transparent !important; }
.btn-ghost-light:hover { border-color: #fff !important; background: rgba(255,255,255,.10) !important; }
.hero--video .hero-visual { display: none; }

/* ---------- Logos / trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft) !important; }
.trust .container { display: flex; align-items: center; gap: 28px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; justify-content: space-between; }
.trust .label { font-size: 13px; letter-spacing: .06em; color: var(--muted-2) !important; text-transform: uppercase; }
.trust .logos { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.trust .logos span { font-family: var(--font-head); font-weight: 600; color: #9AA6B6 !important; font-size: 17px; letter-spacing: .02em; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff !important; border: 1px solid var(--line) !important; border-radius: var(--radius);
  padding: 32px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow) !important; border-color: #D6DEEA !important; }
.card .ic {
  width: 50px; height: 50px; border-radius: 13px; background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card .ic svg { width: 25px; height: 25px; stroke: var(--brand); }
.card h3 { font-size: 19px !important; margin-bottom: 10px; color: var(--ink) !important; }
.card p { color: var(--muted) !important; font-size: 15px; }

/* ---------- Product card ---------- */
.product-card {
  background: #fff !important; border: 1px solid var(--line) !important; border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-decoration: none !important;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg) !important; border-color: #D6DEEA !important; }
.product-thumb { position: relative; aspect-ratio: 4/3; background: linear-gradient(160deg, #0E1622, #1A2738); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-thumb svg { width: 72%; height: auto; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumb .product-ph { color: rgba(255,255,255,.55); font-family: var(--font-head); font-weight: 700; letter-spacing: .12em; font-size: 22px; }
.product-empty { color: var(--muted); padding: 28px 0; font-size: 15px; }
.product-thumb .tag { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); color: var(--ink) !important; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.product-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { font-size: 18px !important; color: var(--ink) !important; }
.product-body p { color: var(--muted) !important; font-size: 14.5px; flex: 1; }
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.price { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink) !important; }
.price small { font-weight: 500; font-size: 12px; color: var(--muted-2) !important; }
.link-arrow { color: var(--brand) !important; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 5px; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .18s; }
.product-card:hover .link-arrow svg { transform: translateX(3px); }

/* ---------- Steps / process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 28px; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--brand) !important; }
.step h4 { font-size: 18px !important; margin: 14px 0 8px; color: var(--ink) !important; }
.step p { color: var(--muted) !important; font-size: 14.5px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 6px; right: -1px; width: 1px; height: calc(100% - 12px); background: var(--line-dark); }

/* ---------- CTA band ---------- */
.cta-band { border-radius: var(--radius-lg); padding: 60px; background: linear-gradient(120deg, #158058, #1B9D6A) !important; color: #fff !important; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.10); }
.cta-band h2 { color: #fff !important; font-size: clamp(26px, 3.4vw, 36px) !important; max-width: 620px; }
.cta-band p { color: #DCE6FF !important; margin: 14px 0 26px; max-width: 540px; }
.cta-band .btn-light { color: var(--brand) !important; }

/* ---------- Blog ---------- */
.blog-card { background: #fff !important; border: 1px solid var(--line) !important; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow) !important; border-color: #D6DEEA !important; }
.blog-thumb { aspect-ratio: 16/9 !important; background: linear-gradient(150deg, #0E1622, #243B5E); position: relative; display:flex; align-items:center; justify-content:center; overflow: hidden; }
.blog-thumb img { width: 100% !important; height: 100% !important; object-fit: cover !important; aspect-ratio: 16/9 !important; }
.blog-thumb svg { width: 56%; opacity: .92; }
.blog-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-meta { font-size: 13px; color: var(--muted-2) !important; display: flex; gap: 12px; }
.blog-body h3 { font-size: 19px !important; line-height: 1.3; color: var(--ink) !important; }
.blog-body p { color: var(--muted) !important; font-size: 14.5px; flex: 1; }

/* ---------- Article ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article .post-meta { color: var(--muted-2) !important; font-size: 14px; margin-bottom: 18px; display:flex; gap: 14px; }
.article h1 { font-size: clamp(30px, 4.4vw, 46px) !important; margin-bottom: 22px; color: var(--ink) !important; }
.article h2 { font-size: 26px !important; margin: 38px 0 14px; color: var(--ink) !important; }
.article p { font-size: 17.5px; color: #2C3744 !important; margin-bottom: 18px; }
.article ul.bullets { margin: 0 0 18px 4px; }
.article ul.bullets li { position: relative; padding-left: 26px; margin-bottom: 10px; color: #2C3744 !important; font-size: 16.5px; }
.article ul.bullets li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); }
.article blockquote { border-left: 4px solid var(--brand) !important; background: var(--brand-soft) !important; padding: 16px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 22px; color: var(--ink-soft) !important; font-size: 16.5px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(28px, 3.6vw, 40px) !important; margin-bottom: 14px; color: var(--ink) !important; }
.contact-info p { color: var(--muted) !important; font-size: 17px; margin-bottom: 30px; }
.info-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 34px; }
.info-item { display: flex; gap: 15px; align-items: flex-start; }
.info-item .ic { flex: 0 0 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; }
.info-item .ic svg { width: 22px; height: 22px; stroke: var(--brand); }
.info-item .t { font-weight: 600; font-size: 15px; color: var(--ink) !important; }
.info-item .v { color: var(--muted) !important; font-size: 14.5px; }

.form { background: #fff !important; border: 1px solid var(--line) !important; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow) !important; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--ink) !important; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line) !important; border-radius: var(--radius-sm);
  background: #fff !important; color: var(--ink) !important; transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand) !important; box-shadow: 0 0 0 4px var(--brand-soft) !important; }
.field textarea { min-height: 132px; resize: vertical; }
.form .btn { width: 100%; }
.form .note { font-size: 13px; color: var(--muted-2) !important; margin-top: 14px; text-align: center; }
.form-ok { display: none; background: #ECFDF3 !important; border: 1px solid #A6F0C6 !important; color: #067647 !important; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14.5px; margin-bottom: 18px; }
.form-ok.show { display: block; }

/* ---------- Footer — force full width ---------- */
.site-footer {
  background: var(--bg-dark) !important;
  color: #B6C2D2 !important;
  padding: 72px 0 30px !important;
  width: 100% !important;
  margin: 0 !important;
}
.site-footer .container {
  max-width: var(--maxw) !important;
  width: 100% !important;
  padding: 0 24px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; width: 100%; }
.footer-brand .brand { color: #fff !important; margin-bottom: 16px; }
.footer-brand .brand .logo rect { fill: #2AA876; }
.footer-brand p { font-size: 14.5px; max-width: 300px; color: #B3BECB !important; }
.footer-col h4 { color: #fff !important; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font); font-weight: 600; }
.footer-col a { display: block; font-size: 14.5px; color: #B9C4D1 !important; padding: 6px 0; transition: color .18s; text-decoration: none !important; }
.footer-col a:hover { color: #fff !important; }
.footer-news p { font-size: 14.5px; color: #93A1B5 !important; margin-bottom: 14px; }
.footer-news form { display: flex; gap: 8px; }
.footer-news input { flex: 1; padding: 11px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line-dark) !important; background: #16202E !important; color: #fff !important; }
.footer-news input::placeholder { color: #6B7888; }
.footer-news button { padding: 0 16px; border-radius: var(--radius-sm); background: var(--brand) !important; color: #fff !important; font-weight: 600; }
.footer-bottom { border-top: 1px solid var(--line-dark) !important; margin-top: 50px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: #8493A8 !important; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-dark) !important; display: flex; align-items: center; justify-content: center; color: #9FB0C4 !important; transition: .18s; text-decoration: none !important; }
.footer-social a:hover { background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important; }
.footer-social svg { width: 18px; height: 18px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 70px 0 56px !important; background: var(--bg-soft) !important; border-bottom: 1px solid var(--line); }
.page-hero .breadcrumb { font-size: 13.5px; color: var(--muted-2) !important; margin-bottom: 16px; }
.page-hero .breadcrumb a:hover { color: var(--brand) !important; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 52px) !important; margin-bottom: 16px; color: var(--ink) !important; }
.page-hero p { color: var(--muted) !important; font-size: 18px; max-width: 640px; }

/* ---------- Misc ---------- */
.center-actions { text-align: center; margin-top: 48px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.lead-lg { font-size: 18px; color: var(--muted) !important; max-width: 680px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ================================================================
   WOOCOMMERCE OVERRIDES — high specificity to beat WC defaults
   ================================================================ */

/* Remove WC sidebar on all pages */
.woocommerce #secondary, .woocommerce-page #secondary,
.woocommerce aside, .woocommerce-page aside,
.widget-area, .widget-area-sidebar { display: none !important; }

/* WC body layout reset */
.woocommerce .content-area, .woocommerce-page .content-area,
.woocommerce .site-main, .woocommerce-page .site-main,
.woocommerce #primary, .woocommerce-page #primary,
.woocommerce #content, .woocommerce-page #content {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  float: none !important;
  box-sizing: border-box !important;
}

/* WC product archive grid */
.woocommerce .products, .woocommerce-page .products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 26px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  width: 100% !important;
}
.woocommerce .products.columns-2, .woocommerce-page .products.columns-2 { grid-template-columns: repeat(2, 1fr) !important; }
.woocommerce .products.columns-4, .woocommerce-page .products.columns-4 { grid-template-columns: repeat(4, 1fr) !important; }

/* WC product card styling */
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
  list-style: none !important;
}
.woocommerce ul.products li.product:hover, .woocommerce-page ul.products li.product:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--shadow-lg) !important;
  border-color: #D6DEEA !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__link {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  text-decoration: none !important;
}
.woocommerce ul.products li.product img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4/3 !important;
  object-fit: cover !important;
  background: linear-gradient(160deg, #0E1622, #1A2738) !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-head) !important;
  font-size: 18px !important;
  color: var(--ink) !important;
  padding: 18px 24px 0 !important;
  font-weight: 600 !important;
}
.woocommerce ul.products li.product .price {
  font-family: var(--font-head) !important;
  font-weight: 700 !important;
  font-size: 17px !important;
  color: var(--ink) !important;
  padding: 6px 24px 24px !important;
  margin-top: auto !important;
}
.woocommerce ul.products li.product .price del { color: var(--muted-2) !important; font-weight: 500 !important; }
.woocommerce ul.products li.product .price ins { color: var(--brand) !important; text-decoration: none !important; }
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.add_to_cart_button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 0 24px 24px !important;
  padding: 11px 18px !important;
  border-radius: 999px !important;
  background: var(--brand-soft) !important;
  color: var(--brand) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  border: none !important;
  transition: background .18s, color .18s !important;
  text-decoration: none !important;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.add_to_cart_button:hover {
  background: var(--brand) !important;
  color: #fff !important;
}

/* WC pagination */
.woocommerce nav.woocommerce-pagination { margin-top: 40px; }
.woocommerce nav.woocommerce-pagination ul { border: 0 !important; padding: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; list-style: none !important; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  color: var(--ink-soft) !important;
  padding: 8px 14px !important;
  margin: 0 3px !important;
  text-decoration: none !important;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
}

/* WC result count & ordering */
.woocommerce-result-count { color: var(--muted) !important; }
.woocommerce-ordering { color: var(--muted) !important; }
.woocommerce-ordering select {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 12px !important;
  background: #fff !important;
  color: var(--ink) !important;
}

/* WC breadcrumb */
.woocommerce .woocommerce-breadcrumb { color: var(--muted-2) !important; font-size: 13.5px; margin-bottom: 16px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--brand) !important; }

/* WC global buttons */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--brand) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  padding: 13px 26px !important;
  border: none !important;
  text-decoration: none !important;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--brand-dark) !important;
  color: #fff !important;
}

/* WC single product page */
.woocommerce div.product {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 48px !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 40px 24px !important;
}
.woocommerce div.product .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
}
.woocommerce div.product .summary {
  width: 100% !important;
  float: none !important;
}
.woocommerce div.product .product_title { font-size: 28px !important; color: var(--ink) !important; }
.woocommerce div.product p.price { font-size: 24px !important; color: var(--brand) !important; }
.woocommerce div.product .single_add_to_cart_button {
  background: var(--brand) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 14px 32px !important;
  font-size: 16px !important;
  border: none !important;
}

/* WC notices */
.woocommerce-error, .woocommerce-info, .woocommerce-message {
  border-radius: var(--radius-sm) !important;
  padding: 16px 22px !important;
  margin-bottom: 20px !important;
}

/* ================================================================
   JIYAN SINGLE PRODUCT PAGE (overrides WC default)
   ================================================================ */
.jiyan-product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}
.jiyan-pd-gallery {
  position: relative;
}
.jiyan-pd-gallery .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
.jiyan-pd-gallery img {
  width: 100% !important;
  height: auto !important;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.jiyan-pd-info {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.jiyan-quote-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  height: 54px !important;
  background: var(--brand) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  text-decoration: none !important;
  transition: background .18s, transform .18s, box-shadow .18s !important;
  box-shadow: 0 6px 18px rgba(27,139,94,.30) !important;
  cursor: pointer !important;
  border: none !important;
}
.jiyan-quote-btn:hover {
  background: var(--brand-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 26px rgba(27,139,94,.38) !important;
}

/* Single product responsive */
@media (max-width: 860px) {
  .jiyan-product-detail { grid-template-columns: 1fr; gap: 32px; }
  .jiyan-pd-info { position: static; }
}

/* ================================================================
   CONTACT FORM 7 OVERRIDES
   ================================================================ */
.wpcf7-form { display: block; }
.wpcf7-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wpcf7-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--ink) !important; }
.wpcf7-form .wpcf7-form-control-wrap { display: block; }
.wpcf7-form input[type=text],
.wpcf7-form input[type=email],
.wpcf7-form input[type=tel],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100% !important;
  padding: 13px 15px !important;
  border: 1.5px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
  background: #fff !important;
  color: var(--ink) !important;
  transition: border-color .18s, box-shadow .18s;
  box-sizing: border-box !important;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  outline: none !important;
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 4px var(--brand-soft) !important;
}
.wpcf7-form textarea { min-height: 132px; resize: vertical; }
.wpcf7-form .wpcf7-submit {
  width: 100% !important;
  height: 50px !important;
  border-radius: 999px !important;
  background: var(--brand) !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  box-shadow: 0 6px 18px rgba(27,139,94,.30) !important;
  cursor: pointer !important;
  transition: background .18s, transform .18s !important;
  border: none !important;
  padding: 0 26px !important;
}
.wpcf7-form .wpcf7-submit:hover {
  background: var(--brand-dark) !important;
  transform: translateY(-2px) !important;
}
.wpcf7 form .wpcf7-response-output {
  border-radius: var(--radius-sm) !important;
  padding: 14px 18px !important;
  margin: 16px 0 !important;
}
.wpcf7-not-valid-tip { color: #c0392b !important; font-size: 13px !important; }

/* ================================================================
   NATIVE FALLBACK CONTACT FORM (when CF7 is not installed)
   ================================================================ */
.jiyan-contact-form input[type=text],
.jiyan-contact-form input[type=email],
.jiyan-contact-form input[type=tel],
.jiyan-contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  transition: border-color .18s, box-shadow .18s;
  box-sizing: border-box;
}
.jiyan-contact-form input:focus,
.jiyan-contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.jiyan-contact-form textarea { min-height: 132px; resize: vertical; }
.jiyan-contact-form .submit-btn {
  width: 100%;
  height: 50px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  box-shadow: 0 6px 18px rgba(27,139,94,.30);
  transition: background .18s, transform .18s;
}
.jiyan-contact-form .submit-btn:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

/* ================================================================
   PRODUCT CATEGORY SUMMARY (v2.0 — old JIYAN style)
   Large image cards with blue category buttons below each.
   Supports filtering by category via URL ?cat=slug
   ================================================================ */

/* Category filter bar — horizontal scrollable pills */
.cat-filter-bar {
  display: flex;
  gap: 10px;
  padding: 8px 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.cat-filter-bar::-webkit-scrollbar { display: none; }
.cat-filter-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  color: var(--muted-soft) !important;
  background: #fff !important;
  border: 1.5px solid var(--line) !important;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  text-decoration: none !important;
}
.cat-filter-btn:hover {
  border-color: var(--brand) !important;
  color: var(--brand) !important;
}
.cat-filter-btn.active {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
}

/* Category card grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}

/* Individual category card — matches old jiyanvise.com style */
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-decoration: none !important;
  transition: transform .25s ease, box-shadow .25s ease;
  border-radius: var(--radius);
}
.cat-card:hover {
  transform: translateY(-6px);
}
.cat-card:hover .cat-card-btn {
  background: var(--brand-dark) !important;
  box-shadow: 0 8px 24px rgba(27,139,94,.38) !important;
}

/* Category card image area */
.cat-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #0E1622, #1A2738);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}
.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.cat-card:hover .cat-card-img img {
  transform: scale(1.04);
}

/* Placeholder for categories without images */
.cat-card-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1a2332, #243448);
}
.cat-card-ph svg { width: 80px; height: 80px; opacity: .6; }

/* Blue category button below image — matches screenshot style */
.cat-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 46px;
  padding: 0 32px;
  border-radius: 8px;
  background: #2196F3 !important; /* Blue button like original site */
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  letter-spacing: .02em;
  cursor: pointer;
  transition: all .22s ease;
  box-shadow: 0 4px 14px rgba(33,150,243,.30) !important;
  white-space: nowrap;
  text-decoration: none !important;
}

/* Products shown inside filtered category view */
.jiyan-cat-products {
  margin-top: 12px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
  .step:not(:last-child)::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  /* WC responsive */
  .woocommerce .products, .woocommerce-page .products { grid-template-columns: repeat(2, 1fr) !important; }
  .woocommerce div.product { grid-template-columns: 1fr !important; }
  /* Product card mobile — give text room */
  .product-card .product-body { padding: 18px; }
  .product-card .product-body h3 { font-size: 15px !important; line-height: 1.35; }
  .product-card .product-body p { font-size: 13.5px; }
  .product-meta { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Category grid — tablet: 2 columns */
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .cat-card-btn { min-width: 150px; height: 42px; padding: 0 24px; font-size: 14px; }
  .cat-filter-bar { padding-bottom: 12px; }
  .cat-filter-btn { height: 36px; padding: 0 16px; font-size: 13px; }
}
@media (max-width: 720px) {
  .section { padding: 56px 0 !important; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-ghost { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 24px 22px; box-shadow: var(--shadow);
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 28px !important; }
  .cta-band h2 { font-size: 22px !important; }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .wpcf7-form .form-row { grid-template-columns: 1fr; }

  /* === PRODUCT CARD MOBILE FIXES === */
  .product-thumb { aspect-ratio: 4/3; min-height: 180px; }
  .product-card .product-body { padding: 16px; gap: 6px; }
  .product-card .product-body h3 {
    font-size: 14.5px !important;
    line-height: 1.35;
    /* Allow 2 lines max, then ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-card .product-body p {
    font-size: 13px;
    /* Hide description on very small screens to reduce clutter */
    display: none;
  }
  .product-meta {
    margin-top: 10px;
    padding-top: 12px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .price { font-size: 16px !important; }
  .link-arrow { font-size: 13px; }

  /* Category grid — mobile: 2 columns (or 1 on very small) */
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .cat-card-img { aspect-ratio: 3 / 2; border-radius: var(--radius-sm); }
  .cat-card-btn { min-width: auto; width: 100%; height: 40px; padding: 0 12px; font-size: 13px; border-radius: 6px !important; }

  /* Filter bar — compact on mobile */
  .cat-filter-bar { gap: 8px; padding-bottom: 10px; }
  .cat-filter-btn { height: 34px; padding: 0 14px; font-size: 12.5px; border-radius: 999px !important; }

  /* WC mobile — single column, clean cards */
  .woocommerce .products, .woocommerce-page .products { grid-template-columns: 1fr !important; gap: 20px !important; }
  .woocommerce ul.products li.product img { aspect-ratio: 4/3 !important; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px !important;
    padding: 14px 18px 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product a.add_to_cart_button {
    margin: 0 18px 18px !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
  }

  /* Contact form mobile */
  .contact-grid { gap: 28px; }
  .form { padding: 24px 20px !important; }
  .info-item { gap: 12px; }
  .info-item .ic { flex: 0 0 40px; height: 40px; }

  /* Form result message — full width on mobile */
  .form-ok { margin-bottom: 14px; font-size: 13.5px; }
}

/* Very small phones — single column category grid */
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; gap: 24px; max-width: 320px; margin-left: auto; margin-right: auto; }
  .cat-card-img { aspect-ratio: 4 / 3; }
}
