/* ==========================================================================
   MJH CONSULTING SERVICES — LUXURY WHITE & METALLIC GOLD DESIGN SYSTEM
   "Business Solutions. One Trusted Partner."
   ========================================================================== */

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

:root {
  /* Surface & Base Colors */
  --bg-pure: #ffffff;
  --bg-subtle: #fcfbf8;
  --bg-canvas: #f7f5ee;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-dark-accent: #0f1114;
  --bg-charcoal: #15181c;

  /* Text & Ink */
  --text-main: #14171a;
  --text-secondary: #525960;
  --text-muted: #828a93;
  --text-light: #f5f6f8;
  --text-gold-light: #f3e5be;

  /* Metallic Gold Palette (High-end boardroom finish) */
  --gold-300: #f5e7c4;
  --gold-400: #e2c77d;
  --gold-500: #c5a059;
  --gold-600: #b0893a;
  --gold-700: #8a661c;
  --gold-800: #5c430e;

  /* Shaders & Gradients */
  --gold-metallic-gradient: linear-gradient(135deg, #fdf8e6 0%, #e2c77d 30%, #c5a059 60%, #8a661c 100%);
  --gold-text-gradient: linear-gradient(135deg, #8a661c 0%, #c5a059 35%, #5c430e 70%, #b0893a 100%);
  --gold-foil: linear-gradient(90deg, #c5a059 0%, #fef3d1 25%, #c5a059 50%, #fef3d1 75%, #b0893a 100%);
  --gold-surface-subtle: linear-gradient(180deg, rgba(253, 248, 230, 0.4) 0%, rgba(255, 255, 255, 0.9) 100%);
  --dark-gold-gradient: linear-gradient(135deg, #15181c 0%, #1d2229 100%);

  /* Borders & Dividers */
  --border-gold-subtle: rgba(197, 160, 89, 0.24);
  --border-gold-strong: rgba(197, 160, 89, 0.55);
  --border-subtle: rgba(20, 23, 26, 0.08);
  --border-subtle-dark: rgba(255, 255, 255, 0.08);

  /* Shadows & Depth */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 20px 45px -15px rgba(20, 23, 26, 0.06), 0 0 1px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 32px 70px -20px rgba(197, 160, 89, 0.22), 0 0 25px rgba(197, 160, 89, 0.12);
  --shadow-gold-glow: 0 0 35px rgba(197, 160, 89, 0.25);
  --shadow-gold-pill: 0 8px 24px -6px rgba(197, 160, 89, 0.35);

  /* Typography Stacks */
  --font-serif: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;

  /* Layout & Spacing */
  --container-max: 1360px;
  --container-wide: 1540px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-luxury: 0.75s cubic-bezier(0.25, 1, 0.35, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: auto; /* Managed by smooth-scroll or CSS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-pure);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-pure);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* Custom Selection */
::selection {
  background: rgba(197, 160, 89, 0.25);
  color: #14171a;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-pure);
}
::-webkit-scrollbar-thumb {
  background: #d8c499;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-500);
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gold-foil);
  background-size: 200% auto;
  z-index: 10000;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.6);
}

/* Gold Cursor Spotlight (Desktop) */
#cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(226, 199, 125, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-main);
  line-height: 1.2;
}

.font-editorial {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 400;
}

/* Gold Metallic Text Shimmer */
.gold-gradient-text {
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gold-shimmer-text {
  background: linear-gradient(110deg, #8a661c 0%, #c5a059 30%, #fff1ce 50%, #c5a059 70%, #5c430e 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineGold 6s linear infinite;
}

@keyframes shineGold {
  to {
    background-position: 200% center;
  }
}

/* Luxury Section Badges */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(247, 243, 230, 0.85);
  border: 1px solid var(--border-gold-subtle);
  color: var(--gold-700);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.section-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 8px rgba(197, 160, 89, 0.8);
}

/* Section Headings */
.section-title-large {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* ==========================================================================
   CONTAINERS & LAYOUT
   ========================================================================== */
.container-custom {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

.section-padding {
  padding-top: clamp(80px, 10vw, 150px);
  padding-bottom: clamp(80px, 10vw, 150px);
  position: relative;
}

.section-padding-sm {
  padding-top: clamp(50px, 6vw, 90px);
  padding-bottom: clamp(50px, 6vw, 90px);
}

/* Subtle luxury grid backgrounds */
.bg-luxury-white {
  background-color: var(--bg-pure);
}

.bg-luxury-ivory {
  background-color: var(--bg-subtle);
  background-image: radial-gradient(circle at top right, rgba(226, 199, 125, 0.06), transparent 500px),
                    radial-gradient(circle at bottom left, rgba(197, 160, 89, 0.05), transparent 600px);
}

.bg-luxury-dark {
  background: var(--bg-dark-accent);
  color: var(--text-light);
}

/* Golden Decorative Line */
.gold-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(197, 160, 89, 0.3) 25%, rgba(197, 160, 89, 0.7) 50%, rgba(197, 160, 89, 0.3) 75%, transparent 100%);
  margin: 40px 0;
}

.gold-accent-line {
  width: 60px;
  height: 2px;
  background: var(--gold-metallic-gradient);
  margin: 16px 0 24px 0;
}

/* ==========================================================================
   BUTTONS & CTAS
   ========================================================================== */
.btn-gold-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  background: var(--gold-metallic-gradient);
  color: #121417;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-gold-pill);
  transition: all var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-gold-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.btn-gold-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -4px rgba(197, 160, 89, 0.5), 0 0 20px rgba(197, 160, 89, 0.3);
}

.btn-gold-primary:hover::before {
  left: 100%;
}

.btn-gold-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 34px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid var(--border-gold-strong);
  backdrop-filter: blur(10px);
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.btn-gold-outline:hover {
  background: var(--gold-300);
  border-color: var(--gold-500);
  color: var(--gold-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn-dark-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  background: #15181c;
  color: #fdfdfd;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid rgba(197, 160, 89, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.btn-dark-primary:hover {
  background: #000000;
  border-color: var(--gold-400);
  color: var(--gold-300);
  transform: translateY(-2px);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-gold-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-monogram {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gold-metallic-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.15rem;
  color: #111315;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 18px rgba(197, 160, 89, 0.35);
  position: relative;
  overflow: hidden;
}

.brand-monogram::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 40%, rgba(255, 255, 255, 0.6) 50%, transparent 60%);
  animation: shine 5s infinite;
}

@keyframes shine {
  0% { transform: translateY(-100%); }
  20%, 100% { transform: translateY(100%); }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-main);
  line-height: 1;
}

.brand-tagline {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-top: 4px;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-metallic-gradient);
  transition: width var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta-btn {
  padding: 10px 24px;
  font-size: 0.88rem;
}

/* Mobile Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  color: var(--text-main);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: #ffffff;
  z-index: 1001;
  padding: 40px 30px;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 17, 20, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.mobile-nav-links a {
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
  background: radial-gradient(circle at 65% 40%, rgba(245, 231, 196, 0.3) 0%, rgba(255, 255, 255, 0) 65%),
              linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  background: rgba(250, 245, 230, 0.9);
  border: 1px solid var(--border-gold-strong);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 24px;
}

.hero-tag svg {
  width: 14px;
  height: 14px;
  color: var(--gold-600);
}

.hero-headline {
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero-supporting {
  font-family: var(--font-editorial);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  color: var(--gold-700);
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-paragraph {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 40px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Quick Stat Badges in Hero */
.hero-badges-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid rgba(197, 160, 89, 0.25);
  max-width: 600px;
}

.hero-badge-item {
  display: flex;
  flex-direction: column;
}

.hero-badge-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.hero-badge-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* 3D Canvas Container */
.hero-3d-wrapper {
  position: relative;
  width: 100%;
  height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-webgl-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  outline: none;
  cursor: grab;
}

#hero-webgl-canvas:active {
  cursor: grabbing;
}

.hero-3d-overlay-card {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

.hero-3d-overlay-card .dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28a745;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==========================================================================
   AUTHORITY BANNER & CORE PHILOSOPHY
   ========================================================================== */
.authority-bar {
  background: var(--bg-dark-accent);
  color: var(--text-light);
  padding: 32px 0;
  border-top: 1px solid var(--border-gold-strong);
  border-bottom: 1px solid var(--border-gold-strong);
  position: relative;
  overflow: hidden;
}

.authority-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.authority-heading {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.authority-pillars {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.authority-pillar {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d1d5db;
  display: flex;
  align-items: center;
  gap: 8px;
}

.authority-pillar::before {
  content: '◆';
  color: var(--gold-500);
  font-size: 0.6rem;
}

/* ==========================================================================
   RESPONSIVE QUERIES (BASE)
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-3d-wrapper {
    height: 460px;
  }
  .nav-links, .nav-cta-btn {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 768px) {
  .container-custom, .container-wide {
    padding-left: 18px;
    padding-right: 18px;
  }
  .section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .hero-section {
    padding-top: 100px;
    padding-bottom: 50px;
  }
  .hero-badges-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta-group a {
    text-align: center;
  }
}
