@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --bg: #f4efe8;
  --bg-soft: #ebe4da;
  --surface: #fffcf8;
  --ink: #1c1916;
  --ink-muted: #6a635b;
  --accent: #e07a4a;
  --accent-soft: #f3c4a8;
  --navy: #1a2433;
  --navy-soft: #2a3a50;
  --line: rgba(28, 25, 22, 0.08);
  --shadow: 0 18px 50px rgba(26, 36, 51, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(244, 239, 232, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(26, 36, 51, 0.06);
}

.site-header.on-hero.is-transparent {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}

.site-header.on-hero.is-transparent .logo,
.site-header.on-hero.is-transparent .nav-links a,
.site-header.on-hero.is-transparent .btn-ghost {
  color: #fff;
}

.site-header.on-hero.is-transparent .nav-links a:hover {
  color: #fff;
}

.site-header.on-hero.is-transparent .btn-primary {
  background: #fff;
  color: var(--navy);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.logo-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #f0a070, #c45c26);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(196, 92, 38, 0.35);
}

.logo-mark svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: #fff;
}

.nav-links {
  display: none;
  gap: 1.5rem;
  align-items: center;
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.25s ease;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(26, 36, 51, 0.2);
}

.btn-primary:hover {
  background: var(--navy-soft);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(26, 26, 26, 0.14);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
  padding-inline: 0.75rem;
}

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-block {
  width: 100%;
}

/* Hero cinematic */
.hero-cinematic {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  animation: kenburns 22s ease-out forwards;
}

@keyframes kenburns {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 16, 24, 0.15) 0%, rgba(12, 16, 24, 0.28) 40%, rgba(12, 16, 24, 0.72) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 7rem 0 3.2rem;
  max-width: 1180px;
}

.hero-inner h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  max-width: 14ch;
  color: #fff;
  text-wrap: balance;
}

.hero-inner .lead {
  font-size: 1.12rem;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow-light {
  color: #f3c4a8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 1.75rem;
}

.hero-chip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: max-content;
  max-width: 100%;
  background: rgba(255, 252, 248, 0.92);
  color: var(--ink);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 0.55rem 1rem 0.55rem 0.55rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.hero-chip img {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 10px;
}

.hero-chip strong {
  display: block;
  font-size: 0.95rem;
}

.hero-chip span {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.hero-chip p {
  margin: 0;
}

.section {
  padding: 4.5rem 0;
}

.section-soft {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.2rem;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.65rem;
}

/* Image frames — ratios locked */
.media-frame {
  position: relative;
  overflow: hidden;
  background: #d9d0c4;
}

.media-frame img,
.media-frame[style] {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame[style] {
  background-size: cover;
}

.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-4x5 { aspect-ratio: 4 / 5; }

.pos-top { background-position: center 18%; }
.pos-center { background-position: center center; }

.steps {
  display: grid;
  gap: 1rem;
}

.step,
.feature,
.trip-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(26, 36, 51, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.step:hover,
.feature:hover,
.trip-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.step:hover img,
.feature:hover img,
.trip-card:hover .media-frame {
  transform: scale(1.06);
}

.media-frame img,
.trip-card .media-frame {
  transition: transform 0.7s ease;
}

.step-num {
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  background: rgba(255, 252, 248, 0.92);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
}

.step-body,
.feature-body,
.trip-card-body {
  padding: 1.05rem 1.15rem 1.2rem;
}

.step-body h3,
.feature-body h3,
.trip-card-body h3 {
  font-size: 1.08rem;
  margin-bottom: 0.35rem;
}

.features {
  display: grid;
  gap: 1rem;
}

.gallery {
  display: grid;
  gap: 1rem;
}

.benefits {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.benefit {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: var(--surface);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
}

.benefit i {
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.78rem;
}

.benefit p {
  margin: 0.2rem 0 0;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin: 0.75rem 0 0;
}

.cta-banner {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-radius: 32px;
  padding: 4.2rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow);
  background: #1e2a3a center/cover no-repeat;
  min-height: 280px;
  display: grid;
  place-items: center;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(18, 24, 34, 0.55), rgba(18, 24, 34, 0.62));
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  max-width: 16ch;
  margin-inline: auto;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 34rem;
  margin-inline: auto;
}

.site-footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.footer-meta {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

/* Reveals */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.18s; }
.delay-3 { animation-delay: 0.26s; }
.delay-4 { animation-delay: 0.34s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media-img,
  .reveal,
  .step:hover img,
  .feature:hover img,
  .trip-card:hover .media-frame {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

/* Forms */
.page-shell {
  padding: 2.5rem 0 4rem;
}

.page-card {
  width: min(520px, 100%);
  margin-inline: auto;
  background: var(--surface);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.page-card.wide {
  width: min(760px, 100%);
}

.page-card h1 {
  font-size: 1.8rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="email"] {
  width: 100%;
  border: 1px solid rgba(26, 26, 26, 0.14);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #fff;
}

input:focus {
  outline: 2px solid rgba(224, 122, 74, 0.35);
  border-color: var(--accent);
}

.field-error {
  color: #b42318;
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

.alert {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.alert-error {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}

.alert-success {
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #abefc6;
}

.help {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 0.35rem;
}

.success-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 0.9rem;
  text-align: center;
  margin: 1rem 0;
}

.legal-prose h2 {
  margin-top: 1.75rem;
  font-size: 1.2rem;
}

.legal-prose ul {
  color: var(--ink-muted);
  padding-left: 1.2rem;
}

@media (min-width: 720px) {
  .nav-links {
    display: flex;
  }

  .hero-inner {
    padding: 8.5rem 0 4rem;
  }

  .steps {
    grid-template-columns: repeat(5, 1fr);
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(6, 1fr);
  }

  .trip-card-lg {
    grid-column: span 3;
    grid-row: span 2;
  }

  .trip-card-lg .media-frame {
    aspect-ratio: auto;
    height: 100%;
    min-height: 280px;
  }

  .gallery .trip-card:not(.trip-card-lg) {
    grid-column: span 3;
  }

  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

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

  .gallery {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(160px, auto);
  }

  .trip-card-lg {
    grid-column: 1 / span 6;
    grid-row: 1 / span 2;
  }

  .gallery .trip-card:nth-child(2) { grid-column: 7 / span 3; }
  .gallery .trip-card:nth-child(3) { grid-column: 10 / span 3; }
  .gallery .trip-card:nth-child(4) { grid-column: 7 / span 3; }
  .gallery .trip-card:nth-child(5) { grid-column: 10 / span 3; }

  .trip-card .trip-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(12, 16, 24, 0.78));
    color: #fff;
    padding: 2.2rem 1.1rem 1.1rem;
  }

  .trip-card {
    position: relative;
  }

  .trip-card .trip-card-body h3,
  .trip-card .trip-card-body p {
    color: #fff;
  }

  .trip-card .media-frame {
    height: 100%;
    min-height: 220px;
    aspect-ratio: auto;
  }
}
