/* ============================================================
   NEXUS BUSINESS CONSULTANTS — GLOBAL STYLESHEET
   Design: Refined Luxury / Editorial Minimal
   Palette: Deep Navy #0A1628 | Silver #C0C8D8 | Gold Accent #B8965A | Off-White #F4F2EF
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600;700&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --navy: #0A1628;
  --navy-mid: #112040;
  --navy-light: #1a3060;
  --silver: #C0C8D8;
  --silver-light: #E8ECF2;
  --gold: #B8965A;
  --gold-light: #D4AF7A;
  --white: #F4F2EF;
  --white-pure: #FFFFFF;
  --text-dark: #0A1628;
  --text-mid: #4A5568;
  --text-light: #8896AA;
  --border: rgba(192, 200, 216, 0.2);
  --border-gold: rgba(184, 150, 90, 0.3);
  
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', sans-serif;
  --font-ui: 'DM Sans', sans-serif;
  
  --max-width: 1200px;
  --section-pad: 120px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--white);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 60px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  background: #ffffff;
  border-bottom: 1px solid rgba(10,22,40,0.08);
  box-shadow: 0 2px 16px rgba(10,22,40,0.06);
}

.nav.scrolled {
  background: #ffffff;
  height: 80px;
  border-bottom: 1px solid rgba(10,22,40,0.08);
  box-shadow: 0 2px 20px rgba(10,22,40,0.08);
}

.nav-logo img {
  height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links .dropdown {
  position: relative;
}

.nav-links .dropdown-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  min-width: 220px;
  padding: 12px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
}

.nav-links .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  top: calc(100% + 12px);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 24px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--silver);
  text-transform: uppercase;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  color: var(--gold);
  background: rgba(184, 150, 90, 0.08);
}

.dropdown-menu li a::after { display: none; }

.nav-cta {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy) !important;
  background: var(--gold);
  padding: 10px 24px;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--navy) !important;
  transform: translateY(-1px);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--navy);
  transition: var(--transition);
}

/* ============================================================
   PAGE HERO — INNER PAGES
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 168px 60px 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(184,150,90,0.06) 0%, transparent 70%),
    linear-gradient(135deg, rgba(26,48,96,0.4) 0%, transparent 60%);
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(192,200,216,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192,200,216,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-hero-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.page-hero p {
  margin-top: 24px;
  max-width: 600px;
  color: var(--silver);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
}

/* ============================================================
   SECTIONS — BASE
   ============================================================ */
.section {
  padding: var(--section-pad) 60px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-body {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.85;
  max-width: 680px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(184,150,90,0.25);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(244,242,239,0.4);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}
.btn:hover svg {
  transform: translateX(4px);
}

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  display: grid;
  gap: 2px;
}

.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white-pure);
  padding: 48px 40px;
  border: 1px solid var(--silver-light);
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(10,22,40,0.1);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  color: var(--gold);
}

.card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.3;
}

.card-body {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 24px 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  color: var(--silver);
  padding: 80px 60px 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

.footer-brand img {
  height: 64px;
  margin-bottom: 24px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-light);
  max-width: 300px;
}

.footer-tagline {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  color: var(--gold);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}

.footer-col ul { list-style: none; }
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-light);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes lineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav { padding: 0 32px; }
  .section { padding: 80px 32px; }
  .page-hero { padding: 140px 32px 64px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  footer { padding: 60px 32px 32px; }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav { padding: 0 20px; height: 68px; }
  .section { padding: 64px 24px; }
  .page-hero { padding: 120px 24px 56px; }
  footer { padding: 48px 24px 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  
  .mobile-nav-open {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }
  .mobile-nav-open a {
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    width: 220px;
    text-align: center;
  }
  .mobile-nav-open a:hover { color: var(--gold); }
}
