/* ============================================================
   EL SALVADOR DREAM VACATION — DESIGN SYSTEM
   ============================================================
   Color:
     --ink     #1B1410  volcanic charcoal (text, dark sections)
     --sand    #F3EAD8  warm sand (page background)
     --paper   #FBF7EF  card background
     --teal    #0E3B3E  deep ocean teal (nav, footer, dark blocks)
     --coral   #E1592C  sunset coral (primary accent / CTAs)
     --gold    #C89B3C  agave gold (small highlights, prices)
   Type:
     Display — Fraunces (characterful serif)
     Body    — Work Sans
     Utility — Space Mono (eyebrows, day numbers, labels)
   Signature element:
     A jagged "volcanic ridge" line used as a section divider —
     a nod to El Salvador's chain of volcanoes.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,500&family=Work+Sans:wght@400;500;600&family=Space+Mono:wght@400;700&display=swap');

:root {
  --ink: #1B1410;
  --sand: #F3EAD8;
  --paper: #FBF7EF;
  --teal: #5F8582;
  --teal-light: #718D96;
  --coral: #E1592C;
  --gold: #C89B3C;

  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  display: inline-block;
  margin-bottom: 14px;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Ridge divider (signature element) ---------- */
.ridge {
  display: block;
  width: 100%;
  height: 48px;
  line-height: 0;
}
.ridge svg { width: 100%; height: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(27, 20, 16, 0.92);
  backdrop-filter: blur(6px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}
.brand img { height: 40px; width: auto; }
.nav-group {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-group a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand);
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav-group a:hover { opacity: 1; color: var(--coral); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--sand);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-group.left { display: none; }
  .nav-group.right {
    position: fixed;
    inset: 0 0 auto 0;
    top: 72px;
    background: var(--teal);
    flex-direction: column;
    padding: 24px 32px;
    display: none;
  }
  .nav-group.right.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--teal);
  color: var(--sand);
  padding: 96px 0 64px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  color: var(--sand);
  max-width: 16ch;
  margin: 0 auto;
}
.hero-sub {
  max-width: 46ch;
  margin: 20px auto 0;
  color: rgba(243, 234, 216, 0.78);
  font-size: 1.05rem;
}

.feature-grid {
  background: var(--teal);
  padding: 8px 0 72px;
}
.feature-grid .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .feature-grid .wrap { grid-template-columns: repeat(2, 1fr); }
}
.feature-card {
  background: var(--teal-light);
  border-radius: 4px;
  padding: 28px 22px;
  text-align: left;
}
.feature-card img { width: 34px; height: 34px; margin-bottom: 18px; filter: invert(1); opacity: 0.9; }
.feature-card h3 {
  font-size: 1.05rem;
  color: var(--sand);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.92rem;
  color: rgba(243, 234, 216, 0.7);
  margin: 0;
}

/* ---------- Itinerary section ---------- */
.section {
  padding: 88px 0;
}
.section-head {
  max-width: 60ch;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) {
  .package-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .package-grid { grid-template-columns: 1fr; }
}

.package-card {
  background: var(--paper);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(27, 20, 16, 0.12);
}
.package-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.package-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.package-card:hover .package-card-media img { transform: scale(1.06); }
.package-days {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--coral);
  color: var(--sand);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 3px;
}
.package-card-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.package-card-body h3 {
  font-size: 1.3rem;
}
.package-card-body p.tagline {
  color: rgba(27, 20, 16, 0.68);
  font-size: 0.95rem;
  margin: 0;
  flex: 1;
}
.package-price {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold);
}
.package-link {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.package-link .arrow { transition: transform 0.2s; }
.package-card:hover .package-link .arrow { transform: translateX(4px); }

/* ---------- Photo gallery ---------- */
.gallery-section { background: var(--paper); }
.gallery-track-wrap { position: relative; }
.gallery-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img {
  scroll-snap-align: start;
  width: 260px;
  height: 320px;
  object-fit: cover;
  border-radius: 4px;
  flex: none;
}
.gallery-nav {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.gallery-nav button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(27,20,16,0.2);
  background: var(--sand);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-nav button:hover { background: var(--coral); border-color: var(--coral); }
.gallery-nav svg { width: 16px; height: 16px; }

/* ---------- About ---------- */
.about-section {
  background: var(--teal);
  color: var(--sand);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-grid img { width: 100%; max-width: 240px; margin: 0 auto; }
.about-grid p { color: rgba(243, 234, 216, 0.82); margin: 0 0 16px; }
.about-grid h2 { color: var(--sand); margin-bottom: 22px; }

/* ---------- Contact ---------- */
.contact-section .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
@media (max-width: 860px) {
  .contact-section .wrap { grid-template-columns: 1fr; }
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 16px;
  border: 1px solid rgba(27,20,16,0.2);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
}
.contact-form button {
  align-self: flex-start;
  background: var(--coral);
  color: var(--sand);
  border: none;
  padding: 14px 28px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover { background: #c94a20; }
.form-note {
  font-size: 0.85rem;
  margin-top: 10px;
  display: none;
}
.form-note.show { display: block; }
.form-note.success { color: #2f7a4f; }
.form-note.error { color: var(--coral); }

.contact-info h3 { margin-bottom: 14px; }
.contact-info p { color: rgba(27,20,16,0.72); margin: 0 0 8px; }
.contact-info a { color: var(--coral); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(243, 234, 216, 0.7);
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-top img { height: 40px; margin-bottom: 16px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a:hover { color: var(--coral); }
.footer-bottom {
  border-top: 1px solid rgba(243, 234, 216, 0.12);
  padding-top: 22px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Package detail page ---------- */
.detail-hero {
  position: relative;
  height: 56vh;
  min-height: 380px;
  color: var(--sand);
  display: flex;
  align-items: flex-end;
}
.detail-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
}
.detail-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,59,62,0.92), rgba(14,59,62,0.15));
  z-index: 1;
}
.detail-hero .wrap { position: relative; z-index: 2; padding-bottom: 48px; }
.detail-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--sand); }
.detail-meta {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  flex-wrap: wrap;
}
.detail-meta span { color: var(--gold); }

.detail-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; }
@media (max-width: 900px) { .detail-body { grid-template-columns: 1fr; } }

.detail-overview p { font-size: 1.05rem; color: rgba(27,20,16,0.78); }

.highlight-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
.highlight-list li {
  padding-left: 22px;
  position: relative;
  font-size: 0.96rem;
}
.highlight-list li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px;
  background: var(--coral);
  border-radius: 50%;
}

.day-list { display: flex; flex-direction: column; margin-top: 36px; }
.day-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(27,20,16,0.12);
}
.day-row:last-child { border-bottom: 1px solid rgba(27,20,16,0.12); }
.day-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--coral);
}
.day-row h4 { font-size: 1.1rem; margin-bottom: 6px; }
.day-row p { margin: 0; color: rgba(27,20,16,0.72); font-size: 0.94rem; }

.booking-card {
  background: var(--paper);
  border-radius: 6px;
  padding: 32px 26px;
  height: fit-content;
  position: sticky;
  top: 100px;
}
.booking-card .price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--ink);
}
.booking-card .price-note { font-size: 0.85rem; color: rgba(27,20,16,0.6); margin-bottom: 22px; }
.booking-card a.cta,
.booking-card button.cta {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--coral);
  color: var(--sand);
  padding: 15px;
  border: none;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.booking-card button.cta:hover { background: #c94a20; }
.booking-card button.cta:disabled { opacity: 0.6; cursor: not-allowed; }

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.booking-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(27,20,16,0.6);
  margin-top: 10px;
}
.booking-label:first-of-type { margin-top: 0; }
.booking-form input,
.booking-form select {
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 11px 12px;
  border: 1px solid rgba(27,20,16,0.2);
  border-radius: 4px;
  background: var(--sand);
  color: var(--ink);
  width: 100%;
}
.booking-form button {
  margin-top: 18px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 24px;
}
