/* ═══════════════════════════════════════
   MALVES — main.css
   ═══════════════════════════════════════ */

:root {
  --stone:    #e8e0d0;
  --parchment:#f5f0e8;
  --earth:    #6b4f35;
  --moss:     #4a5e3a;
  --rust:     #9e4a28;
  --ink:      #1e1a14;
  --mist:     #c8d4c0;
  --gold:     #b8922a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--parchment);
  color: var(--ink);
  font-family: 'Libre Baskerville', Georgia, serif;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.5;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(245,240,232,0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(107,79,53,0.15);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--earth);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}

.nav-links a:hover { opacity: 1; color: var(--rust); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 4rem 4rem 6rem;
}

.hero-logo {
  height: 3rem;
  width: auto;
  margin-bottom: 0.5rem;
  display: block;
}

.hero-eyebrow {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.5s;
}

.hero-title em { font-style: italic; color: var(--rust); }

.hero-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--earth);
  max-width: 38ch;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.7s;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--parchment);
  background: var(--earth);
  padding: 1rem 2.2rem;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.9s;
  width: fit-content;
}

.hero-cta:hover { background: var(--rust); transform: translateY(-2px); }
.hero-cta svg { transition: transform 0.2s; }
.hero-cta:hover svg { transform: translateX(4px); }

.hero-image-col {
  position: relative;
  overflow: hidden;
}

.hero-image-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--moss) 0%, #2e3d24 40%, var(--earth) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-placeholder svg { width: 60%; opacity: 0.18; }

.hero-image-label {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.5);
  white-space: nowrap;
}

.hero-image-col::before {
  content: '';
  position: absolute;
  top: 0; left: -3rem; bottom: 0;
  width: 6rem;
  background: var(--parchment);
  clip-path: polygon(0 0, 100% 0, 0% 100%, 0 100%);
  z-index: 3;
}

/* ── SECTIONS ── */
section { padding: 6rem 6rem; }

.section-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 3rem;
  color: var(--ink);
}

/* ── CARDS ── */
#aventures { background: var(--stone); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--parchment);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(30,26,20,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(30,26,20,0.15);
}

.card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover .card-img img { transform: scale(1.04); }

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card-img-placeholder.c1 { background: linear-gradient(135deg, #4a5e3a, #2e3d24); }
.card-img-placeholder.c2 { background: linear-gradient(135deg, #6b4f35, #9e4a28); }
.card-img-placeholder.c3 { background: linear-gradient(135deg, #2e3d24, #4a5e3a); }

.card-body { padding: 1.5rem 1.8rem 2rem; }

.card-date {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  color: var(--ink);
}

.card-excerpt {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--earth);
}

.card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
}

/* ── GALLERY ── */
#galerie { background: var(--parchment); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(3, 180px);
  gap: 0.75rem;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover::after { opacity: 0.2; }

.gallery-item img,
.gallery-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover .gallery-placeholder { transform: scale(1.05); }

.gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.gallery-item:nth-child(1)  { grid-column: 1 / 6;   grid-row: 1 / 3; }
.gallery-item:nth-child(2)  { grid-column: 6 / 9;   grid-row: 1 / 2; }
.gallery-item:nth-child(3)  { grid-column: 9 / 13;  grid-row: 1 / 2; }
.gallery-item:nth-child(4)  { grid-column: 6 / 10;  grid-row: 2 / 4; }
.gallery-item:nth-child(5)  { grid-column: 10 / 13; grid-row: 2 / 3; }
.gallery-item:nth-child(6)  { grid-column: 1 / 4;   grid-row: 3 / 4; }
.gallery-item:nth-child(7)  { grid-column: 4 / 6;   grid-row: 3 / 4; }
.gallery-item:nth-child(8)  { grid-column: 10 / 13; grid-row: 3 / 4; }

.gallery-item:nth-child(1)  .gallery-placeholder { background: linear-gradient(160deg, #4a5e3a, #2e3d24); }
.gallery-item:nth-child(2)  .gallery-placeholder { background: linear-gradient(160deg, #8a7560, #6b4f35); }
.gallery-item:nth-child(3)  .gallery-placeholder { background: linear-gradient(160deg, #9e4a28, #6b4f35); }
.gallery-item:nth-child(4)  .gallery-placeholder { background: linear-gradient(160deg, #c8d4c0, #4a5e3a); }
.gallery-item:nth-child(5)  .gallery-placeholder { background: linear-gradient(160deg, #b8922a, #6b4f35); }
.gallery-item:nth-child(6)  .gallery-placeholder { background: linear-gradient(160deg, #2e3d24, #4a5e3a); }
.gallery-item:nth-child(7)  .gallery-placeholder { background: linear-gradient(160deg, #6b4f35, #9e4a28); }
.gallery-item:nth-child(8)  .gallery-placeholder { background: linear-gradient(160deg, #4a5e3a, #b8922a); }

/* ── ABOUT ── */
#a-propos {
  background: var(--moss);
  color: var(--parchment);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

#a-propos .section-label { color: var(--mist); }
#a-propos .section-title { color: var(--parchment); margin-bottom: 1.5rem; }

.about-text {
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(245,240,232,0.8);
}

.about-text p + p { margin-top: 1.2rem; }

.about-visual {
  aspect-ratio: 1/2;
  overflow: hidden;
}

.about-visual img {
  width: 75%;
  height: 100%;
  object-fit: cover;
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: rgba(245,240,232,0.5);
  padding: 3rem 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--parchment);
}

.footer-copy {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ── SINGLE ADVENTURE PAGE ── */
.adventure-hero {
  position: relative;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
  margin-top: 0;
}

.adventure-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.adventure-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--moss), #2e3d24 60%, var(--earth));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}

.adventure-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,26,20,0.75) 40%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 6rem;
  color: var(--parchment);
}

.back-link {
  position: absolute;
  top: 6rem;
  left: 6rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover { color: var(--parchment); }

.adventure-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tag {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(245,240,232,0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
}

.adventure-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  color: var(--parchment);
}

.adventure-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
}

.adventure-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--ink);
}

.adventure-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem;
  color: var(--earth);
}

.adventure-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin: 2rem 0 0.8rem;
  color: var(--ink);
}

.adventure-content p { margin-bottom: 1.4rem; }

.adventure-content img {
  width: 100%;
  height: auto;
  margin: 2rem 0;
  display: block;
}

.adventure-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--earth);
}

/* Post taxonomy block */
.post-taxonomy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 2.5rem 0;
  padding: 1.5rem;
  border-left: 2px solid var(--stone);
}

.post-taxonomy-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.post-taxonomy-row dt {
  flex-shrink: 0;
  width: 1.25rem;
  font-style: normal;
}

.post-taxonomy-row dd {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
}

.post-taxonomy .tag {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;

  text-decoration: none;
  border: 1px solid rgba(107,79,53,0.2);
  background: transparent;
}

.post-taxonomy .tag:hover {
  background: var(--earth);
  color: var(--parchment);
  border-color: var(--earth);
}

/* Post photo grid */
.post-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 3rem 0;
}

.post-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  margin: 0;
}

/* Post navigation */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(107,79,53,0.2);
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  max-width: 45%;
}

.post-nav-link.next { text-align: right; margin-left: auto; }

.post-nav-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
}

.post-nav-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--earth);
  line-height: 1.3;
}

.post-nav-link:hover .post-nav-title { color: var(--rust); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image-col { display: none; }
  .hero-text { padding: 8rem 2rem 4rem; }

  section { padding: 4rem 2rem; }
  nav { padding: 1rem 1.5rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(245,240,232,0.97);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid rgba(107,79,53,0.15);
  }

  nav.open .nav-links { display: flex; }
  .nav-hamburger { display: flex; }

  #a-propos { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { aspect-ratio: 4/3; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item {
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 1;
  }

  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem; }

  .adventure-hero-overlay { padding: 2rem; }
  .back-link { top: 5rem; left: 2rem; }
  .adventure-body { padding: 3rem 1.5rem 4rem; }
}

/* ── LANGUAGE SWITCHER ── */
.lang-switcher {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.lang-btn {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(107,79,53,0.25);
  color: var(--earth);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.lang-btn:hover {
  background: var(--earth);
  color: var(--parchment);
  border-color: var(--earth);
}

.lang-btn.active {
  background: var(--earth);
  color: var(--parchment);
  border-color: var(--earth);
}

@media (max-width: 900px) {
  .lang-switcher { margin-right: 0.5rem; }
}
