/* Amber common styles: shared header + unified footer */
/* ===== Unified site footer ===== */
.site-unified-footer,
.site-unified-footer * { box-sizing: border-box; }
.site-unified-footer {
  margin: 0;
  background: #14110f;
  color: rgba(255,255,255,.72);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.site-unified-footer a { color: inherit; text-decoration: none; }
.site-footer-cta {
  position: relative;
  min-height: clamp(360px, 26vw, 520px);
  display: grid;
  place-items: center;
  padding: clamp(22px, 2vw, 34px) 0 clamp(24px, 2.2vw, 38px);
  background:
    linear-gradient(90deg, rgba(15,12,10,.9), rgba(15,12,10,.72)),
    url("../cta/warehouse-ready-to-ship.png") center / cover no-repeat;
  overflow: hidden;
}
.site-footer-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.1);
  pointer-events: none;
}
.site-footer-cta-inner {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - clamp(40px, 15vw, 300px)));
  min-height: clamp(290px, 22vw, 430px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(18,13,10,.56);
  backdrop-filter: blur(2px);
}
.site-footer-cta-card {
  min-height: clamp(290px, 22vw, 430px);
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.35vw, 42px);
}
.site-footer-cta-card + .site-footer-cta-card { border-left: 1px solid rgba(255,255,255,.18); }
footer.site-unified-footer .site-footer-cta h2,
body footer.site-unified-footer .site-footer-cta h2 {
  max-width: min(820px, 100%);
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 2.35vw, 46px);
  line-height: .94;
  letter-spacing: 0;
  font-weight: 900;
}
footer.site-unified-footer .site-footer-cta p,
body footer.site-unified-footer .site-footer-cta p {
  max-width: min(760px, 100%);
  margin: clamp(12px, 1.05vw, 20px) 0 clamp(18px, 1.7vw, 30px);
  color: rgba(255,255,255,.72);
  font-size: clamp(12px, .82vw, 16px);
  line-height: 1.32;
}
.site-footer-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, .84vw, 16px);
  margin-top: auto;
  align-items: stretch;
}
.site-footer-action {
  width: 100%;
  min-height: clamp(92px, 8vw, 150px);
  aspect-ratio: 1.22 / 1;
  display: grid;
  grid-template-columns: clamp(34px, 3vw, 58px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, .84vw, 16px);
  padding: clamp(10px, .94vw, 18px) clamp(12px, 1.04vw, 20px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  color: #fff;
  text-align: left;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.site-footer-actions .site-footer-action {
  height: 100%;
  min-height: clamp(78px, 6.7vw, 124px);
  aspect-ratio: 1.42 / 1;
  grid-template-columns: clamp(30px, 2.45vw, 46px) minmax(78px, 1fr);
  gap: clamp(8px, .62vw, 12px);
  padding: clamp(9px, .72vw, 14px);
}
.site-footer-action:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.14); }
.site-footer-action-primary { border-color: #4f549d; background: #4f549d; }
.site-footer-action-primary:hover { border-color: #3a3f78; background: #3a3f78; }
.site-footer-action-whatsapp { border-color: #26d367; background: #26d367; }
.site-footer-catalogue {
  width: min(360px, 72%);
  min-height: clamp(68px, 5.8vw, 104px);
  margin-top: auto;
  aspect-ratio: auto;
}
.site-footer-action-icon {
  width: clamp(30px, 2.45vw, 46px);
  height: clamp(30px, 2.45vw, 46px);
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: clamp(15px, 1.1vw, 22px);
  font-weight: 900;
}
.site-footer-action > span:last-child { min-width: 0; max-width: 100%; }
.site-footer-action strong,
.site-footer-action small { display: block; overflow-wrap: normal; word-break: keep-all; hyphens: none; }
.site-footer-action strong {
  margin-bottom: clamp(4px, .52vw, 10px);
  color: #fff;
  font-size: clamp(12px, .98vw, 19px);
  line-height: 1.08;
  font-weight: 900;
  white-space: normal;
}
.site-footer-action strong br { display: block; }
.site-footer-actions .site-footer-action strong {
  font-size: clamp(11px, .78vw, 15px);
  max-width: 6.2em;
}
.site-footer-action small {
  color: rgba(255,255,255,.72);
  font-size: clamp(8px, .74vw, 14px);
  line-height: 1.22;
  white-space: normal;
}
.site-footer-bottom { background: #14110f; padding: clamp(34px, 3.34vw, 64px) 0 clamp(30px, 3vw, 58px); }
.site-footer-bottom-inner {
  width: min(1720px, calc(100% - clamp(40px, 10.8vw, 220px)));
  margin: 0 auto;
}
.site-footer-grid {
  display: grid;
  grid-template-columns: 1.12fr .95fr .95fr 1.25fr;
  gap: clamp(34px, 6.15vw, 118px);
}
footer.site-unified-footer .site-footer-grid h3,
body footer.site-unified-footer .site-footer-grid h3 {
  margin: 0 0 clamp(14px, 1.35vw, 26px);
  color: #fff;
  font-size: clamp(13px, 1.25vw, 24px);
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}
footer.site-unified-footer .site-footer-grid p,
footer.site-unified-footer .site-footer-grid li,
body footer.site-unified-footer .site-footer-grid p,
body footer.site-unified-footer .site-footer-grid li {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: clamp(12px, 1.15vw, 22px);
  line-height: 1.48;
}
.site-footer-grid ul { display: grid; gap: clamp(8px, .84vw, 16px); margin: 0; padding: 0; list-style: none; }
.site-footer-grid a:hover { color: #fff; }
@media (min-width: 981px) and (max-width: 1500px) {
  .site-footer-cta-inner,
  .site-footer-bottom-inner { width: min(1120px, calc(100% - 56px)); }
  .site-footer-actions { gap: 12px; }
  .site-footer-actions .site-footer-action {
    grid-template-columns: 36px minmax(72px, 1fr);
    min-height: 92px;
    padding: 10px;
  }
  .site-footer-actions .site-footer-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 18px;
  }
  .site-footer-action strong { font-size: clamp(10px, .82vw, 14px); }
  .site-footer-actions .site-footer-action strong { font-size: clamp(10px, .72vw, 12px); }
  .site-footer-action small { font-size: clamp(7px, .58vw, 10px); }
}
@media (max-width: 980px) {
  .site-footer-cta { min-height: auto; padding: 46px 0; }
  .site-footer-cta-inner,
  .site-footer-grid { grid-template-columns: 1fr; }
  .site-footer-cta-card { min-height: auto; }
  .site-footer-cta-card + .site-footer-cta-card { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .site-footer-grid { gap: 34px; }
}
@media (max-width: 720px) {
  .site-footer-cta-card { padding: 30px 22px; }
  .site-footer-actions { grid-template-columns: 1fr; }
  .site-footer-action,
  .site-footer-catalogue { width: 100%; }
  .site-footer-action,
  .site-footer-actions .site-footer-action {
    min-height: 96px;
    aspect-ratio: auto;
    grid-template-columns: 48px minmax(0, 1fr);
  }
}


/* Footer responsive overrides */
.site-footer-cta {
  min-height: auto;
  padding: 32px 0 34px;
}
.site-footer-cta-inner,
.site-footer-bottom-inner {
  width: min(1240px, calc(100% - 40px));
}
.site-footer-cta-inner {
  min-height: auto;
}
.site-footer-cta-card {
  min-height: 300px;
  padding: 32px;
}
footer.site-unified-footer .site-footer-cta h2,
body footer.site-unified-footer .site-footer-cta h2 {
  max-width: 520px;
  font-size: clamp(30px, 2.2vw, 38px);
  line-height: .98;
}
footer.site-unified-footer .site-footer-cta p,
body footer.site-unified-footer .site-footer-cta p {
  max-width: 520px;
  font-size: clamp(12px, .82vw, 14px);
}
.site-footer-catalogue {
  width: min(340px, 76%);
  min-height: 78px;
}
.site-footer-actions {
  gap: 12px;
}
.site-footer-actions .site-footer-action {
  min-height: 88px;
  aspect-ratio: 1.48 / 1;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 10px;
}
.site-footer-actions .site-footer-action-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 17px;
}
.site-footer-actions .site-footer-action strong {
  font-size: clamp(10px, .72vw, 12px);
}
.site-footer-action small {
  font-size: clamp(7px, .58vw, 10px);
}
.site-footer-bottom {
  padding: 36px 0 30px;
}
.site-footer-grid {
  grid-template-columns: 1.15fr 1fr .8fr 1.15fr;
  gap: clamp(36px, 4vw, 64px);
}
footer.site-unified-footer .site-footer-grid h3,
body footer.site-unified-footer .site-footer-grid h3 {
  margin-bottom: 14px;
  font-size: clamp(14px, .95vw, 16px);
}
footer.site-unified-footer .site-footer-grid p,
footer.site-unified-footer .site-footer-grid li,
body footer.site-unified-footer .site-footer-grid p,
body footer.site-unified-footer .site-footer-grid li {
  font-size: clamp(13px, .82vw, 15px);
}
@media (max-width: 1180px) {
  .site-footer-cta-inner,
  .site-footer-bottom-inner {
    width: min(100% - 40px, 1240px);
  }
  .site-footer-cta-card {
    min-height: 280px;
    padding: 28px;
  }
}
@media (max-width: 900px) {
  .site-footer-cta-inner,
  .site-footer-grid {
    grid-template-columns: 1fr;
  }
  .site-footer-cta-card {
    min-height: auto;
  }
  .site-footer-cta-card + .site-footer-cta-card {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.18);
  }
  .site-footer-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  body[data-page="index"] .case-grid,
  body[data-page="customer-cases"] .story-grid {
    grid-template-columns: 1fr;
  }
  .site-footer-cta-inner,
  .site-footer-bottom-inner {
    width: min(100% - 28px, 1040px);
  }
  .site-footer-cta-card {
    padding: 24px 20px;
  }
  .site-footer-actions {
    grid-template-columns: 1fr;
  }
}


/* ===== Shared site header (match products-list.html) ===== */
body[data-page] .topbar,
body[data-page] header,
body[data-page] header .links,
body[data-page] header .nav-actions .btn {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body[data-page] .topbar {
  display: block;
  background: #171513;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
body[data-page] .topbar .wrap {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, .84vw, 16px);
  flex-direction: row;
  padding-top: 0;
  padding-bottom: 0;
}
body[data-page] .topbar a {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.35);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
}
body[data-page] header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 244, .94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(91, 58, 42, .14);
}
body[data-page] header nav.wrap,
body[data-page] header nav {
  width: min(1240px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-direction: row;
  padding-top: 0;
  padding-bottom: 0;
}
body[data-page] header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 174px;
  flex: 0 0 auto;
}
body[data-page] header .logo img {
  width: 166px;
  height: auto;
}
body[data-page] header .links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #3a3f78;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}
body[data-page] header .links a {
  font-size: 14px;
  font-weight: 650;
  color: inherit;
  white-space: nowrap;
}
body[data-page] header .nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}
body[data-page] header .nav-actions .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid #4f549d;
  border-radius: 4px;
  background: #4f549d;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
body[data-page] header .nav-actions .btn:hover {
  transform: translateY(-1px);
  background: #3a3f78;
  border-color: #3a3f78;
}
body[data-page] header .nav-actions .btn.secondary {
  background: transparent;
  color: #3a3f78;
  border-color: rgba(58, 63, 120, .3);
}
body[data-page] header .nav-actions .btn.secondary:hover {
  background: transparent;
  color: #3a3f78;
  border-color: #3a3f78;
}

/* Keep index header chrome aligned with products-list (undo first-screen header overrides) */
@media (min-width: 981px) {
  body[data-page="index"] .topbar {
    display: block;
  }
  body[data-page="index"] header nav,
  body[data-page="index"] header nav.wrap {
    min-height: 78px;
  }
  body[data-page="index"] header .logo img {
    width: 166px;
  }
}

@media (max-width: 980px) {
  body[data-page] .topbar .wrap {
    justify-content: center;
    text-align: center;
    flex-direction: row;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
  }
  body[data-page] .topbar .wrap > span:last-child {
    display: none;
  }
  body[data-page] header .links {
    display: none;
  }
  body[data-page] header nav.wrap,
  body[data-page] header nav {
    min-height: 68px;
    flex-direction: row;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
  }
  body[data-page] header .logo img {
    width: 136px;
  }
  body[data-page] header .nav-actions .secondary {
    display: none;
  }
  body[data-page] header .nav-actions .btn {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }
}
