/* assets/css/theme.css — MRV Exports / Rajam Tex theme components.
   Colours and fonts come from CSS variables set per skin in includes/site-theme.php (theme_head()).
   html.skin-mrv / .skin-rajam / .skin-rajamin carry the per-site personality. */

@layer components {

:root { --radius: 6px; --ease: cubic-bezier(.2,.7,.2,1); }
body { font-size: 16px; line-height: 1.6; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
main { display: block; }
@media (max-width: 1023px) { body { padding-bottom: 64px; } }

/* ---------- type ---------- */
.font-display, .tp-h1, .tp-h2, .tp-h3, .tp-brand-name { font-family: var(--tp-display, inherit); }

.tp-h1, .tp-h2, .tp-h3 { color: var(--ink); text-wrap: balance; }
.tp-h1 { font-size: clamp(2.1rem, 4.2vw + .8rem, 3.6rem); line-height: 1.04; font-weight: 800; letter-spacing: -.015em; }
.tp-h2 { font-size: clamp(1.6rem, 2.2vw + .9rem, 2.5rem); line-height: 1.1; font-weight: 750; letter-spacing: -.01em; }
.tp-h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 700; }
.tp-lead { font-size: 1.125rem; line-height: 1.65; color: var(--muted); max-width: 62ch; }
.tp-prose p { margin-top: 1em; line-height: 1.75; color: color-mix(in srgb, var(--ink) 82%, white); max-width: 68ch; }
.tp-prose p:first-child { margin-top: 0; }

/* ---------- utility bar + header ---------- */
.tp-util { background: var(--ink); color: rgb(255 255 255 / .82); }
.tp-brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; color: var(--ink); }
.tp-brand-sub { font-size: .75rem; color: var(--muted); margin-top: 4px; }
.tp-nav { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; font-weight: 600; font-size: .95rem; color: color-mix(in srgb, var(--ink) 85%, white); border-radius: var(--radius); }
.tp-nav:hover { color: var(--ink); background: var(--paper); }
.tp-nav.is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.tp-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius); color: var(--ink); }
.tp-iconbtn:hover { background: var(--paper); }
.tp-mlink { display: block; padding: 12px 2px; border-bottom: 1px solid var(--line); font-weight: 600; }
#site-header.is-scrolled { box-shadow: 0 6px 20px -12px rgb(0 0 0 / .25); }

/* ---------- buttons & links ---------- */
.tp-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--radius); font-weight: 600; font-size: .95rem; line-height: 1; transition: background-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease); white-space: nowrap; }
.tp-btn:active { transform: scale(.98); }
.tp-btn-primary { background: var(--accent); color: #fff; }
.tp-btn-primary:hover { background: var(--accent-2); }
.tp-btn-dark { background: var(--ink); color: #fff; }
.tp-btn-dark:hover { background: var(--ink-2); }
.tp-btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.tp-btn-ghost:hover { border-color: var(--ink); }
.tp-btn-light { background: #fff; color: var(--ink); }
.tp-btn-light:hover { background: var(--paper); }
.tp-btn-wa { background: #1DA851; color: #fff; }
.tp-btn-wa:hover { background: #168A42; }
.tp-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.tp-link:hover { text-decoration-color: var(--accent); }
.tp-link svg { transition: transform .18s var(--ease); }
.tp-link:hover svg { transform: translateX(3px); }

/* ---------- page head / breadcrumbs / chips ---------- */
.tp-pagehead { background: var(--surface); border-bottom: 1px solid var(--line); }
.tp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); }
.tp-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.tp-crumbs [aria-current] { color: var(--ink); }
.tp-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
@media (min-width: 768px) { .tp-chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }
.tp-chips a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .9rem; background: #fff; }
.tp-chips a span { font-weight: 500; color: var(--muted); font-size: .8rem; }
.tp-chips a:hover { border-color: var(--ink); }
.tp-chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tp-chips a[aria-current] span { color: rgb(255 255 255 / .7); }
.tp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius); font-size: .85rem; font-weight: 500; background: #fff; color: var(--ink); }

/* ---------- product card ---------- */
.tp-card { display: flex; flex-direction: column; }
.tp-card-img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.tp-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease, transform .6s var(--ease); }
.tp-card:hover .tp-card-img img:first-child { transform: scale(1.03); }
.tp-card-body { padding-top: 12px; display: flex; flex-direction: column; flex: 1; }
.tp-card-cat { font-size: .8rem; color: var(--muted); }
.tp-card-title { font-weight: 650; font-size: 1rem; line-height: 1.3; margin-top: 2px; color: var(--ink); }
.tp-card-title a::after { content: ""; }
.tp-card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tp-card-actions { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tp-card-actions .tp-link { font-size: .9rem; }
.tp-wa-chip { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; color: #128C4B; border: 1.5px solid #CDEBD8; background: #F1FAF4; }
.tp-wa-chip:hover { background: #1DA851; color: #fff; border-color: #1DA851; }

/* ---------- sections ---------- */
.tp-sec { padding: 72px 0; }
@media (min-width: 1024px) { .tp-sec { padding: 104px 0; } }
.tp-sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.tp-stat-strip { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 768px) { .tp-stat-strip { grid-template-columns: repeat(4, 1fr); } }
.tp-stat { padding: 22px 20px 4px 0; }
.tp-stat b { display: block; font-family: var(--tp-display); font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem); line-height: 1; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.tp-stat span { display: block; margin-top: 8px; font-size: .9rem; color: var(--muted); max-width: 22ch; }
.tp-cta { background: var(--ink); }
.tp-footer { background: var(--ink); color: rgb(255 255 255 / .85); border-top: 1px solid rgb(255 255 255 / .12); }
.tp-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tp-foot-h { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.tp-step { counter-increment: step; position: relative; padding-left: 56px; }
.tp-step::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; background: var(--ink); color: #fff; font-variant-numeric: tabular-nums; }
.tp-steps { counter-reset: step; }
.tp-faq details { border-top: 1px solid var(--line); }
.tp-faq details:last-child { border-bottom: 1px solid var(--line); }
.tp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 650; font-size: 1.05rem; }
.tp-faq summary::-webkit-details-marker { display: none; }
.tp-faq summary svg { transition: transform .2s var(--ease); flex: none; }
.tp-faq details[open] summary svg { transform: rotate(180deg); }
.tp-faq details p { padding: 0 0 20px; color: var(--muted); max-width: 70ch; }
.tp-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.tp-field input, .tp-field select, .tp-field textarea { width: 100%; min-height: 48px; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 14px; font-size: 16px; background: #fff; color: var(--ink); }
.tp-field textarea { min-height: 140px; }
.tp-field input:focus, .tp-field select:focus, .tp-field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.tp-field .hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }

/* ---------- mobile action bar ---------- */
.tp-mbar { position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tp-mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.tp-mbar a[aria-current] { color: var(--ink); }
.tp-mbar a.is-wa { color: #128C4B; }

/* ---------- product page (core markup) ---------- */
.tp-specs .tp-btn { min-height: 52px; font-size: 1rem; }
#wa-enquire-btn { border-radius: var(--radius) !important; background: #fff !important; color: #128C4B !important; border: 1.5px solid #9FD8B4; min-height: 52px; }
#wa-enquire-btn:hover { background: #F1FAF4 !important; }

/* catalogue mode: goods are made to order, so the core "In stock" line is hidden */
#variant-form > p.text-green-700, #variant-form > p.text-red-600 { display: none; }

/* ---------- motion ---------- */
.reveal { transition-duration: 500ms; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   SKIN: MRV Exports — condensed industrial type, indigo + logo red, ruled grid
   ========================================================================= */
.skin-mrv { --tp-display: 'Archivo', 'Arial Narrow', sans-serif; }
.skin-mrv .tp-h1, .skin-mrv .tp-h2, .skin-mrv .tp-stat b, .skin-mrv .tp-brand-name, .skin-mrv .font-display { font-stretch: 72%; }
.skin-mrv .tp-h1 { font-size: clamp(2.6rem, 5.4vw + .6rem, 5.2rem); line-height: .96; font-weight: 800; letter-spacing: -.01em; }
.skin-mrv .tp-h2 { font-size: clamp(2rem, 3vw + .8rem, 3.2rem); line-height: 1; font-weight: 800; }
.skin-mrv .tp-brand-name { font-size: 1.45rem; letter-spacing: .01em; }
.mrv-hero-left { padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 1024px) { .mrv-hero-left { padding-left: max(2rem, calc((100vw - 80rem) / 2 + 2rem)); padding-right: 3.5rem; } }
.skin-mrv .mrv-clock { border-left: 1px solid rgb(255 255 255 / .18); padding: 14px 18px; }
.skin-mrv .mrv-clock:first-child { border-left: 0; }
.skin-mrv .mrv-clock time { font-family: 'Archivo', sans-serif; font-stretch: 72%; font-weight: 700; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; display: block; }
.mrv-status { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; }
.mrv-status i { width: 8px; height: 8px; border-radius: 99px; background: #9AA3B2; }
.mrv-status.is-open i { background: #3DDC84; box-shadow: 0 0 0 4px rgb(61 220 132 / .2); }
.mrv-rule { border-top: 2px solid var(--ink); }
.mrv-market { border-top: 1px solid var(--line); padding: 26px 0; display: grid; gap: 8px 32px; }
@media (min-width: 768px) { .mrv-market { grid-template-columns: 220px 1fr; } }
.mrv-market h3 { font-family: 'Archivo', sans-serif; font-stretch: 72%; font-weight: 800; font-size: 1.75rem; line-height: 1; color: var(--ink); }

/* =========================================================================
   SKIN: Rajam Tex (.com) — deep green + marigold, Bricolage grotesque, index hero
   ========================================================================= */
.skin-rajam { --tp-display: 'Bricolage Grotesque', system-ui, sans-serif; --radius: 10px; }
.skin-rajam .tp-h1 { font-size: clamp(2.4rem, 4.6vw + .6rem, 4.4rem); font-weight: 800; letter-spacing: -.03em; }
.skin-rajam .tp-h2 { letter-spacing: -.025em; }
.skin-rajam .tp-btn-primary { background: var(--gold); color: var(--ink); }
.skin-rajam .tp-btn-primary:hover { background: #F0B53A; }
.skin-rajam .tp-nav.is-active { box-shadow: inset 0 -3px 0 var(--gold); }
.rj-index { counter-reset: none; }
.rj-index a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgb(255 255 255 / .16); color: #fff; }
.rj-index a .nm { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(1.7rem, 2.6vw + .6rem, 2.8rem); line-height: 1.05; letter-spacing: -.03em; transition: color .2s var(--ease), transform .25s var(--ease); }
.rj-index a .ct { font-size: .9rem; color: rgb(255 255 255 / .65); }
.rj-index a:hover .nm, .rj-index a:focus-visible .nm, .rj-index a.is-on .nm { color: var(--gold); transform: translateX(6px); }
.rj-stage { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--ink-2); }
.rj-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.rj-stage img.is-on { opacity: 1; }
.rj-buyer { border-top: 3px solid var(--gold); padding-top: 18px; }

/* =========================================================================
   SKIN: Rajam Tex (.in) — madras check band, indigo + madder, mobile-first
   ========================================================================= */
.skin-rajamin { --tp-display: 'Sora', system-ui, sans-serif; --radius: 12px; }
.skin-rajamin .tp-h1 { font-size: clamp(2rem, 3.6vw + .8rem, 3.6rem); font-weight: 800; letter-spacing: -.035em; }
.skin-rajamin .tp-h2 { font-weight: 800; letter-spacing: -.03em; }
.skin-rajamin .tp-util { background: var(--ink); }
.madras-band, .madras-rule {
  background-color: #B3261E;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 14px, rgb(27 37 89 / .9) 14px 22px, transparent 22px 30px, rgb(232 176 33 / .95) 30px 33px, transparent 33px 46px, rgb(47 125 79 / .85) 46px 52px, transparent 52px 64px),
    repeating-linear-gradient(0deg, transparent 0 3px, rgb(255 255 255 / .35) 3px 4px, transparent 4px 7px);
}
.madras-band { height: 8px; }
.madras-rule { height: 6px; border-radius: 3px; }
.ri-cat { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; background: var(--surface); }
.ri-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ri-cat:hover img { transform: scale(1.04); }
.ri-cat .lbl { position: absolute; inset: auto 0 0 0; padding: 40px 12px 12px; background: linear-gradient(to top, rgb(16 22 54 / .85), transparent); color: #fff; }
.ri-cat .lbl b { display: block; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.ri-cat .lbl span { font-size: .8rem; opacity: .85; }
.ri-steps li { display: flex; gap: 14px; align-items: flex-start; }
.ri-steps b { flex: none; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: var(--accent); color: #fff; font-family: 'Sora', sans-serif; }

} /* end @layer components */
