/* ============================================================
   Healey Packaging — All Industries Page CSS
   File: assets/css/healey-industries.css
   Prefix: hi-
   ============================================================ */

/* ── Variables ───────────────────────────────────────────── */
:root {
    --hi-primary:   #5a9fe0;
    --hi-primary-h: #4a8fd0;
    --hi-navy:      #002f5f;
    --hi-dark:      #1f2937;
    --hi-muted:     #6b7280;
    --hi-light:     #f6f8fb;
    --hi-border:    #e5e7eb;
    --hi-white:     #ffffff;
    --hi-radius:    10px;
    --hi-shadow:    0 2px 12px rgba(0,0,0,.07);
    --hi-shadow-h:  0 6px 28px rgba(0,0,0,.12);
}
*, *::before, *::after { box-sizing: border-box; }

/* ── Button base ─────────────────────────────────────────── */
.hi-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .15s;
    white-space: nowrap;
}
.hi-btn:hover { transform: translateY(-1px); }
.hi-btn-primary { background: var(--hi-primary); color: var(--hi-white); border-color: var(--hi-primary); }
.hi-btn-primary:hover { background: var(--hi-primary-h); border-color: var(--hi-primary-h); }
.hi-btn-outline { background: transparent; color: var(--hi-dark); border-color: var(--hi-border); }
.hi-btn-outline:hover { border-color: var(--hi-primary); color: var(--hi-primary); }

/* ── Section title (shared) ──────────────────────────────── */
.hi-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--hi-dark);
    margin: 0 0 28px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--hi-primary);
    display: inline-block;
}

/* ── Global wrapper ──────────────────────────────────────── */
.hi-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   HERO
   ============================================================ */
.hi-hero {
    background: linear-gradient(135deg, #dcecfa 0%, #e9f2fb 100%);
    padding: 52px 24px 0;
    position: relative;
    overflow: hidden;
}
.hi-hero::before {
    content: '';
    position: absolute;
    right: -80px; top: -80px;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: rgba(90,159,224,.07);
    pointer-events: none;
}
.hi-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-bottom: 20px;
}

/* Breadcrumb */
.hi-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    color: var(--hi-muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.hi-breadcrumb a { color: var(--hi-muted); text-decoration: none; transition: color .2s; }
.hi-breadcrumb a:hover { color: var(--hi-primary); }
.hi-breadcrumb span:last-child { color: var(--hi-dark); font-weight: 600; }

/* Hero heading */
.hi-hero-heading {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900;
    color: var(--hi-dark);
    margin: 0 0 14px;
    line-height: 1.1;
}
.hi-accent { color: var(--hi-primary); }
.hi-hero-lead {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--hi-dark);
    margin: 0 0 10px;
    line-height: 1.5;
}
.hi-hero-sub {
    font-size: .92rem;
    color: var(--hi-muted);
    line-height: 1.65;
    margin: 0 0 26px;
    max-width: 480px;
}
.hi-hero-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Hero image */
.hi-hero-img {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.hi-hero-img img {
    max-width: 100%;
    max-height: 340px;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 12px 28px rgba(90,159,224,.2));
}
.hi-hero-decor { position: absolute; inset: 0; pointer-events: none; }
.hi-dbox {
    position: absolute;
    border-radius: 7px;
    border: 2px solid rgba(90,159,224,.22);
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(2px);
}
.hi-dbox-1 { width: 130px; height: 110px; right: 10%;  bottom: 15%; transform: rotate(-7deg); }
.hi-dbox-2 { width: 100px; height:  90px; right: 28%;  bottom: 10%; transform: rotate(4deg);  background: rgba(255,255,255,.7); }
.hi-dbox-3 { width:  80px; height:  72px; right: 5%;   top: 20%;    transform: rotate(9deg); }
.hi-dbox-4 { width:  55px; height:  50px; right: 38%;  top: 12%;    transform: rotate(-4deg); background: rgba(220,236,250,.8); }

/* Hero search bar */
.hi-hero-search-wrap { max-width: 1200px; margin: 28px auto 0; padding: 0; }
.hi-search-form {
    background: var(--hi-white);
    border: 1.5px solid var(--hi-border);
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(90,159,224,.13);
    display: flex;
    align-items: center;
    overflow: hidden;
    max-width: 660px;
}
.hi-search-inner { flex: 1; display: flex; align-items: center; padding: 0 16px; gap: 10px; }
.hi-search-icon { color: var(--hi-muted); flex-shrink: 0; }
.hi-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: .96rem;
    color: var(--hi-dark);
    background: transparent;
    padding: 15px 0;
    min-width: 0;
}

/* ============================================================
   FILTER BAR  (simplified: just "All" + live count)
   ============================================================ */
.hi-filter-bar-wrap {
    background: var(--hi-white);
    border-bottom: 1px solid var(--hi-border);
    padding: 14px 24px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.hi-filter-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.hi-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--hi-primary);
    background: var(--hi-primary);
    color: var(--hi-white);
    font-size: .85rem;
    font-weight: 700;
    cursor: default;
    white-space: nowrap;
}
.hi-filter-count {
    background: rgba(255,255,255,.3);
    padding: 1px 7px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
}
.hi-filter-sep {
    width: 1px;
    height: 20px;
    background: var(--hi-border);
    flex-shrink: 0;
}
.hi-filter-hint {
    font-size: .82rem;
    color: var(--hi-muted);
    margin: 0;
}
.hi-filter-hint strong { color: var(--hi-dark); }

/* ============================================================
   EMPTY STATE  (WooCommerce not active or no categories)
   ============================================================ */
.hi-empty-state {
    padding: 64px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.hi-empty-state svg { color: #c6ddf5; }
.hi-empty-state h2 { font-size: 1.3rem; font-weight: 700; color: var(--hi-dark); margin: 0; }
.hi-empty-state p  { color: var(--hi-muted); margin: 0 0 8px; max-width: 380px; }

/* ============================================================
   INDUSTRY CARDS GRID
   ============================================================ */
.hi-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    padding: 36px 0 56px;
    align-items: stretch;
}
.hi-card {
    background: var(--hi-white);
    border: 1px solid var(--hi-border);
    border-radius: var(--hi-radius);
    overflow: hidden;
    box-shadow: var(--hi-shadow);
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s, transform .25s;
    animation: hi-fade-in .3s ease both;
}
.hi-card:hover { box-shadow: var(--hi-shadow-h); transform: translateY(-3px); }
.hi-card.hi-hidden { display: none; }

@keyframes hi-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Card image */
.hi-card-img-link { display: block; text-decoration: none; }
.hi-card-img {
    height: 200px;
    background: var(--hi-light);
    border-bottom: 1px solid var(--hi-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: background .3s;
    position: relative;
}
.hi-card:hover .hi-card-img { background: #edf4fc; }
.hi-card-img img {
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform .4s;
}
.hi-card:hover .hi-card-img img { transform: scale(1.05); }

/* ── Image placeholder: clean gradient + box icon, NO letter ── */
.hi-card-img--ph {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dcecfa 0%, #e9f2fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(90,159,224,.5);
}
/* Also cover the inline added class when onerror fires */
.hi-card-img.hi-card-img--ph {
    background: linear-gradient(135deg, #dcecfa 0%, #e9f2fb 100%);
}

/* Card body */
.hi-card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
/* Product count badge */
.hi-product-count {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(90,159,224,.1);
    color: var(--hi-primary);
    font-size: .71rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 7px;
    align-self: flex-start;
}
.hi-card-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--hi-dark);
    margin: 0 0 8px;
    line-height: 1.3;
}
.hi-card-title a { color: inherit; text-decoration: none; transition: color .2s; }
.hi-card-title a:hover { color: var(--hi-primary); }
.hi-card-desc {
    font-size: .82rem;
    color: var(--hi-muted);
    line-height: 1.55;
    flex: 1;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hi-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border: 1.5px solid var(--hi-primary);
    border-radius: 7px;
    color: var(--hi-primary);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
    margin-top: auto;
    align-self: flex-start;
}
.hi-card-btn:hover { background: var(--hi-primary); color: var(--hi-white); }

/* No-results */
.hi-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    color: var(--hi-muted);
    font-size: 1rem;
}
.hi-no-results a { color: var(--hi-primary); font-weight: 700; text-decoration: none; }
.hi-no-results a:hover { text-decoration: underline; }

/* ============================================================
   PAGE EDITOR CONTENT SECTION
   Only rendered when the WP page editor has content.
   ============================================================ */
.hi-page-content-wrap {
    padding: 48px 0;
    border-top: 1px solid var(--hi-border);
}
.hi-page-content {
    max-width: 820px;
    color: var(--hi-dark);
    line-height: 1.7;
    font-size: .96rem;
}
.hi-page-content h2 { font-size: 1.35rem; font-weight: 800; color: var(--hi-dark); margin: 0 0 12px; }
.hi-page-content h3 { font-size: 1.1rem;  font-weight: 700; color: var(--hi-dark); margin: 24px 0 10px; }
.hi-page-content p  { margin: 0 0 16px; }
.hi-page-content ul,
.hi-page-content ol { margin: 0 0 16px; padding-left: 24px; }
.hi-page-content li { margin-bottom: 6px; }
.hi-page-content a  { color: var(--hi-primary); }
.hi-page-content a:hover { text-decoration: underline; }

/* ============================================================
   FAQ ACCORDION
   Only rendered when FAQ data exists in backend.
   ============================================================ */
.hi-faq-section {
    background: var(--hi-light);
    padding: 56px 24px;
    border-top: 1px solid var(--hi-border);
}
.hi-faq-list {
    max-width: 820px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--hi-border);
    border-radius: var(--hi-radius);
    overflow: hidden;
    background: var(--hi-white);
}
.hi-faq-item { border-bottom: 1px solid var(--hi-border); }
.hi-faq-item:last-child { border-bottom: none; }
.hi-faq-q {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    font-size: .95rem;
    font-weight: 700;
    color: var(--hi-dark);
    cursor: pointer;
    transition: background .15s, color .15s;
}
.hi-faq-q:hover { background: #f0f7ff; color: var(--hi-primary); }
.hi-faq-q[aria-expanded="true"] { color: var(--hi-primary); background: #f0f7ff; }
.hi-faq-icon {
    display: flex;
    flex-shrink: 0;
    transition: transform .25s;
    color: var(--hi-primary);
}
.hi-faq-q[aria-expanded="true"] .hi-faq-icon { transform: rotate(180deg); }
.hi-faq-a {
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease, padding .3s ease;
}
.hi-faq-a:not([hidden]) { max-height: 600px; }
.hi-faq-a[hidden] { display: block !important; max-height: 0; padding: 0; }
.hi-faq-a-inner {
    padding: 0 20px 18px;
    font-size: .9rem;
    color: var(--hi-muted);
    line-height: 1.7;
}
.hi-faq-a-inner p { margin: 0 0 10px; }
.hi-faq-a-inner p:last-child { margin: 0; }

/* ============================================================
   BENEFITS STRIP
   ============================================================ */
.hi-benefits-strip {
    background: var(--hi-white);
    border-top: 1px solid var(--hi-border);
    border-bottom: 1px solid var(--hi-border);
    padding: 32px 24px;
}
.hi-benefits-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.hi-benefit-item {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 160px;
    min-width: 140px;
}
.hi-benefit-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(90,159,224,.1);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--hi-primary);
}
.hi-benefit-text { display: flex; flex-direction: column; gap: 3px; }
.hi-benefit-text strong { font-size: .88rem; font-weight: 700; color: var(--hi-dark); display: block; }
.hi-benefit-text span   { font-size: .78rem; color: var(--hi-muted); display: block; line-height: 1.4; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.hi-cta-section { background: var(--hi-light); padding: 48px 24px; }
.hi-cta-box {
    background: linear-gradient(135deg, #dcecfa 0%, #e9f2fb 100%);
    border: 1px solid rgba(90,159,224,.2);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(90,159,224,.12);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    overflow: hidden;
    min-height: 170px;
    position: relative;
}
.hi-cta-text { padding: 40px 44px; position: relative; z-index: 1; }
.hi-cta-text h2 { font-size: 1.5rem; font-weight: 800; color: var(--hi-dark); margin: 0 0 10px; line-height: 1.25; }
.hi-cta-text p  { font-size: .95rem; color: var(--hi-muted); margin: 0 0 22px; line-height: 1.6; max-width: 460px; }
.hi-cta-img {
    width: 280px; min-height: 170px;
    position: relative;
    display: flex; align-items: flex-end; justify-content: center;
    overflow: hidden; flex-shrink: 0;
}
.hi-cta-img img { max-width: 100%; max-height: 210px; object-fit: contain; display: block; position: relative; z-index: 1; }
.hi-cta-decor { position: absolute; inset: 0; pointer-events: none; }
.hi-cb { position: absolute; border-radius: 5px; border: 2px solid rgba(90,159,224,.2); background: rgba(255,255,255,.4); }
.hi-cb-1 { width: 70px; height: 62px; right: 15px; bottom: 18px; transform: rotate(-5deg); }
.hi-cb-2 { width: 50px; height: 44px; right: 55px; bottom: 35px; transform: rotate( 4deg); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .hi-cards-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
    .hi-hero-inner { grid-template-columns: 1fr; gap: 24px; }
    .hi-hero-img { display: none; }
    .hi-hero { padding-bottom: 0; }
    .hi-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .hi-cta-box { grid-template-columns: 1fr; }
    .hi-cta-img { display: none; }
    .hi-benefits-row { gap: 14px; }
    .hi-benefit-item { flex: 1 1 140px; }
    .hi-faq-list { max-width: 100%; }
}
@media (max-width: 680px) {
    .hi-hero { padding: 36px 18px 0; }
    .hi-hero-heading { font-size: 2rem; }
    .hi-hero-btns { flex-direction: column; align-items: flex-start; }
    .hi-hero-btns .hi-btn { width: 100%; justify-content: center; }
    .hi-hero-search-wrap { margin-top: 20px; }
    .hi-filter-bar-wrap { padding: 12px 16px; }
    .hi-cards-grid { grid-template-columns: 1fr; gap: 16px; padding: 24px 0 36px; }
    .hi-benefits-row { flex-direction: column; gap: 18px; }
    .hi-cta-text { padding: 28px 22px; }
    .hi-cta-text h2 { font-size: 1.2rem; }
    .hi-cta-text .hi-btn { width: 100%; justify-content: center; }
    .hi-faq-q { font-size: .88rem; padding: 15px 16px; }
    .hi-page-content-wrap { padding: 32px 0; }
}
@media (max-width: 420px) {
    .hi-card-img { height: 170px; }
}
/* FAQ */
.hpai-faq{
  padding:26px 0 0;
}
.hpai-faq-inner{
  max-width:900px;
  margin:0 auto;
  background:#fff;
  border:1px solid #dbe7f7;
  border-radius:14px;
  padding:18px 20px 20px;
  box-shadow:0 6px 20px rgba(91,161,227,.10);
}
.hpai-faq-inner h2{
  margin:0 0 10px;
  font-size:22px;
  color:#5ba1e3;
  text-align:left;
}
.hpai-faq-inner details{
  border:1px solid #dbe7f7;
  border-radius:10px;
  padding:10px 12px;
  margin:8px 0;
  background:linear-gradient(180deg,#f7fbff,#ffffff);
}
.hpai-faq-inner summary{
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  font-weight:700;
  color:#1f3447;
  list-style:none;
}
.hpai-faq-inner summary::-webkit-details-marker{
  display:none;
}
.hpai-faq-inner .caret{
  width:18px;
  height:18px;
  border-radius:4px;
  background:#5ba1e3;
  position:relative;
  flex:0 0 18px;
}
.hpai-faq-inner .caret::before{
  content:"+";
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:900;
  font-size:13px;
}
.hpai-faq-inner details[open] .caret::before{
  content:"–";
}
.hpai-faq-inner p{
  margin:8px 0 0;
  font-size:14px;
  color:#3b4b61;
}

/* Responsive */
@media (max-width:900px){
  .hpai-hero{
    padding:60px 6%;
  }
  .hpai-hero h1{
    font-size:32px;
  }
  .hpai-main{
    padding:40px 6% 50px;
  }
  .hpai-offer-inner{
    grid-template-columns:1fr;
    text-align:left;
  }
  .hpai-offer-inner .btn{
    justify-self:flex-start;
  }
}
@media (max-width:600px){
  .hpai-trust-inner ul{
    flex-direction:column;
  }
  .hpai-cats .grid{
    grid-template-columns:1fr;
  }
  .hpai-hero p{
    font-size:15px;
  }
}
/* FAQ Section Width Fix */
section.hpai-faq .hpai-faq-inner {
    width: 100% !important;
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
}
/* Final Card Image Fix - No Gaps, Full Fill */
.hi-card .hi-card-img {
    height: 250px !important;
    width: 100% !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
}

.hi-card .hi-card-img img {
    width: 100% !important;
    height: 100% !important; /* Force image to fill 250px */
    max-height: none !important; /* Purani kisi bhi limit ko khatam karne ke liye */
    object-fit: cover !important;
    display: block !important;
}
