/* ============================================
   AVELORA TRAVEL — Brand Stylesheet
   Colors: Navy #0D182A / Gold #C8A767 / Teal #2C6F66 / Coral #E07A5F / Cream #F5F1E9
   Fonts: Cormorant Garamond (headings) / Lato (body)
   ============================================ */

:root {
  --navy: #0D182A;
  --gold: #C8A767;
  --teal: #2C6F66;
  --coral: #E07A5F;
  --cream: #F5F1E9;
  --white: #FFFFFF;
  --ink: #1A2233;
  --max-width: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  transition: all 0.25s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-coral { background: var(--coral); color: var(--white); }
.btn-coral:hover { background: #c9694f; transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d9bb84; transform: translateY(-2px); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  display: block;
  margin-bottom: 14px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(200,167,103,0.25);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand-mark { display: flex; align-items: center; gap: 12px; }
.brand-mark img { height: 42px; width: 42px; }
.brand-mark .wordmark { font-family: 'Cormorant Garamond', serif; color: var(--white); font-size: 1.5rem; letter-spacing: 0.06em; }
.brand-mark .wordmark small { display: block; font-family: 'Lato'; font-size: 0.58rem; letter-spacing: 0.25em; color: var(--gold); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  color: var(--cream);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--gold); }
.main-nav .nav-cta { color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 8px 18px; }
.main-nav .nav-cta:hover { background: var(--gold); color: var(--navy); }
.cruises-link { font-size: 0.72rem; color: rgba(245,241,233,0.6); letter-spacing: 0.1em; }
.cruises-link:hover { color: var(--gold); }

.nav-toggle { display: none; background: none; border: none; color: var(--cream); font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
}
.hero video, .hero .hero-fallback-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,24,42,0.6) 0%, rgba(13,24,42,0.25) 30%, rgba(13,24,42,0.3) 60%, rgba(13,24,42,0.8) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 44px 40px;
  margin-top: 9vh;
  max-width: 780px;
  background: rgba(13,24,42,0.4);
  border-radius: 10px;
  backdrop-filter: blur(3px);
}
.hero-content .eyebrow { color: var(--gold); }
.hero-content h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 18px;
}
.hero-content p {
  font-size: 1.15rem;
  color: rgba(245,241,233,0.92);
  max-width: 560px;
  margin: 0 auto 34px;
}
.hero-cta-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ---------- Section basics ---------- */
section { padding: 100px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }
.section-head p { color: #4a5164; font-size: 1.05rem; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .section-head p { color: rgba(245,241,233,0.75); }

/* ---------- Promise / Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.pillar-icon {
  width: 56px; height: 56px; margin: 0 auto 18px;
  border: 1.5px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.4rem;
}
.pillar h4 { font-size: 1.2rem; margin-bottom: 8px; color: var(--white); }
.pillar p { font-size: 0.92rem; color: rgba(245,241,233,0.7); }

/* ---------- Destination Grid ---------- */
.dest-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; margin-bottom: 70px; }
.dest-intro img { border-radius: 6px; height: 480px; object-fit: cover; width: 100%; }
.dest-intro .eyebrow { }
.dest-intro h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
.dest-intro p { color: #4a5164; margin-bottom: 24px; }

.dest-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.dest-card {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}
.dest-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.dest-card:hover img { transform: scale(1.08); }
.dest-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13,24,42,0.85) 100%);
}
.dest-card .dest-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 2; padding: 16px;
  color: var(--white);
}
.dest-card .dest-label span { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }
.dest-card .dest-label h4 { color: var(--white); font-size: 1.25rem; }

.peru-feature { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 18px; margin-top: 70px; }
.peru-feature .dest-card { aspect-ratio: auto; }
.peru-feature .dest-card.tall { grid-row: span 2; }
.peru-sub-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }

/* ---------- Hotels ---------- */
.hotel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.hotel-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(13,24,42,0.08); }
.hotel-card img { height: 260px; object-fit: cover; width: 100%; }
.hotel-card .hotel-body { padding: 26px; }
.hotel-card .eyebrow { margin-bottom: 6px; }
.hotel-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.hotel-card p { color: #4a5164; font-size: 0.95rem; }

/* ---------- Journal Teaser ---------- */
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.journal-card { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4/5; }
.journal-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.journal-card:hover img { transform: scale(1.06); }
.journal-card::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, transparent 30%, rgba(13,24,42,0.9) 100%); }
.journal-card .jc-label { position: absolute; bottom: 0; padding: 22px; color: var(--white); z-index: 2; }
.journal-card .jc-label span { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }
.journal-card .jc-label h3 { color: var(--white); font-size: 1.5rem; margin: 6px 0 4px; }
.journal-card .jc-label p { color: rgba(245,241,233,0.8); font-size: 0.88rem; }

/* ---------- Newsletter / Lead form ---------- */
.newsletter { background: var(--teal); color: var(--white); text-align: center; }
.newsletter h2 { color: var(--white); }
.newsletter p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 34px; }
.lead-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.lead-form input {
  flex: 1; min-width: 220px;
  padding: 14px 18px; border-radius: 999px; border: none;
  font-family: 'Lato'; font-size: 0.95rem;
}
.lead-form-full { max-width: 640px; margin: 0 auto; display: grid; gap: 16px; }
.lead-form-full input, .lead-form-full textarea {
  padding: 14px 18px; border-radius: 8px; border: 1px solid #d8d2c4;
  font-family: 'Lato'; font-size: 0.95rem; width: 100%;
}
.lead-form-full textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.8rem; color: #7a8091; margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(245,241,233,0.75); padding: 70px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(200,167,103,0.2); }
.footer-brand .brand-mark .wordmark { color: var(--white); }
.footer-tagline { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--gold); font-size: 1.15rem; margin-top: 16px; }
.footer-col h5 { color: var(--gold); font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a { display: block; margin-bottom: 10px; font-size: 0.92rem; color: rgba(245,241,233,0.75); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; flex-wrap: wrap; gap: 14px; font-size: 0.82rem; }
.footer-bottom .legacy-line { font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: var(--cream); }

/* ---------- Journal (blog) page ---------- */
.journal-hero { background: var(--navy); color: var(--white); padding: 140px 0 70px; text-align: center; }
.journal-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.6rem); }
.journal-hero p { color: rgba(245,241,233,0.8); max-width: 620px; margin: 18px auto 0; }
.post-list { display: grid; gap: 60px; max-width: 900px; margin: 0 auto; padding: 90px 0; }
.post { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.post:nth-child(even) { grid-template-columns: 1.1fr 0.9fr; }
.post:nth-child(even) .post-media { order: 2; }
.post-media img { border-radius: 8px; height: 360px; object-fit: cover; width: 100%; }
.post-body .eyebrow { margin-bottom: 10px; }
.post-body h2 { font-size: 2rem; margin-bottom: 14px; }
.post-body p { color: #4a5164; margin-bottom: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .dest-intro { grid-template-columns: 1fr; }
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .peru-feature { grid-template-columns: 1fr; }
  .hotel-grid { grid-template-columns: 1fr; }
  .journal-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .post, .post:nth-child(even) { grid-template-columns: 1fr; }
  .post:nth-child(even) .post-media { order: 0; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  section { padding: 70px 0; }
  .dest-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Form states (forms.js) ---------- */
.lead-form-full input, .lead-form-full textarea { font-family: inherit; }
.form-check { display: flex; align-items: center; gap: 10px; justify-content: center; font-size: 0.92rem; color: var(--cream); cursor: pointer; }
.form-check input { width: 18px; height: 18px; accent-color: var(--gold); margin: 0; }
.form-consent { font-size: 0.78rem; color: rgba(245,241,233,0.75); margin: 0; line-height: 1.5; }
.form-status { font-size: 0.92rem; min-height: 1.2em; }
.form-status.is-error { color: #ffd7cc; background: rgba(224,122,95,0.25); padding: 10px 14px; border-radius: 6px; }
.form-status.is-ok { color: var(--cream); }
.form-status:empty { display: none; }
button[disabled] { opacity: 0.7; cursor: wait; }
