/* ── MATERIALITI RISK ADVISORY — SHARED STYLES V2 ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --black: #000000;
  --white: #ffffff;
  --grey: #888888;
  --lightgrey: #e5e5e5;
  --offwhite: #f5f5f5;
  --blue: #00AEEF;
  --blue-dim: rgba(0, 174, 239, 0.12);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--black);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-bottom-color: var(--lightgrey); }

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-mark { display: flex; flex-direction: column; align-items: flex-start; }
.nav-bars { display: flex; gap: 4px; align-items: flex-end; }
.nav-bar { width: 2px; border-radius: 1px; background: var(--black); }
.nb-tall { height: 16px; }
.nb-short { height: 10px; }
.nav-crossbar { width: 8px; height: 1px; background: var(--black); margin-top: 3px; }
.nav-wordmark { font-size: 15px; font-weight: 400; letter-spacing: 0.03em; color: var(--black); }

.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 400; color: var(--grey);
  text-decoration: none; letter-spacing: 0.02em; transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--black); }
.nav-links a.active { color: var(--black); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--blue);
  display: block;
}

.nav-cta {
  font-size: 13px; font-weight: 500;
  color: var(--white) !important;
  background: var(--black);
  padding: 10px 22px;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity 0.2s !important;
  line-height: 1;
  align-self: center;
}
.nav-cta:hover { opacity: 0.75 !important; }
.nav-cta::after { display: none !important; }

/* ── EXTERNAL LINKS ── */
a[href^="http"]:not(.btn-primary):not(.btn-secondary):not(.nav-cta):not(.nav-logo):not(.footer-logo) {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 174, 239, 0.3);
  transition: border-color 0.2s;
}
a[href^="http"]:not(.btn-primary):not(.btn-secondary):not(.nav-cta):not(.nav-logo):not(.footer-logo):hover {
  border-bottom-color: var(--blue);
}

/* ── FOOTER ── */
footer {
  padding: 48px;
  border-top: 1px solid var(--lightgrey);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-wordmark { font-size: 13px; font-weight: 400; color: var(--black); letter-spacing: 0.03em; }
.footer-mark { display: flex; flex-direction: column; }
.footer-bars { display: flex; gap: 3px; align-items: flex-end; }
.fb { width: 1.5px; border-radius: 1px; background: var(--black); }
.fb-t { height: 12px; }
.fb-s { height: 8px; }
.footer-crossbar { width: 6px; height: 1px; background: var(--black); margin-top: 2px; }
.footer-links { display: flex; gap: 32px; list-style: none; }
.footer-links a { font-size: 12px; color: var(--grey); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--black); }
.footer-copy { font-size: 12px; color: var(--lightgrey); font-weight: 300; }

/* ── SHARED COMPONENTS ── */
.section-divider { height: 1px; background: var(--lightgrey); margin: 0 48px; }

.page-hero {
  padding: 180px 48px 96px;
  border-bottom: 1px solid var(--lightgrey);
}
.page-eyebrow {
  font-size: 11px; font-weight: 400; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--grey); margin-bottom: 24px;
}
.page-title {
  font-size: clamp(40px, 6vw, 80px); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.04; color: var(--black);
  max-width: 800px; margin-bottom: 32px;
}
.page-title em { font-style: normal; color: var(--grey); }
.page-sub {
  font-size: 19px; font-weight: 300; color: var(--grey);
  max-width: 560px; line-height: 1.6;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--black); color: var(--white);
  font-size: 15px; font-weight: 500; padding: 16px 32px;
  border-radius: 100px; text-decoration: none; transition: opacity 0.2s;
  letter-spacing: 0.01em; border: none; cursor: pointer;
}
.btn-primary:hover { opacity: 0.75; }

.btn-secondary {
  font-size: 15px; font-weight: 400; color: var(--black);
  text-decoration: none; letter-spacing: 0.01em;
  border-bottom: 1px solid var(--black); padding-bottom: 1px;
  transition: opacity 0.2s;
}
.btn-secondary:hover { opacity: 0.5; }

/* Blue submit button */
.btn-blue {
  display: inline-flex; align-items: center;
  background: var(--blue); color: var(--white);
  font-size: 14px; font-weight: 500;
  font-family: 'Inter', sans-serif;
  padding: 14px 28px; border-radius: 0 100px 100px 0;
  border: 1px solid var(--blue); cursor: pointer;
  transition: opacity 0.2s; letter-spacing: 0.02em;
  white-space: nowrap;
}
.btn-blue:hover { opacity: 0.85; }

.section-label {
  font-size: 10px; font-weight: 500; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--grey);
  padding-top: 8px; position: sticky; top: 100px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes scrollDrop { 0% { top: -100%; } 50% { top: 100%; } 100% { top: 100%; } }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s 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; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .page-hero { padding: 140px 24px 64px; }
  .section-divider { margin: 0 24px; }
  footer { padding: 32px 24px; flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
