/* ============================================
   MAPS VP - Design System & Global Styles
   Premium, modern design with animations
   ============================================ */

/* CSS Custom Properties */
/* CSS Custom Properties */
:root {
  /* Colors - inspired by the vintage compass logo */
  --color-primary: #1a1a2e;
  --color-secondary: #16213e;
  --color-accent-gold: #c9a961;
  --color-accent-bronze: #8b6914;
  --color-accent-warm: #d4af37;
  --color-text: #e8e8e8;
  --color-text-muted: #a0a0a0;
  --color-white: #ffffff;
  --color-black: #0a0a0a;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --gradient-gold: linear-gradient(135deg, #8E6E27 0%, #F5DCA0 50%, #8E6E27 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.8s ease;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 25px 80px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 60px rgba(201, 169, 97, 0.3);
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--gradient-hero);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================
   Animated Background Layers
   ============================================ */

.background-layers {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.3) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(15, 52, 96, 0.5) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation-delay: -5s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 105, 20, 0.2) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -30px) scale(1.05);
  }

  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }

  75% {
    transform: translate(20px, 10px) scale(1.02);
  }
}

/* Sailing Ship Animation */
.ship-container {
  position: absolute;
  bottom: 15%;
  /* Horizon line */
  left: -200px;
  /* Start off-screen left */
  width: 120px;
  height: 120px;
  opacity: 0.15;
  /* Subtle background ghost */
  color: var(--color-accent-gold);
  animation: sailAcross 60s linear infinite, shipBob 3s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

.ship-container img {
  width: 100%;
  height: 100%;
}

@keyframes sailAcross {
  0% {
    left: -200px;
    transform: scaleX(1);
  }

  /* Moving Right */
  49% {
    left: 105%;
    transform: scaleX(1);
    opacity: 0.15;
  }

  50% {
    left: 105%;
    transform: scaleX(-1);
    opacity: 0;
  }

  /* Flip to return or restart? User asked for sailing... lets just loop left to right for now, or reset */
  /* Simplest loop: Left to Right, then restart */
  100% {
    left: 105%;
    transform: scaleX(1);
    opacity: 0;
  }
}

@keyframes shipBob {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(5px) rotate(1deg);
  }
}


/* Compass rose / constellation overlay - frontier meets legacy */
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    /* Subtle star dots scattered across */
    radial-gradient(circle at 20% 30%, rgba(201, 169, 97, 0.15) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(201, 169, 97, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 60% 70%, rgba(201, 169, 97, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 10% 80%, rgba(201, 169, 97, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 90% 60%, rgba(201, 169, 97, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 40% 90%, rgba(201, 169, 97, 0.15) 1px, transparent 1px),
    radial-gradient(circle at 70% 40%, rgba(201, 169, 97, 0.08) 1px, transparent 1px),
    /* Central compass glow */
    radial-gradient(ellipse at 50% 50%, rgba(201, 169, 97, 0.03) 0%, transparent 50%);
  background-size:
    200px 200px,
    300px 250px,
    180px 220px,
    250px 180px,
    220px 300px,
    280px 200px,
    160px 260px,
    100% 100%;
  animation: starTwinkle 8s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
  0% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: rgba(26, 26, 46, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-medium);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  /* Centered by default (Desktop) */
  align-items: center;
  position: relative;
}

@media (max-width: 768px) {
  .nav-container {
    width: 100%;
    /* Ensure container fills the bar so flex-end works */
    justify-content: flex-end;
    /* Push hamburger to right on mobile */
    padding-right: var(--space-sm);
    /* Add padding so it's not glued to edge */
  }
}

.nav-logo {
  display: none;
  /* User requested to remove logo/title completely */
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-white);
}

.nav-logo img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  transition: var(--transition-medium);
}

.nav-logo:hover img {
  transform: rotate(15deg);
}

.nav-logo span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  justify-content: center;
  /* Ensure contents are centered */
  width: auto;
  /* Do not take full width */
  margin: 0 auto;
  /* Auto margins center block elements */
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

.nav-links a:hover {
  color: var(--color-white);
}

.nav-links a:hover::after {
  width: 80%;
}

.nav-links a.active {
  color: var(--color-accent-gold);
}

.nav-links a.active::after {
  width: 80%;
}

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 1001;
  /* Ensure above everything */
  position: relative;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition-fast);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(26, 26, 46, 0.98);
    padding: var(--space-md);
    gap: var(--space-sm);
    margin: 0;
    /* Reset desktop auto margin */
    align-items: center;
    /* Center items in column */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: var(--transition-medium);
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}



/* ============================================
   Hero Section
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 1s ease-out;
}

.hero-logo {
  width: auto;
  height: auto;
  max-width: 280px;
  max-height: 280px;
  margin: 0 auto var(--space-md) auto;
  filter: drop-shadow(0 20px 40px rgba(201, 169, 97, 0.3));
  transition: var(--transition-medium);
  display: block;
}

.hero-logo:hover {
  transform: scale(1.05);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title span {
  display: block;
  font-size: 0.6em;
  font-family: 'Cinzel', serif;
  letter-spacing: 3px;
  margin-top: 15px;
  -webkit-text-fill-color: var(--color-accent-gold);
  font-weight: 400;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-tagline {
  display: inline-block;
  padding: var(--space-xs) 0;
  background: transparent;
  border: none;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  opacity: 0.6;
  font-weight: 400;
}

@keyframes shimmer {

  0%,
  100% {
    border-color: rgba(201, 169, 97, 0.3);
  }

  50% {
    border-color: rgba(201, 169, 97, 0.6);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Page Content Sections
   ============================================ */

.page-content {
  min-height: 100vh;
  padding: 120px var(--space-md) var(--space-xl);
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.page-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease-out;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.page-header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

/* Glass cards */
.glass-card {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
  transition: var(--transition-medium);
}

.glass-card:nth-child(2) {
  animation-delay: 0.1s;
}

.glass-card:nth-child(3) {
  animation-delay: 0.2s;
}

.glass-card:nth-child(4) {
  animation-delay: 0.3s;
}

.glass-card:hover {
  border-color: rgba(201, 169, 97, 0.3);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.glass-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.glass-card h2 .icon {
  color: var(--color-accent-gold);
  font-size: 1.3rem;
}

.glass-card h3 {
  font-size: 1.1rem;
  color: var(--color-accent-gold);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.glass-card p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.glass-card ul {
  list-style: none;
  margin-top: var(--space-sm);
}

.glass-card ul li {
  color: var(--color-text-muted);
  padding: var(--space-xs) 0;
  padding-left: var(--space-md);
  position: relative;
}

.glass-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent-gold);
}

/* Contact info styling */
.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  color: var(--color-text);
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 169, 97, 0.1);
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: var(--radius-sm);
  color: var(--color-accent-gold);
}

.contact-item a {
  color: var(--color-accent-gold);
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-item a:hover {
  color: var(--color-accent-warm);
  text-decoration: underline;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  background: rgba(10, 10, 10, 0.5);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  position: relative;
  width: 100%;
}

.footer-logo::before,
.footer-logo::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--gradient-gold);
  border-radius: 1px;
  opacity: 0.7;
}

/* Ensure lines don't touch the logo too closely (handled by gap, but extra safety) */
.footer-logo img {
  padding: 0 var(--space-xs);
}

.footer-logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  /* Ensures ratio is never messed up */
}


.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent-gold);
}

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ============================================
   Utilities & Animations
   ============================================ */

.text-gold {
  color: var(--color-accent-gold);
}

.text-center {
  text-align: center;
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

/* Scroll reveal animation trigger classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Button styles */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  background: var(--gradient-gold);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition-medium);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-accent-gold);
  color: var(--color-accent-gold);
}

.btn-outline:hover {
  background: rgba(201, 169, 97, 0.1);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-accent-gold);
  color: var(--color-primary);
  z-index: 9999;
}

.skip-link:focus {
  top: 0;
}

/* Print styles */
@media print {

  .background-layers,
  .nav,
  .footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .glass-card {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}