/* ============================================
   Jeon Tours — Design System
   Aurora-inspired palette, Pretendard typography
   ============================================ */

@font-face {
  font-family: 'Pretendard';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Pretendard-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Pretendard-Bold.woff2') format('woff2');
}

:root {
  /* Aurora palette */
  --c-night: #0a1628;
  --c-night-2: #0f1e36;
  --c-aurora: #4ade80;
  --c-aurora-2: #22c55e;
  --c-glacier: #38bdf8;
  --c-warm: #fde68a;
  --c-magenta: #c084fc;

  /* Surface */
  --c-bg: #ffffff;
  --c-bg-soft: #f8fafc;
  --c-bg-card: #ffffff;
  --c-border: #e2e8f0;

  /* Text */
  --c-text: #0f172a;
  --c-text-2: #334155;
  --c-text-mute: #64748b;
  --c-text-faint: #94a3b8;
  --c-on-dark: #f8fafc;
  --c-on-dark-mute: #cbd5e1;

  /* Accent (brand) */
  --c-brand: #1b4332;
  --c-brand-hi: #2d6a4f;

  /* Spacing & radii */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;

  /* Layout */
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--c-glacier);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ============================================
   Header / Nav
   ============================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: baseline; gap: 10px; font-weight: 700; }
.brand-mark {
  font-size: 1.05rem; letter-spacing: 0.18em;
  background: linear-gradient(135deg, var(--c-brand), var(--c-aurora-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-since { font-size: 0.78rem; color: var(--c-text-mute); letter-spacing: 0.14em; font-weight: 500; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { color: var(--c-text-2); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--c-brand); }
.nav-links .cta {
  padding: 8px 16px; border-radius: 999px;
  background: var(--c-brand); color: #fff !important;
  font-weight: 600;
}
.nav-links .cta:hover { background: var(--c-brand-hi); color: #fff; }

@media (max-width: 720px) {
  .nav-links { gap: 16px; }
  .nav-links li:not(:last-child):not(.always-show) { display: none; }
}

/* ============================================
   Hero (page-specific via .hero--variant)
   ============================================ */
.hero {
  position: relative;
  color: var(--c-on-dark);
  background: var(--c-night);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 22% 28%, rgba(74,222,128,0.30) 0%, transparent 60%),
    radial-gradient(50% 50% at 78% 18%, rgba(56,189,248,0.28) 0%, transparent 65%),
    radial-gradient(45% 45% at 60% 82%, rgba(192,132,252,0.22) 0%, transparent 60%),
    linear-gradient(180deg, #050b18 0%, #0a1628 60%, #0f2740 100%);
  z-index: -1;
  animation: aurora 16s ease-in-out infinite alternate;
}

/* Aurora photo hero — used on home + Iceland pages */
.hero--aurora { background: #050b18; }
.hero--aurora::before {
  background:
    /* Darkening + readability gradient */
    linear-gradient(180deg, rgba(5,11,24,0.55) 0%, rgba(5,11,24,0.35) 40%, rgba(5,11,24,0.85) 100%),
    /* Aurora photograph — WebP first, JPEG fallback */
    image-set(
      url('/images/aurora-hero.webp?v=20260510') type('image/webp'),
      url('/images/aurora-hero.jpg?v=20260510') type('image/jpeg')
    ) center/cover no-repeat;
  animation: none;
}
/* Subtle aurora glow shimmer over the photo */
.hero--aurora::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 80% 10%, rgba(74,222,128,0.15) 0%, transparent 60%),
    radial-gradient(50% 40% at 20% 5%, rgba(56,189,248,0.10) 0%, transparent 60%);
  z-index: -1;
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0)    scale(1); }
  50%  { transform: translate3d(-2%,1%,0) scale(1.05); }
  100% { transform: translate3d(2%,-1%,0) scale(1.03); }
}

/* Generic photo hero — drives background via --hero-bg inline custom prop */
.hero--photo { background: #050b18; position: relative; }
.hero--photo::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,11,24,0.55) 0%, rgba(5,11,24,0.30) 40%, rgba(5,11,24,0.85) 100%),
    var(--hero-bg, none) center/cover no-repeat;
  z-index: -1;
}
.hero-inner { padding-top: 96px; padding-bottom: 88px; }
.hero-eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.82rem; letter-spacing: 0.12em; font-weight: 500;
  color: var(--c-on-dark-mute);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.hero h1 .accent {
  background: linear-gradient(110deg, var(--c-aurora) 0%, var(--c-glacier) 60%, var(--c-magenta) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--c-on-dark-mute);
  max-width: 56ch;
  margin-bottom: 28px;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 18px 28px;
  margin-top: 28px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.92rem; color: var(--c-on-dark-mute);
}
.hero-meta strong { color: var(--c-on-dark); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.96rem;
  border: 1px solid transparent;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--c-aurora); color: #052e16; }
.btn-primary:hover { background: #86efac; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--c-on-dark); border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }
.btn-dark { background: var(--c-brand); color: #fff; }
.btn-dark:hover { background: var(--c-brand-hi); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--c-brand); border-color: var(--c-brand); }
.btn-outline:hover { background: var(--c-brand); color: #fff; }

/* ============================================
   Sections
   ============================================ */
.section { padding: 88px 0; }
.section--soft { background: var(--c-bg-soft); }
.section--dark { background: var(--c-night); color: var(--c-on-dark); }
.section--dark p { color: var(--c-on-dark-mute); }

.section-eyebrow {
  font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-brand-hi); font-weight: 600;
  margin-bottom: 10px;
}
.section--dark .section-eyebrow { color: var(--c-aurora); }
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.015em;
  line-height: 1.25; margin-bottom: 14px;
  text-wrap: balance;
}
.section-lede {
  font-size: 1.05rem; color: var(--c-text-mute);
  max-width: 60ch;
  margin-bottom: 40px;
}
.section--dark .section-lede { color: var(--c-on-dark-mute); }

.section-head { margin-bottom: 48px; }
.section-head--center { text-align: center; }
.section-head--center .section-lede { margin-left: auto; margin-right: auto; }

/* ============================================
   Tour cards (list)
   ============================================ */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.tour-card {
  display: flex; flex-direction: column;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
}
.tour-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(15,23,42,0.18);
  border-color: var(--c-aurora);
}
.tour-card-cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--c-night) 0%, var(--c-night-2) 100%);
  position: relative; overflow: hidden;
}
.tour-card-cover img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.tour-card:hover .tour-card-cover img { transform: scale(1.04); }
.tour-card-cover::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(74,222,128,0.35) 0%, transparent 60%),
    radial-gradient(60% 60% at 75% 70%, rgba(56,189,248,0.35) 0%, transparent 60%);
  mix-blend-mode: screen;
}
.tour-card-cover.has-image::after {
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);
  mix-blend-mode: normal;
}
.tour-card--uk .tour-card-cover {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}
.tour-card--uk .tour-card-cover::after {
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(192,132,252,0.32) 0%, transparent 60%),
    radial-gradient(60% 60% at 75% 70%, rgba(253,224,138,0.30) 0%, transparent 60%);
}
.tour-card-tag {
  position: absolute; top: 14px; left: 14px;
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,0.45);
  padding: 5px 10px; border-radius: 999px;
  backdrop-filter: blur(6px);
  z-index: 1;
}
.tour-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tour-card h3 {
  font-size: 1.18rem; font-weight: 700;
  letter-spacing: -0.01em; line-height: 1.35;
}
.tour-card-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 0.86rem; color: var(--c-text-mute);
  margin-bottom: 4px;
}
.tour-card-meta span::before { content: '·'; margin-right: 14px; color: var(--c-text-faint); }
.tour-card-meta span:first-child::before { content: ''; margin: 0; }
.tour-card-desc { color: var(--c-text-2); font-size: 0.96rem; flex: 1; }
.tour-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--c-border);
  font-size: 0.92rem;
}
.tour-card-from { color: var(--c-text-mute); }
.tour-card-from strong { color: var(--c-text); font-weight: 600; }
.tour-card-link { color: var(--c-brand-hi); font-weight: 600; }
.tour-card-link::after { content: ' →'; transition: transform .2s ease; display: inline-block; }
.tour-card:hover .tour-card-link::after { transform: translateX(4px); }

/* ============================================
   Tour detail content
   ============================================ */
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.1em; color: var(--c-text-2); font-size: 1.04rem; }
.prose p.first { font-size: 1.16rem; color: var(--c-text); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 32px 0 8px;
  padding: 22px;
  background: var(--c-bg-soft);
  border-radius: var(--r);
  border: 1px solid var(--c-border);
}
.section--dark .facts {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
}
.fact-label {
  display: block; font-size: 0.74rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-text-mute); margin-bottom: 4px;
}
.section--dark .fact-label { color: var(--c-on-dark-mute); }
.fact-value { font-weight: 600; font-size: 1rem; color: var(--c-text); }
.section--dark .fact-value { color: var(--c-on-dark); }

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  list-style: none;
}
.highlights li {
  background: var(--c-bg-card); padding: 18px 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  border-left: 3px solid var(--c-aurora-2);
  font-size: 0.98rem; color: var(--c-text-2);
}

.included-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 640px) { .included-grid { grid-template-columns: 1fr; } }
.included-list { list-style: none; }
.included-list li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--c-text-2); }
.included-list.yes li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--c-aurora-2); font-weight: 700;
}
.included-list.no li::before {
  content: '·'; position: absolute; left: 6px; top: -4px;
  color: #ef4444; font-weight: 700; font-size: 1.4em; line-height: 1;
}
.included-card {
  padding: 24px; border-radius: var(--r);
  background: var(--c-bg-card); border: 1px solid var(--c-border);
}
.included-card h4 { margin-bottom: 14px; font-size: 1rem; font-weight: 700; }

.quote {
  border-left: 3px solid var(--c-aurora);
  padding: 8px 0 8px 22px;
  font-size: 1.12rem; color: var(--c-text);
  font-style: italic;
  max-width: 60ch;
  margin: 32px 0;
}

/* ============================================
   About / timeline
   ============================================ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.timeline { list-style: none; border-left: 2px solid var(--c-border); padding-left: 26px; }
.timeline li { position: relative; padding-bottom: 18px; }
.timeline li::before {
  content: ''; position: absolute; left: -33px; top: 8px;
  width: 12px; height: 12px; border-radius: 999px;
  background: var(--c-aurora-2); box-shadow: 0 0 0 4px rgba(34,197,94,0.18);
}
.timeline-year { font-weight: 700; color: var(--c-brand-hi); margin-right: 12px; }

/* ============================================
   Contact
   ============================================ */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px;
}
.contact-card {
  padding: 24px; border-radius: var(--r);
  background: var(--c-bg-card); border: 1px solid var(--c-border);
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .2s ease, transform .2s ease;
}
.contact-card:hover { border-color: var(--c-aurora-2); transform: translateY(-2px); }
.contact-label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-text-mute); }
.contact-value { font-weight: 700; font-size: 1.06rem; color: var(--c-text); }
.contact-note { font-size: 0.88rem; color: var(--c-text-mute); }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--c-night);
  color: var(--c-on-dark-mute);
  padding: 56px 0 32px;
  font-size: 0.94rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--c-on-dark); font-size: 0.92rem; letter-spacing: 0.06em; margin-bottom: 12px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a:hover { color: var(--c-aurora); }
.footer-bot {
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.10);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.84rem; color: var(--c-text-faint);
}
.footer-credit { font-size: 0.78rem; opacity: 0.7; }
.footer-credit a { color: inherit; border-bottom: 1px dotted currentColor; }
.footer-credit a:hover { color: var(--c-aurora); border-bottom-color: var(--c-aurora); }

/* ============================================
   Utilities
   ============================================ */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.mt-4 { margin-top: 32px; }
.flow > * + * { margin-top: 1em; }
.text-mute { color: var(--c-text-mute); }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================
   Mobile (≤720px) — compress vertical rhythm,
   tighten typography, optimise tap targets
   ============================================ */
@media (max-width: 720px) {
  .hero-inner { padding-top: 64px; padding-bottom: 56px; }
  .hero-eyebrow { margin-bottom: 14px; font-size: 0.78rem; }
  .hero h1 { line-height: 1.22; margin-bottom: 14px; }
  .hero p.lede { margin-bottom: 22px; }
  .hero-meta {
    gap: 10px 18px;
    margin-top: 22px; padding-top: 18px;
    font-size: 0.88rem;
  }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .section-lede { font-size: 1rem; margin-bottom: 28px; }
  .section-title { letter-spacing: -0.01em; line-height: 1.28; }

  /* balance often produces awkward orphans on narrow viewports */
  .hero h1, .section-title { text-wrap: pretty; }

  .nav { padding-top: 12px; padding-bottom: 12px; }
  .nav-links .cta { padding: 7px 14px; font-size: 0.9rem; }

  .tour-card-meta { font-size: 0.82rem; }
  .tour-card-foot { margin-top: 12px; padding-top: 12px; font-size: 0.88rem; }

  .contact-card { padding: 22px 18px !important; }

  .tours-grid { gap: 18px; }
  .tour-card-body { padding: 18px 18px 20px; gap: 8px; }
  .tour-card h3 { font-size: 1.08rem; }

  .quote { margin: 24px 0; padding-left: 16px; font-size: 1.04rem; }

  .site-footer { padding: 40px 0 24px; }
  .footer-grid { gap: 24px; margin-bottom: 24px; }
}

/* Narrow phones — give the hero CTAs full-width tap targets,
   widen safe-area side gutters slightly */
@media (max-width: 480px) {
  .container { padding-left: 20px; padding-right: 20px; }

  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { justify-content: center; width: 100%; }

  .cluster .btn { flex: 1 1 100%; justify-content: center; }

  .footer-bot { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ============================================
   Photo gallery (tour pages)
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--c-night);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 14px 10px;
  font-size: 0.86rem; color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.72) 100%);
  letter-spacing: 0.01em;
}
.gallery-item--tall { aspect-ratio: 3 / 4; }
.gallery-item--wide { aspect-ratio: 16 / 9; grid-column: span 2; }
@media (max-width: 720px) {
  .gallery-item--wide { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
