/*
 * components.css — Western Trade Shared Components
 * --------------------------------------------------
 * Purpose : Navbar, Footer, Buttons, Cards, WhatsApp float,
 *           Page Hero (inner pages), Breadcrumb — used on ALL pages.
 * Depends : main.css must be loaded before this file.
 * Domain  : ewesterntrade.com
 * Updated : 2026-10-16
 *
 * TABLE OF CONTENTS
 *  1.  Buttons
 *  2.  Navbar
 *  3.  Mobile Menu
 *  4.  Page Hero (inner pages — not the home hero)
 *  5.  Breadcrumb
 *  6.  Footer
 *  7.  WhatsApp Floating Button
 *  8.  Back-to-Top Button
 *  9.  Feature Cards (Why Us, Values, etc.)
 *  10. Partner Logo Cards (placeholder style)
 *  11. CTA Banner Section
 *  12. Stats Bar
 */


/* ============================================================
   1. BUTTONS
   ============================================================ */

/* Base button — shared properties */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--transition),
              color var(--transition),
              border-color var(--transition),
              transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Gold filled — primary CTA */
.btn--primary {
  background: var(--gradient-gold);
  color: var(--color-footer-bg);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.30);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #c9a227 0%, #a07d30 100%);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

/* Navy outlined — secondary CTA on light backgrounds */
.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* White outlined — ghost CTA on dark/navy backgrounds */
.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.7);
}
.btn--ghost:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

/* Gold outlined variant — for dark backgrounds */
.btn--gold-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn--gold-outline:hover {
  background: var(--color-accent);
  color: var(--color-footer-bg);
}

/* Arrow icon in button */
.btn .btn-arrow {
  display: inline-block;
  transition: transform var(--transition);
}
.btn:hover .btn-arrow {
  transform: translateX(4px);
}


/* ============================================================
   2. NAVBAR
   ============================================================ */

/*
 * NAVBAR DESIGN (matches demo-header.png):
 * - Default (top of page): transparent — seamlessly blends with dark hero
 * - On scroll (>80px): solid deep navy #071E47 with subtle bottom border
 * - All text/icons: white (on dark background)
 * - Active/hover links: gold #D4AF37
 * - "Get in Touch" CTA: gold filled button
 * - Toggled by main.js via .scrolled class
 */

.navbar {
  position: fixed;           /* Fixed so transparency over hero works correctly */
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  height: 72px;
  /* Transparent at top — hero shows through */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease,
              border-color     0.4s ease,
              box-shadow       0.4s ease;
}

/* Solid navy once user scrolls past hero — toggled by main.js */
.navbar.scrolled {
  background: rgba(7, 30, 71, 0.97);
  border-bottom-color: rgba(212, 175, 55, 0.20); /* subtle gold line */
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ---- Logo ---- */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

/*
 * Logo image — uses favicon.svg (512x512 square W mark, navy bg).
 * The full horizontal logo-white.svg (1200x300) is too wide for navbar:
 * at 46px height, text inside it renders at ~11px — unreadable.
 * favicon.svg is square, renders crisply at any small size.
 * Manual .navbar__logo-text div sits beside it for full size control.
 */
.navbar__logo-img {
  height: 46px;
  width: 46px;
  display: block;
  border-radius: 10px;  /* matches favicon.svg rounded corners */
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.navbar__logo:hover .navbar__logo-img {
  opacity: 0.88;
}

/* Text block beside the W mark icon */
.navbar__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

/* Company name — white, extra bold, wide spacing, matches demo */
.navbar__logo-name {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

/* Tagline — dimmed white, small caps */
.navbar__logo-tagline {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.50);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Hide tagline on small screens — saves space */
@media (max-width: 480px) {
  .navbar__logo-tagline { display: none; }
}

.navbar__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* Company name — white, extra bold, wide spacing, matches demo */
.navbar__logo-name {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

/* Tagline — dimmed white, small */
.navbar__logo-tagline {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.50);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Hide tagline on small screens */
@media (max-width: 480px) {
  .navbar__logo-tagline { display: none; }
}

/* ---- Desktop nav links ---- */
.navbar__nav {
  display: none;
  align-items: center;
  gap: var(--space-1);
}

@media (min-width: 1024px) {
  .navbar__nav { display: flex; }
}

/* White nav links on dark navbar */
.navbar__nav a {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--border-radius);
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
  text-decoration: none;
}

/* Gold underline indicator */
.navbar__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: var(--space-3);
  right: var(--space-3);
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

/* Hover + active: gold text + gold underline */
.navbar__nav a:hover,
.navbar__nav a.active {
  color: var(--color-accent);
}

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

/*
 * "Get a Quote" — special nav link styled as subtle gold outlined pill.
 * Sits between regular nav links and the gold filled CTA button.
 * Gives a visual "step up" before the main CTA — premium layered feel.
 */
.navbar__nav-quote {
  color: var(--color-accent) !important;
  border: 1.5px solid rgba(212, 175, 55, 0.55) !important;
  border-radius: var(--border-radius-full) !important;
  padding: 0.35rem 0.95rem !important;
  font-weight: 600 !important;
  font-size: var(--text-xs) !important;
  letter-spacing: 0.04em !important;
  transition: background-color var(--transition),
              border-color var(--transition),
              color var(--transition) !important;
}

.navbar__nav-quote::after {
  display: none !important;  /* no underline for this one */
}

.navbar__nav-quote:hover {
  background: rgba(212, 175, 55, 0.12) !important;
  border-color: var(--color-accent) !important;
  color: var(--color-accent) !important;
}

/* ---- Globe icon ---- */
.navbar__globe {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: rgba(255, 255, 255, 0.70);
  border-radius: var(--border-radius-full);
  transition: color var(--transition), background-color var(--transition);
  cursor: default;
  flex-shrink: 0;
}

.navbar__globe:hover {
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.08);
}

.navbar__globe svg {
  width: 18px;
  height: 18px;
}

/* ---- Dropdown — Products menu ---- */
.navbar__dropdown {
  position: relative;
}

.navbar__dropdown-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  cursor: pointer;
}

.navbar__dropdown-trigger .chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.navbar__dropdown:hover .chevron,
.navbar__dropdown.open .chevron {
  transform: rotate(180deg);
}

/*
 * DROPDOWN BUG FIX:
 * The gap between nav link and dropdown menu caused hover to break
 * when moving the mouse from link down to menu items.
 * Fix: invisible ::before bridge fills the gap so hover doesn't break.
 * top: 100% positions it flush, padding-top: 12px creates safe hover zone.
 */
.navbar__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;              /* flush — no gap */
  left: 50%;
  transform: translateX(-50%);
  padding-top: 10px;      /* safe hover bridge — mouse can move down freely */
  z-index: var(--z-dropdown);
}

/* The visible card sits inside a wrapper to allow padding-top bridge */
.navbar__dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px; /* covers the padding-top bridge area */
  background: transparent;
}

.navbar__dropdown-inner {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2);
  min-width: 230px;
  /* Smooth fade-in */
  animation: dropdownFadeIn 0.18s ease forwards;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.navbar__dropdown:hover .navbar__dropdown-menu,
.navbar__dropdown.open .navbar__dropdown-menu {
  display: block;
}

.navbar__dropdown-menu a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text);
  border-radius: var(--border-radius);
  transition: background-color var(--transition), color var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.navbar__dropdown-menu a:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

/* No underline effect inside dropdown */
.navbar__dropdown-menu a::after {
  display: none;
}

/* ---- Right side actions ---- */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ---- Hamburger — mobile only, white lines on dark navbar ---- */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: background-color var(--transition);
  background: none;
  border: none;
  padding: var(--space-2);
}

.navbar__hamburger:hover {
  background: rgba(255, 255, 255, 0.10);
}

/* White lines (on dark navbar background) */
.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.90);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger → X when menu open */
.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .navbar__hamburger { display: none; }
}

/* Hide CTA button text on very small screens */
.navbar__cta { display: none; }
@media (min-width: 480px) {
  .navbar__cta { display: inline-flex; }
}


/* ============================================================
   3. MOBILE MENU — deep navy, matches navbar
   ============================================================ */

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  /* Dark navy background to match navbar */
  background: var(--color-footer-bg);
  z-index: calc(var(--z-navbar) - 1);
  overflow-y: auto;
  padding: var(--space-6) var(--container-px) var(--space-12);
  animation: slideDown 0.25s ease forwards;
}

.mobile-menu.open { display: block; }

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

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-8);
}

.mobile-menu__nav a {
  display: block;
  padding: var(--space-4);
  font-size: var(--text-base);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.80);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color var(--transition), padding-left var(--transition);
  border-radius: var(--border-radius);
  text-decoration: none;
}

.mobile-menu__nav a:hover,
.mobile-menu__nav a.active {
  color: var(--color-accent);
  padding-left: var(--space-5);
}

/* Products sub-links */
.mobile-menu__sub {
  padding-left: var(--space-4);
  border-left: 2px solid rgba(212, 175, 55, 0.30);
  margin: var(--space-2) 0 var(--space-2) var(--space-4);
}

.mobile-menu__sub a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  border-bottom: none;
  padding: var(--space-2) var(--space-3);
  text-decoration: none;
}

.mobile-menu__sub a:hover {
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.05);
  padding-left: var(--space-4);
}

.mobile-menu__contact {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
}

.mobile-menu__contact p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.60);
  margin-bottom: var(--space-4);
}

.mobile-menu__contact .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.mobile-menu__sub a:hover {
  color: var(--color-primary);
  background: var(--color-bg);
}

.mobile-menu__contact {
  background: var(--color-bg);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
}

.mobile-menu__contact p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.mobile-menu__contact .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: var(--space-3);
}


/* ============================================================
   4. PAGE HERO (Inner pages — About, Products, Contact, etc.)
   ============================================================ */

/*
 * Inner pages don't have a full-screen hero like index.html.
 * Since navbar is position:fixed (height 72px), page content
 * would hide under it. This padding-top compensates exactly.
 */
.page-hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  background: var(--gradient-dark);
  overflow: hidden;
  padding-top: 72px; /* offset for fixed navbar height */
}

@media (min-width: 768px) {
  .page-hero {
    min-height: 320px;
  }
}

/* Optional background image overlay */
.page-hero--bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero--bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7, 30, 71, 0.82);
  z-index: 1;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-12) 0;
}

.page-hero__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.page-hero h1 {
  color: var(--color-white);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
  .page-hero h1 { font-size: var(--text-5xl); }
}

.page-hero__subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-lg);
  max-width: 560px;
  margin-bottom: 0;
}

/* Decorative gold line bottom of page hero */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
  z-index: 2;
}


/* ============================================================
   5. BREADCRUMB
   ============================================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.breadcrumb a,
.breadcrumb span {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb .sep {
  color: rgba(255, 255, 255, 0.35);
}

.breadcrumb .current {
  color: var(--color-accent);
  font-weight: 500;
}


/* ============================================================
   6. FOOTER
   ============================================================ */

.footer {
  background-color: var(--color-footer-bg);
  color: rgba(255, 255, 255, 0.70);
  border-top: 4px solid var(--color-accent);
}

.footer__main {
  padding: var(--space-16) 0 var(--space-12);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-10);
  }
}

/* Footer logo image — favicon.svg square W mark (same as navbar) */
.footer__logo-img {
  height: 48px;
  width: 48px;
  display: block;
  border-radius: 10px;
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.footer__logo:hover .footer__logo-img {
  opacity: 0.85;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  text-decoration: none;
}

.footer__logo svg {
  height: 42px;
  width: auto;
}

/* Footer company name — bold, white */
.footer__logo-name {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  line-height: 1;
}

/* Footer tagline — small, muted */
.footer__logo-tagline {
  font-size: 0.55rem;
  font-weight: 500;
  /* Increased from 0.45 — was failing WCAG AA contrast on dark footer bg */
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-top: 4px;
}

.footer__brand p {
  font-size: var(--text-sm);
  line-height: 1.75;
  margin-bottom: var(--space-6);
  color: rgba(255, 255, 255, 0.65);
}

/* Social icons */
.footer__social {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--border-radius-full);
  color: rgba(255, 255, 255, 0.65);
  transition: border-color var(--transition),
              color var(--transition),
              background-color var(--transition);
}

.footer__social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(212, 175, 55, 0.10);
}

.footer__social svg {
  width: 16px;
  height: 16px;
}

/* Column 2 & 3 — Links */
.footer__col h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.60);
  transition: color var(--transition), padding-left var(--transition);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer__links a::before {
  content: '›';
  font-size: 1rem;
  color: var(--color-accent);
  opacity: 0.7;
  transition: opacity var(--transition);
}

.footer__links a:hover {
  color: var(--color-accent);
  padding-left: var(--space-1);
}

.footer__links a:hover::before {
  opacity: 1;
}

/* Column 4 — Contact */
.footer__contact-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer__contact-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.footer__contact-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-full);
  background: rgba(212, 175, 55, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.footer__contact-icon svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
}

.footer__contact-item a,
.footer__contact-item span,
.footer__contact-item p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
  margin: 0;
}

.footer__contact-item a {
  transition: color var(--transition);
}

.footer__contact-item a:hover {
  color: var(--color-accent);
}

/* Footer bottom bar */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-6) 0;
}

.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.footer__copyright {
  font-size: var(--text-xs);
  /* Increased from 0.40 — was failing WCAG AA contrast on dark footer bg */
  color: rgba(255, 255, 255, 0.65);
}

.footer__tagline {
  font-size: var(--text-xs);
  font-weight: 600;
  /* Increased from 0.45 — was failing WCAG AA contrast on dark footer bg */
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__tagline span {
  color: var(--color-accent);
}


/* ============================================================
   7. WHATSAPP FLOATING BUTTON
   ============================================================ */
/* Ref: assets-and-hints/will-need-to-add-like-this-whatsAPP image */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: var(--z-whatsapp);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

/* Main circle button */
.whatsapp-float__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: var(--color-whatsapp);
  border-radius: var(--border-radius-full);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
  text-decoration: none;
}

.whatsapp-float__btn svg {
  width: 30px;
  height: 30px;
  color: var(--color-white);
}

/* Pulse animation to draw attention */
.whatsapp-float__btn::after {
  content: '';
  position: absolute;
  width: 58px;
  height: 58px;
  background: rgba(37, 211, 102, 0.4);
  border-radius: var(--border-radius-full);
  animation: whatsappPulse 2.5s ease-out infinite;
  pointer-events: none;
}

@keyframes whatsappPulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Tooltip label — slides in on hover */
.whatsapp-float__label {
  background: var(--color-footer-bg);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--border-radius);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
  box-shadow: var(--shadow-md);
}

.whatsapp-float:hover .whatsapp-float__label {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-float:hover .whatsapp-float__btn {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

/* Pause pulse when hovered */
.whatsapp-float:hover .whatsapp-float__btn::after {
  animation-play-state: paused;
}


/* ============================================================
   8. BACK-TO-TOP BUTTON
   ============================================================ */

.back-to-top {
  position: fixed;
  bottom: 100px;    /* above WhatsApp button */
  right: 28px;
  z-index: calc(var(--z-whatsapp) - 1);
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition),
              background-color var(--transition);
  border: none;
  pointer-events: none;  /* not clickable when invisible */
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--color-accent);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}


/* ============================================================
   9. FEATURE CARDS (Why Us, Values, etc.)
   ============================================================ */

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  transition: box-shadow var(--transition), border-color var(--transition),
              transform var(--transition);
  position: relative;
  overflow: hidden;
}

/* Decorative top accent line on hover */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-4px);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

/* Icon container */
.feature-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(11, 61, 145, 0.08);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  transition: background-color var(--transition);
}

.feature-card:hover .feature-card__icon {
  background: var(--color-primary);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  transition: color var(--transition);
}

.feature-card:hover .feature-card__icon svg {
  color: var(--color-white);
}

.feature-card h3,
.feature-card h4 {
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}


/* ============================================================
   10. PARTNER LOGO CARDS (Real logo images)
   ============================================================ */

.partner-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: box-shadow var(--transition), border-color var(--transition),
              transform var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.partner-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

/* Logo image container — fixed height, centres any logo regardless of ratio */
.partner-card__logo-wrap {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
}

/* Actual logo image */
.partner-card__logo-img {
  max-width: 180px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Greyscale by default — colour on hover for a premium effect */
  filter: grayscale(100%) opacity(0.70);
  transition: filter 0.4s ease, transform 0.3s ease;
  display: block;
}

.partner-card:hover .partner-card__logo-img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.04);
}

.partner-card__name {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.partner-card__sector {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0;
}

.partner-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

.partner-card__location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.partner-card__location svg {
  width: 12px;
  height: 12px;
  color: var(--color-primary);
}

/* ---- Partners home strip logo pills (index.html) ---- */
/* Replaces the initial-letter pill with a real logo image */
.partner-pill__logo-img {
  height: 28px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.65);
  transition: filter 0.35s ease;
  display: block;
}

.partner-pill:hover .partner-pill__logo-img {
  filter: grayscale(0%) opacity(1);
}


/* ============================================================
   11. CTA BANNER SECTION
   ============================================================ */

.cta-banner {
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
  padding: var(--space-16) 0;
}

/* Decorative gold lines */
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
}

/* Decorative background circle */
.cta-banner__decor {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.10);
  border-radius: var(--border-radius-full);
  pointer-events: none;
}

.cta-banner__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-banner h2 {
  color: var(--color-white);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .cta-banner h2 { font-size: var(--text-4xl); }
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-lg);
  max-width: 520px;
  margin: 0 auto var(--space-8);
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}


/* ============================================================
   12. STATS BAR
   ============================================================ */

.stats-bar {
  background: var(--color-primary);
  padding: var(--space-12) 0;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .stats-bar__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
  .stat-item__number { font-size: var(--text-5xl); }
}

.stat-item__label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}
