/* Elementum Advisory - Global Styles */

/* Base */
* {
  font-family: 'Inter', system-ui, sans-serif;
}

:root {
  --navy: #001F3F;
  --sienna: #A0522D;
  --alabaster: #F8F6F2;
}

html, body {
  background-color: #001F3F;
  scroll-behavior: smooth;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

/* Navigation */
.glass-nav {
  background: #001F3F;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #A0522D;
  transition: background .1s, box-shadow .1s;
}

.glass-nav.scrolled {
  background: #001F3F;
  box-shadow: 0 4px 30px rgba(0, 31, 63, .3);
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .6s ease-in-out, transform .6s ease-in-out;
}

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

.reveal-delay-1 { transition-delay: 50ms; }
.reveal-delay-2 { transition-delay: 100ms; }
.reveal-delay-3 { transition-delay: 150ms; }
.reveal-delay-4 { transition-delay: 200ms; }
.reveal-delay-5 { transition-delay: 250ms; }
.reveal-delay-6 { transition-delay: 300ms; }

/* Cards */
.card-hover {
  transition: transform .3s ease-in-out, box-shadow .3s ease-in-out;
  will-change: transform;
}

.card-hover:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 32px rgba(0, 31, 63, .12);
}

.sector-card {
  transition: background .3s ease-in-out, border-color .3s ease-in-out, transform .3s ease-in-out;
  background: transparent;
}

.sector-card:hover {
  background: rgba(160, 82, 45, .15);
  border-color: rgba(160, 82, 45, .5);
  transform: scale(1.02);
}

/* Buttons */
.btn-primary {
  transition: transform .3s ease-in-out, box-shadow .3s ease-in-out, opacity .3s ease-in-out;
  will-change: transform;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(160, 82, 45, .3);
  opacity: .95;
}

.btn-primary:active {
  transform: translateY(0) scale(1);
  transition: transform .1s ease-in-out;
}

/* Navigation Links */
.nav-link {
  position: relative;
  transition: opacity .3s ease-in-out, transform .3s ease-in-out;
}

.nav-link:hover {
  opacity: .85;
  transform: scale(1.05);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #F8F6F2;
  transition: width .3s ease-in-out;
}

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

/* Geographic Tags */
.geo-tag {
  transition: background .3s ease-in-out, transform .3s ease-in-out, opacity .3s ease-in-out;
}

.geo-tag:hover {
  background: rgba(160, 82, 45, .5);
  transform: translateY(-2px) scale(1.03);
  opacity: .9;
}

/* Hero Animation */
.hero-animate {
  opacity: 0;
  transform: translateY(40px);
  animation: heroReveal .8s ease-in-out forwards;
}

.hero-animate-delay-1 { animation-delay: .2s; }
.hero-animate-delay-2 { animation-delay: .4s; }
.hero-animate-delay-3 { animation-delay: .6s; }

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Photo Container */
.photo-container {
  overflow: hidden;
}

.photo-container img {
  transition: transform .1s ease-out;
}

.photo-container:hover img {
  transform: scale(1.02);
}

/* Typography */
.text-display {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
}

.text-h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.01em;
}

.text-h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
}

.text-h3 {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .02em;
}

.text-body {
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
}

.text-body-sm {
  font-size: .875rem;
  line-height: 1.6;
  font-weight: 400;
}

.text-caption {
  font-size: .75rem;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: .04em;
}

/* Lazy Images */
.lazy-img {
  opacity: 0;
  transition: opacity .3s;
}

.lazy-img.loaded {
  opacity: 1;
}
