/* ============================================
   MODERN SLEEK DESIGN SYSTEM
   Optimized for conversions & brand collaborations
   ============================================ */

:root {
  /* Primary Colors — unified premium palette */
  --primary: #0a1628;
  --primary-light: #1a2840;
  --accent: #d4691d;
  --accent-light: #e07c2e;
  --accent-dark: #b8541a;

  /* Secondary Colors */
  --secondary: #1a9b8e;
  --tertiary: #f0a559;
  --success: #10b981;
  --warning: #f59e0b;

  /* Neutrals — warm ramp shared with premium.css */
  --white: #ffffff;
  --off-white: #fafaf8;
  --grey-50: #f5f5f3;
  --grey-100: #ebe8e3;
  --grey-200: #ddd9d0;
  --grey-300: #c4bdb2;
  --grey-400: #a89a8a;
  --grey-500: #8b7f74;
  --grey-600: #6b6560;
  --grey-700: #504b44;
  --grey-800: #3a3530;
  --grey-900: #1f1b18;

  /* Legacy tokens still referenced by destination/404 markup
     (previously defined only in the unlinked theme.css) */
  --ink: #0a1628;
  --ink-soft: #504b44;
  --sea: #1a9b8e;
  --sand: #f0ece4;
  --yt-red: #ff0000;
  --radius: 14px;
  --radius-pill: 999px;
  --shadow: 0 8px 30px rgba(31, 27, 22, 0.08);
  --maxw: 1140px;
  --maxw-prose: 720px;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;

  /* Typography */
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--grey-50);
  color: var(--grey-900);
  line-height: 1.6;
  letter-spacing: -0.3px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.1;
}

h1 { font-size: clamp(2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.875rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--grey-600);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-light);
}

/* ============================================
   LAYOUT & UTILITIES
   ============================================ */

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media (min-width: 1024px) {
  .wrap {
    padding: 0 var(--spacing-lg);
  }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-200);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-xl);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  font-family: var(--font-display);
  transition: all var(--transition-fast);
}

.logo:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.nav-menu {
  display: flex;
  gap: var(--spacing-xl);
  align-items: center;
  list-style: none;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--grey-700);
  position: relative;
  transition: color var(--transition-fast);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-fast);
}

.nav-menu a:hover {
  color: var(--accent);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: clamp(80px, 12vw, 120px) var(--spacing-md);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  color: white;
  margin-bottom: var(--spacing-lg);
  animation: slideInUp 0.8s ease-out;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-2xl);
  animation: slideInUp 0.8s ease-out 0.1s both;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-ghost:hover {
  background: white;
  color: var(--primary);
}

/* BEM-style button aliases — destination pages and 404 use these names
   (previously styled only by the unlinked theme.css) */
.btn--primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow);
  border-radius: var(--radius-pill);
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--ghost {
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  border-radius: var(--radius-pill);
}

.btn--ghost:hover {
  background: var(--ink);
  color: white;
}

.btn--yt {
  background: var(--yt-red);
  color: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius-pill);
}

.btn--yt::before {
  content: '▶';
  font-size: 0.9em;
  position: static;
  background: none;
  transform: none;
}

.btn--yt:hover {
  background: #e00000;
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================
   CARD COMPONENTS
   ============================================ */

.card {
  background: white;
  border-radius: 12px;
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--grey-200);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
}

.card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--grey-100) 0%, var(--grey-200) 100%);
  border-radius: 8px;
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: clamp(60px, 10vw, 100px) var(--spacing-md);
}

@media (min-width: 1024px) {
  section {
    padding: clamp(60px, 10vw, 100px) var(--spacing-lg);
  }
}

section.alt {
  background: var(--grey-100);
}

.section-header {
  max-width: 800px;
  margin-bottom: clamp(40px, 6vw, 60px);
}

.section-header h2 {
  margin-bottom: var(--spacing-md);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--grey-600);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   BRAND SHOWCASE
   ============================================ */

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
  background: white;
  border-radius: 12px;
  border: 1px solid var(--grey-200);
  text-align: center;
  transition: all var(--transition-base);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.brand-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
}

.brand-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
}

.brand-card:hover::before {
  opacity: 0.05;
}

.brand-logo {
  width: 120px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-100);
  border-radius: 8px;
  margin-bottom: var(--spacing-lg);
  transition: all var(--transition-base);
}

.brand-card:hover .brand-logo {
  background: linear-gradient(135deg, var(--grey-100), var(--grey-200));
  transform: scale(1.1);
}

.brand-logo img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.brand-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary);
}

.brand-card p {
  font-size: 0.95rem;
  color: var(--grey-600);
  line-height: 1.6;
}

/* ============================================
   DESTINATION CARDS
   ============================================ */

.destination-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 280px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.destination-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 46, 0.7) 0%, rgba(255, 107, 53, 0.3) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 2;
}

.destination-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.destination-card:hover img {
  transform: scale(1.1);
}

.destination-card:hover::before {
  opacity: 1;
}

.destination-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-xl);
  color: white;
  z-index: 3;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-base);
}

.destination-card:hover .destination-info {
  transform: translateY(0);
  opacity: 1;
}

.destination-info h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: white;
}

.destination-info p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--primary);
  color: white;
  padding: clamp(60px, 8vw, 80px) var(--spacing-md);
}

footer .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-3xl);
}

.footer-col h3 {
  color: white;
  margin-bottom: var(--spacing-lg);
  font-size: 1.125rem;
}

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

.footer-col ul li {
  margin-bottom: var(--spacing-md);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-2xl);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: var(--spacing-lg);
    gap: var(--spacing-md);
    border-bottom: 1px solid var(--grey-200);
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  /* Destination guides / blog index / 404 page use .nav-links instead
     of .nav-menu; mirror the same mobile collapse/toggle behavior here. */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: white;
    padding: var(--spacing-lg);
    gap: var(--spacing-md);
    border-bottom: 1px solid var(--grey-200);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center {
  text-align: center;
}

.text-white {
  color: white;
}

.text-muted {
  color: var(--grey-600);
}

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mt-2xl { margin-top: var(--spacing-2xl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mb-2xl { margin-bottom: var(--spacing-2xl); }

.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }

/* ============================================
   ACCESSIBILITY
   ============================================ */

.skip-link {
  position: absolute;
  top: -48px;
  left: var(--spacing-md);
  z-index: 2000;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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