/* Homepage completion: type scale, mega menu, search suggestions and the new blocks. Loaded after app.css; uses the existing CSS variables. */

/* ---- Type scale (responsive via clamp): hero 38-48px, section headings 26-32px, product titles 15-17px, descriptions 14-16px, buttons 14-16px, labels >= 12px ---- */
.ip-hero-title { font-size: clamp(2.375rem, 1.7rem + 2.2vw, 3rem); line-height: 1.1; overflow-wrap: anywhere; }
.ip-hero-tag { font-size: clamp(1.0625rem, .95rem + .5vw, 1.25rem); line-height: 1.4; }
.ip-hero-text { font-size: clamp(.875rem, .85rem + .15vw, 1rem); }
.ip-hero-btn { font-size: clamp(.875rem, .85rem + .15vw, 1rem) !important; min-height: 44px; }
.ip-home h2, .ip-hp-h2 { font-size: clamp(1.625rem, 1.4rem + 1vw, 2rem); line-height: 1.2; overflow-wrap: anywhere; }
.ip-home .ip-pcard .ip-pname { font-size: clamp(.9375rem, .9rem + .15vw, 1.0625rem); }
.ip-home .ip-pcard .ip-pdesc { font-size: clamp(.875rem, .86rem + .1vw, 1rem); }
.ip-home .ip-cta-btn, .ip-hp-btn { font-size: clamp(.875rem, .86rem + .1vw, 1rem); min-height: 44px; }
.ip-home .ip-pcard .ip-pfrom, .ip-home .ip-pfrom { font-size: .75rem; }
.ip-hp-label { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ip-muted-foreground); }

/* ---- Mega menu ---- */
.ip-mega { padding: 1rem 1.25rem; }
@media (min-width: 992px) {
  .ip-mega { width: min(920px, 92vw); left: 50%; transform: translateX(-30%); }
  .ip-mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.5rem; }
}
.ip-mega-grid { display: grid; gap: .75rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.ip-mega-head { font-weight: 700; color: var(--ip-primary); display: block; padding: .35rem 0; min-height: 44px; display: flex; align-items: center; text-decoration: none; }
.ip-mega-list { list-style: none; margin: 0; padding: 0; }
.ip-mega-list a { display: flex; align-items: center; min-height: 36px; font-size: .9rem; color: var(--ip-foreground); text-decoration: none; padding: .1rem 0; }
.ip-mega-list a:hover, .ip-mega-head:hover { color: var(--ip-brand); text-decoration: underline; }
.ip-mega-foot { border-top: 1px solid var(--ip-border); margin-top: .75rem; padding-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.ip-mega-foot a { font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.ip-navbar .nav-link { min-height: 44px; display: flex; align-items: center; }

/* ---- Search suggestions ---- */
.ip-search { position: relative; }
.ip-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 280px; background: #fff; border: 1px solid var(--ip-border); border-radius: 12px; box-shadow: 0 10px 30px rgba(16,33,58,.14); z-index: 1050; padding: .35rem; max-height: 70vh; overflow: auto; }
.ip-suggest[hidden] { display: none; }
.ip-suggest a { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 44px; padding: .4rem .65rem; border-radius: 8px; color: var(--ip-foreground); text-decoration: none; font-size: .9rem; }
.ip-suggest a:hover, .ip-suggest a:focus, .ip-suggest a[aria-selected="true"] { background: var(--ip-muted, #eef2f7); }
.ip-suggest .ip-suggest-type { font-size: .75rem; color: var(--ip-muted-foreground); }
.ip-suggest .ip-suggest-empty { padding: .6rem .75rem; font-size: .875rem; color: var(--ip-muted-foreground); }

/* ---- How it works ---- */
.ip-step { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: inherit; height: 100%; padding: 1rem; }
.ip-step:hover { text-decoration: none; box-shadow: 0 6px 18px rgba(16,33,58,.10); }
.ip-step-n { font-size: .75rem; font-weight: 700; color: #2F7790; letter-spacing: .04em; }
.ip-step i { font-size: 1.5rem; color: var(--ip-brand); }
.ip-step-t { font-weight: 700; color: var(--ip-primary); font-size: 1rem; }
.ip-step-d { font-size: .875rem; color: var(--ip-muted-foreground); line-height: 1.4; }

/* ---- Showcase and industries ---- */
.ip-tile { display: flex; flex-direction: column; height: 100%; overflow: hidden; text-decoration: none; color: inherit; }
.ip-tile img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--ip-muted, #eef2f7); }
.ip-tile-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.ip-tile-t { font-weight: 700; color: var(--ip-primary); font-size: 1rem; }
.ip-tile-d { font-size: .875rem; color: var(--ip-muted-foreground); line-height: 1.45; }
.ip-tile-more { margin-top: auto; font-weight: 600; font-size: .875rem; min-height: 44px; display: inline-flex; align-items: center; }
.ip-tile-links { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .9rem; }
.ip-tile-links a { font-size: .875rem; min-height: 32px; display: inline-flex; align-items: center; }

/* ---- FAQ ---- */
.ip-faq .accordion-button { font-weight: 600; font-size: 1rem; min-height: 48px; color: var(--ip-primary); }
.ip-faq .accordion-body { font-size: .9375rem; line-height: 1.55; }

/* ---- Custom quote band ---- */
.ip-quote-band { background: var(--ip-primary); color: #fff; border-radius: 16px; padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.ip-quote-band h2 { color: #fff; margin: 0 0 .35rem; }
.ip-quote-band p { margin: 0; opacity: .92; max-width: 56ch; }
.ip-quote-band .btn { min-height: 44px; display: inline-flex; align-items: center; }

/* ---- Footer ---- */
.ip-footer a { display: inline-flex; align-items: center; min-height: 32px; }
.ip-footer-heading { font-size: .875rem; }

@media (max-width: 575.98px) {
  .ip-home, .ip-footer { overflow-x: clip; }
  .ip-quote-band { text-align: left; }
}

/* ---- Menu: keep each item on one line ---- */
.ip-navbar .nav-link { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1279.98px) {
  .ip-navbar .navbar-nav { gap: .5rem !important; }
  .ip-navbar .nav-link { font-size: .85rem; padding-left: .4rem; padding-right: .4rem; }
}

/* ---- Printing quality band: heading + CTA left, compact labelled tiles right ---- */
.ip-band { display: grid; grid-template-columns: minmax(240px, 1fr) 2.6fr; gap: 1.5rem; align-items: center; padding: 1.5rem; border-radius: 20px; background: linear-gradient(120deg, #eef4ff 0%, #f7f9ff 60%, #fff 100%); border: 1px solid var(--ip-border); }
.ip-band-h { font-weight: 800; color: var(--ip-primary); font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.15; margin: 0 0 .6rem; }
.ip-band-p { color: var(--ip-foreground); margin: 0 0 1.1rem; max-width: 30ch; }
.ip-band-btn { display: inline-flex; align-items: center; min-height: 44px; }
.ip-mini-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; }
.ip-mini { display: block; background: #fff; border: 1px solid var(--ip-border); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ip-primary); box-shadow: 0 2px 8px rgba(16,33,58,.06); transition: transform .15s, box-shadow .15s; }
.ip-mini:hover, .ip-mini:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16,33,58,.14); }
.ip-mini img { display: block; width: 100%; height: 96px; object-fit: cover; }
.ip-mini span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .25rem .4rem; font-weight: 700; font-size: .9rem; text-align: center; }
@media (max-width: 991.98px) { .ip-band { grid-template-columns: 1fr; } .ip-band-p { max-width: none; } .ip-mini-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .ip-mini-grid { grid-template-columns: repeat(2, 1fr); } .ip-mini img { height: 84px; } }

/* ---- Slim banner between sections ---- */
.ip-cta-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.5rem; border-radius: 16px; background: var(--ip-primary); color: #fff; }
.ip-cta-banner strong { display: block; font-size: 1.1rem; }
.ip-cta-banner span { display: block; opacity: .92; font-size: .95rem; }
.ip-cta-banner .btn-ip-outline { background: transparent; color: #fff; border-color: #fff; }
.ip-cta-banner .btn-ip-outline:hover { background: #fff; color: var(--ip-primary); }

/* ---- Industries: ruled heading + six compact cards ---- */
.ip-rule-head { text-align: center; margin-bottom: 1.5rem; }
.ip-rule-head h2 { display: flex; align-items: center; gap: 1.25rem; font-weight: 800; color: var(--ip-primary); font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin: 0 0 .35rem; }
.ip-rule-head h2::before, .ip-rule-head h2::after { content: ""; flex: 1; height: 1px; background: var(--ip-border); }
.ip-rule-head p { margin: 0; color: var(--ip-muted-foreground); }
.ip-ind-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.ip-ind { background: #fff; border: 1px solid var(--ip-border); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(16,33,58,.06); display: flex; flex-direction: column; }
.ip-ind img { display: block; width: 100%; height: 120px; object-fit: cover; }
.ip-ind-body { padding: .85rem .75rem 1rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .3rem; flex: 1; }
.ip-ind-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--ip-primary); margin: 0; }
.ip-ind-body p { font-size: .85rem; color: var(--ip-muted-foreground); margin: 0 0 .5rem; line-height: 1.35; }
.ip-ind-btn { margin-top: auto; display: inline-flex; align-items: center; min-height: 44px; padding: .35rem 1.1rem; font-size: .9rem; }
@media (max-width: 1199.98px) { .ip-ind-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .ip-ind-grid { grid-template-columns: repeat(2, 1fr); } .ip-ind img { height: 100px; } }
@media (prefers-reduced-motion: reduce) { .ip-mini { transition: none; } }

/* ---- Shop menu: category list on the left, sub-categories with thumbnails on the right ---- */
.ip-mega2 { display: grid; grid-template-columns: 230px 1fr; gap: 0; min-height: 300px; }
.ip-mega-left { list-style: none; margin: 0; padding: 0 .75rem 0 0; border-right: 1px solid var(--ip-border); }
.ip-mega-left a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: .4rem .75rem; margin-bottom: 2px; border-radius: 10px; color: var(--ip-foreground); text-decoration: none; font-weight: 600; font-size: .95rem; }
.ip-mega-left a .bi { font-size: .8rem; opacity: .6; }
.ip-mega-left a:hover, .ip-mega-left a:focus-visible, .ip-mega-left a.is-active { background: #eef4ff; color: var(--ip-brand); box-shadow: inset 0 -2px 0 var(--ip-brand); }
.ip-mega-right { padding-left: 1.5rem; min-width: 0; }
.ip-pane { display: none; }
.ip-pane.is-active { display: block; }
.ip-pane-title { display: inline-block; font-weight: 700; color: var(--ip-primary); text-decoration: none; margin-bottom: .6rem; }
.ip-pane-title:hover { text-decoration: underline; }
.ip-pane-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem 1rem; }
.ip-pane-grid a { display: block; text-decoration: none; color: var(--ip-foreground); font-size: .88rem; line-height: 1.25; }
.ip-pane-grid img, .ip-pane-ph { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; background: var(--ip-muted, #eef2f7); margin-bottom: .3rem; }
.ip-pane-grid a:hover span, .ip-pane-grid a:focus-visible span { color: var(--ip-brand); text-decoration: underline; }
@media (min-width: 992px) { .ip-mega { width: min(980px, 94vw); left: 50%; transform: translateX(-32%); } }
@media (max-width: 991.98px) {
  .ip-mega2 { grid-template-columns: 1fr; min-height: 0; }
  .ip-mega-left { border-right: 0; padding: 0; }
  .ip-mega-left a .bi { display: none; }
  .ip-mega-right { display: none; }
}
