/* OutFront Endurance - Nautical Deco Theme */

:root {
  --navy-deep: #0A1628;
  --navy-mid: #0F2137;
  --navy-light: #1A3150;
  --ocean: #115E8F;
  --ocean-bright: #1A7AB8;
  --gold: #D4A853;
  --gold-bright: #E8BC6A;
  --coral: #E8735A;
  --coral-bright: #F08B75;
  --seafoam: #7EC8B8;
  --fog: #F5F7FA;
  --fog-dim: #C8D1DB;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--navy-deep);
  color: var(--fog);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Nautical pattern overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(17, 94, 143, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 168, 83, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(126, 200, 184, 0.05) 0%, transparent 40%);
  z-index: -1;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

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

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

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, var(--navy-deep) 0%, transparent 100%);
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fog);
}

.nav-logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-bright) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--fog);
  position: relative;
  overflow: hidden;
}

.nav-logo-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.nav-logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.1em;
}

.nav-logo-text span {
  color: var(--gold);
}

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

.nav-links a {
  color: var(--fog-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

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

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

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

.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-bright) 100%);
  color: var(--fog);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(232, 115, 90, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(232, 115, 90, 0.4);
  color: var(--fog);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu span {
  width: 24px;
  height: 2px;
  background: var(--fog);
  transition: all 0.3s;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-bright) 100%);
  color: var(--fog);
  padding: 18px 36px;
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(232, 115, 90, 0.3);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(232, 115, 90, 0.4);
  color: var(--fog);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--fog);
  padding: 18px 36px;
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  border: 2px solid var(--glass-border);
}

.btn-secondary:hover {
  background: var(--glass);
  border-color: var(--gold);
  color: var(--gold);
}

.btn-small {
  padding: 12px 24px;
  font-size: 16px;
}

/* Section Styling */
section {
  padding: 100px 40px;
  position: relative;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  color: var(--fog);
}

.section-title .accent {
  color: var(--gold);
}

.section-description {
  font-size: 18px;
  color: var(--fog-dim);
  max-width: 600px;
  margin: 20px auto 0;
}

/* Page Header */
.page-header {
  padding: 160px 40px 80px;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
}

.page-header h1 {
  font-size: clamp(48px, 7vw, 80px);
  color: var(--fog);
  margin-bottom: 20px;
}

.page-header h1 .accent {
  color: var(--gold);
}

.page-header p {
  font-size: 20px;
  color: var(--fog-dim);
  max-width: 600px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--fog-dim);
}

.breadcrumb span {
  color: var(--fog-dim);
}

.breadcrumb .current {
  color: var(--gold);
}

/* Cards */
.card {
  background: linear-gradient(145deg, var(--navy-mid) 0%, var(--navy-light) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Distance tags */
.distance-tag {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  color: var(--fog-dim);
  display: inline-block;
}

.distance-tag.featured {
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-bright) 100%);
  border-color: var(--ocean-bright);
  color: var(--fog);
}

/* Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.countdown-item {
  background: var(--navy-deep);
  border-radius: 12px;
  padding: 16px 8px;
  text-align: center;
  border: 1px solid var(--glass-border);
}

.countdown-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.countdown-label {
  font-size: 11px;
  color: var(--fog-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

/* Footer */
.footer {
  background: var(--navy-deep);
  padding: 60px 40px 30px;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 28px;
  color: var(--fog);
  margin-bottom: 16px;
}

.footer-brand h3 span {
  color: var(--gold);
}

.footer-brand p {
  color: var(--fog-dim);
  font-size: 15px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fog-dim);
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--ocean);
  border-color: var(--ocean);
  color: var(--fog);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-column h4 {
  font-size: 16px;
  color: var(--fog);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: var(--fog-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
  color: var(--fog-dim);
  font-size: 13px;
}

.footer-powered {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fog-dim);
  font-size: 13px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 15px 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .mobile-menu {
    display: flex;
  }

  section {
    padding: 60px 20px;
  }

  .page-header {
    padding: 120px 20px 60px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
