/* ============================================
   SUSTINIUM – Boutique Advisory
   Design: Full Dark + Gold, Condensed, Luxurious
   ============================================ */

/* --- VARIABLES --- */
:root {
  --gold:        #D4AF37;
  --gold-light:  #F5E6A3;
  --gold-mid:    #E8D48B;
  --gold-dark:   #B8962E;
  --gold-muted:  #8A7D5A;
  --black:       #020202;
  --graphite:    #101010;
  --dark-alt:    #0C0C0C;
  --gray-900:    #1A1A1A;
  --gray-800:    #2A2A2A;
  --gray-700:    #3A3A3A;
  --gray-600:    #666666;
  --gray-400:    #999999;
  --gray-300:    #B0B0B0;
  --gray-200:    #D0D0D0;
  --white:       #F0EDE6;
  --pure-white:  #FFFFFF;

  --font-serif:  'Cormorant Garamond', 'Georgia', serif;
  --font-body:   'Cormorant Garamond', 'Georgia', serif;

  --space-xs:    0.3rem;
  --space-sm:    0.6rem;
  --space-md:    1.2rem;
  --space-lg:    2rem;
  --space-xl:    2.2rem;
  --space-2xl:   2.5rem;

  --max-width:   1100px;
  --transition:  0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--gray-300);
  background-color: var(--black);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-light);
}

::selection {
  background: var(--gold);
  color: var(--black);
}

/* --- CONTAINER --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(
    90deg,
    rgba(2, 2, 2, 0.95) 0%,
    rgba(4, 4, 4, 0.92) 15%,
    rgba(22, 20, 16, 0.88) 35%,
    rgba(28, 25, 18, 0.88) 50%,
    rgba(22, 20, 16, 0.88) 65%,
    rgba(4, 4, 4, 0.92) 85%,
    rgba(2, 2, 2, 0.95) 100%
  );
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.06);
  transition: all var(--transition);
}

.nav--scrolled {
  background: linear-gradient(
    90deg,
    rgba(2, 2, 2, 0.98) 0%,
    rgba(4, 4, 4, 0.97) 15%,
    rgba(22, 20, 16, 0.96) 35%,
    rgba(28, 25, 18, 0.96) 50%,
    rgba(22, 20, 16, 0.96) 65%,
    rgba(4, 4, 4, 0.97) 85%,
    rgba(2, 2, 2, 0.98) 100%
  );
  border-bottom-color: rgba(212, 175, 55, 0.12);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  opacity: 0.9;
  transition: opacity var(--transition);
}

.nav-logo:hover .nav-logo-img {
  opacity: 1;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.18em;
  opacity: 0.9;
  transition: opacity var(--transition);
}

.nav-logo:hover .nav-logo-text {
  opacity: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
}

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

.nav-cta {
  border: 1px solid var(--gold-dark);
  padding: 0.4em 1.1em;
  color: var(--gold) !important;
  letter-spacing: 0.1em;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--black) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--gold);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.nav-toggle span:first-child { top: 0; }
.nav-toggle span:last-child { bottom: 0; }

.nav-toggle.active span:first-child {
  top: 50%;
  transform: rotate(45deg);
}

.nav-toggle.active span:last-child {
  bottom: 50%;
  transform: rotate(-45deg);
}

/* ===== GLOBAL BACKGROUND — lighter center fading to dark sides ===== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 2, 2, 1) 0%,
    rgba(4, 4, 4, 1) 15%,
    rgba(22, 20, 16, 1) 35%,
    rgba(28, 25, 18, 1) 50%,
    rgba(22, 20, 16, 1) 65%,
    rgba(4, 4, 4, 1) 85%,
    rgba(2, 2, 2, 1) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  background: transparent;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(212, 175, 55, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 750px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  margin-bottom: var(--space-lg);
  animation: fadeInUp 1.2s ease-out 0.2s both;
}

.hero-logo img {
  margin: 0 auto;
}

.hero-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent);
  margin: 0 auto var(--space-md);
  animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-desc {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--gray-200);
  line-height: 1.75;
  margin-bottom: var(--space-sm);
  animation: fadeInUp 1s ease-out 0.7s both;
}

.hero-sub {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-actions {
  animation: fadeInUp 1s ease-out 1.1s both;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  animation: fadeInUp 1s ease-out 1.4s both;
}

.hero-scroll span {
  display: block;
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--gold-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9em 2.6em;
  border: 1px solid var(--gold-dark);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
}

/* --- SECTIONS --- */
.section {
  padding: var(--space-2xl) 0;
  color: var(--gray-300);
  background: transparent;
  position: relative;
  z-index: 1;
}

/* All sections share the same transparent background */
.section--dark {
  background: transparent;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  text-align: center;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin-bottom: var(--space-md);
  color: var(--white);
  text-align: center;
}

/* --- VALUE STATEMENT --- */
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.value-lead {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--gray-200);
  margin-bottom: var(--space-sm);
}

.value-text p:last-child {
  color: var(--gray-400);
  font-size: 0.92rem;
}

.value-pillars {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pillar {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.pillar-num {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  font-weight: 500;
}

.pillar-label {
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--white);
}

.value-result {
  font-size: 1.05rem;
  font-weight: 500;
  font-style: italic;
  color: var(--gold);
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

/* --- SERVICES --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  padding: var(--space-md);
  border: 1px solid rgba(212, 175, 55, 0.07);
  background: rgba(255, 255, 255, 0.012);
  transition: all var(--transition);
  position: relative;
}

.service-card::before {
  content: attr(data-index);
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 0.7rem;
  color: var(--gold-muted);
  letter-spacing: 0.1em;
}

.service-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.025);
  box-shadow: 0 4px 40px rgba(212, 175, 55, 0.05);
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.01em;
  padding-right: 2rem;
}

.service-card p {
  font-size: 0.86rem;
  color: var(--gray-400);
  line-height: 1.65;
}

/* --- DIFFERENTIATOR --- */
.diff-content {
  text-align: center;
}

.diff-lead {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs) var(--space-lg);
  text-align: left;
  max-width: 800px;
  margin: 0 auto var(--space-lg);
}

.diff-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
}

.diff-marker {
  display: block;
  width: 8px;
  height: 1px;
  background: var(--gold);
  margin-top: 0.8em;
  flex-shrink: 0;
}

.diff-item p {
  font-size: 0.95rem;
  color: var(--gray-200);
  line-height: 1.65;
}

.diff-bridge {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold);
  font-style: italic;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  text-align: center;
}

/* --- ABOUT --- */
.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-sm);
  color: var(--gray-300);
}

.about-content p:last-child {
  font-style: italic;
  color: var(--gold-muted);
  margin-bottom: 0;
}

/* --- CONTACT --- */
.contact-inner {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: var(--space-md);
}

.contact-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.contact-link {
  font-size: 0.95rem;
  color: var(--gray-400);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}

.contact-link:hover {
  color: var(--gold);
}

.contact-link--linkedin {
  margin-top: var(--space-xs);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-muted);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding-bottom: 2px;
}

.contact-link--linkedin:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* --- FOOTER --- */
.footer {
  background: transparent;
  border-top: 1px solid rgba(212, 175, 55, 0.04);
  padding: var(--space-md) 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.footer-logo {
  opacity: 0.35;
}

.footer p {
  font-size: 0.72rem;
  color: var(--gray-600);
  letter-spacing: 0.08em;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  html { font-size: 17px; }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .diff-grid {
    grid-template-columns: 1fr;
  }

  .section { padding: var(--space-lg) 0; }
}

@media (max-width: 640px) {
  html { font-size: 16px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(8, 8, 8, 0.97);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: 100svh;
    padding: var(--space-lg) var(--space-sm);
  }

  .hero-logo img {
    width: 300px;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-title {
    font-size: 1.4rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }
}