/*--------------------------------------------------------------
# FAZS Custom Overrides (loaded after main.css)
# Scope:
#   0. Design tokens
#   1. Header: transparent at top -> white on scroll, centered nav
#   2. Services: image-header cards
#   3. Floating actions: chatbot launcher + scroll-top (stacked)
#   4. Chatbot widget (FAZS Assistant)
#   5. Micro-interactions / enhancements (no concept change)
#   6. Reduced motion
# Vendor main.css stays untouched. Breakpoints used here:
#   desktop nav >= 992px (template default was 1280px; see note in 1.2)
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# 0. Tokens
--------------------------------------------------------------*/
:root {
  --header-h: 90px;           /* header height at top of page           */
  --header-h-scrolled: 70px;  /* compact height after scroll            */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --fab-size: 58px;           /* floating action button (chat launcher) */
  --fab-gap: 20px;            /* distance from viewport edge            */
  --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/*--------------------------------------------------------------
# 1. Header
--------------------------------------------------------------*/

/* 1.1 Base: fixed, transparent, animated */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 997;
  height: var(--header-h);
  padding: 0;
  background: transparent;
  box-shadow: none;
  transition:
    background-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out),
    height 0.45s var(--ease-out);
}

.header .logo .logo-img {
  max-height: 60px;
  margin-right: 0; /* template adds 85px; not needed with centered nav */
  transition: max-height 0.45s var(--ease-out);
}

/* Scrolled state: toggled by js/custom.js when scrollY > 40 */
.header.header-scrolled {
  height: var(--header-h-scrolled);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header.header-scrolled .logo .logo-img {
  max-height: 48px;
}

/* 1.2 Desktop navigation (>= 992px)
   Template switches to hamburger below 1280px, which hides the menu on
   common 1100-1279px laptops. We re-enable the inline menu from 992px
   by overriding the template's mobile rules for that range. */
@media (min-width: 992px) {
  /* 3-column grid: logo | centered nav | empty balance column */
  .header > .container-fluid {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .header .logo { grid-column: 1; justify-self: start; }
  .header .navbar { grid-column: 2; justify-self: center; }

  .header .mobile-nav-show,
  .header .mobile-nav-hide {
    display: none !important;
  }

  /* Undo template mobile (<1280px) positioning for the 992-1279 range */
  .navbar {
    position: static;
    right: auto;
    width: auto;
    max-width: none;
    padding: 0;
    z-index: auto;
  }

  .navbar ul {
    position: static;
    inset: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent;
    overflow: visible;
  }

  .navbar > ul > li {
    position: relative;
    white-space: nowrap;
    padding: 0;
  }

  .navbar a,
  .navbar a:focus {
    display: flex;
    align-items: center;
    position: relative;
    padding: 10px 14px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
  }

  /* Single animated underline. Template draws its own via ::before
     (bottom:-6px) which produced a double line; disable it. */
  .navbar > ul > li > a::before {
    display: none !important;
  }

  .navbar a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
  }

  .navbar a:hover::after,
  .navbar .active::after {
    transform: scaleX(1);
  }

  .navbar a:hover,
  .navbar .active,
  .navbar .active:focus,
  .navbar li:hover > a {
    color: #fff;
  }

  /* Scrolled: dark text, brand colour on hover/active */
  .header.header-scrolled .navbar a,
  .header.header-scrolled .navbar a:focus {
    color: var(--color-default);
  }

  .header.header-scrolled .navbar a:hover,
  .header.header-scrolled .navbar .active,
  .header.header-scrolled .navbar .active:focus,
  .header.header-scrolled .navbar li:hover > a {
    color: var(--color-primary);
  }

  /* Hover lift on nav items */
  .navbar a { transform: translateY(0); transition: color 0.3s ease, transform 0.3s var(--ease-out); }
  .navbar a:hover { transform: translateY(-1px); }
}

/* 1.3 Mobile navigation (< 992px): template off-canvas panel (dark) */
@media (max-width: 991px) {
  .header .mobile-nav-toggle {
    color: #fff;
    transition: color 0.3s ease;
  }

  .header.header-scrolled .mobile-nav-toggle {
    color: var(--color-default);
  }

  .mobile-nav-active .header {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  }

  /* Close icon sits above the dark overlay */
  .mobile-nav-active .header .mobile-nav-toggle,
  .mobile-nav-active .header.header-scrolled .mobile-nav-toggle {
    color: #fff;
  }

  /* Panel text is always on dark background regardless of header state */
  .header .navbar a,
  .header.header-scrolled .navbar a {
    color: rgba(255, 255, 255, 0.85);
  }

  .header .navbar a:hover,
  .header.header-scrolled .navbar a:hover,
  .header .navbar .active,
  .header.header-scrolled .navbar .active {
    color: #ffc732;
  }
}

/* 1.4 Inner pages need top offset since the header is fixed/transparent.
   Index hero is full-screen so no offset needed there. */
.breadcrumbs {
  padding-top: calc(var(--header-h) + 40px);
}

/* 1.5 Scroll progress bar (thin brand line under header) */
.fz-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 998;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.header-scrolled ~ .fz-progress,
.fz-progress.is-visible {
  opacity: 1;
}

/*--------------------------------------------------------------
# 2. Services: image-header cards
#   Markup: article.service-item > .service-img > img
#                                 > .service-body > .icon + h3 + p + a
--------------------------------------------------------------*/
.services .service-item {
  padding: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.services .service-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.services .service-item .service-img {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #e9ecef;
}

.services .service-item .service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.7s var(--ease-out);
}

.services .service-item:hover .service-img img {
  transform: scale(1.08);
}

/* Gradient scrim at the bottom of the photo */
.services .service-item .service-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.services .service-item .service-body {
  position: relative;        /* anchor for the floating icon */
  padding: 44px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Icon straddles the image/body boundary. It lives in .service-body
   (not inside the overflow-hidden image) so it is never clipped. */
.services .service-item .icon {
  position: absolute;
  z-index: 2;
  top: -28px;
  left: 28px;
  width: 56px;
  height: 56px;
  margin: 0;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease, transform 0.3s var(--ease-out);
}

.services .service-item .icon::before {
  display: none; /* remove template's grey offset blob */
}

.services .service-item .icon i {
  font-size: 22px;
  line-height: 1;
  color: var(--color-primary);
  transition: color 0.3s ease;
}

.services .service-item:hover .icon {
  background: var(--color-primary);
  transform: translateY(-3px) rotate(-6deg);
}

.services .service-item:hover .icon i {
  color: #fff;
}

.services .service-item h3 {
  font-size: 20px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  display: inline-block;
  align-self: flex-start;
  border-bottom: 3px solid #ebebed;
  transition: border-color 0.3s ease;
}

.services .service-item:hover h3 {
  border-color: var(--color-primary);
}

.services .service-item p {
  flex: 1;
}

.services .service-item .readmore {
  margin-top: 18px;
  font-weight: 600;
}

.services .service-item .readmore i {
  transition: transform 0.3s ease;
  display: inline-block;
}

.services .service-item:hover .readmore i {
  transform: translateX(4px);
}

/*--------------------------------------------------------------
# 3. Floating actions (bottom-right stack)
#   Order from bottom: chat launcher (58px) -> scroll-top (44px)
#   Both share the same right edge and are centred on one axis.
--------------------------------------------------------------*/
.fz-chat-launcher {
  position: fixed;
  right: var(--fab-gap);
  bottom: var(--fab-gap);
  z-index: 1000;
  width: var(--fab-size);
  height: var(--fab-size);
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(165, 42, 42, 0.4);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, background 0.3s ease;
}

.fz-chat-launcher:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(165, 42, 42, 0.5);
}

.fz-chat-launcher:focus-visible {
  outline: 3px solid rgba(165, 42, 42, 0.35);
  outline-offset: 3px;
}

/* Inline SVG robot icon */
.fz-chat-launcher svg {
  width: 30px;
  height: 30px;
  display: block;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.fz-chat-launcher .fz-icon-close {
  position: absolute;
  font-size: 24px;
  line-height: 1;
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.fz-chat-launcher.is-open .fz-icon-chat {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

.fz-chat-launcher.is-open .fz-icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Teaser speech bubble above the launcher: "Hi! How can I help?" */
.fz-teaser {
  position: fixed;
  right: var(--fab-gap);
  bottom: calc(var(--fab-gap) + var(--fab-size) + 16px);
  z-index: 1000;
  max-width: 230px;
  background: #fff;
  color: var(--color-default);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  padding: 12px 16px;
  padding-right: 30px;
  border-radius: 14px;
  border-bottom-right-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
}

.fz-teaser.is-shown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: fz-teaser-bob 3.2s ease-in-out 1s infinite;
}

@keyframes fz-teaser-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-5px) scale(1); }
}

/* Tail pointing down to the launcher */
.fz-teaser::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -6px;
  width: 14px;
  height: 14px;
  background: #fff;
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.06);
}

.fz-teaser:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.fz-teaser .fz-teaser-close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: #eef0f2;
  color: #7a828c;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.fz-teaser .fz-teaser-close:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Soft pulse ring (stops once opened) */
.fz-chat-launcher:not(.is-open)::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.5;
  animation: fz-pulse 2.4s ease-out infinite;
  z-index: -1;
}

@keyframes fz-pulse {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Scroll-top: restyled from the template's square button into a circle
   on the BOTTOM-LEFT corner, mirroring the chat launcher on the right,
   so the two widgets never crowd each other. */
.scroll-top {
  left: var(--fab-gap) !important;
  right: auto !important;
  bottom: var(--fab-gap) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  z-index: 999 !important;
  background: #fff !important;
  color: var(--color-primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transform: translateY(8px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s var(--ease-out), background 0.3s ease !important;
}

.scroll-top i {
  color: var(--color-primary) !important;
  font-size: 26px !important;
  transition: color 0.3s ease, transform 0.3s ease;
}

.scroll-top.active {
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-primary) !important;
}

.scroll-top:hover i {
  color: #fff !important;
  transform: translateY(-2px);
}

/* On phones the open chat panel spans the full width: hide scroll-top */
@media (max-width: 575px) {
  body.fz-chat-open .scroll-top {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
  }
}

/*--------------------------------------------------------------
# 4. Chatbot widget (FAZS Assistant)
--------------------------------------------------------------*/
.fz-chat {
  position: fixed;
  right: var(--fab-gap);
  bottom: calc(var(--fab-gap) + var(--fab-size) + 14px);
  z-index: 1001;
  width: min(380px, calc(100vw - 40px));
  height: min(600px, calc(100vh - 120px));
  padding: 0 !important;   /* defuse main.css `section { padding: 80px 0 }` */
  margin: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transform: translateY(16px) scale(0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.35s var(--ease-out),
    opacity 0.3s ease,
    visibility 0s linear 0.35s;
}

/* Greeter: assistant photo welcome card (PLUS "PUTRI" style). Shown on
   opening, auto-hides on the first question, closable via the x button. */
.fz-greeter {
  position: relative;
  flex-shrink: 0;
  max-height: 224px;
  text-align: center;
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, #7a1f1f 0%, var(--color-primary) 55%, #c96a6a 100%);
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out), opacity 0.35s ease;
}

.fz-greeter img {
  display: block;
  height: 158px;
  width: auto;
  margin: 12px auto 0;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
  user-select: none;
  -webkit-user-drag: none;
}

.fz-greeter .fz-greeter-text {
  position: relative;
  padding: 6px 12px 12px;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.fz-greeter .fz-greeter-text span {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* Photo overlaps the text block slightly, like the reference design */
.fz-greeter img + .fz-greeter-text {
  margin-top: -34px;
}

.fz-greeter .fz-greeter-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.fz-greeter .fz-greeter-close:hover {
  background: rgba(0, 0, 0, 0.5);
}

.fz-greeter.is-hidden {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.fz-chat.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 0.35s var(--ease-out),
    opacity 0.3s ease,
    visibility 0s;
}

.fz-chat-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #7a1f1f 100%);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.fz-chat-header .fz-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.fz-chat-header .fz-avatar svg {
  width: 24px;
  height: 24px;
}

.fz-chat-header .fz-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

.fz-chat-header .fz-status {
  font-size: 12px;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fz-chat-header .fz-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.3);
}

.fz-chat-header .fz-close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.fz-chat-header .fz-close:hover { opacity: 1; }

.fz-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f6f7f9;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.fz-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  animation: fz-msg-in 0.3s var(--ease-out);
  word-wrap: break-word;
}

.fz-msg a {
  color: inherit;
  text-decoration: underline;
}

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

.fz-msg.bot {
  align-self: flex-start;
  background: #fff;
  color: var(--color-default);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.fz-msg.user {
  align-self: flex-end;
  background: var(--color-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.fz-msg.typing {
  display: flex;
  gap: 4px;
  padding: 14px 16px;
}

.fz-msg.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #999;
  animation: fz-bounce 1.2s infinite ease-in-out;
}

.fz-msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.fz-msg.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes fz-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-5px); opacity: 1; }
}

/* FAQ quick-reply chips */
.fz-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border-top: 1px solid #eee;
}

.fz-chip {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.fz-chip:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}

.fz-chip.whatsapp {
  border-color: #25d366;
  color: #128c7e;
}

.fz-chip.whatsapp:hover {
  background: #25d366;
  color: #fff;
}

/* WhatsApp CTA inside a bot message */
.fz-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  background: #25d366;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.fz-wa-btn:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
}

.fz-chat-input {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #eee;
  background: #fff;
}

.fz-chat-input input {
  flex: 1;
  min-width: 0;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fz-chat-input input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(165, 42, 42, 0.12);
}

.fz-chat-input button {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.fz-chat-input button:hover { background: #8b2323; transform: scale(1.05); }
.fz-chat-input button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.fz-chat-foot {
  font-size: 11px;
  color: #999;
  text-align: center;
  padding: 4px 0 8px;
  background: #fff;
}

@media (max-width: 480px) {
  .fz-chat {
    right: 10px;
    left: 10px;
    bottom: calc(var(--fab-gap) + var(--fab-size) + 8px);
    width: auto;
    height: min(560px, calc(100vh - 110px));
    border-radius: 14px;
  }
}

/*--------------------------------------------------------------
# 5. Micro-interactions / enhancements (keeps the original concept)
--------------------------------------------------------------*/

/* Hero: staggered entrance for heading, copy and CTA */
.hero .info h2,
.hero .info p,
.hero .info .btn-get-started {
  animation: fz-rise 0.9s var(--ease-out) both;
}

.hero .info p { animation-delay: 0.15s; }
.hero .info .btn-get-started { animation-delay: 0.3s; }

@keyframes fz-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Primary CTA buttons: lift + glow on hover */
.hero .btn-get-started,
.btn[style*="A52A2A"] {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.hero .btn-get-started:hover,
.btn[style*="A52A2A"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(165, 42, 42, 0.35);
}

/* Section header underline grows in */
.section-header h2::before,
.section-header h2::after {
  transition: width 0.6s var(--ease-out);
}

/* Project cards: rounded corners + soft shadow lift */
.projects .portfolio-content {
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.projects .portfolio-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* Team members */
.team .member {
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.team .member:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* Stats counters: subtle hover */
.stats-counter .stats-item {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.stats-counter .stats-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

/* Client logos: flip-board. A fixed row of full-colour tiles; one tile
   at a time flips top-over-bottom to reveal the next logo. Built by
   js/custom.js from the original slides; fully non-interactive. */
.fz-flipboard {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  align-items: center;
  pointer-events: none;   /* cannot be dragged, clicked or paused */
  user-select: none;
}

.fz-flip {
  height: 116px;
  perspective: 820px;
}

.fz-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.45, 0.1, 0.25, 1);
  will-change: transform;
}

.fz-flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.fz-flip-back {
  transform: rotateX(180deg);
}

.fz-flip-face img {
  max-width: 100%;
  max-height: 104px;
  object-fit: contain; /* full colour - no grayscale */
}

@media (max-width: 991px) {
  .fz-flipboard { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .fz-flip { height: 100px; }
  .fz-flip-face img { max-height: 88px; }
  .fz-flip:nth-child(n + 5) { display: none; }
}

@media (max-width: 575px) {
  .fz-flipboard { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .fz-flip { height: 84px; }
  .fz-flip-face img { max-height: 72px; }
  .fz-flip:nth-child(n + 4) { display: none; }
}

/* Client feedback: non-stop right-to-left belt. js/custom.js clones the
   cards so the track holds two identical halves, then slides it by -50%
   forever (seamless loop). Nothing pauses it: no hover, drag or click.
   Without JS or with reduced motion it stays a static row of cards. */
.fz-marquee {
  container-type: inline-size; /* cqw below = % of the visible belt */
  overflow: hidden;
  padding: 20px 0;             /* room for the card shadows */
}

.fz-marquee-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 30px;
}

.fz-marquee-item {
  flex: 0 0 auto;
  display: flex;               /* equal-height cards */
  width: 33.333cqw;            /* 3 per view, like the old slider */
  padding: 0 15px;
}

.fz-marquee .testimonial-item {
  flex: 1;
  margin: 0;
}

.fz-marquee.is-running {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.fz-marquee.is-running .fz-marquee-track {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  animation: fz-marquee linear infinite; /* duration set by custom.js */
}

@keyframes fz-marquee {
  to { transform: translateX(-50%); }
}

@media (max-width: 1199px) {
  .fz-marquee-item { width: 50cqw; }
}

@media (max-width: 767px) {
  .fz-marquee-item { width: 85cqw; padding: 0 10px; } /* peek of the next card */
}

/* Mission video: fill, rounded, and shield the iframe so YouTube's
   title/buttons/overlays never appear (decorative background video). */
.mission-video-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  background: #000;
  /* True 16:9 box (overrides the page's inline fixed heights) so the
     video fits at its natural size - no letterbox, no heavy zoom. */
  aspect-ratio: 16 / 9;
  height: auto !important;
}

.mission-video-container .mission-video {
  /* Original framing: ~100% size with only a hairline crop so the
     rounded corners stay clean. The play/pause chrome flashes are
     prevented by the auto-resume logic in custom.js instead. */
  position: absolute;
  left: 50%;
  top: 50%;
  width: 103%;
  height: 106%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;   /* no hover = no YouTube UI */
}

/* Very light edge vignette (keeps corners clean, barely visible) */
.mission-video-container::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 8%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 8%);
}

/* Only control we expose on the video: speaker mute/unmute */
.fz-video-sound {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.25s ease, transform 0.25s var(--ease-out);
}

.fz-video-sound:hover {
  background: var(--color-primary);
  transform: scale(1.08);
}

.fz-video-sound[aria-pressed="true"] {
  background: var(--color-primary);
}

/* Certificates: card look + obvious zoom affordance */
.certificates .certificate-item {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.certificates .certificate-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.certificates .certificate-item a.cert-zoom {
  display: block;
  position: relative;
  cursor: zoom-in;
}

.certificates .certificate-item a.cert-zoom::after {
  content: "\F52A"; /* bootstrap-icons: zoom-in */
  font-family: "bootstrap-icons";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(165, 42, 42, 0.9);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out);
  pointer-events: none;
}

.certificates .certificate-item:hover a.cert-zoom::after {
  opacity: 1;
  transform: scale(1);
}

/* Contact page: info cards + map polish (markup unchanged) */
.contact .info-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 28px 20px;
  height: 100%;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.contact .info-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.contact .info-item i {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(165, 42, 42, 0.08);
  color: var(--color-primary);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out);
}

.contact .info-item:hover i {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.08);
}

/* WhatsApp card gets its brand colour */
.contact .info-item i.bi-whatsapp {
  background: rgba(37, 211, 102, 0.1);
  color: #128c7e;
}

.contact .info-item:hover i.bi-whatsapp {
  background: #25d366;
  color: #fff;
}

.contact .info-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-default);
  margin-bottom: 6px;
}

.contact .info-item p {
  font-size: 14px;
  margin: 0;
  color: var(--color-secondary);
}

.contact iframe {
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  display: block;
}

/* Breadcrumb hero: slow Ken Burns zoom on the background */
.breadcrumbs {
  overflow: hidden;
  isolation: isolate; /* own stacking context so ::after (z-index:-1) stays above the element's own bg */
}

.breadcrumbs::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  z-index: -1;
  animation: fz-kenburns 9s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes fz-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.18); }
}

/* Keep the breadcrumb overlay and content above the animated layer */
.breadcrumbs::before { z-index: 0; }
.breadcrumbs > .container { z-index: 1; }

/* Links: smooth colour change globally */
a { transition: color 0.25s ease; }

/* Focus visibility for keyboard users */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/*--------------------------------------------------------------
# 5b. Section backgrounds: engineering "blueprint" theme
#
# Goal: kill the flat white, give every section category its own
# identity while staying corporate. Each category gets
#   - a soft tinted paper background,
#   - a faint blueprint grid in the category hue,
#   - matching .section-header h2 accent lines.
# Dark sections (mission/.section-black, footer) stay untouched.
--------------------------------------------------------------*/

/* Category accents */
:root {
  --acc-services: #a52a2a;  /* maroon - expertise */
  --acc-projects: #2e5e8c;  /* steel blue - portfolio */
  --acc-certs:    #a8731c;  /* bronze - credentials */
  --acc-team:     #0f766e;  /* teal - people/testimonials */
  --acc-contact:  #475569;  /* slate - contact/forms */
}

/* Blueprint grid painter: colour comes from --grid-ink, paper from --paper */
.services,
.projects,
.certificates,
.testimonials,
.get-started,
.contact,
.stats-counter,
.recent-blog-posts,
.features {
  background-color: var(--paper, #fff);
  background-image:
    linear-gradient(var(--grid-ink, transparent) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-ink, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Expertise / services: warm maroon-tinted paper */
.services,
.services.section-bg {
  --paper: #faf5f4;
  --grid-ink: rgba(165, 42, 42, 0.055);
}

/* Projects / portfolio: steel-blue drafting paper */
.projects {
  --paper: #f3f6fa;
  --grid-ink: rgba(46, 94, 140, 0.065);
}

.projects .section-header h2:before,
.projects .section-header h2:after {
  background: var(--acc-projects);
}

/* Filter tabs become pills in the projects accent */
.projects .portfolio-flters li {
  padding: 7px 16px;
  border-radius: 999px;
  transition: all 0.3s ease-in-out;
}

.projects .portfolio-flters li:hover {
  color: var(--acc-projects);
  background: rgba(46, 94, 140, 0.08);
}

.projects .portfolio-flters li.filter-active,
.projects .portfolio-flters li.filter-active:hover {
  color: #fff;
  background: var(--acc-projects);
}

/* Certificates: warm credential paper + bronze accents */
.certificates,
.certificates.section-bg {
  --paper: #faf7f0;
  --grid-ink: rgba(168, 115, 28, 0.06);
}

.certificates .section-header h2:before,
.certificates .section-header h2:after {
  background: var(--acc-certs);
}

/* Testimonials / team: cool teal tint */
.testimonials {
  --paper: #f2f7f7;
  --grid-ink: rgba(15, 118, 110, 0.055);
}

.testimonials .section-header h2:before,
.testimonials .section-header h2:after {
  background: var(--acc-team);
}

.team {
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(15, 118, 110, 0.05) 0%, rgba(15, 118, 110, 0) 70%),
    #fdfdfd;
}

/* Stats: brand tint band; counters become white cards */
.stats-counter {
  --paper: #f9f4f3;
  --grid-ink: rgba(165, 42, 42, 0.05);
}

.stats-counter .stats-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 24px 18px !important;
}

/* Clients: clean white stage framed by hairlines so logos pop */
.clients,
.clients.section-bg {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.035) 0%, rgba(0, 0, 0, 0) 7%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.035) 0%, rgba(0, 0, 0, 0) 7%),
    #fff;
}

/* Contact + enquiry forms: slate drafting grid */
.contact,
.get-started {
  --paper: #f5f7f9;
  --grid-ink: rgba(71, 85, 105, 0.055);
}

.contact .section-header h2:before,
.contact .section-header h2:after,
.get-started .section-header h2:before,
.get-started .section-header h2:after {
  background: var(--acc-contact);
}

/* Features / blog keep a quiet neutral paper */
.features,
.recent-blog-posts {
  --paper: #fafbfc;
  --grid-ink: rgba(82, 86, 94, 0.045);
}

/* Breadcrumb heroes: brand-tinted dual overlay instead of flat black */
.breadcrumbs:before {
  background:
    linear-gradient(135deg, rgba(64, 12, 12, 0.72) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(26, 36, 48, 0.55) 100%);
}

/* About intro: quiet maroon-tinted paper */
.about {
  background:
    radial-gradient(85% 60% at 50% 0%, rgba(165, 42, 42, 0.045) 0%, rgba(165, 42, 42, 0) 70%),
    #fcfaf9;
}

/* Secondary alt-services blocks (the light ones) get a soft wash;
   the dark mission block (.section-black) is untouched */
.alt-services:not(.section-black) {
  background:
    linear-gradient(180deg, #fbfbfc 0%, #f4f1f0 100%);
}

/*--------------------------------------------------------------
# 6. Reduced motion
--------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  .header,
  .header *,
  .services .service-item,
  .services .service-item *,
  .fz-chat,
  .fz-chat-launcher,
  .fz-chat-launcher::before,
  .fz-greeter,
  .fz-teaser,
  .fz-flip-inner,
  .fz-msg,
  .hero .info h2,
  .hero .info p,
  .hero .info .btn-get-started,
  .breadcrumbs::after,
  .projects .portfolio-content,
  .team .member,
  .scroll-top {
    transition: none !important;
    animation: none !important;
  }
}
