/* AMN & ASSOCIATES — Custom Executive Styles & Motion */

:root {
  --amn-navy: #0B192C;
  --amn-navy-deep: #07111E;
  --amn-navy-elevated: #10223A;
  --amn-gold: #D4A338;
  --amn-gold-hover: #BD8D24;
  --amn-gold-text: #8F650D;
  --amn-surface: #FFFFFF;
  --amn-bg: #F8FAFC;
  --amn-border: #E2E8F0;
}

.dark {
  --amn-surface: #10223A;
  --amn-bg: #07111E;
  --amn-border: rgba(148, 163, 184, 0.16);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  margin: 0;
  background-color: var(--amn-bg);
  color: #0F172A;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.dark body {
  color: #F1F5F9;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
}

/* Architectural Hero Grid & Ambient Glow */
.hero-surface {
  background:
    radial-gradient(circle at 82% 18%, rgba(212, 163, 56, 0.18), transparent 44%),
    radial-gradient(circle at 12% 88%, rgba(56, 189, 248, 0.10), transparent 42%),
    linear-gradient(135deg, #07111E 0%, #0B192C 55%, #122745 100%);
}

.hero-grid-overlay {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 45%, transparent 85%);
}

/* Glassmorphism Navigation */
.glass-nav {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.dark .glass-nav {
  background: rgba(7, 17, 30, 0.82);
}

/* Card Hover Elevation */
.exec-card {
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease;
}

.exec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(11, 25, 44, 0.18);
  border-color: rgba(212, 163, 56, 0.55);
}

.dark .exec-card:hover {
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.55);
  border-color: rgba(212, 163, 56, 0.55);
}

/* Smooth Scroll Reveal */
.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal-item,
  .exec-card,
  .modal-panel,
  .modal-backdrop {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Modal Entrance */
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-backdrop {
  animation: modalFadeIn 0.2s ease-out forwards;
}

.modal-panel {
  animation: modalSlideUp 0.26s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Floating WhatsApp Pulse */
@keyframes waRing {
  0% {
    transform: scale(0.95);
    opacity: 0.65;
  }
  70% {
    transform: scale(1.28);
    opacity: 0;
  }
  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

.wa-pulse-ring {
  animation: waRing 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Accessible Focus Ring */
:focus-visible {
  outline: 2px solid #D4A338;
  outline-offset: 2px;
}

/* Fallback layout helpers if CDN utilities lag briefly */
.sr-only-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
