/* ==========================================================================
   Pachamama Retreat – heart of pachamama ch
   Organic, warm, trustworthy. Cormorant Garamond + Karla.
   ========================================================================== */

:root {
  --cream: #faf6ef;
  --cream-2: #f2ebdd;
  --cream-3: #e9dfcc;
  --ink: #2d2a24;
  --ink-soft: #5c564b;
  --forest: #3d5a43;
  --forest-deep: #2c4232;
  --earth: #8b6f47;
  --terra: #a86b3c;
  --terra-deep: #8f5730;
  --gold: #c88a4e;
  --gold-soft: #e3c396;
  --card: #fffdf8;
  --line: rgba(90, 74, 50, 0.16);
  --shadow-soft: 0 2px 24px rgba(60, 48, 30, 0.09);
  --shadow-lift: 0 12px 40px rgba(60, 48, 30, 0.14);
  --radius: 18px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Karla", "Segoe UI", sans-serif;
  --wrap: 72rem;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  /* soft paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--terra); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra-deep); }

::selection { background: var(--gold-soft); color: var(--ink); }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }

.overline {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.9rem;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46rem; }

.accent-i {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--terra);
}

/* ---------- Layout ---------- */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: 52rem; margin: 0 auto; padding: 0 1.25rem; }

section { padding: 4.5rem 0; }
@media (min-width: 720px) { section { padding: 6rem 0; } }

.section-head { text-align: center; max-width: 46rem; margin: 0 auto 3rem; }
.section-head .lead { margin: 0.8rem auto 0; }

.alt-bg { background-color: var(--cream-2); }

/* leaf divider */
.leaf-divider {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  color: var(--earth); opacity: 0.55; margin: 0 auto 1rem;
}
.leaf-divider::before, .leaf-divider::after {
  content: ""; height: 1px; width: 4rem; background: currentColor;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(250, 246, 239, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 4.25rem;
}

.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  color: var(--forest-deep); text-decoration: none; display: flex;
  align-items: center; gap: 0.55rem; letter-spacing: 0.01em;
}
.brand img { width: 34px; height: 34px; }
.brand:hover { color: var(--forest); }

.nav-links { display: none; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.nav-links a:hover { color: var(--terra); }

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

.nav-toggle {
  background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 2.6rem; height: 2.6rem; cursor: pointer; color: var(--ink);
  display: grid; place-items: center;
}
@media (min-width: 960px) { .nav-toggle { display: none; } }

.mobile-menu {
  display: none; border-top: 1px solid var(--line);
  padding: 0.75rem 1.25rem 1.25rem; background: rgba(250, 246, 239, 0.97);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 0.65rem 0; color: var(--ink); text-decoration: none;
  font-weight: 500; border-bottom: 1px solid rgba(90, 74, 50, 0.07);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 0.85rem 1.7rem; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--terra-deep); color: #fff; }

.btn-forest { background: var(--forest); color: #fff; }
.btn-forest:hover { background: var(--forest-deep); color: #fff; }

.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { background: var(--card); color: var(--terra-deep); }

.btn-lg { padding: 1rem 2.2rem; font-size: 1.08rem; }
.btn svg { flex-shrink: 0; }

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: 92svh; display: flex; align-items: flex-end;
  padding: 8rem 0 4.5rem; isolation: isolate; color: #fdfaf4;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
}
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(30, 34, 24, 0.35) 0%, rgba(30, 30, 22, 0.15) 40%, rgba(28, 26, 18, 0.72) 100%);
}
.hero h1 { color: #fdfaf4; max-width: 17ch; text-shadow: 0 2px 30px rgba(0,0,0,0.35); }
.hero .lead { color: rgba(253, 250, 244, 0.92); font-size: 1.2rem; margin-top: 1.2rem; text-shadow: 0 1px 18px rgba(0,0,0,0.4); }

.hero-tagline {
  font-family: var(--font-display); font-style: italic; font-size: 1.15rem;
  color: var(--gold-soft); letter-spacing: 0.04em; margin-top: 1.4rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.1rem; }

.hero-badges {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; margin-top: 2.4rem;
}
.hero-badges span {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 0.42rem 0.95rem; border-radius: 999px;
  background: rgba(250, 246, 239, 0.14); border: 1px solid rgba(250, 246, 239, 0.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* ---------- Fact box (Auf einen Blick) ---------- */

.factbox {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 2rem;
  margin-top: -3.5rem; position: relative; z-index: 5;
}
@media (min-width: 720px) { .factbox { padding: 2.5rem 3rem; } }

.factbox h2 { font-size: 1.45rem; margin-bottom: 1.4rem; }
.fact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.2rem 2rem;
}
.fact-grid dt {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--terra); margin-bottom: 0.15rem;
}
.fact-grid dd { color: var(--ink); font-size: 1rem; }

/* ---------- Cards ---------- */

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-soft);
  padding: 1.8rem;
}

.card-grid { display: grid; gap: 1.3rem; }
@media (min-width: 720px) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); } .card-grid-2 { grid-template-columns: repeat(2, 1fr); } }

.icon-chip {
  width: 3rem; height: 3rem; border-radius: 12px; display: grid; place-items: center;
  background: rgba(61, 90, 67, 0.1); color: var(--forest); font-size: 1.3rem;
  margin-bottom: 1rem;
}

.card h3 { margin-bottom: 0.5rem; }
/* nur klassenlose Absätze – klassierte (.price-figure, .quote-who, .form-note …) stylen sich selbst */
.card p:not([class]) { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Program table ---------- */

.program-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.program-table th {
  font-family: var(--font-display); font-size: 1.15rem; text-align: left;
  padding: 1.1rem 1.4rem; background: var(--forest); color: #fdfaf4; font-weight: 600;
}
.program-table td { padding: 0.95rem 1.4rem; border-top: 1px solid var(--line); vertical-align: top; }
.program-table td:first-child { font-weight: 700; width: 44%; }
.program-table td:last-child { color: var(--ink-soft); }
.program-table tr:nth-child(even) td { background: rgba(242, 235, 221, 0.4); }

.table-scroll { overflow-x: auto; border-radius: var(--radius); }

/* ---------- Timeline (Ablauf) ---------- */

.timeline { position: relative; display: grid; gap: 1.4rem; }
@media (min-width: 860px) { .timeline { grid-template-columns: repeat(3, 1fr); } }

.day-card { position: relative; padding-top: 2.4rem; }
.day-num {
  position: absolute; top: -1.15rem; left: 1.6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  background: var(--terra); color: #fff; border-radius: 999px;
  padding: 0.35rem 1.1rem; letter-spacing: 0.06em;
}
.day-card ul { list-style: none; margin-top: 0.8rem; }
.day-card li {
  position: relative; padding-left: 1.4rem; margin-bottom: 0.55rem;
  color: var(--ink-soft); font-size: 0.97rem;
}
.day-card li::before {
  content: "✦"; position: absolute; left: 0; top: 0; color: var(--gold); font-size: 0.8rem;
}

/* ---------- Gallery ---------- */

.gallery { display: grid; gap: 1.2rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

.gallery figure {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft); aspect-ratio: 3 / 4; background: var(--cream-3);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery figure:hover img { transform: scale(1.045); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(28, 26, 18, 0.78), transparent);
  color: #fdfaf4; font-size: 0.85rem; font-weight: 500;
}

/* ---------- Dates list ---------- */

.dates-list { list-style: none; display: grid; gap: 0.6rem; }
.dates-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 0.8rem 1.2rem; font-weight: 500;
}
.badge {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.28rem 0.8rem; border-radius: 999px; white-space: nowrap;
}
.badge-full { background: var(--cream-3); color: var(--ink-soft); }
.badge-few { background: rgba(61, 90, 67, 0.12); color: var(--forest-deep); }
.li-full { opacity: 0.62; }

/* ---------- Price ---------- */

.price-card { text-align: center; padding: 2.6rem 2rem; }
.price-figure {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.4rem, 8vw, 5rem); color: var(--terra); line-height: 1;
}
.price-sub { color: var(--ink-soft); margin-top: 0.5rem; }
.price-points { list-style: none; margin: 1.8rem auto 0; max-width: 30rem; text-align: left; display: grid; gap: 0.7rem; }
.price-points li { position: relative; padding-left: 1.8rem; color: var(--ink-soft); }
.price-points li::before {
  content: "✓"; position: absolute; left: 0; color: var(--forest); font-weight: 700;
}

/* ---------- Safety ---------- */

.safety-grid { display: grid; gap: 1.2rem; }
@media (min-width: 720px) { .safety-grid { grid-template-columns: repeat(2, 1fr); } }
.safety-note {
  margin-top: 1.6rem; padding: 1.2rem 1.5rem; border-left: 4px solid var(--gold);
  background: rgba(200, 138, 78, 0.08); border-radius: 0 12px 12px 0;
  color: var(--ink-soft); font-size: 0.98rem;
}

/* ---------- Testimonials ---------- */

.quote-card { display: flex; flex-direction: column; }
.stars { color: var(--gold); letter-spacing: 0.15em; font-size: 1.05rem; margin-bottom: 0.9rem; }
.quote-card blockquote {
  font-family: var(--font-display); font-size: 1.14rem; font-style: italic;
  line-height: 1.5; color: var(--ink); flex: 1;
}
.quote-who { margin-top: 1.2rem; font-weight: 700; color: var(--terra-deep); }
.quote-where { font-size: 0.88rem; color: var(--ink-soft); font-weight: 400; }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 0.8rem; }
.faq-list details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-soft); overflow: hidden;
}
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  cursor: pointer; list-style: none; padding: 1.1rem 1.4rem;
  font-weight: 700; font-size: 1.02rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-family: var(--font-display); font-size: 1.6rem; line-height: 1;
  color: var(--terra); transition: transform 0.25s ease; flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-a { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); }

/* ---------- Country teasers ---------- */

.teaser-card {
  position: relative; overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 15rem; padding: 1.8rem; border-radius: var(--radius);
  box-shadow: var(--shadow-soft); isolation: isolate;
}
.teaser-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(28, 30, 20, 0.8), rgba(28, 30, 20, 0.15));
}
.teaser-card .teaser-bg {
  position: absolute; inset: 0; z-index: -2; object-fit: cover; width: 100%; height: 100%;
  transition: transform 0.5s ease;
}
.teaser-card:hover .teaser-bg { transform: scale(1.05); }
.teaser-card h3 { color: #fdfaf4; }
.teaser-card p { color: rgba(253, 250, 244, 0.88); font-size: 0.95rem; margin-top: 0.35rem; }
.teaser-card .teaser-link {
  margin-top: 0.9rem; color: var(--gold-soft); font-weight: 700; font-size: 0.92rem;
}

/* ---------- Contact / form ---------- */

.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 7fr; align-items: start; } }

.contact-aside h2 { margin-bottom: 1rem; }
.contact-aside p { color: var(--ink-soft); }
.contact-channels { list-style: none; margin-top: 1.6rem; display: grid; gap: 0.9rem; }
.contact-channels a { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; }

form.contact-form { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.75rem 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent;
}
.field textarea { min-height: 6rem; resize: vertical; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative; text-align: center; color: #fdfaf4; isolation: isolate;
  padding: 5rem 0; background-size: cover; background-position: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(44, 66, 50, 0.82), rgba(44, 66, 50, 0.82));
}
.cta-band h2 { color: #fdfaf4; }
.cta-band .lead { color: rgba(253, 250, 244, 0.9); margin: 0.8rem auto 1.8rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--forest-deep); color: rgba(253, 250, 244, 0.85);
  padding: 3.5rem 0 2rem; font-size: 0.95rem;
}
.site-footer a { color: var(--gold-soft); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: #fdfaf4; margin-bottom: 0.6rem; }
.site-footer h4 { color: #fdfaf4; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.45rem; }
.footer-disclaimer {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(253, 250, 244, 0.18);
  font-size: 0.84rem; color: rgba(253, 250, 244, 0.6);
}

/* ---------- Breadcrumb ---------- */

.breadcrumb { padding: 5.5rem 0 0; font-size: 0.88rem; color: var(--ink-soft); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; color: var(--earth); }

/* ---------- Subpage hero ---------- */

.subhero { padding: 3rem 0 3.5rem; }
.subhero h1 { max-width: 22ch; }
.subhero .lead { margin-top: 1.1rem; }

/* ---------- Prose (subpage text) ---------- */

.prose h2 { margin: 2.6rem 0 1rem; }
.prose h3 { margin: 1.8rem 0 0.6rem; }
.prose p { margin-bottom: 1.1rem; color: var(--ink-soft); }
.prose ul { margin: 0 0 1.1rem 1.3rem; color: var(--ink-soft); }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--ink); }

/* ---------- Reveal animations ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* nur wenn JS läuft (html.js), sonst bleibt alles sichtbar */
  html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
  html.js .reveal.visible { opacity: 1; transform: none; }
  .hero .stagger { opacity: 0; transform: translateY(18px); animation: rise 0.9s ease forwards; }
  .hero .stagger:nth-child(1) { animation-delay: 0.1s; }
  .hero .stagger:nth-child(2) { animation-delay: 0.28s; }
  .hero .stagger:nth-child(3) { animation-delay: 0.46s; }
  .hero .stagger:nth-child(4) { animation-delay: 0.64s; }
  .hero .stagger:nth-child(5) { animation-delay: 0.82s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- WhatsApp float ---------- */

.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40;
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); text-decoration: none;
  transition: transform 0.18s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* ---------- Utility ---------- */

.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
