/* ============================================================
   Finca Colombia · tierra.cafe
   ============================================================ */

:root {
  --green-deep: #16281d;
  --green: #24402e;
  --green-soft: #3d5c46;
  --cream: #f7f2e8;
  --cream-warm: #efe6d4;
  --paper: #fbf8f1;
  --ink: #21251f;
  --ink-soft: #5a6055;
  --cherry: #a63a2b;
  --gold: #c99b4e;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --radius: 6px;
  --shadow: 0 20px 60px rgba(22, 40, 29, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; }

p { max-width: 62ch; }

a { color: inherit; }

.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}

.narrow { width: min(760px, 92vw); }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }

/* ---------- kickers, buttons, links ---------- */

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cherry);
  margin-bottom: 1.1rem;
}

.kicker.light { color: var(--gold); }

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-solid {
  background: var(--cherry);
  color: #fff;
}

.btn-solid:hover { background: #8f2f22; }

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.text-link {
  display: inline-block;
  margin-top: 1.4rem;
  font-weight: 600;
  color: var(--cherry);
  text-decoration: none;
  border-bottom: 2px solid rgba(166, 58, 43, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.text-link:hover { border-color: var(--cherry); }

/* ---------- header / nav ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 1.1rem 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.site-header.scrolled {
  background: rgba(22, 40, 29, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  padding: 0.7rem 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-display);
}

.wordmark-finca {
  font-size: 0.8rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}

.wordmark-colombia {
  font-size: 1.55rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--gold); }

.nav-links .nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0.5rem 1.3rem;
}

.nav-links .nav-cta:hover {
  background: var(--cherry);
  border-color: var(--cherry);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.hero {
  position: relative;
  min-height: min(100svh, 1000px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(16, 28, 20, 0.45), rgba(16, 28, 20, 0.05) 38%, rgba(16, 28, 20, 0.72) 88%);
}

.hero-content {
  position: relative;
  padding-bottom: clamp(5rem, 12vh, 9rem);
}

.hero-content h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }

.hero-sub {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.hero .kicker { color: var(--gold); }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
}

.hero-scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.8);
  animation: drop 1.8s infinite ease-in-out;
}

@keyframes drop {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- intro ---------- */

.intro {
  background: var(--paper);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}

.intro-lede {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.55;
  text-align: center;
  color: var(--ink);
  max-width: none;
}

.intro-lede em {
  display: block;
  font-style: italic;
  color: var(--cherry);
  margin-bottom: 0.9rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--cream-warm);
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  color: var(--green);
}

.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- split sections ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.split-flip .split-media { order: 2; }
.split-flip .split-copy { order: 1; }

.split-media { position: relative; }

.split-media > img:first-child {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split-media-overlap {
  position: absolute;
  right: -8%;
  bottom: -14%;
  width: 46%;
  border-radius: var(--radius);
  border: 6px solid var(--paper);
  box-shadow: var(--shadow);
}

.split-copy h2 { margin-bottom: 1.3rem; color: var(--green-deep); }
.split-copy p + p { margin-top: 1rem; }
.split-copy p { color: var(--ink-soft); }

/* ---------- heritage timeline ---------- */

.heritage { background: var(--cream-warm); }

.heritage-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}

.timeline {
  list-style: none;
  position: relative;
  padding-left: 2.2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--cherry), rgba(166, 58, 43, 0.15));
}

.timeline-item {
  position: relative;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.2rem;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cream-warm);
  border: 3px solid var(--cherry);
}

.timeline-year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--cherry);
}

.timeline-item h3 {
  margin: 0.2rem 0 0.5rem;
  color: var(--green-deep);
}

.timeline-item p {
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.heritage-aside {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.archive-figure {
  background: var(--paper);
  padding: 0.9rem 0.9rem 1.1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}

.archive-figure:nth-child(2) { transform: rotate(1.2deg); }

.archive-figure img { border-radius: 3px; }

.archive-figure figcaption {
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- full-bleed bands ---------- */

.band {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.band-tall { min-height: min(88vh, 820px); }

.band > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(16, 28, 20, 0.1) 40%, rgba(16, 28, 20, 0.7));
}

.band-caption {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.band-caption h2 { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4); }

.band-caption p {
  margin-top: 1rem;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- section heads ---------- */

.section-head {
  max-width: 720px;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.section-head h2 { color: var(--green-deep); }

.section-sub {
  margin-top: 1.1rem;
  color: var(--ink-soft);
}

/* ---------- coffee cards ---------- */

.coffee { background: var(--cream); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(22, 40, 29, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-media {
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
}

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

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

.card h3 {
  padding: 1.5rem 1.6rem 0.4rem;
  color: var(--green-deep);
}

.card p {
  padding: 0 1.6rem 1.8rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- harvest steps ---------- */

.harvest {
  background: var(--green-deep);
  color: var(--cream);
}

.harvest .section-head h2 { color: var(--cream); }
.harvest .section-sub { color: rgba(247, 242, 232, 0.72); }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 2.6vw, 2.2rem);
}

.step-media {
  aspect-ratio: 3 / 3.6;
  overflow: hidden;
  border-radius: var(--radius);
}

.step-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.step:hover .step-media img { transform: scale(1.06); }

.step-copy { padding-top: 1.4rem; }

.step-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.18em;
}

.step h3 {
  margin: 0.4rem 0 0.6rem;
  color: var(--cream);
}

.step p {
  font-size: 0.93rem;
  color: rgba(247, 242, 232, 0.72);
}

/* ---------- gallery ---------- */

.masonry {
  columns: 3;
  column-gap: 1.4rem;
}

.masonry img {
  width: 100%;
  margin-bottom: 1.4rem;
  border-radius: var(--radius);
  break-inside: avoid;
  box-shadow: 0 8px 30px rgba(22, 40, 29, 0.1);
  transition: transform 0.3s ease;
}

.masonry img:hover { transform: scale(1.015); }

/* ---------- visit ---------- */

.visit {
  position: relative;
  padding: clamp(6rem, 14vw, 10rem) 0;
  color: #fff;
  overflow: hidden;
  text-align: center;
}

.visit-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
}

.visit-scrim {
  position: absolute;
  inset: 0;
  background: rgba(16, 28, 20, 0.62);
}

.visit-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.visit-inner p {
  margin: 1.2rem 0 2rem;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- footer ---------- */

.footer {
  background: var(--green-deep);
  color: rgba(247, 242, 232, 0.85);
  padding: 3.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-tag {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: rgba(247, 242, 232, 0.6);
}

.footer-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.footer-links a {
  color: rgba(247, 242, 232, 0.85);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover { color: var(--gold); }

.footer-meta {
  text-align: right;
  font-size: 0.88rem;
  color: rgba(247, 242, 232, 0.6);
}

.footer-meta a {
  color: var(--gold);
  text-decoration: none;
}

/* ---------- reveal animation ---------- */

/* Reveal styles apply only when JS is running, so content
   is never hidden for no-JS visitors or crawlers. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .heritage-grid { grid-template-columns: 1fr; }
  .heritage-aside { position: static; flex-direction: row; }
  .heritage-aside .archive-figure { flex: 1; align-self: flex-start; }
  .split-flip .split-media { order: 0; }
  .split-media-overlap { right: 4%; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    background: rgba(22, 40, 29, 0.97);
    transform: translateY(-100%);
    transition: transform 0.4s ease;
  }

  .nav-links.open { transform: none; }

  .nav-links a { font-size: 1.3rem; }

  .nav-toggle { position: relative; z-index: 60; }

  .nav-toggle.open span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle.open span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .masonry { columns: 1; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
}
