/* ============================================================
   WORKFRONT GLOBAL CONSULT — Shared Design System
   ============================================================ */

:root {
  --navy: #0A0E3F;
  --navy-deep: #06081F;
  --navy-soft: #131A5C;
  --gold: #D4A72C;
  --gold-soft: #E8C766;
  --gold-dim: #8A6E1E;
  --cream: #FAF8F3;
  --white: #FFFFFF;
  --slate: #5B6378;
  --slate-light: #8C92A6;
  --line: #E7E4DC;
  --shadow: 0 20px 50px -20px rgba(10, 14, 63, 0.25);
  --shadow-lg: 0 30px 70px -25px rgba(10, 14, 63, 0.4);
  --radius: 14px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--gold); display: inline-block; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px;
}

/* ===================== PAGE LOAD TRANSITION ===================== */
.page-fade {
  animation: pageIn 0.6s var(--ease) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================== HEADER ===================== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250, 248, 243, 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
header.scrolled { border-bottom-color: var(--line); background: rgba(250, 248, 243, 0.96); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; max-width: var(--maxw); margin: 0 auto; }
.logo-link img { height: 34px; width: auto; }
nav.main-nav { display: flex; align-items: center; gap: 38px; }
nav.main-nav ul { display: flex; gap: 32px; }
nav.main-nav a {
  font-size: 14.5px; font-weight: 500; color: var(--navy); position: relative; padding: 4px 0;
}
nav.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--gold); transition: width 0.25s var(--ease);
}
nav.main-nav a:hover::after, nav.main-nav a.active::after { width: 100%; }
nav.main-nav a.active { color: var(--gold-dim); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 100px; font-size: 14.5px; font-weight: 600;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-soft); transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(10,14,63,0.45); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(212,167,44,0.5); }
.btn-outline { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-outline-light { background: transparent; border: 1.5px solid rgba(255,255,255,0.4); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 1100; }
.menu-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== DIAMOND SIGNATURE SYSTEM ===================== */
.diamond { border-radius: 22%; }

/* ===================== marquee strip ===================== */
.marquee-strip { background: var(--white); border-bottom: 1px solid var(--line); padding: 22px 0; overflow: hidden; position: relative; }
.marquee-track { display: flex; gap: 56px; white-space: nowrap; animation: scroll-left 32s linear infinite; width: max-content; }
.marquee-track span {
  font-size: 14px; font-weight: 600; color: var(--slate-light); letter-spacing: 0.04em;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px;
}
.marquee-track span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: inline-block; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===================== SECTION GENERAL ===================== */
section { padding: 110px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-head p { color: var(--slate); font-size: 16.5px; margin-top: 14px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > * { animation: staggerUp 0.6s var(--ease) both; }
.reveal-stagger.in-view > *:nth-child(1) { animation-delay: 0.05s; }
.reveal-stagger.in-view > *:nth-child(2) { animation-delay: 0.12s; }
.reveal-stagger.in-view > *:nth-child(3) { animation-delay: 0.19s; }
.reveal-stagger.in-view > *:nth-child(4) { animation-delay: 0.26s; }
.reveal-stagger.in-view > *:nth-child(5) { animation-delay: 0.33s; }
.reveal-stagger.in-view > *:nth-child(6) { animation-delay: 0.40s; }
.reveal-stagger.in-view > *:nth-child(7) { animation-delay: 0.47s; }
.reveal-stagger.in-view > *:nth-child(8) { animation-delay: 0.54s; }
@keyframes staggerUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ===================== PAGE HERO (interior pages) ===================== */
.page-hero {
  position: relative; padding: 160px 28px 90px; background: var(--navy-deep);
  overflow: hidden; color: var(--white);
}
.page-hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; }
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero h1 { color: var(--white); font-size: clamp(32px, 4.6vw, 52px); max-width: 760px; }
.page-hero p.lead { font-size: 17px; color: rgba(255,255,255,0.75); max-width: 600px; margin-top: 18px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 22px; }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--gold-soft); }

/* floating diamond field used behind dark heroes */
.diamond-field { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fd {
  position: absolute; border: 2px solid; border-radius: 22%;
}

/* ===================== FOOTER ===================== */
footer { background: var(--navy-deep); color: rgba(255,255,255,0.65); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; max-width: 280px; color: rgba(255,255,255,0.55); }
.footer-col h5 { color: var(--white); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { font-size: 14.5px; color: rgba(255,255,255,0.6); transition: color 0.2s ease; word-break: break-word; overflow-wrap: break-word; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-col p { font-size: 14px; color: rgba(255,255,255,0.6); word-break: break-word; overflow-wrap: break-word; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; flex-wrap: wrap; gap: 14px; font-size: 13px; color: rgba(255,255,255,0.45); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center; transition: all 0.25s var(--ease);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.footer-social a:hover svg { stroke: var(--navy-deep); }
.footer-social svg { width: 16px; height: 16px; stroke: rgba(255,255,255,0.8); transition: stroke 0.2s ease; }

/* ===================== back to top ===================== */
.back-to-top {
  position: fixed; bottom: 24px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s ease; z-index: 900;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 18px; height: 18px; stroke: var(--gold-soft); }
.back-to-top:hover { background: var(--navy-soft); }

/* ===================== mobile menu ===================== */
@media (max-width: 760px) {
  nav.main-nav ul { display: none; }
  .menu-toggle { display: flex; }
  .nav-cta { display: none; }
  .mobile-menu {
    position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100vh;
    background: var(--navy-deep); z-index: 1050; padding: 100px 32px 32px;
    transition: right 0.35s var(--ease); display: flex; flex-direction: column; gap: 26px;
  }
  .mobile-menu.open { right: 0; }
  .mobile-menu a { color: var(--white); font-size: 17px; font-weight: 500; }
  .mobile-menu .btn { margin-top: 12px; width: 100%; }
  .menu-overlay { position: fixed; inset: 0; background: rgba(6,8,31,0.5); z-index: 1040; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
  .menu-overlay.open { opacity: 1; visibility: visible; }
  .page-hero { padding: 130px 20px 70px; }
  section { padding: 70px 0; }
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-col { min-width: 0; overflow: hidden; }
  .footer-col a, .footer-col p { font-size: 13.5px; word-break: break-word; overflow-wrap: break-word; }
  footer { overflow-x: hidden; }
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col { min-width: 0; overflow: hidden; }
}

/* ── Newsletter strip (all inner pages) ── */
.nl-strip { background: var(--navy); padding: 48px 0; }
.nl-strip-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.nl-strip-copy { flex: 1; min-width: 200px; }
.nl-strip-copy h3 { color: var(--white); font-size: 20px; margin-bottom: 6px; }
.nl-strip-copy p { color: rgba(255,255,255,0.65); font-size: 14.5px; margin: 0; }
.nl-strip-form { display: flex; gap: 10px; flex: 1.5; min-width: 280px; }
.nl-strip-form input[type="email"] {
  flex: 1; padding: 12px 16px; border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 8px; background: rgba(255,255,255,0.08); color: var(--white);
  font-family: 'Inter', sans-serif; font-size: 14px; box-sizing: border-box;
  transition: border-color 0.2s;
}
.nl-strip-form input::placeholder { color: rgba(255,255,255,0.4); }
.nl-strip-form input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.12); }
.nl-strip .nl-success { color: var(--gold-soft); font-size: 14px; font-weight: 600; display: none; width: 100%; margin-top: 8px; }
.nl-strip .nl-success.show { display: block; }
.nl-honeypot { display: none !important; }
@media (max-width: 760px) {
  .nl-strip-inner { flex-direction: column; align-items: stretch; gap: 20px; }
  .nl-strip-form { flex-direction: column; }
  .nl-strip-form input[type="email"] { width: 100%; }
}
