/* ==========================================================================
   Unity Hub International — brand stylesheet (Bootstrap 5 base + custom)
   ========================================================================== */

:root {
  --uhi-navy: #2B3990;
  --uhi-navy-dark: #202b6e;
  --uhi-red: #ED1C24;
  --uhi-red-dark: #c8151c;
  --uhi-white: #FFFFFF;
  --uhi-offwhite: #F8F9FA;
  --uhi-text: #1f2430;
  --uhi-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --uhi-font-display: 'Playfair Display', Georgia, serif;
}

body {
  font-family: var(--uhi-font-body);
  color: var(--uhi-text);
  background-color: var(--uhi-white);
}

h1, h2, h3, .display-serif {
  font-family: var(--uhi-font-display);
  font-weight: 700;
}

a { color: var(--uhi-navy); }
a:hover { color: var(--uhi-red); }

/* ---- Buttons ---- */
.btn-primary-brand {
  background-color: var(--uhi-red);
  border-color: var(--uhi-red);
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 0.4rem;
}
.btn-primary-brand:hover { background-color: var(--uhi-red-dark); border-color: var(--uhi-red-dark); color: #fff; }

.btn-outline-brand {
  border: 2px solid var(--uhi-navy);
  color: var(--uhi-navy);
  font-weight: 600;
  border-radius: 0.4rem;
}
.btn-outline-brand:hover { background-color: var(--uhi-navy); color: #fff; }

.btn-outline-light-brand {
  border: 2px solid #fff;
  color: #fff;
  font-weight: 600;
  border-radius: 0.4rem;
}
.btn-outline-light-brand:hover { background-color: #fff; color: var(--uhi-navy); }

.btn-pill {
  border-radius: 50px;
  padding: 0.75rem 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn-pill:hover { transform: translateY(-2px); }
.btn-primary-brand.btn-pill:hover { box-shadow: 0 10px 24px rgba(237, 28, 36, 0.35); }
.btn-outline-light-brand.btn-pill:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); }

/* ---- Navbar ---- */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid rgba(43, 57, 144, 0.08);
  box-shadow: 0 4px 20px rgba(20, 26, 70, 0.06);
}
.site-header .navbar { padding-top: 0.6rem; padding-bottom: 0.6rem; }
.site-header .navbar-brand { padding: 0; margin-right: 2rem; }
.site-header .navbar-brand img { height: 68px; width: auto; display: block; }
.navbar .nav-link {
  color: var(--uhi-text);
  padding: 0.75rem 1rem;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--uhi-red); }
.navbar .dropdown-toggle::after { vertical-align: 0.15em; transition: transform 0.15s ease; }
.hover-dropdown.show > .dropdown-toggle::after { transform: rotate(180deg); }

.mega-menu {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 20px 45px rgba(20, 26, 70, 0.16);
  padding: 0.75rem;
  min-width: 260px;
  /* Positioned manually (Popper is disabled via data-bs-display="static") so a
     wide mega-menu can be centered under its toggle instead of Popper's plain
     left-aligned default, which pushed wide menus like Industries off-screen. */
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem !important;
  animation: uhi-dropdown-in 0.16s ease;
}
.mega-menu-wide { min-width: 720px; max-width: calc(100vw - 2rem); }
.mega-menu-centered { left: 50%; transform: translateX(-50%); }
.mega-menu-grid { display: grid; grid-template-columns: 1fr; gap: 0.15rem; }
.mega-menu-grid.cols-4 { grid-template-columns: repeat(4, 1fr); column-gap: 0.5rem; }
.mega-menu .dropdown-item { border-radius: 0.4rem; padding: 0.55rem 0.85rem; white-space: normal; }
.mega-menu .dropdown-item:hover { background-color: var(--uhi-offwhite); color: var(--uhi-red); }

@keyframes uhi-dropdown-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---- Hero ---- */
.hero-section {
  background: radial-gradient(ellipse 80% 60% at 15% 15%, rgba(237, 28, 36, 0.22), transparent 55%),
              radial-gradient(ellipse 70% 70% at 90% 100%, rgba(93, 109, 196, 0.35), transparent 60%),
              linear-gradient(135deg, var(--uhi-navy) 0%, var(--uhi-navy-dark) 100%);
  color: #fff;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 75%);
  pointer-events: none;
}
.hero-section .container { position: relative; z-index: 1; }
.hero-section h1 { color: #fff; font-size: clamp(2.4rem, 4.2vw, 3.4rem); line-height: 1.12; }
.hero-section .lead { color: rgba(255,255,255,0.85); font-size: 1.15rem; }
.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.hero-eyebrow-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--uhi-red); display: inline-block; }

.hero-visual {
  position: relative;
  border-radius: 1.5rem;
  padding: 2.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual .hero-visual-icon {
  width: 130px; height: 130px;
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.25rem;
  color: #fff;
}
.hero-float-card {
  position: absolute;
  background: #fff;
  color: var(--uhi-text);
  border-radius: 0.85rem;
  padding: 0.9rem 1.15rem;
  box-shadow: 0 18px 40px rgba(10, 14, 40, 0.28);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 170px;
}
.hero-float-card .icon-badge { width: 40px; height: 40px; font-size: 1.15rem; flex-shrink: 0; }
.hero-float-card .value { font-weight: 700; font-size: 1.05rem; line-height: 1.1; color: var(--uhi-navy); }
.hero-float-card .label { font-size: 0.72rem; color: #6c757d; }
.hero-float-card--tl { top: -1.25rem; left: -1.25rem; }
.hero-float-card--br { bottom: -1.25rem; right: -1.25rem; }

.hero-trust-strip {
  position: relative;
  z-index: 2;
  margin-top: -2.5rem;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 25px 60px rgba(20, 26, 70, 0.18);
  padding: 1.75rem 2rem;
}

.page-hero {
  background: linear-gradient(120deg, var(--uhi-navy) 0%, var(--uhi-navy-dark) 100%);
  color: #fff;
  padding: 3.5rem 0;
}
.page-hero h1 { color: #fff; }
.breadcrumb-brand a { color: rgba(255,255,255,0.75); text-decoration: none; }
.breadcrumb-brand a:hover { color: #fff; }
.breadcrumb-brand .active { color: #fff; }

/* ---- Sections ---- */
.section-padding { padding: 4.5rem 0; }
.section-eyebrow {
  color: var(--uhi-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.85rem;
}
.bg-offwhite { background-color: var(--uhi-offwhite); }
.bg-navy { background-color: var(--uhi-navy); }

/* ---- Cards ---- */
.icon-badge {
  width: 56px; height: 56px;
  border-radius: 0.75rem;
  background: rgba(43, 57, 144, 0.1);
  color: var(--uhi-navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.service-card, .industry-card, .role-card {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 0.75rem;
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}
.service-card:hover, .industry-card:hover, .role-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(43, 57, 144, 0.12);
}
.industry-card { text-align: center; }
.industry-card .icon-badge { margin: 0 auto 1rem; }

/* ---- Blog / Insights cards ---- */
.blog-card {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 0.75rem;
  overflow: hidden;
  height: 100%;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(43, 57, 144, 0.12); }
.blog-card-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--uhi-navy) 0%, var(--uhi-navy-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 2.5rem;
  overflow: hidden;
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card-meta { font-size: 0.8rem; color: #6c757d; margin-bottom: 0.5rem; }
.blog-card-excerpt { color: #6c757d; flex-grow: 1; }
.blog-post-body img, .page-body img { max-width: 100%; height: auto; border-radius: 0.5rem; }
/* Clearfix: a container with only floated children (left/right-aligned
   images from the editor) otherwise collapses to zero height, letting
   whatever follows (e.g. the CTA banner) overlap the tail of the float. */
.blog-post-body::after, .page-body::after { content: ""; display: table; clear: both; }
.blog-post-body { font-size: 1.05rem; line-height: 1.75; }

/* ---- Client / partner logo strip ---- */
.logo-strip { padding: 2.5rem 0; }
.logo-strip img { max-height: 42px; width: auto; filter: grayscale(100%); opacity: 0.6; transition: opacity 0.2s ease, filter 0.2s ease; }
.logo-strip img:hover { filter: none; opacity: 1; }

/* ---- Stats ---- */
.stat-number {
  font-family: var(--uhi-font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--uhi-navy);
}

/* ---- Process / timeline ---- */
.process-step { position: relative; text-align: center; padding: 1.5rem 1rem; }
.process-step .icon-badge { margin: 0 auto 1rem; background: var(--uhi-navy); color: #fff; }
.process-step .step-index {
  position: absolute; top: -0.5rem; left: 50%; transform: translateX(-50%);
  background: var(--uhi-red); color: #fff; font-size: 0.75rem; font-weight: 700;
  width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* ---- Testimonials ---- */
.testimonial-card {
  background: var(--uhi-offwhite);
  border-radius: 1rem;
  padding: 2.5rem;
}
.testimonial-quote { font-size: 1.15rem; font-style: italic; }
.testimonial-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--uhi-navy); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
}

/* ---- CTA banner ---- */
.cta-banner {
  background: linear-gradient(120deg, var(--uhi-red) 0%, var(--uhi-red-dark) 100%);
  color: #fff;
  border-radius: 1rem;
  padding: 3rem;
}
.cta-banner h2 { color: #fff; }

/* ---- Footer ---- */
.site-footer { background-color: var(--uhi-navy-dark); }
.footer-heading { color: #fff; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { background-color: rgba(0,0,0,0.15); }

/* ---- Forms ---- */
.form-control:focus, .form-select:focus {
  border-color: var(--uhi-navy);
  box-shadow: 0 0 0 0.2rem rgba(43, 57, 144, 0.15);
}

/* ---- FAQ accordion ---- */
.accordion-button:not(.collapsed) { color: var(--uhi-navy); background-color: rgba(43, 57, 144, 0.06); }
.accordion-button:focus { box-shadow: 0 0 0 0.2rem rgba(43, 57, 144, 0.15); }

/* ---- Utility ---- */
.text-brand-navy { color: var(--uhi-navy); }
.text-brand-red { color: var(--uhi-red); }

/* ---- Responsive tweaks ---- */
@media (max-width: 991.98px) {
  .site-header .navbar-brand img { height: 52px; }
  .hero-section { padding: 3rem 0 5rem; text-align: center; }
  .hero-visual { margin-top: 2.5rem; min-height: 240px; }
  .hero-float-card { display: none; }
  .hero-trust-strip { margin-top: -3rem; padding: 1.25rem 1.5rem; }
  .section-padding { padding: 3rem 0; }
}
@media (max-width: 575.98px) {
  .stat-number { font-size: 2rem; }
  .cta-banner { padding: 2rem 1.25rem; }
  .hero-trust-strip { margin-top: -2rem; }
}
