/* ============================================================
   FAREMINIMUM — Shared Stylesheet
   Matches the existing site exactly: serif display type, warm
   off-white sections, amber/gold accents, teal-peach region pill.
   To change a color sitewide, edit the variables at the top —
   never hunt through every page.
   ============================================================ */

:root {
  --color-dark: #14171a;          /* header overlay / dark sections */
  --color-offwhite: #f5f3ee;      /* light section backgrounds */
  --color-white: #ffffff;
  --color-text-dark: #1c1c1c;
  --color-text-muted: #55524d;
  --color-gold: #e3a44e;          /* CTA buttons, image glow border */
  --color-gold-dark: #c98d3c;
  --color-teal: #a9d8cf;          /* region pill gradient start */
  --color-peach: #f0d2a0;         /* region pill gradient end */

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-nav: 'Montserrat', Arial, sans-serif;

  --radius-card: 14px;
  --shadow-glow: 0 0 0 4px rgba(227, 164, 78, 0.55);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background: var(--color-offwhite);
  line-height: 1.6;
}

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

/* ---------- Navigation ---------- */
.navbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  z-index: 50;
}
.navbar.solid {
  position: relative;
  background: var(--color-dark);
}
.navbar .logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--color-white);
}
.navbar nav {
  display: flex;
  gap: 32px;
}
.navbar nav a {
  font-family: var(--font-nav);
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  color: var(--color-white);
  font-weight: 600;
}
.navbar nav a.active { border-bottom: 2px solid var(--color-gold); padding-bottom: 4px; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

@media (max-width: 820px) {
  .navbar nav { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--color-dark); padding: 20px 32px; gap: 18px; }
  .navbar nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-nav);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  padding: 16px 32px;
  border: 1px solid var(--color-gold);
  background: var(--color-gold);
  color: #1c1400;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--color-gold-dark); transform: translateY(-1px); }
.btn-dark { background: var(--color-dark); border-color: var(--color-dark); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { background: transparent; color: #fff; }

/* ---------- Hero (collage) ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,12,15,0.55), rgba(10,12,15,0.25));
}
.hero-content {
  position: relative;
  z-index: 5;
  max-width: 760px;
  padding: 140px 48px 60px;
  color: #fff;
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 20px;
}
.hero-content p {
  font-family: var(--font-nav);
  font-size: 1.05rem;
  font-weight: 600;
  max-width: 560px;
  margin-bottom: 32px;
}

/* ---------- Sections ---------- */
.section { padding: 80px 48px; }
.section-title {
  font-family: var(--font-display);
  font-size: 2.6rem;
  text-align: center;
  font-weight: 700;
  margin-bottom: 48px;
  color: var(--color-text-dark);
}
.section-title.with-rules {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}
.section-title.with-rules::before,
.section-title.with-rules::after {
  content: "";
  flex: 1;
  max-width: 220px;
  border-top: 2px dashed #444;
}

/* ---------- Destination / country cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.dest-card { text-align: center; }
.dest-card .img-wrap {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  margin-bottom: 18px;
  aspect-ratio: 3/4;
}
.dest-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.dest-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.dest-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 260px;
  margin: 0 auto;
}
.dest-card button.story-link {
  margin-top: 10px;
  background: none;
  border: none;
  font-family: var(--font-nav);
  font-size: 0.75rem;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--color-gold-dark);
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Region pill nav ---------- */
.region-pill {
  max-width: 1000px;
  margin: -50px auto 60px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-peach));
  border-radius: 40px;
  padding: 24px 40px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  position: relative;
  z-index: 10;
}
.region-pill a { margin: 0 6px; }
.region-pill a:hover { text-decoration: underline; }

/* ---------- Region blocks ---------- */
.region-block { padding: 70px 48px; scroll-margin-top: 90px; }
.region-block:nth-child(even) { background: #efece5; }

/* ---------- Dark banner (Memories > Money / video) ---------- */
.dark-banner {
  position: relative;
  min-height: 380px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.dark-banner::before { content: ""; position: absolute; inset: 0; background: rgba(10,12,15,0.35); }
.dark-banner-content { position: relative; z-index: 3; color: #fff; }
.dark-banner-content h2 { font-family: var(--font-display); font-size: 2.6rem; margin: 0 0 12px; font-weight: 700; }
.dark-banner-content p { font-family: var(--font-display); font-size: 1.3rem; font-style: italic; }

/* ---------- Footer ---------- */
footer {
  background: var(--color-dark);
  color: #cfcfcf;
  padding: 60px 48px 30px;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 30px;
}
footer h4 { color: #fff; font-family: var(--font-display); margin-bottom: 16px; }
footer a { display: block; margin-bottom: 8px; color: #b9b9b9; font-size: 0.9rem; }
footer a:hover { color: var(--color-gold); }
.footer-bottom { text-align: center; border-top: 1px solid #2b2e32; padding-top: 20px; font-size: 0.8rem; color: #8a8a8a; }

/* ---------- Newsletter box ---------- */
.newsletter-box {
  max-width: 900px;
  margin: 0 auto;
  background: var(--color-dark);
  border-radius: 18px;
  padding: 48px;
  text-align: center;
  color: #fff;
}
.newsletter-box h3 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 10px; }
.newsletter-box p { color: #c9c9c9; margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 12px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 220px; padding: 14px 18px; border-radius: 6px; border: 1px solid #444; font-family: var(--font-body);
}
.form-message { margin-top: 14px; font-size: 0.9rem; }
.form-message.success { color: #7fd8a4; }
.form-message.error { color: #e8837a; }

/* ---------- Itinerary generator card ---------- */
.itinerary-launcher {
  max-width: 500px;
  margin: 0 auto;
  background: linear-gradient(160deg, #fff, #f6ead4);
  border: 1px solid var(--color-gold);
  border-radius: 20px;
  padding: 36px;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0,0,0,0.08);
}
.itinerary-launcher h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 8px; }
.itinerary-launcher p { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 22px; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,12,15,0.6);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-card {
  background: #fff; border-radius: 18px; max-width: 520px; width: 100%;
  padding: 36px; max-height: 88vh; overflow-y: auto; position: relative;
}
.modal-close { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 1.4rem; cursor: pointer; }
.modal-card h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 18px; }
.form-row { margin-bottom: 16px; text-align: left; }
.form-row label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; font-family: var(--font-nav); letter-spacing: 0.5px; }
.form-row input, .form-row select {
  width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 8px; font-family: var(--font-body); font-size: 0.95rem;
}
.toggle-group { display: flex; gap: 10px; }
.toggle-group button {
  flex: 1; padding: 12px; border: 1px solid #ddd; border-radius: 8px; background: #fff; cursor: pointer; font-family: var(--font-nav); font-weight: 600; font-size: 0.85rem;
}
.toggle-group button.selected { background: var(--color-gold); border-color: var(--color-gold); color: #1c1400; }

.itinerary-result { text-align: left; font-size: 0.95rem; }
.itinerary-result h4 { font-family: var(--font-display); margin: 18px 0 6px; }
.spinner { border: 3px solid #eee; border-top-color: var(--color-gold); border-radius: 50%; width: 32px; height: 32px; animation: spin 0.8s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Story summary popup (AI) ---------- */
.summary-btn {
  background: none; border: 1px solid var(--color-gold-dark); color: var(--color-gold-dark);
  font-family: var(--font-nav); font-size: 0.72rem; letter-spacing: 1px; font-weight: 700;
  padding: 8px 14px; border-radius: 20px; cursor: pointer; margin-top: 10px;
}
.summary-btn:hover { background: var(--color-gold); border-color: var(--color-gold); color: #1c1400; }

@media (max-width: 640px) {
  .hero-content h1 { font-size: 2.2rem; }
  .section { padding: 56px 22px; }
  .section-title { font-size: 2rem; }
}
