/* ============================================================
   Trendz Marketing — Brand Overrides
   Loaded AFTER templatemo-finance-business.css
   Palette extracted from logo:
     --tz-navy   #023763  (TRENDZ wordmark)
     --tz-teal   #1a9d9d  (MARKETING wordmark / M gradient)
     --tz-orange #e8650a  (growth arrow)
   ============================================================ */

:root {
  --tz-navy: #023763;
  --tz-teal: #1a9d9d;
  --tz-teal-dark: #0f7d7d;
  --tz-orange: #e8650a;
  --tz-orange-dark: #c95307;
}

/* ---------- Logo in navbar ---------- */
.navbar .navbar-brand {
  margin-top: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
.navbar .navbar-brand img.brand-logo {
  height: 56px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}
.background-header .navbar-brand img.brand-logo {
  height: 44px; /* slightly smaller when sticky header is active */
}
@media (max-width: 767px) {
  .navbar .navbar-brand img.brand-logo {
    height: 44px;
  }
}

/* ---------- Navigation: permanent white background ---------- */
/* Template default is a transparent nav overlaying the hero slider.
   We switch it to a solid white bar in normal document flow;
   the sticky (.background-header) state on scroll remains white too. */
header {
  position: relative !important;   /* sit above the banner, not over it */
  background-color: #fff !important;
  height: auto !important;
  box-shadow: 0 2px 10px rgba(2, 55, 99, 0.08);
}
/* Links must be dark on white (template default was white-on-transparent) */
header .navbar .navbar-nav a.nav-link {
  color: var(--tz-navy);
}
header .navbar .navbar-nav .nav-link:hover,
header .navbar .navbar-nav .active > .nav-link,
header .navbar .navbar-nav .nav-link.current,
header .navbar .navbar-nav .nav-link.show,
header .navbar .navbar-nav .show > .nav-link {
  color: var(--tz-teal) !important;
}
/* Mobile hamburger: template draws it with a FontAwesome glyph;
   just brand-tint and enlarge the tap target (see mobile block below) */

/* ---------- Hero slider: designed banner images ---------- */
/* The slide images contain their own headline copy (left side).
   Desktop: show the image design, hide duplicate HTML overlay text.
   Mobile:  cover-crop makes baked-in text unreadable, so we anchor the
   image to its visual (right) side and show the HTML overlay instead. */

.Modern-Slider .item .img-fill {
  background-position: left center; /* keep designed text side anchored */
  background-color: #f4f8fb;        /* matches banners' light background */
}
.Modern-Slider { background: #f4f8fb; } /* no black flash between slides */

/* Desktop & large tablets: image speaks for itself */
@media (min-width: 992px) {
  .Modern-Slider .text-content {
    display: none;
  }
  .Modern-Slider .item .img-fill {
    height: calc(100vh - 126px); /* viewport minus sub-header + navbar */
    min-height: 480px;
    max-height: 820px;
  }
}

/* Mobile & small tablets: overlay text over the visual side of the image */
@media (max-width: 991px) {
  .Modern-Slider .item .img-fill {
    height: 78vh;
    min-height: 480px;
    background-position: 72% center; /* show fabrics/machinery, not tiny text */
    position: relative;
  }
  /* navy gradient scrim for text contrast */
  .Modern-Slider .item .img-fill::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(2, 55, 99, 0.92) 0%,
      rgba(2, 55, 99, 0.72) 45%,
      rgba(2, 55, 99, 0.25) 80%,
      rgba(2, 55, 99, 0.05) 100%
    );
  }
  .Modern-Slider .text-content {
    display: block !important;
    width: 88%;
    top: auto;
    bottom: 56px;              /* clear of slick dots */
    transform: translateX(-50%);
    text-align: left;
  }
  .Modern-Slider .item h6 {
    font-size: 13px;
    letter-spacing: 1.5px;
    color: #ffd9b8;            /* soft orange tint from brand arrow */
    margin-bottom: 10px;
  }
  .Modern-Slider .item h4 {
    font-size: 30px;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 12px;
  }
  .Modern-Slider .item p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 18px;
  }
  .Modern-Slider .item a.filled-button {
    background-color: var(--tz-orange);
  }
}
@media (max-width: 480px) {
  .Modern-Slider .item h4 { font-size: 25px; }
  .Modern-Slider .item p  { font-size: 13px; }
  .Modern-Slider .text-content { bottom: 48px; }
}

/* ---------- Mobile navigation fix ---------- */
/* Template absolutely-positions the brand + hamburger inside a fixed
   80px header; our auto-height white header broke that. Restore normal
   flex flow so the header sizes itself around the logo, and anchor the
   dropdown to the header's real bottom edge. */
@media (max-width: 992px) {
  header .navbar {
    padding: 10px 15px;
  }
  /* back into normal flow: logo left, hamburger right (Bootstrap flex) */
  header .navbar .navbar-brand {
    position: static;
  }
  header .navbar .navbar-toggler {
    position: static;
    margin-left: auto;
    height: 44px;              /* comfortable tap target */
    width: 48px;
    border: 1px solid rgba(2, 55, 99, 0.2);
    border-radius: 6px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  header .navbar .navbar-toggler-icon:after {
    color: var(--tz-navy);
    font-size: 20px;
    line-height: 1;
  }
  /* dropdown sits flush under the header, whatever its height */
  header #navbarResponsive {
    top: 100%;
    background-color: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 12px 20px rgba(2, 55, 99, 0.12);
  }
  header .navbar .navbar-nav a.nav-link {
    color: var(--tz-navy) !important;
    font-size: 16px;
    font-weight: 400;
    padding: 15px 0;
  }
  header .navbar .navbar-nav .nav-link.current,
  header .navbar .navbar-nav .nav-link:hover {
    color: var(--tz-teal) !important;
    background-color: rgba(26, 157, 157, 0.06);
  }
}

/* ---------- Brand color refinements ---------- */
/* Top info bar: navy instead of template dark grey */
.sub-header {
  background-color: var(--tz-navy);
}

/* Buttons: teal base (set in template css), orange on hover for the arrow accent */
a.filled-button:hover,
button.filled-button:hover,
#form-submit.border-button:hover {
  background-color: var(--tz-orange) !important;
  color: #fff !important;
  border-color: var(--tz-orange) !important;
}
a.border-button:hover {
  background-color: var(--tz-orange);
  border-color: var(--tz-orange);
  color: #fff;
}

/* Section heading emphasis + nav states in navy/teal already via sed;
   deepen headings to brand navy */
.section-heading h2,
.left-content h2,
.right-content h2 {
  color: var(--tz-navy);
}
.section-heading h2 em,
.left-content h2 em,
.right-content h2 em {
  color: var(--tz-teal);
}

/* Stats band: navy overlay tint to match brand */
.fun-facts {
  background-color: var(--tz-navy);
}
.count-digit {
  color: var(--tz-orange);
}

/* Footer accents */
footer .footer-item h4 {
  color: var(--tz-teal);
}

/* ---------- Floating WhatsApp button (logo colors) ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1050;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--tz-teal) 0%, var(--tz-navy) 100%);
  box-shadow: 0 4px 14px rgba(2, 55, 99, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.whatsapp-float i {
  color: #fff;
  font-size: 28px;
  line-height: 1;
}
.whatsapp-float:hover {
  background: linear-gradient(135deg, var(--tz-orange) 0%, var(--tz-orange-dark) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(232, 101, 10, 0.45);
}
.whatsapp-float:focus {
  outline: 3px solid rgba(26, 157, 157, 0.5);
  outline-offset: 2px;
}
/* subtle pulse to draw attention without being annoying */
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--tz-teal);
  animation: tz-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes tz-pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::after { animation: none; }
  .whatsapp-float { transition: none; }
}
@media (max-width: 767px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float i { font-size: 25px; }
}
