/* ============================================================
   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: var(--teal-deeper);
  color: white;
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  overflow: hidden;
}
.ticker-label {
  background: var(--teal);
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  flex-shrink: 0;
  border-radius: 3px;
  margin-left: 16px;
}
.ticker-track {
  overflow: hidden;
  flex: 1;
}
.ticker-track span {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.8rem;
  animation: ticker 40s linear infinite;
}
@keyframes ticker {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ---- 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: flex-end;
  gap: 0;
  height: 34px;
  padding: 0 16px;
}
/* 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:white; text-decoration:none; font-weight:500; }
.ticker-item-link:hover { text-decoration:underline; opacity:.85; }
.ticker-label { display:none !important; }
