/* =========================================================
   JSTN Metal — WordPress additions
   Things the static design did not have: product list pagination,
   product detail page, Contact Form 7 output, WP core classes.
   Uses the tokens from style.css.
   ========================================================= */

/* ---------- WP core ---------- */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hero-note { color: #8e99a6; }

/* ---------- Footer bottom: copyright | tagline | credit ---------- */
.footer-bottom-row { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; }
.footer-bottom-row .fb-right a { color: #fff; font-weight: 600; }
.footer-bottom-row .fb-right a:hover { color: var(--brass); }
@media (min-width: 768px) {
  .footer-bottom-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; }
  .footer-bottom-row .fb-left { text-align: left; justify-self: start; }
  .footer-bottom-row .fb-right { text-align: right; justify-self: end; }
}
.entry-content > * + * { margin-top: 1rem; }

/* ---------- Product list ---------- */
.product-pagination { margin-top: 3rem; }
.product-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.product-pagination .page-numbers {
  min-width: 44px; height: 44px; padding: 0 .9rem; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 600;
}
.product-pagination .page-numbers.current, .product-pagination a.page-numbers:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Product detail ---------- */
.product-figure {
  margin: 0 0 2rem; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--mist); aspect-ratio: 4 / 3;
}
/*.product-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }*/
.product-figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: #FFF;
}

.product-summary .metal-tag {
  font-size: .8rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px;
  background: var(--mist); color: var(--steel);
}
.product-summary .metal-tag::before { content: ""; display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .4rem; vertical-align: -.05rem; }
.product-cat {
  font-size: .8rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--steel); text-decoration: none;
}
.product-cat:hover { border-color: var(--ink); color: var(--ink); }

.spec-block, .product-content { margin-top: 2.5rem; }
.spec-block h2, .product-content h2 { margin-bottom: 1rem; }
.spec-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { padding: .9rem 1.15rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 34%; background: var(--mist); font-family: var(--font-display); font-stretch: 112%; font-weight: 700; }
.spec-table td { color: var(--steel); }
.product-content { color: var(--steel); }
.product-content h3, .product-content h4 { color: var(--ink); margin-top: 1.5rem; }
.product-content ul { padding-left: 1.2rem; }

.product-aside { display: grid; gap: 1.5rem; }
@media (min-width: 992px) { .product-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.aside-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.aside-card h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.aside-card-dark { background: var(--ink); border-color: var(--ink); color: #b9c2cc; }
.aside-card-dark h3 { color: #fff; }
.aside-card-dark p { font-size: .95rem; }
.popular-list { list-style: none; padding: 0; margin: 0; }
.popular-list li + li { border-top: 1px solid var(--line); }
.popular-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .75rem 0; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.popular-list a::after { content: "\f054"; font-family: "Font Awesome 7 Free", "Font Awesome 6 Free"; font-weight: 900; font-size: .7rem; color: var(--steel-soft); transition: transform .2s ease; }
.popular-list a:hover { color: var(--molten-dark); }
.popular-list a:hover::after { transform: translateX(3px); color: var(--molten-dark); }
.popular-list .current-menu-item > a { color: var(--molten-dark); }

/* ---------- Contact Form 7 ---------- */
.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wpcf7-form-control-wrap { display: block; }
.wpcf7-not-valid-tip { display: block; margin-top: .3rem; font-size: .875em; color: var(--bs-form-invalid-color, #dc3545); }
.wpcf7-form .form-control.wpcf7-not-valid, .wpcf7-form .form-select.wpcf7-not-valid { border-color: var(--bs-form-invalid-border-color, #dc3545); }
.wpcf7-form .form-control[readonly] { background: var(--mist); font-weight: 600; }

.wpcf7-form .choice-grid .wpcf7-list-item { margin: 0; display: block; }
.wpcf7-form .choice-grid label {
  display: flex; align-items: center; gap: .7rem; height: 100%; margin: 0; cursor: pointer;
  padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.wpcf7-form .choice-grid input { width: 1.1em; height: 1.1em; flex: 0 0 auto; accent-color: var(--molten); }
.wpcf7-form .choice-grid label:has(input:checked) { border-color: var(--molten); background: #fff6f1; }
.wpcf7-form .choice-grid.wpcf7-not-valid label { border-color: var(--bs-form-invalid-border-color, #dc3545); }

.wpcf7-form .wpcf7-spinner { margin: 0 0 0 1rem; vertical-align: middle; }
.wpcf7 form .wpcf7-response-output {
  margin: 1.5rem 0 0; padding: 1rem 1.25rem; border-radius: var(--radius-sm); border: 1px solid var(--line); font-weight: 500;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: #a3cfbb; background: #d1e7dd; color: #0a3622; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output { border-color: #ffe69c; background: #fff3cd; color: #664d03; }
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { border-color: #f1aeb5; background: #f8d7da; color: #58151c; }

/* ---------- Group companies ---------- */
.group-card {
  position: relative; height: 100%; display: flex; flex-direction: column;
  padding: 1.75rem 1.5rem 1.6rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.group-card::before { /* metal strip, same rule as the footer/hero */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, #b8642e, #f6dc8a 30%, #98a3b0 60%, #eef1f4 80%, #b8642e);
}
.group-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.group-card-mark { margin-bottom: 1.25rem; min-height: 56px; display: flex; align-items: center; }
.group-initials {
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--brass);
  font-family: var(--font-display); font-stretch: 118%; font-weight: 800; font-size: 1.05rem; letter-spacing: .02em;
}
.group-logo { display: inline-flex; align-items: center; height: 56px; padding: .35rem .6rem; background: #fff; border-radius: var(--radius-sm); }
.group-logo img { max-height: 44px; width: auto; max-width: 160px; object-fit: contain; }
.group-card h3 { font-size: 1.15rem; line-height: 1.2; margin-bottom: .6rem; }
.group-card p { font-size: .925rem; color: var(--steel); margin-bottom: 1.25rem; }
.group-link { margin-top: auto; align-self: flex-start; font-weight: 600; font-size: .925rem; color: var(--molten-dark); text-decoration: none; }
.group-link i { margin-left: .45rem; font-size: .75rem; transition: transform .2s ease; }
.group-link:hover { color: var(--molten-dark); text-decoration: underline; }
.group-link:hover i { transform: translate(2px, -2px); }

/* Dark home section */
.group-section .section-head p { color: var(--steel); }
.bg-ink .group-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); }
.bg-ink .group-card:hover { border-color: rgba(255,255,255,.4); }
.bg-ink .group-card h3 { color: #fff; }
.bg-ink .group-card p { color: #b9c2cc; }
.bg-ink .group-initials { background: rgba(255,255,255,.08); border: 1px solid rgba(217,162,58,.45); }
.bg-ink .group-link { color: #f6a77a; }
.bg-ink .group-link:hover { color: #fff; }

/* Owl Carousel (only loaded with more than 4 companies) */
.group-slider { position: relative; padding-bottom: 4rem; }
.group-slider .owl-stage { display: flex; }
.group-slider .owl-item { display: flex; }
.group-slider .group-slide { display: flex; width: 100%; padding-top: 4px; }
.group-slider .group-card:hover { transform: none; }
.group-slider .owl-item .group-logo img { width: auto; } /* owl.carousel.css forces img width:100% */
.group-slider .owl-nav {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; pointer-events: none;
}
.group-slider .owl-nav button.owl-prev,
.group-slider .owl-nav button.owl-next {
  pointer-events: auto; width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-size: .9rem;
  transition: background-color .2s ease, border-color .2s ease;
}
.group-slider .owl-nav button.owl-prev:hover,
.group-slider .owl-nav button.owl-next:hover { background: var(--molten); border-color: var(--molten); }
.group-slider .owl-nav button:focus-visible { outline: 3px solid var(--molten); outline-offset: 2px; }
.group-slider .owl-dots {
  position: absolute; left: 56px; right: 56px; bottom: 0; height: 44px;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem;
}
.group-slider .owl-dots button.owl-dot span {
  display: block; width: 9px; height: 9px; border-radius: 999px;
  background: rgba(255,255,255,.3); transition: width .2s ease, background-color .2s ease;
}
.group-slider .owl-dots button.owl-dot.active span { width: 26px; background: var(--molten); }
.group-slider .owl-dots button.owl-dot:hover span { background: rgba(255,255,255,.6); }
.group-slider .owl-dots button.owl-dot.active:hover span { background: var(--molten); }
/* Before Owl starts (or if it fails to load) show a scrollable row, not a stack */
.group-slider:not(.owl-loaded) { display: flex; gap: 1.5rem; overflow-x: auto; padding-bottom: 1rem; }
.group-slider:not(.owl-loaded) .group-slide { flex: 0 0 min(85%, 300px); }

.jstn-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-auto-flow: dense;
    gap: 14px;
    margin: 0 0 40px;
}

.jstn-gallery__item {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 12px;
    overflow: hidden;
    cursor: zoom-in;
    transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}

/* Pehli image badi - main product image jaisi */
.jstn-gallery__item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.jstn-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* na crop, na stretch */
    display: block;
    transition: transform .35s ease;
}

.jstn-gallery__item:hover {
    border-color: #e8651a;   /* JSTN orange - apne brand color se badal lo */
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.jstn-gallery__item:hover img {
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .jstn-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.jstn-gallery.jstn-gallery--single {
    display: block;
}

.jstn-gallery.jstn-gallery--single .jstn-gallery__item {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 520px;
    grid-column: auto;
    grid-row: auto;
    padding: 20px;
}

.jstn-gallery.jstn-gallery--single .jstn-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 600px) {
    .jstn-gallery.jstn-gallery--single .jstn-gallery__item {
        aspect-ratio: 4 / 3;
    }
}
.glightbox-clean .gslide-media {
   
    background-color: #FFF;
}
