/*
 * Taxonomy: product_cat (Industry Pages) – Template Styles
 * Loaded only on product_cat taxonomy pages.
 * @package KadenceChild
 */

/* ═══════════════════════════════════════════════════════
   Kadence inherits fonts / colours / .container.
   ═══════════════════════════════════════════════════════ */

.ind-wrap * { box-sizing: border-box; }

/* ── Placeholder style — visible on frontend when field is empty ── */
.ind-placeholder {
    opacity: 0.45;
    font-style: italic;
}
.ind-placeholder-block {
    border: 2px dashed var(--global-palette6, #d0d0cc);
    border-radius: 12px;
    padding: 24px 28px;
    background: var(--global-palette7, #f5f5f3);
    color: var(--global-palette5, #888);
    font-style: italic;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0;
}
.ind-placeholder-block strong { color: var(--global-palette1, #c8102e); font-style: normal; }

/* ── Sections ── */
.ind-section       { padding: 64px 0; position: relative; }
.ind-section--grey { background: var(--global-palette7, #f5f5f3); }

/* ── Section titles ── */
.ind-sec-title {
    font-family: var(--global-heading-font-family, inherit);
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800; letter-spacing: -0.02em;
    text-align: center; margin: 0 0 8px;
    color: var(--global-palette3, #111);
}
.ind-signage__title {
    font-family: var(--global-heading-font-family, inherit);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800; letter-spacing: -0.02em;
    text-align: center; margin: 0 0 8px;
    color: var(--global-palette3, #111);
}
.ind-title-arch { display: block; margin: 0 auto 36px; overflow: visible; }

/* ── Subsection divider ── */
.ind-subsection-divider {
    display: flex; align-items: center; gap: 16px; margin: 40px 0 36px;
}
.ind-subsection-divider span {
    font-family: var(--global-body-font-family, inherit);
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--global-palette5, #888); white-space: nowrap;
}
.ind-subsection-divider::before,
.ind-subsection-divider::after { content: ''; flex: 1; height: 1px; background: var(--global-palette6, #e0e0dd); }

/* ════════════
   HERO
   ════════════ */
.ind-hero {
    position: relative; min-height: 420px;
    display: flex; align-items: flex-end;
    background: var(--global-palette3, #111); overflow: visible;
}
.ind-hero__bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center; opacity: 0.50;
}
.ind-hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 220px;
    background: linear-gradient(to top, rgba(200,16,46,0.22), transparent);
    z-index: 2; pointer-events: none;
}
.ind-hero__body {
    position: relative; z-index: 4; width: 100%;
    max-width: var(--global-content-width, 1200px); margin: 0 auto;
    padding: 40px var(--global-content-edge-padding, 40px) 88px;
}
.ind-hero__breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--global-body-font-family, inherit);
    font-size: 12px; color: rgba(255,255,255,0.55);
    flex-wrap: wrap; margin-bottom: 20px;
}
.ind-hero__breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.ind-hero__breadcrumb a:hover { color: rgba(255,255,255,0.9); }
.ind-hero__breadcrumb__sep { opacity: 0.4; font-size: 10px; }
.ind-hero__breadcrumb__current { color: rgba(255,255,255,0.85); font-weight: 600; }
.ind-hero__title {
    font-family: var(--global-heading-font-family, inherit);
    font-size: clamp(36px, 5.5vw, 64px); font-weight: 800;
    text-transform: uppercase; letter-spacing: -0.01em;
    color: #fff; margin: 0 0 4px; line-height: 1.0; max-width: 720px;
}
.ind-hero__title-arch { display: block; margin: 0 0 20px; overflow: visible; }
.ind-hero__desc {
    font-family: var(--global-body-font-family, inherit);
    font-size: 16px; font-weight: 300; color: rgba(255,255,255,0.82);
    margin: 0 0 28px; max-width: 560px; line-height: 1.65;
}
/* Button inherits .kb-button / .kt-button from Kadence — no extra styles needed */
.ind-hero__arc { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 3; line-height: 0; }
.ind-hero__arc svg { display: block; width: 100%; }

/* ════════════════
   FEATURE BOXES
   ════════════════ */
.ind-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; }
.ind-feature { text-align: center; padding: 32px 24px; position: relative; }
.ind-feature + .ind-feature::before {
    content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
    width: 1px; background: var(--global-palette6, #e5e5e2);
}
.ind-feature__arch-frame {
    position: relative; width: 80px; height: 80px;
    margin: 0 auto 20px; display: flex; align-items: center; justify-content: center;
}
.ind-feature__arch-frame::before {
    content: ''; position: absolute; inset: 0;
    border: 2.5px solid var(--global-palette1, #c8102e);
    border-radius: 20px; opacity: 0.18; transition: opacity 0.25s;
}
.ind-feature:hover .ind-feature__arch-frame::before { opacity: 0.50; }
.ind-feature__arch-frame::after {
    content: ''; position: absolute; bottom: -7px; left: 50%;
    transform: translateX(-50%); width: 20px; height: 3px;
    background: var(--global-palette1, #c8102e); border-radius: 0 0 10px 10px;
    opacity: 0; transition: opacity 0.25s, width 0.25s;
}
.ind-feature:hover .ind-feature__arch-frame::after { opacity: 1; width: 44px; }
.ind-feature__icon { width: 44px; height: 44px; object-fit: contain; display: block; position: relative; z-index: 1; }
.ind-feature__title {
    font-family: var(--global-heading-font-family, inherit);
    font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
    color: var(--global-palette3, #111); margin: 0 0 10px;
}
.ind-feature__desc {
    font-family: var(--global-body-font-family, inherit);
    font-size: 13.5px; color: var(--global-palette5, #6b6b68); line-height: 1.65; margin: 0;
}

/* ════════════════
   BRIEF / INTRO
   ════════════════ */
.ind-brief { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.ind-brief__label {
    display: inline-block;
    font-family: var(--global-heading-font-family, inherit);
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em;
    color: var(--global-palette1, #c8102e); margin-bottom: 14px;
}
.ind-brief__heading {
    font-family: var(--global-heading-font-family, inherit);
    font-size: clamp(22px, 3vw, 34px); font-weight: 800;
    letter-spacing: -0.02em; line-height: 1.15;
    color: var(--global-palette3, #111); margin: 0 0 20px;
}
.ind-brief__body {
    font-family: var(--global-body-font-family, inherit);
    font-size: 15px; color: var(--global-palette4, #444); line-height: 1.8;
}
.ind-brief__body p { margin: 0 0 16px; }
.ind-brief__body p:last-child { margin: 0; }
.ind-brief__visual { position: relative; }
.ind-brief__img-wrap {
    position: relative; border-radius: 20px 20px 0 0; overflow: hidden; aspect-ratio: 4/3;
    background: var(--global-palette6, #ddd);
}
.ind-brief__img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.ind-brief__img-wrap::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--global-palette1, #c8102e); border-radius: 20px 20px 0 0;
    opacity: 0; transition: opacity 0.3s;
}
.ind-brief__img-wrap:hover::after { opacity: 1; }
.ind-brief__img-placeholder {
    width: 100%; height: 100%; min-height: 200px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    background: var(--global-palette7, #f0f0ec);
}
.ind-brief__img-placeholder svg { opacity: 0.25; }
.ind-brief__img-placeholder span { font-size: 13px; color: var(--global-palette5, #888); font-style: italic; }
.ind-brief__badge {
    position: absolute; bottom: 16px; left: 16px;
    background: var(--global-palette1, #c8102e); color: #fff; border-radius: 12px;
    padding: 8px 16px;
    font-family: var(--global-heading-font-family, inherit);
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
}
/* Stats bar */
.ind-brief__stats {
    display: flex; gap: 0;
    border: 1px solid var(--global-palette6, #e5e5e2);
    border-top: none; border-radius: 0 0 20px 20px; overflow: hidden;
}
.ind-brief__stat {
    flex: 1; text-align: center; padding: 20px 12px 18px;
    border-right: 1px solid var(--global-palette6, #e5e5e2);
    background: var(--global-palette8, #fff); position: relative;
}
.ind-brief__stat:last-child { border-right: none; }
.ind-brief__stat::before {
    content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 2px;
    background: var(--global-palette1, #c8102e); opacity: 0.25;
}
.ind-brief__stat-num {
    font-family: var(--global-heading-font-family, inherit);
    font-size: 36px; font-weight: 800; line-height: 1;
    color: var(--global-palette1, #c8102e); display: block;
}
.ind-brief__stat-label {
    display: inline-block; margin-top: 6px;
    font-family: var(--global-body-font-family, inherit);
    font-size: 10px; font-weight: 600; color: var(--global-palette5, #888);
    text-transform: uppercase; letter-spacing: 0.08em;
    background: var(--global-palette7, #f5f5f3);
    padding: 3px 10px; border-radius: 20px;
}

/* ════════════════
   SWIPER SLIDERS
   ════════════════ */
.ind-swiper-wrap { margin-bottom: 0; }
.ind-swiper { width: 100%; }
.ind-swiper .swiper-slide {
    aspect-ratio: 4/3; overflow: hidden;
    background: var(--global-palette6, #e5e5e2); border-radius: 20px;
}
.ind-swiper .swiper-slide a   { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.ind-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; border-radius: 20px; }
.ind-swiper .swiper-slide:hover img { transform: scale(1.04); }
.ind-swiper .swiper-pagination-bullet        { background: var(--global-palette6, #e5e5e2); opacity: 1; }
.ind-swiper .swiper-pagination-bullet-active { background: var(--global-palette1, #c8102e); }
.ind-swiper .swiper-button-next,
.ind-swiper .swiper-button-prev              { color: #fff; }
.ind-swiper .swiper-button-next::after,
.ind-swiper .swiper-button-prev::after       { font-size: 16px; font-weight: 800; }

/* ════════════════
   INFO BOXES
   ════════════════ */
.ind-infoboxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.ind-infobox {
    background: var(--global-palette8, #fff);
    border: 1px solid var(--global-palette6, #e5e5e2);
    border-radius: 20px; overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
}
.ind-infobox:hover { box-shadow: 0 8px 28px rgba(0,0,0,.10); transform: translateY(-4px); }
.ind-infobox__img-wrap { position: relative; overflow: hidden; border-radius: 20px 20px 0 0; }
.ind-infobox__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.ind-infobox__img-wrap::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--global-palette1, #c8102e); border-radius: 20px 20px 0 0;
    opacity: 0; transition: opacity 0.3s;
}
.ind-infobox:hover .ind-infobox__img-wrap::after { opacity: 1; }
.ind-infobox__body  { padding: 14px 16px 20px; }
.ind-infobox__title {
    font-family: var(--global-heading-font-family, inherit);
    font-size: 14px; font-weight: 700; letter-spacing: -0.01em;
    color: var(--global-palette3, #111); margin: 0 0 8px;
}
.ind-infobox__desc { font-size: 13px; color: var(--global-palette5, #6b6b68); line-height: 1.6; margin: 0; }
.ind-infobox__desc p { margin: 0 0 6px; }
.ind-infobox__desc p:last-child { margin: 0; }

/* ════════════════
   PRODUCTS
   ════════════════ */
.ind-products-header { text-align: center; margin-bottom: 44px; }
.ind-products-header__title {
    font-family: var(--global-heading-font-family, inherit);
    font-size: clamp(24px, 3.5vw, 38px); font-weight: 800; letter-spacing: -0.01em;
    color: var(--global-palette3, #111); margin: 0 0 8px;
}
.ind-products-header__desc {
    font-family: var(--global-body-font-family, inherit);
    font-size: 15px; color: var(--global-palette5, #6b6b68);
    max-width: 680px; margin: 0 auto; line-height: 1.65;
}
.ind-products-swiper-wrap {
    padding-bottom: 44px; overflow: hidden;
    padding-left: 4px; padding-right: 4px;
    margin-left: -4px; margin-right: -4px;
}
.ind-products-swiper              { overflow: visible !important; }
.ind-products-swiper .swiper-wrapper { align-items: stretch; }
.ind-products-swiper .swiper-slide   { height: auto; }
.ind-products-pagination            { bottom: -36px !important; left: 0 !important; width: 100% !important; text-align: center; }
.ind-products-pagination .swiper-pagination-bullet        { background: var(--global-palette6, #e5e5e2); opacity: 1; width: 10px; height: 4px; border-radius: 2px; }
.ind-products-pagination .swiper-pagination-bullet-active { background: var(--global-palette1, #c8102e); width: 24px; }
.ind-product-card {
    text-decoration: none; color: var(--global-palette4, #111);
    background: var(--global-palette8, #fff); border-radius: 20px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    display: flex; flex-direction: column; height: 100%;
    transition: box-shadow 0.28s, transform 0.28s; overflow: hidden; position: relative;
}
.ind-product-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--global-palette1, #c8102e); border-radius: 20px 20px 0 0;
    transform: scaleX(0); transform-origin: center; transition: transform 0.3s ease;
}
.ind-product-card:hover::before { transform: scaleX(1); }
.ind-product-card:hover { box-shadow: 0 10px 32px rgba(0,0,0,0.14); transform: translateY(-5px); }
.ind-product-card__img-wrap { overflow: hidden; flex-shrink: 0; border-radius: 20px 20px 0 0; }
.ind-product-card__img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.ind-product-card:hover .ind-product-card__img { transform: scale(1.04); }
.ind-product-card__no-img {
    width: 100%; height: 200px; background: var(--global-palette7, #f5f5f3);
    display: flex; align-items: center; justify-content: center; border-radius: 20px 20px 0 0;
}
.ind-product-card__body  { padding: 16px 18px 0; display: flex; flex-direction: column; flex: 1; }
.ind-product-card__name  {
    font-family: var(--global-body-font-family, inherit);
    font-size: 14px; font-weight: 700; color: var(--global-palette3, #111);
    margin: 0 0 8px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ind-product-card__price { font-size: 15px; font-weight: 500; color: var(--global-palette3, #111); margin: 0 0 12px; }
.ind-product-card__price .woocommerce-Price-amount,
.ind-product-card__price bdi { color: var(--global-palette3, #111); }
.ind-product-card__footer {
    margin-top: auto; border-top: 1px solid var(--global-palette6, #e5e5e2);
    padding: 12px 18px; text-align: center;
}
.ind-product-card__cta {
    display: block; font-family: var(--global-body-font-family, inherit);
    font-size: 12px; font-weight: 600; color: var(--global-palette5, #6b6b68);
    letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.2s;
}
.ind-product-card:hover .ind-product-card__cta { color: var(--global-palette1, #c8102e); }

/* ════════════════
   FAQ
   ════════════════ */
.ind-faq { max-width: 100%; margin: 0; }
.ind-faq__item {
    border: 1px solid var(--global-palette6, #e5e5e2);
    border-radius: 20px; margin-bottom: 12px;
    overflow: hidden; transition: box-shadow 0.3s;
}
.ind-faq__item.is-open { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.ind-faq__item--placeholder { border-style: dashed; opacity: 0.6; }
.ind-faq__question {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px; cursor: pointer;
    font-family: var(--global-heading-font-family, inherit);
    font-size: 16px; font-weight: 700; letter-spacing: -0.01em;
    color: var(--global-palette3, #111);
    background: var(--global-palette8, #fff);
    border: none; width: 100%; text-align: left;
    transition: color 0.2s;
}
.ind-faq__question:hover { color: var(--global-palette1, #c8102e); }
.ind-faq__icon {
    flex-shrink: 0; width: 28px; height: 28px;
    border: 1.5px solid var(--global-palette6, #e5e5e2); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--global-palette5, #888);
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.3s;
}
.ind-faq__item.is-open .ind-faq__icon {
    background: var(--global-palette1, #c8102e);
    border-color: var(--global-palette1, #c8102e);
    color: #fff; transform: rotate(45deg);
}
.ind-faq__answer-wrap {
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}
.ind-faq__item.is-open .ind-faq__answer-wrap { grid-template-rows: 1fr; }
.ind-faq__answer-inner { overflow: hidden; }
.ind-faq__answer {
    padding: 0 24px 20px;
    font-family: var(--global-body-font-family, inherit);
    font-size: 15px; color: var(--global-palette5, #6b6b68); line-height: 1.75;
    background: var(--global-palette8, #fff);
}
.ind-faq__answer p { margin: 0 0 12px; }
.ind-faq__answer p:last-child { margin: 0; }

/* ════════════════
   OTHER INDUSTRIES SLIDER
   ════════════════ */
.ind-related-swiper-wrap {
    padding-bottom: 44px; overflow: hidden;
    padding-left: 4px; padding-right: 4px;
    margin-left: -4px; margin-right: -4px;
}
.ind-related-swiper              { overflow: visible !important; }
.ind-related-swiper .swiper-wrapper { align-items: stretch; }
.ind-related-swiper .swiper-slide   { height: auto; }
.ind-related-pagination            { bottom: -36px !important; left: 0 !important; width: 100% !important; text-align: center; }
.ind-related-pagination .swiper-pagination-bullet        { background: var(--global-palette6, #e5e5e2); opacity: 1; width: 10px; height: 4px; border-radius: 2px; }
.ind-related-pagination .swiper-pagination-bullet-active { background: var(--global-palette1, #c8102e); width: 24px; }
.ind-related__card {
    display: flex; flex-direction: column;
    background: var(--global-palette8, #fff);
    border: 1px solid var(--global-palette6, #e5e5e2);
    border-radius: 20px; overflow: hidden;
    text-decoration: none; color: var(--global-palette3, #111);
    height: 100%;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.ind-related__card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.10); transform: translateY(-4px);
    border-color: var(--global-palette1, #c8102e);
}
.ind-related__img-wrap {
    position: relative; overflow: hidden;
    height: 200px; flex-shrink: 0;
    background: var(--global-palette3, #111);
}
.ind-related__img {
    width: 100%; height: 100% !important; object-fit: cover; object-position: center;
    display: block; transition: transform 0.4s ease;
}
.ind-related__card:hover .ind-related__img { transform: scale(1.05); }
.ind-related__img-wrap::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--global-palette1, #c8102e);
    opacity: 0; transition: opacity 0.25s;
}
.ind-related__card:hover .ind-related__img-wrap::after { opacity: 1; }
.ind-related__placeholder {
    width: 100%; height: 100% !important;
    display: flex; align-items: center; justify-content: center;
    background: var(--global-palette3, #1a1a1a);
}
.ind-related__placeholder svg { width: 28px; height: 28px; stroke: rgba(255,255,255,0.2); }
.ind-related__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.ind-related__name {
    font-family: var(--global-heading-font-family, inherit);
    font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
    color: var(--global-palette3, #111); margin: 0 0 8px; line-height: 1.35;
}
.ind-related__desc {
    font-family: var(--global-body-font-family, inherit);
    font-size: 13px; color: var(--global-palette5, #888);
    line-height: 1.6; margin: 0; flex: 1;
}
.ind-related__cta {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 16px; align-self: flex-start;
    font-family: var(--global-heading-font-family, inherit);
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--global-palette1, #c8102e);
    transition: gap 0.2s;
}
.ind-related__cta-arrow { transition: transform 0.2s; }
.ind-related__card:hover .ind-related__cta { gap: 10px; }
.ind-related__card:hover .ind-related__cta-arrow { transform: translateX(2px); }

/* ════════════════
   GALLERY CTA
   ════════════════ */
.ind-gallery-cta { text-align: center; margin-top: 36px; }
.ind-gallery-cta a {
    display: inline-flex; align-items: center; gap: 8px;
    border: 2px solid var(--global-palette1, #c8102e);
    color: var(--global-palette1, #c8102e);
    font-family: var(--global-heading-font-family, inherit);
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.10em;
    padding: 12px 32px; text-decoration: none; border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}
.ind-gallery-cta a::after { content: '→'; }
.ind-gallery-cta a:hover  { background: var(--global-palette1, #c8102e); color: #fff; }

/* ── Empty / no content ── */
.ind-empty {
    text-align: center; padding: 40px; color: var(--global-palette5, #6b6b68);
    font-style: italic; border: 1px dashed var(--global-palette6, #e5e5e2); border-radius: 20px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .ind-section { padding: 48px 0; }
    .ind-feature + .ind-feature::before { display: none; }
    .ind-brief { grid-template-columns: 1fr; gap: 36px; }
    .ind-brief__visual { order: -1; }
}
@media (max-width: 600px) {
    .ind-hero       { min-height: 300px; }
    .ind-hero__body { padding: 32px var(--global-content-edge-padding, 20px) 80px; }
}
