/* ========================================
   javigoeswild.com — Design System
   ======================================== */

/* --- Custom Properties --- */
:root {
  --color-navy: #002142;
  --color-navy-deep: #001a35;
  --color-navy-light: #0a3460;
  --color-orange: #FF5832;
  --color-orange-hover: #ff7a5c;
  --color-orange-glow: rgba(255, 88, 50, 0.3);
  --color-teal: #009DA2;
  --color-teal-light: #00c4ca;
  --color-sand: #F4EBDD;
  --color-sand-dark: #e8dbc8;
  --color-white: #ffffff;
  --color-text-light: rgba(244, 235, 221, 0.85);
  --color-text-muted: rgba(244, 235, 221, 0.55);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 100px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.18);
  --shadow-btn: 0 4px 16px rgba(255, 88, 50, 0.35);
  --shadow-btn-hover: 0 6px 24px rgba(255, 88, 50, 0.5);
  --transition-fast: 0.2s ease;
  --transition-med: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-sand);
  background-color: var(--color-navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn__icon {
  flex-shrink: 0;
}

.btn--primary {
  background: var(--color-orange);
  color: var(--color-white);
  padding: 14px 28px;
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-orange-hover);
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: rgba(244, 235, 221, 0.08);
  color: var(--color-sand);
  padding: 10px 20px;
  font-size: 0.875rem;
  border: 1px solid rgba(244, 235, 221, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: rgba(244, 235, 221, 0.15);
  border-color: rgba(244, 235, 221, 0.3);
  transform: translateY(-1px);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn--wide {
  width: 100%;
  max-width: 320px;
}

/* Shimmer effect on primary buttons */
.btn--primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn--primary:hover::after {
  left: 120%;
}

/* =============================================
   SECTION 1: HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--color-navy-deep) 0%, var(--color-navy) 40%, var(--color-navy-light) 100%);
  padding: 60px 24px 120px;
  overflow: hidden;
}

/* Subtle radial glow behind logo */
.hero::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-orange-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% { opacity: 0.4; transform: translateX(-50%) scale(0.95); }
  100% { opacity: 0.7; transform: translateX(-50%) scale(1.05); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.hero__logo {
  margin-bottom: 8px;
}

.hero__logo-img {
  width: 180px;
  height: 180px;
  animation: logo-entrance 1s var(--transition-med) both;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

@keyframes logo-entrance {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero__wordmark {
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-sand);
  animation: fade-up 0.8s 0.3s ease both;
}

.hero__wordmark-bold {
  font-weight: 800;
}

.hero__wordmark-light {
  font-weight: 300;
}

.hero__tagline {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-text-light);
  margin-bottom: 24px;
  animation: fade-up 0.8s 0.5s ease both;
}

@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__socials {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fade-up 0.8s 0.7s ease both;
}

.hero__socials-primary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__socials-secondary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Wave at bottom of hero */
.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2;
}

.hero__wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* =============================================
   SECTION 2: VOYAGE
   ============================================= */
.voyage {
  background: var(--color-sand);
  color: var(--color-navy);
  padding: 64px 0 72px;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-teal);
  margin-bottom: 20px;
}

.section-title--light {
  color: var(--color-teal-light);
}

.voyage__content {
  text-align: center;
}

.voyage__headline {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--color-navy);
}

.voyage__details {
  font-size: 1rem;
  color: var(--color-navy-light);
  margin-bottom: 32px;
}

.voyage__details em {
  font-style: italic;
  color: var(--color-orange);
  font-weight: 600;
}

.voyage__map {
  margin-top: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.voyage__map-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.voyage__route {
  position: relative;
}

.voyage__stops {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 4px;
  align-items: center;
}

.voyage__stop {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 12px;
  background: var(--color-navy);
  color: var(--color-sand);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.voyage__stop-dot {
  color: var(--color-teal);
  font-size: 0.8rem;
  font-weight: 600;
}

/* =============================================
   SECTION 3: LATEST
   ============================================= */
.latest {
  background: var(--color-navy);
  padding: 64px 0 72px;
}

.latest__card {
  background: linear-gradient(135deg, rgba(244, 235, 221, 0.06) 0%, rgba(244, 235, 221, 0.02) 100%);
  border: 1px solid rgba(244, 235, 221, 0.1);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  margin-bottom: 16px;
}

.latest__card:hover {
  border-color: rgba(244, 235, 221, 0.2);
  transform: translateY(-2px);
}

.latest__card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.latest__icon {
  color: var(--color-orange);
  opacity: 0.8;
}

.latest__card--ig .latest__icon {
  color: var(--color-teal-light);
}

.latest__text {
  font-size: 1rem;
  color: var(--color-text-light);
  font-weight: 400;
}

/* =============================================
   SECTION 4: ABOUT
   ============================================= */
.about {
  background: var(--color-sand);
  color: var(--color-navy);
  padding: 64px 0 72px;
}

.about__card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.about__avatar {
  margin: 0 auto 16px;
  width: 80px;
  height: 80px;
}

.about__avatar img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  border: 3px solid var(--color-sand-dark);
}

.about__name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-navy);
}

.about__bio {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-navy-light);
  max-width: 480px;
  margin: 0 auto;
}

/* =============================================
   SECTION 5: FOLLOW
   ============================================= */
.follow {
  background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  color: var(--color-sand);
  padding: 72px 0 80px;
  text-align: center;
}

.follow__sub {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
  font-weight: 400;
}

.follow__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.follow__buttons-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* =============================================
   SECTION 6: FOOTER
   ============================================= */
.footer {
  background: var(--color-navy-deep);
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid rgba(244, 235, 221, 0.06);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__email a {
  font-size: 0.85rem;
  color: var(--color-teal);
  transition: color var(--transition-fast);
}

.footer__email a:hover {
  color: var(--color-teal-light);
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* =============================================
   ANIMATIONS — Scroll Reveal
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* =============================================
   RESPONSIVE
   ============================================= */

/* Larger phones */
@media (min-width: 390px) {
  .hero__logo-img {
    width: 200px;
    height: 200px;
  }
  .hero__wordmark {
    font-size: 2.8rem;
  }
}

/* Tablets+ */
@media (min-width: 768px) {
  .hero__logo-img {
    width: 240px;
    height: 240px;
  }
  .hero__wordmark {
    font-size: 3.4rem;
  }
  .hero__tagline {
    font-size: 1.2rem;
  }
  .voyage__headline {
    font-size: 1.8rem;
  }
  .container {
    max-width: 720px;
  }
  .latest .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .latest .section-title {
    grid-column: 1 / -1;
  }
  .latest__card {
    margin-bottom: 0;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero__logo-img {
    width: 280px;
    height: 280px;
  }
  .hero__wordmark {
    font-size: 4rem;
  }
  .hero::before {
    width: 500px;
    height: 500px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
