/* ============================================================
   ISO 9001 Floating Badge + Hero photo treatments
   ============================================================ */

/* Floating ISO badge - draggable, dismissible */
.iso-badge {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--sh-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 200px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s;
  cursor: default;
  animation: isoSlideIn .8s cubic-bezier(.2,.8,.2,1) .8s both;
  text-align: center;
}
@keyframes isoSlideIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.iso-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(15,31,27,.14), 0 8px 16px rgba(15,31,27,.08);
}
.iso-badge.collapsed {
  padding: 8px 10px;
  width: auto;
  flex-direction: row;
  align-items: center;
}
.iso-badge.collapsed .iso-body { display: none; }
.iso-badge.collapsed .iso-img {
  width: 36px;
  height: 48px;
}
.iso-badge.collapsed .iso-img img {
  height: 100%;
  object-fit: contain;
}
.iso-badge .iso-img {
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #f4f1e8);
  border: 1px solid var(--c-border);
  overflow: hidden;
  flex-shrink: 0;
  padding: 6px;
  line-height: 0;
}
.iso-badge .iso-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
/* Fallback if remote image fails */
.iso-badge .iso-img-svg {
  width: 100%;
  height: 180px;
  padding: 20px;
}
.iso-badge .iso-body { line-height: 1.25; min-width: 0; width: 100%; }
.iso-badge .iso-eyebrow {
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--c-text-muted);
  font-weight: 700;
  text-transform: uppercase;
}
.iso-badge .iso-title {
  font-family: var(--f-display);
  font-size: 15px;
  color: var(--c-ink);
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.2;
}
.iso-badge .iso-sub {
  font-size: 11px;
  color: var(--c-text-muted);
  margin-top: 4px;
  line-height: 1.35;
}
.iso-badge .iso-close {
  position: absolute;
  top: 6px; right: 6px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  width: 24px; height: 24px;
  cursor: pointer;
  color: var(--c-text-muted);
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 2;
}
.iso-badge .iso-close:hover { background: var(--c-bg-alt); color: var(--c-ink); border-color: var(--c-border-strong); }

@media (max-width: 720px) {
  .iso-badge {
    bottom: 80px;
    left: auto;
    right: 16px;
    width: 130px;
    padding: 8px;
  }
  .iso-badge .iso-title { font-size: 11px; }
  .iso-badge .iso-sub { display: none; }
}

/* === Banner system (managed from CMS) === */
.banner-bar {
  background: var(--c-accent);
  color: var(--c-ink);
  padding: 14px 0;
  font-size: 14px;
  position: relative;
}
.banner-bar .container {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.banner-bar .b-tag {
  background: var(--c-ink);
  color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.banner-bar .b-text { font-weight: 600; flex: 1; min-width: 200px; }
.banner-bar .b-cta {
  color: var(--c-ink);
  font-weight: 700;
  text-decoration: underline;
}
.banner-bar .b-close {
  background: transparent;
  border: 0;
  color: var(--c-ink);
  font-size: 18px;
  cursor: pointer;
  opacity: .7;
  width: 24px; height: 24px;
  border-radius: 4px;
}
.banner-bar .b-close:hover { opacity: 1; background: rgba(0,0,0,.1); }

/* Centered modal banner */
.banner-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,31,27,.6);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: fadeIn .3s;
}
.banner-modal {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  max-width: 540px;
  width: 100%;
  padding: 40px;
  text-align: center;
  position: relative;
  box-shadow: var(--sh-3);
  animation: scaleIn .4s cubic-bezier(.2,.8,.2,1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.banner-modal .bm-close {
  position: absolute;
  top: 14px; right: 14px;
  background: transparent;
  border: 0;
  width: 32px; height: 32px;
  cursor: pointer;
  color: var(--c-text-muted);
  border-radius: 6px;
}
.banner-modal .bm-close:hover { background: var(--c-bg-alt); }
.banner-modal .bm-image {
  width: 80px;
  height: 80px;
  border-radius: var(--r-md);
  background: var(--c-primary-50);
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  color: var(--c-primary);
}
.banner-modal h3 {
  font-family: var(--f-display);
  margin-bottom: 12px;
  font-size: 1.75rem;
}
.banner-modal p {
  color: var(--c-text-muted);
  margin-bottom: 24px;
}
.banner-modal .bm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Floating bottom-right banner */
.banner-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 360px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  padding: 18px;
  z-index: 95;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: toastIn .5s cubic-bezier(.2,.8,.2,1);
}
@keyframes toastIn {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.banner-toast .bt-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--c-primary-50);
  color: var(--c-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.banner-toast .bt-body { min-width: 0; flex: 1; }
.banner-toast .bt-title { font-weight: 600; color: var(--c-ink); font-size: 14px; margin-bottom: 4px; }
.banner-toast .bt-text { font-size: 13px; color: var(--c-text-muted); margin: 0 0 8px; line-height: 1.4; }
.banner-toast .bt-link { font-size: 13px; color: var(--c-primary); font-weight: 600; }
.banner-toast .bt-close {
  position: absolute;
  top: 6px; right: 6px;
  background: transparent;
  border: 0;
  width: 22px; height: 22px;
  color: var(--c-text-subtle);
  cursor: pointer;
  border-radius: 4px;
}
.banner-toast .bt-close:hover { background: var(--c-bg-alt); }

@media (max-width: 720px) {
  .banner-toast { right: 16px; left: 16px; max-width: none; bottom: 100px; }
}

/* === Real building photo treatment (uses their img25192149.jpg) === */
.hero-visual.real-photo {
  background: var(--c-ink);
}
.hero-visual.real-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-visual.real-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
}
