/* ============================================
   VITAL BRIDGE — GLOBAL STYLESHEET
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --navy: #1a2b4a;
  --navy-dark: #0f1e35;
  --gold: #c9963a;
  --gold-light: #e8b560;
  --white: #ffffff;
  --off-white: #f8f9fc;
  --light-gray: #e8ecf2;
  --text-dark: #1a2b4a;
  --text-body: #3a4a62;
  --text-muted: #6b7a99;
  --shadow-sm: 0 2px 8px rgba(26, 43, 74, 0.08);
  --shadow-md: 0 4px 20px rgba(26, 43, 74, 0.12);
  --shadow-lg: 0 8px 40px rgba(26, 43, 74, 0.16);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text-body); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--navy); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p { font-size: 1rem; }
em { font-style: normal; color: var(--gold); }

/* ---------- Layout & Utilities ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--alt { background: var(--off-white); }
.text-center { text-align: center; }

.section-label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; font-family: var(--font-heading); }
.section-title { margin-bottom: 16px; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; line-height: 1.7; margin-bottom: 48px; }
.section-header { margin-bottom: 64px; }
.section-header.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius-sm); font-family: var(--font-heading); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; border: 2px solid transparent; transition: all var(--transition); white-space: nowrap; }
.btn--primary { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201, 150, 58, 0.35); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); transform: translateY(-2px); }

/* ---------- Global Header & Nav ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: transparent; backdrop-filter: none; border-bottom: none; transition: background 0.35s cubic-bezier(0.22, 1, 0.36, 1), backdrop-filter 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.header.scrolled, body.solid-header .header { background: rgba(10, 22, 40, 0.96); backdrop-filter: blur(16px); box-shadow: 0 2px 32px rgba(0, 0, 0, 0.25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.header__logo { display: flex; align-items: center; gap: 12px; }
.header__logo img { height: 52px; width: auto; filter: brightness(0) invert(1); }
.header__logo span { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; letter-spacing: 0.02em; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link { color: rgba(255,255,255,0.85); font-family: 'Space Grotesk', sans-serif; font-size: 0.88rem; font-weight: 500; letter-spacing: normal; text-transform: none; padding: 0.6rem 1rem; border-radius: var(--radius-sm); transition: all var(--transition); position: relative; }
.nav__link:hover, .nav__link.active { color: #C8A96E; background: rgba(200, 169, 110, 0.1); }
.nav .btn--primary { background: #C8A96E; color: #0A1628; border-color: #C8A96E; font-family: 'Space Grotesk', sans-serif; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.nav .btn--primary:hover { background: #E4CAA0; border-color: #E4CAA0; color: #0A1628; }
.mobile-nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; padding: 4px; }

/* ---------- Shared Hero Blocks ---------- */
.hero, .page-hero { padding-top: 72px; position: relative; overflow: hidden; }
.hero { min-height: 100vh; display: flex; align-items: center; background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1e3a6e 100%); }
.page-hero { padding-bottom: 72px; background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); }
.page-hero__label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; font-family: var(--font-heading); }
.page-hero__title { color: var(--white); margin-bottom: 16px; }
.page-hero__subtitle { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 600px; line-height: 1.7; }
.page-hero__inner { position: relative; z-index: 1; padding-top: 64px; }

/* ---------- Cards & Layouts ---------- */
.card { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--light-gray); padding: 36px; transition: all var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(201, 150, 58, 0.2); }
.card__icon { width: 56px; height: 56px; background: rgba(201, 150, 58, 0.1); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; transition: background var(--transition); }
.card__title { margin-bottom: 10px; }
.card__text { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* ---------- Global Footer ---------- */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 72px 0 0; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 48px; }
.footer__brand img { height: 48px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer__brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; color: rgba(255,255,255,0.6); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 36px; height: 36px; background: rgba(255,255,255,0.08); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.footer__social a:hover { background: var(--gold); color: var(--white); transform: translateY(-2px); }
.footer__heading { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer__links a:hover { color: var(--gold); }
.footer__contact-item { display: flex; gap: 12px; margin-bottom: 14px; font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer__bottom p, .footer__bottom-links a { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer__bottom-links { display: flex; gap: 20px; }
.footer__bottom-links a:hover { color: var(--gold); }

/* ---------- Components ---------- */
.back-to-top { position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px; background: var(--gold); color: var(--white); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow-md); z-index: 500; opacity: 0; pointer-events: none; transform: translateY(12px); transition: all var(--transition); }
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-light); transform: translateY(-3px); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.cta-banner { background: linear-gradient(135deg, var(--navy) 0%, #1e3a6e 100%); padding: 80px 0; text-align: center; }
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* Page Specific Blocks */
.team-card { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--light-gray); text-align: center; overflow: hidden; padding-bottom: 32px; transition: all var(--transition); }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card__avatar { width: 80px; height: 80px; background: linear-gradient(135deg, var(--navy), #1e3a6e); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 32px auto 16px; }
.team-card__name { margin-bottom: 4px; }
.team-card__role { font-size: 0.82rem; font-weight: 600; color: var(--gold); text-transform: uppercase; margin-bottom: 12px; }
.team-card__bio { font-size: 0.9rem; color: var(--text-muted); padding: 0 24px; }

.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--light-gray); }
.service-detail:last-child { border-bottom: none; }
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }
.service-detail__icon { font-size: 3rem; margin-bottom: 20px; }
.service-detail__list { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.service-detail__list li { display: flex; gap: 10px; font-size: 0.95rem; }
.service-detail__list li::before { content: '✓'; color: var(--gold); font-weight: 700; }
.service-detail__visual { background: linear-gradient(135deg, var(--navy) 0%, #1e3a6e 100%); border-radius: var(--radius-lg); padding: 48px; display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; }
.service-detail__emoji { font-size: 5rem; filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3)); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--light-gray); border-radius: var(--radius-md); overflow: hidden; }
.stat-item { background: var(--white); padding: 40px 32px; text-align: center; }
.stat-item__value { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; color: var(--gold); margin-bottom: 8px; }

.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process-step { text-align: center; }
.process-step__number { width: 56px; height: 56px; background: var(--gold); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; margin: 0 auto 20px; }
.process-step__title { margin-bottom: 8px; font-size: 1rem; }
.process-step__text { font-size: 0.88rem; color: var(--text-muted); }

/* ---------- Home Hero (extended layout) ---------- */
.hero__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; width: 100%; padding-top: 72px; }
.hero__content { color: var(--white); }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.hero__title { color: var(--white); margin-bottom: 24px; }
.hero__subtitle { color: rgba(255,255,255,0.75); font-size: 1.1rem; line-height: 1.7; margin-bottom: 36px; max-width: 560px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, auto); gap: 40px; }
.hero__stat-value { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--gold); margin-bottom: 4px; line-height: 1; }
.hero__stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.hero__visual { display: flex; align-items: center; justify-content: center; }
.hero__logo-wrap { width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(201,150,58,0.3), rgba(201,150,58,0.04) 70%); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(201,150,58,0.25); box-shadow: 0 0 80px rgba(201,150,58,0.2); }
.hero__logo-wrap img { filter: brightness(0) invert(1); opacity: 0.95; max-width: 55%; height: auto; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.92); border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; font-family: var(--font-heading); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.badge--gold { background: rgba(201,150,58,0.18); border-color: rgba(201,150,58,0.45); color: var(--white); }

/* ---------- Buttons (extras) ---------- */
.btn--outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline-dark:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

/* ---------- Trust Bar ---------- */
.trust-bar { background: var(--off-white); border-top: 1px solid var(--light-gray); border-bottom: 1px solid var(--light-gray); padding: 22px 0; }
.trust-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.trust-bar__item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-body); font-weight: 600; }
.trust-bar__divider { width: 1px; height: 20px; background: var(--light-gray); }

/* ---------- Stat Item Label ---------- */
.stat-item__label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* ---------- Why Section ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-grid__lead { color: var(--text-muted); margin-bottom: 28px; line-height: 1.8; }
.why-features { display: flex; flex-direction: column; gap: 20px; }
.why-feature { display: flex; gap: 14px; align-items: flex-start; }
.why-feature__icon { width: 40px; height: 40px; background: rgba(201,150,58,0.12); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.why-feature h4 { margin-bottom: 4px; }
.why-feature p { color: var(--text-muted); font-size: 0.92rem; }
.why-card { background: linear-gradient(135deg, var(--navy) 0%, #1e3a6e 100%); border-radius: 20px; padding: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; min-height: 400px; position: relative; overflow: hidden; }
.why-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 30%, rgba(201,150,58,0.15) 0%, transparent 60%); pointer-events: none; }
.why-card__logo { filter: brightness(0) invert(1); max-width: 280px; position: relative; z-index: 1; }
.why-card__badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; position: relative; z-index: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3, .stats-grid, .process-steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; text-align: center; padding-top: 96px; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__badges, .hero__actions, .hero__stats { justify-content: center; }
  .hero__stats { margin: 0 auto; }
  .hero__logo-wrap { width: 260px; height: 260px; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .mobile-nav-toggle { display: block; }
  .nav__list { display: none; }
  .nav.open .nav__list { display: flex; flex-direction: column; width: 100%; padding: 24px; position: absolute; top: 80px; left: 0; background: var(--navy-dark); gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav.open .nav__link { display: block; width: 100%; text-align: center; padding: 12px; }
  .nav.open .btn { width: 100%; display: flex; justify-content: center; }

  .section { padding: 64px 0; }
  .grid-3, .stats-grid, .process-steps, .footer__grid, .service-detail { grid-template-columns: 1fr; }
  .service-detail.reverse { direction: ltr; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 100%; }
  .hero__stat-value { font-size: 1.5rem; }
  .trust-bar__divider { display: none; }
  .trust-bar__inner { justify-content: center; gap: 12px 20px; }
  .why-card { padding: 32px; }
}