/* ============================================================
   HIGH BRIDGE ENTERPRISE CONSULTANCY LLP — Global Styles
   Brand Colors: #439d91 (teal), #2d547d (navy), #79838c (gray), #96382e (red)
   Fonts: Trebuchet MS, Verdana, Roboto
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* GREEN is now dominant — primary brand color */
  --teal:       #439d91;
  --teal-dark:  #2f7a6f;
  --teal-deeper:#1f5a52;
  --teal-light: #e6f5f3;
  --teal-mid:   #c2e8e3;
  /* Navy/blue is now the supporting accent */
  --navy:       #2d547d;
  --navy-dark:  #1e3a57;
  --navy-light: #e8f0f8;
  --gray:       #79838c;
  --gray-light: #f3f6f5;
  --gray-dark:  #4a5260;
  --red:        #96382e;
  --red-light:  #fdf0ef;
  --white:      #ffffff;
  --black:      #0f2320;
  --text:       #1e3230;
  --text-muted: #4e6662;
  --border:     #d4ebe7;
  --shadow:     0 4px 24px rgba(67,157,145,0.12);
  --shadow-lg:  0 12px 48px rgba(67,157,145,0.18);
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --container:  1200px;
  --header-h:   76px;
  --font-main:  'Roboto', 'Trebuchet MS', Verdana, sans-serif;
  --font-head:  'Trebuchet MS', 'Roboto', Verdana, sans-serif;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
address { font-style: normal; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1.05rem; }
p { margin-bottom: 0; color: var(--text-muted); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: white; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: white; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(67,157,145,0.35); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: white; }
.btn-outline-dark { background: transparent; color: var(--teal-dark); border-color: var(--teal-dark); }
.btn-outline-dark:hover { background: var(--teal-dark); color: white; }
.btn-outline-light { background: transparent; color: white; border-color: rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); border-color: white; color: white; }
.btn-light { background: white; color: var(--teal-deeper); border-color: white; }
.btn-light:hover { background: var(--teal-light); color: var(--teal-dark); }
.btn-lg { padding: 15px 36px; font-size: 1rem; }

/* ---- SECTION COMMONS ---- */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-title { margin-bottom: 16px; }
.section-desc { max-width: 600px; margin: 0 auto; color: var(--text-muted); font-size: 1.05rem; }
.section-footer { text-align: center; margin-top: 44px; }

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark { flex-shrink: 0; }
.logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 6px;
  /* white bg already in JPEG — looks clean on light header */
}
/* On scroll, header stays white — logo looks natural */
.site-header.scrolled .logo-img { filter: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: -0.01em;
}
.logo-tagline { font-size: 0.65rem; color: var(--gray); letter-spacing: 0.03em; }

/* ---- NAV ---- */
.main-nav { flex: 1; display: flex; justify-content: flex-end; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--teal); background: var(--teal-light); }
.nav-link.nav-cta { background: var(--teal); color: white; padding: 7px 14px; border-radius: 8px; }
.nav-link.nav-cta:hover { background: var(--teal-dark); }
.arrow { font-size: 0.65rem; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;               /* flush to bottom of nav item */
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0);  /* no transform gap */
  transition: opacity 0.18s ease, visibility 0.18s ease;
  visibility: hidden;
  z-index: 200;
  /* Invisible bridge covers any sub-pixel gap */
  margin-top: 0;
}
/* Invisible pseudo-element bridge fills any gap between nav link and dropdown */
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;   /* catches mouse crossing any gap */
  z-index: 199;
  display: block;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.dropdown li a {
  display: block;
  padding: 9px 18px;
  font-size: 0.85rem;
  color: var(--text);
}
.dropdown li a:hover { background: var(--teal-light); color: var(--teal); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- TICKER ---- */
.ticker-bar {
  background: linear-gradient(90deg, var(--teal-deeper), #1a4a5e);
  color: rgba(255,255,255,0.9);
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ticker-inner {
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.ticker-badge {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  padding: 3px 10px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-left: 14px;
  border-radius: 2px;
  white-space: nowrap;
}
.ticker-track {
  overflow: hidden;
  flex: 1;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}
.ticker-track-inner {
  display: inline-block;
  animation: tickerScroll 28s linear infinite;
  will-change: transform;
}
.ticker-track-inner:hover {
  animation-play-state: paused;
}
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- BREADCRUMB ---- */
.breadcrumb-bar {
  background: var(--gray-light);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb-bar a { color: var(--teal); }
.breadcrumb-bar a:hover { text-decoration: underline; }
.breadcrumb-sep { margin: 0 6px; color: var(--gray); }

/* ---- FLOATING BUTTONS ---- */
.fab-cta {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 50px;
  height: 50px;
  background: var(--teal);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(67,157,145,0.4);
  transition: all var(--transition);
  z-index: 500;
}
.fab-cta:hover { background: var(--teal-dark); transform: scale(1.08); color: white; }

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  background: var(--teal-dark);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(31,90,82,0.35);
  transition: all var(--transition);
  z-index: 499;
  opacity: 0;
  transform: translateY(12px);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--teal); }

/* ---- QUICK LINKS BAR ---- */
.quick-links-bar {
  background: var(--gray-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.quick-links-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ql-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  margin-right: 8px;
}
.ql-links { display: flex; flex-wrap: wrap; gap: 6px; }
.ql-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all var(--transition);
  background: white;
}
.ql-links a:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-light); }

/* ---- FOOTER ---- */
.site-footer { background: var(--teal-deeper); color: rgba(255,255,255,0.82); padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 18px;
  min-height: 64px;
}
.footer-logo-img {
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  background: white;
  border-radius: 8px;
  padding: 6px 14px;
}
.footer-about { font-size: 0.88rem; line-height: 1.75; color: rgba(255,255,255,0.6); margin-top: 4px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.10);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: all var(--transition);
  text-decoration: none;
}
.social-link:hover { background: white; }
/* LinkedIn brand color on hover */
.social-link.li:hover { background: #0077b5; color: white; }
.social-link.li:hover svg { color: white; fill: white; }
/* Facebook brand color on hover */
.social-link.fb:hover { background: #1877f2; color: white; }
.social-link.fb:hover svg { color: white; fill: white; }
/* Coloured variant — header social bar */
.social-link--li { background: #0077b5 !important; color: white !important; }
.social-link--li:hover { background: #005e94 !important; transform: translateY(-2px); }
.social-link--fb { background: #1877f2 !important; color: white !important; }
.social-link--fb:hover { background: #0d65d8 !important; transform: translateY(-2px); }

/* ══════════════════════════════════════════
   TOPBAR — single slim line above nav
══════════════════════════════════════════ */
.site-topbar {
  background: var(--teal-deeper);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  height: 34px;
  padding: 0 16px;
}
.topbar-ticker {
  flex: 1;
  text-align: center;
  overflow: hidden;
  padding: 0 16px;
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar-ticker-item {
  position: absolute;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  letter-spacing: 0.01em;
}
.topbar-ticker-item.visible {
  opacity: 1;
  pointer-events: auto;
}
.topbar-ticker-item a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 500;
}
.topbar-ticker-item a:hover {
  color: white;
  text-decoration: underline;
}
@media (max-width: 768px) {
  .topbar-ticker { display: none; }
}
/* Contact info pills */
.topbar-contact {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.7rem;
  margin-right: 12px;
}
.topbar-contact a {
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  padding: 0 10px;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
  border-right: 1px solid rgba(255,255,255,0.1);
  font-size: 0.7rem;
}
.topbar-contact a:first-child { border-left: 1px solid rgba(255,255,255,0.1); }
.topbar-contact a:hover { color: white; }
/* Social icons — brand colors, compact */
.topbar-social {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 8px;
}
.topbar-social-link {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.18s;
  flex-shrink: 0;
}
.topbar-social-link.li {
  background: #0077b5;
  color: white;
}
.topbar-social-link.li:hover { background: #005f94; transform: translateY(-1px); }
.topbar-social-link.fb {
  background: #1877f2;
  color: white;
}
.topbar-social-link.fb:hover { background: #0c60d0; transform: translateY(-1px); }

/* Footer social — also brand colored */
.social-link.li { background: rgba(0,119,181,0.15); }
.social-link.li:hover { background: #0077b5 !important; color: white !important; }
.social-link.fb { background: rgba(24,119,242,0.15); }
.social-link.fb:hover { background: #1877f2 !important; color: white !important; }

/* Remove old header-social-bar references */
.header-social-bar, .header-social-link { display: none !important; }

/* Ticker link items */
.ticker-item-link {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.ticker-item-link:hover { color: white; }
.ticker-track-inner span {
  color: rgba(255,255,255,0.88);
  font-size: 0.76rem;
  font-weight: 400;
}
.ticker-sep {
  color: rgba(255,255,255,0.25);
  margin: 0 14px;
  font-size: 0.7rem;
}
.ticker-label { display: none !important; }

/* ════════════════════════════════════════════════════
   FOOTER — complete styles
════════════════════════════════════════════════════ */

/* Column headings — bright teal with underline accent */
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal, #439d91);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(67,157,145,0.4);
  display: inline-block;
  width: 100%;
}

/* Column link lists */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col ul li a {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a::before {
  content: '›';
  color: var(--teal, #439d91);
  font-weight: 700;
  flex-shrink: 0;
}
.footer-col ul li a:hover { color: white; }

/* Footer address column */
.footer-col address {
  font-size: 0.84rem;
  font-style: normal;
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
}
.footer-col address p {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.footer-col address a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col address a:hover { color: white; }
.fa-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Wordmark */
.footer-wordmark {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 12px;
}
.fw-name {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0.08em;
}
.fw-tag {
  font-size: 0.66rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Credentials bar — single line with separators */
.footer-credentials {
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-credentials-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.footer-cred-item {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  padding: 2px 14px 2px 0;
}
.footer-cred-item strong {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}
.footer-cred-sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.9rem;
  padding-right: 14px;
  flex-shrink: 0;
}

/* Footer bottom bar */
.footer-bottom {
  padding: 16px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}
.footer-bottom a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: white; text-decoration: underline; }

/* ════════════════════════════════════════════════════
   BREADCRUMB — darker bg, light font
════════════════════════════════════════════════════ */
.breadcrumb-bar {
  background: linear-gradient(90deg, var(--teal-deeper, #1f5a52) 0%, var(--navy-dark, #1e3a57) 100%) !important;
  border-bottom: none !important;
  color: rgba(255,255,255,0.7) !important;
}
.breadcrumb-bar a {
  color: rgba(255,255,255,0.75) !important;
  font-weight: 500;
}
.breadcrumb-bar a:hover { color: white !important; }
.breadcrumb-sep { color: rgba(255,255,255,0.35) !important; }
.breadcrumb-bar span { color: rgba(255,255,255,0.6); }

/* Back button in breadcrumb */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7) !important;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 5px;
  padding: 4px 12px 4px 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.back-btn:hover {
  background: rgba(255,255,255,0.2);
  color: white !important;
}


/* ── Rich text content rendered from admin (Quill output) ── */
.rte-content { font-size: inherit; line-height: 1.7; }
.rte-content p { margin-bottom: 8px; }
.rte-content p:last-child { margin-bottom: 0; }
.rte-content ul, .rte-content ol { margin: 6px 0 10px 18px; }
.rte-content li { margin-bottom: 4px; }
.rte-content strong { font-weight: 700; }
.rte-content em { font-style: italic; }
.rte-content a { color: var(--teal, #439d91); text-decoration: underline; }
.rte-content h2 { font-size: 1.05rem; font-weight: 700; margin: 12px 0 6px; }
.rte-content h3 { font-size: .95rem; font-weight: 700; margin: 10px 0 5px; }

/* ── Footer Contact column — ensure white text ── */
.footer-col address,
.footer-col address p,
.footer-col address span,
.footer-col address p span,
.footer-col address li { color: rgba(255,255,255,0.78) !important; }
.footer-col address a,
.footer-col address p a { color: rgba(255,255,255,0.88) !important; }
.footer-col address a:hover,
.footer-col address p a:hover { color: white !important; }
/* Also fix footer link columns */
.footer-col ul li a { color: rgba(255,255,255,0.72); }
.footer-col ul li a:hover { color: white; }
/* Footer credentials and bottom bar */
.footer-credentials,
.footer-credentials * { color: rgba(255,255,255,0.65) !important; }
.footer-bottom p,
.footer-bottom a { color: rgba(255,255,255,0.5) !important; }
.footer-bottom a:hover { color: rgba(255,255,255,0.85) !important; }

/* Old ticker bar - hidden now that ticker moved to topbar */
.ticker-bar { display: none !important; }
