/*
 * AdvancedHMI custom styling layer for ZCA Bootstrap 4 / Zen Cart 2.2.x
 * Install as: includes/templates/bootstrap/css/stylesheet_zadvancedhmi.css
 * Keep the original Bootstrap template files unchanged.
 */

:root {
  --ahmi-navy: #102b46;
  --ahmi-blue: #0878bd;
  --ahmi-blue-dark: #075d92;
  --ahmi-cyan: #29b6e8;
  --ahmi-ink: #182536;
  --ahmi-muted: #617184;
  --ahmi-light: #f3f7fa;
  --ahmi-border: #dce5ed;
  --ahmi-white: #fff;
  --ahmi-radius: 14px;
  --ahmi-shadow: 0 12px 32px rgba(16, 43, 70, .09);
}

html { scroll-behavior: smooth; }
body {
  color: var(--ahmi-ink);
  background: #fff;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}
a { color: var(--ahmi-blue); }
a:hover, a:focus { color: var(--ahmi-blue-dark); }
h1, h2, h3, h4, h5 {
  color: var(--ahmi-navy);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.35rem); }
p { color: var(--ahmi-muted); }

#headerWrapper, #logoWrapper, #navMainWrapper, #navSuppWrapper {
  border: 0;
}
#headerWrapper {
  background: var(--ahmi-white);
  box-shadow: 0 2px 18px rgba(16, 43, 70, .07);
}
#logoWrapper { padding-top: 18px; padding-bottom: 18px; }
#logoWrapper a, #logoWrapper .site-logo {
  color: var(--ahmi-navy);
  font-weight: 800;
}
#navMainWrapper, #navSuppWrapper {
  background: var(--ahmi-navy);
}
#navMain a, #navSupp a, .navbar-nav > li > a {
  color: rgba(255,255,255,.94);
  font-weight: 650;
}
#navMain a:hover, #navSupp a:hover, .navbar-nav > li > a:hover,
#navMain a:focus, #navSupp a:focus {
  color: #fff;
  background: rgba(255,255,255,.09);
}
#navMain .dropdown-menu a, .dropdown-menu a {
  color: var(--ahmi-ink);
}
#navMain .dropdown-menu a:hover, .dropdown-menu a:hover {
  color: var(--ahmi-blue-dark);
  background: var(--ahmi-light);
}

.btn, button, input[type="submit"], input[type="button"] {
  border-radius: 8px;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary, .btn-success, input[type="submit"].btn-primary {
  color: #fff;
  background: var(--ahmi-blue);
  border-color: var(--ahmi-blue);
}
.btn-primary:hover, .btn-success:hover, input[type="submit"].btn-primary:hover {
  color: #fff;
  background: var(--ahmi-blue-dark);
  border-color: var(--ahmi-blue-dark);
  box-shadow: 0 7px 18px rgba(8, 120, 189, .22);
  transform: translateY(-1px);
}
.btn-default, .btn-secondary {
  color: var(--ahmi-navy);
  background: #fff;
  border-color: var(--ahmi-border);
}
.form-control, input, select, textarea {
  border-color: #cbd8e3;
  border-radius: 7px;
}
.form-control:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--ahmi-blue);
  box-shadow: 0 0 0 .2rem rgba(8, 120, 189, .14);
}

#contentMainWrapper { padding-top: 26px; padding-bottom: 44px; }
#mainWrapper { background: #fff; }
.centerBoxContents, .productListing-data, .productListing-even, .productListing-odd {
  border-radius: 10px;
}
.productListing-data, .productListing-even, .productListing-odd {
  border-color: var(--ahmi-border);
}
.productListing-data img, .centerBoxContents img, .productImage img {
  border-radius: 8px;
}
.productListing-data .product-name, .centerBoxContents .product-name {
  color: var(--ahmi-navy);
  font-weight: 700;
}
.productPrice, .productsPrice, .price {
  color: var(--ahmi-blue-dark);
  font-weight: 800;
}
#cartAdd, .cartAdd {
  margin-top: 12px;
}
.sideBoxContent, .sideboxContent {
  border: 1px solid var(--ahmi-border);
  border-radius: 10px;
  padding: 14px;
}
.sideBoxHeading, .sideboxHeading {
  color: var(--ahmi-navy);
  font-weight: 750;
}
.breadcrumb {
  background: var(--ahmi-light);
  border-radius: 7px;
  padding: 10px 14px;
  font-size: .92rem;
}
.alert { border-radius: 9px; }
hr { border-top-color: var(--ahmi-border); }

#footerWrapper, #footer {
  color: rgba(255,255,255,.78);
  background: var(--ahmi-navy);
  border: 0;
}
#footerWrapper a, #footer a { color: #fff; }
#footerWrapper h3, #footer h3, #footerWrapper h4, #footer h4 {
  color: #fff;
}
#footerWrapper p, #footer p { color: rgba(255,255,255,.72); }
#footerWrapper .footer-links a { text-decoration: none; }
#footerWrapper .footer-links a:hover { text-decoration: underline; }

@media (max-width: 767px) {
  #logoWrapper { padding-top: 12px; padding-bottom: 12px; }
  #contentMainWrapper { padding-top: 16px; padding-bottom: 28px; }
  .btn, button, input[type="submit"] { max-width: 100%; }
}

/* AdvancedHMI homepage sections. Append to stylesheet_zadvancedhmi.css. */
.ahmi-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .95fr);
  align-items: center; gap: clamp(28px, 5vw, 72px); padding: clamp(32px, 5vw, 76px) clamp(18px, 4vw, 56px);
  margin: 0 0 34px; overflow: hidden; border-radius: 18px;
  background: radial-gradient(circle at 85% 15%, rgba(41,182,232,.24), transparent 34%), linear-gradient(120deg,#f2f8fc 0%,#fff 60%,#eaf5fb 100%);
}
.ahmi-eyebrow { color: #0878bd; font-size: .76rem; font-weight: 800; letter-spacing: .13em; margin: 0 0 14px; }
.ahmi-hero h1 { color: #102b46; font-size: clamp(2.6rem, 5vw, 4.5rem); font-weight: 850; line-height: 1.03; letter-spacing: -.055em; margin: 0 0 22px; }
.ahmi-hero h1 span { color: #0878bd; }
.ahmi-hero__lead { max-width: 600px; font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.75; color: #52677a; margin-bottom: 25px; }
.ahmi-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ahmi-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 19px; border-radius: 8px; font-weight: 750; text-decoration: none !important; transition: .18s ease; }
.ahmi-button:hover { transform: translateY(-2px); text-decoration: none; }
.ahmi-button--primary { color: #fff !important; background: #0878bd; box-shadow: 0 8px 20px rgba(8,120,189,.2); }
.ahmi-button--primary:hover { color: #fff !important; background: #075d92; }
.ahmi-button--secondary { color: #102b46 !important; background: #fff; border: 1px solid #d5e2ec; }
.ahmi-proof { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 0; margin: 24px 0 0; list-style: none; color: #52677a; font-size: .88rem; }
.ahmi-proof li:before { content: "✓"; color: #0878bd; font-weight: 900; margin-right: 7px; }
.ahmi-hero__visual { position: relative; padding: 18px 10px 30px; }
.ahmi-screen { position: relative; z-index: 1; background: #102b46; padding: 10px; border: 1px solid #2f526f; border-radius: 14px; box-shadow: 0 26px 55px rgba(16,43,70,.24); transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); }
.ahmi-screen__top { display: flex; align-items: center; gap: 5px; padding: 7px 8px 12px; color: #c8d9e8; font-size: .62rem; letter-spacing: .08em; }
.ahmi-screen__top span { width: 7px; height: 7px; border-radius: 50%; background: #35b8e8; }
.ahmi-screen__top span:first-child { background: #ff7777; } .ahmi-screen__top span:nth-child(2) { background: #f2c45e; }
.ahmi-screen__top b { margin-left: auto; font-weight: 700; }
.ahmi-screen__body { display: flex; min-height: 260px; overflow: hidden; border-radius: 7px; background: #f4f8fb; }
.ahmi-screen__sidebar { display: flex; flex-direction: column; gap: 14px; width: 42px; padding: 18px 13px; background: #173e5e; }
.ahmi-screen__sidebar i { width: 15px; height: 15px; border: 1px solid #6b9ab8; border-radius: 4px; }
.ahmi-screen__main { flex: 1; padding: 18px; min-width: 0; }
.ahmi-screen__title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #173650; font-size: .94rem; font-weight: 800; }
.ahmi-screen__title small { color: #128cba; font-size: .56rem; letter-spacing: .08em; }
.ahmi-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.ahmi-metrics div { padding: 12px; border: 1px solid #dbe6ed; border-radius: 6px; background: #fff; }
.ahmi-metrics small { display: block; color: #718294; font-size: .57rem; font-weight: 800; letter-spacing: .08em; }
.ahmi-metrics strong { display: block; color: #173650; font-size: clamp(1.1rem, 2vw, 1.7rem); }
.ahmi-metrics em { color: #718294; font-size: .65rem; font-style: normal; }
.ahmi-chart { display: flex; align-items: end; gap: 5px; height: 70px; margin-top: 13px; padding: 10px; border: 1px solid #dbe6ed; border-radius: 6px; background: #fff; }
.ahmi-chart span { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(#31b9e7,#0878bd); height: 35%; }
.ahmi-chart span:nth-child(3n) { height: 70%; } .ahmi-chart span:nth-child(4n) { height: 54%; } .ahmi-chart span:nth-child(5n) { height: 88%; }
.ahmi-status { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; color: #18784d; font-size: .58rem; font-weight: 800; }
.ahmi-status i { width: 7px; height: 7px; border-radius: 50%; background: #21b779; }
.ahmi-status b { margin-left: auto; color: #708396; font-size: .55rem; }
.ahmi-float-card { position: absolute; z-index: 2; right: -3px; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 13px 17px; border: 1px solid #dce7ef; border-radius: 11px; background: #fff; box-shadow: 0 12px 32px rgba(16,43,70,.12); }
.ahmi-float-card__icon { display: grid; place-items: center; width: 36px; height: 36px; color: #0878bd; background: #e8f6fd; border-radius: 8px; font-size: 1.35rem; }
.ahmi-float-card b, .ahmi-float-card small { display: block; } .ahmi-float-card b { color: #102b46; font-size: .85rem; } .ahmi-float-card small { color: #718294; font-size: .72rem; }
.ahmi-section { padding: clamp(34px, 5vw, 68px) clamp(4px, 1vw, 12px); }
.ahmi-section__heading { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.ahmi-section__heading h2, .ahmi-platform h2 { margin: 0 0 14px; }
.ahmi-section__heading p:last-child { margin: 0; }
.ahmi-card-grid { display: grid; gap: 16px; }
.ahmi-card-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.ahmi-card-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.ahmi-card { padding: 24px 21px; border: 1px solid #e0e8ef; border-radius: 12px; background: #fff; transition: .18s ease; }
.ahmi-card:hover, .ahmi-resource-card:hover { border-color: #b5d9ed; box-shadow: 0 12px 30px rgba(16,43,70,.07); transform: translateY(-2px); }
.ahmi-card__icon { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 18px; color: #0878bd; background: #e9f6fd; border-radius: 10px; font-size: 1.35rem; font-weight: 800; }
.ahmi-card h3, .ahmi-resource-card h3, .ahmi-step h3 { margin: 0 0 9px; font-size: 1.1rem; }
.ahmi-card p, .ahmi-resource-card p, .ahmi-step p { margin: 0; font-size: .93rem; line-height: 1.65; }
.ahmi-platform { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 7vw, 90px); align-items: center; margin: 24px 0; padding: clamp(28px, 5vw, 60px); border-radius: 16px; background: #f2f7fa; }
.ahmi-platform__copy > p:not(.ahmi-eyebrow) { max-width: 530px; }
.ahmi-text-link { display: inline-block; margin-top: 10px; font-weight: 800; text-decoration: none !important; }
.ahmi-text-link span, .ahmi-resource-card a span { margin-left: 6px; }
.ahmi-step { display: flex; gap: 17px; padding: 18px 0; border-bottom: 1px solid #d8e3eb; }
.ahmi-step:last-child { border-bottom: 0; }
.ahmi-step > span { display: grid; place-items: center; flex: 0 0 43px; height: 43px; border-radius: 10px; background: #fff; color: #0878bd; font-weight: 850; }
.ahmi-resources { padding-top: 45px; padding-bottom: 60px; }
.ahmi-section__heading--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: none; text-align: left; }
.ahmi-section__heading--row > p { max-width: 340px; }
.ahmi-resource-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 245px; padding: 25px; border: 1px solid #e0e8ef; border-radius: 12px; background: #fff; transition: .18s ease; }
.ahmi-resource-card__label { margin-bottom: 17px; color: #0878bd; font-size: .7rem; font-weight: 850; letter-spacing: .13em; }
.ahmi-resource-card p { margin-bottom: 20px; }
.ahmi-resource-card a { margin-top: auto; font-weight: 800; text-decoration: none !important; }
.ahmi-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(28px, 5vw, 52px); margin: 16px 0 26px; border-radius: 15px; color: #fff; background: radial-gradient(circle at 90% 20%, rgba(41,182,232,.23), transparent 35%), #102b46; }
.ahmi-cta h2 { color: #fff; margin: 0 0 10px; }
.ahmi-cta p:not(.ahmi-eyebrow) { color: #d1dfeb; margin: 0; }
.ahmi-cta .ahmi-eyebrow { color: #71d4f3; }
.ahmi-button--light { flex: 0 0 auto; color: #102b46 !important; background: #fff; }
.ahmi-button--light:hover { color: #075d92 !important; background: #edf8fd; }
@media (max-width: 991px) {
  .ahmi-card-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ahmi-hero { grid-template-columns: 1fr; }
  .ahmi-hero__visual { max-width: 650px; width: 100%; margin: 0 auto; }
}
@media (max-width: 767px) {
  .ahmi-card-grid--3, .ahmi-card-grid--4, .ahmi-platform { grid-template-columns: 1fr; }
  .ahmi-section__heading--row, .ahmi-cta { align-items: flex-start; flex-direction: column; }
  .ahmi-hero { padding: 28px 18px; }
  .ahmi-screen__body { min-height: 220px; }
  .ahmi-screen__main { padding: 12px; }
  .ahmi-float-card { right: 0; }
}
