/* =========================================================
   Moving to Colombia — Core Stylesheet
   Editorial, warm, confident. Fraunces + Geist.
   ========================================================= */

:root {
  /* Palette */
  --yellow: #FCD116;
  --yellow-deep: #E8B90A;
  --ink: #0B0F19;
  --ink-soft: #1F2937;
  --paper: #FAF7F0;
  --paper-warm: #F3EDDF;
  --line: #E7E1D3;
  --muted: #5B6472;
  --accent: #0F766E; /* deep teal — secondary accent */
  --red: #CE1126;   /* Colombian red, used sparingly */
  --blue: #003893;  /* Colombian blue, used sparingly */

  /* Type */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  /* Scale */
  --container: 1200px;
  --container-narrow: 760px;
  --radius: 6px;
  --radius-lg: 14px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F5F1E8;
    --ink-soft: #D6D2C6;
    --paper: #0B0F19;
    --paper-warm: #131826;
    --line: #2A3040;
    --muted: #8A93A3;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s var(--ease); }
a:hover { color: var(--yellow-deep); }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); font-variation-settings: 'SOFT' 30, 'WONK' 1; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.4rem; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.eyebrow::before { content: '— '; color: var(--yellow-deep); }

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 6rem 0; }
@media (max-width: 700px) { section { padding: 4rem 0; } }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.5rem;
  max-width: var(--container); margin: 0 auto;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: .55rem;
}
.brand-mark {
  width: 28px; height: 28px;
  background: var(--yellow);
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: var(--ink); letter-spacing: -1px;
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: .95rem;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.cta {
  background: var(--ink);
  color: var(--paper);
  padding: .6rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 500;
}
.nav-links a.cta:hover { background: var(--yellow); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .3rem; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--ink); }
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem; gap: .25rem;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: all .25s var(--ease);
  }
  .nav-links a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a.cta { margin-top: .5rem; text-align: center; }
  .nav.open .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .95rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-sans); font-weight: 500; font-size: 1rem;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--yellow); color: var(--ink); }

/* Hero */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 400px at 90% -10%, color-mix(in srgb, var(--yellow) 35%, transparent), transparent 60%),
    radial-gradient(600px 300px at 0% 110%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
  pointer-events: none;
}
.hero-intro { position: relative; max-width: 820px; }
.hero h1 .accent {
  background: linear-gradient(180deg, transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
  padding: 0 .15em;
  font-style: italic;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 54ch;
  margin: 1.5rem 0 2rem;
}
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }

.hero-banner {
  position: relative;
  max-width: 1400px;
  margin: 3.5rem auto 0;
  padding: 0 1.5rem;
}
.hero-banner img, .hero-banner picture {
  width: 100%; height: auto;
  display: block;
}
.hero-banner img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.35), 0 10px 30px -15px rgba(0,0,0,.2);
}
.hero-banner-fallback {
  min-height: 420px;
}
.hero-banner-fallback::before {
  content: '';
  position: absolute; inset: 0 1.5rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, #0B0F19 0%, #1F2937 40%, #0F766E 70%, #CE1126 100%);
}
.hero-banner-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.5rem; right: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  pointer-events: none;
}
.hero-banner-caption span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(.95rem, 1.4vw, 1.3rem);
  color: #fff;
  text-align: center;
  letter-spacing: .02em;
  text-shadow: 0 2px 20px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.8);
  padding: .75rem .5rem;
}
@media (max-width: 600px) {
  .hero-banner-caption span { font-size: .8rem; padding: .5rem .25rem; }
  .hero-banner { padding: 0 1rem; }
}

.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3.5rem; padding-top: 2rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-stats .stat strong {
  display: block; font-family: var(--font-display); font-size: 2rem; color: var(--ink); line-height: 1;
}
.hero-stats .stat span { font-size: .85rem; color: var(--muted); }

/* Section headings */
.section-head { max-width: 760px; margin-bottom: 3.5rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Tools / Feature grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.18); }
.card .icon {
  width: 44px; height: 44px;
  background: var(--yellow); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
}
.card h3 { margin: 0 0 .5rem; }
.card p { color: var(--muted); margin: 0 0 1.25rem; font-size: .95rem; }
.card .card-link {
  text-decoration: none; font-weight: 500; font-size: .9rem;
  display: inline-flex; align-items: center; gap: .35rem;
}
.card .card-link::after {
  content: '→'; transition: transform .2s var(--ease);
}
.card:hover .card-link::after { transform: translateX(3px); }

/* City cards */
.cities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .cities { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cities { grid-template-columns: 1fr; } }
.city-card {
  position: relative; aspect-ratio: 3/4;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink); color: var(--paper);
  text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  isolation: isolate;
}
.city-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.city-card .city-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  transition: transform .8s var(--ease), filter .4s var(--ease);
  filter: saturate(1.05) contrast(1.02);
  display: block;
}
.city-card .city-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.city-card:hover .city-img { transform: scale(1.08); filter: saturate(1.15) contrast(1.05); }
.city-card::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg,
    rgba(0,0,0,.15) 0%,
    rgba(0,0,0,0) 35%,
    rgba(11,15,25,.65) 75%,
    rgba(11,15,25,.95) 100%);
}
.city-card .city-bg {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 6rem; font-style: italic;
  color: color-mix(in srgb, var(--yellow) 90%, transparent);
  opacity: .15;
  transition: transform .6s var(--ease), opacity .4s var(--ease);
}
.city-card:hover .city-bg { transform: scale(1.15); opacity: .25; }
.city-card .city-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem; z-index: 3;
}
.city-card h3 { font-size: 1.6rem; margin-bottom: .2rem; color: var(--paper); }
.city-card .city-meta { font-size: .85rem; opacity: .8; display: flex; gap: 1rem; }
.city-card .city-meta span { color: color-mix(in srgb, var(--yellow) 75%, white 25%); }

/* Editorial two-column */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } }
.split .visual {
  aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-deep));
  position: relative;
}
.split .visual::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.3), transparent 50%);
}

/* Stay22 embed wrapper */
.stay-wrap {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  overflow: hidden;
}
.stay-wrap iframe { border-radius: var(--radius); width: 100%; height: 620px; border: 0; }
@media (max-width: 700px) { .stay-wrap iframe { height: 500px; } }

/* Dark CTA band */
.cta-band {
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--yellow) 40%, transparent), transparent 60%);
}
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: 2.5rem; } }
.cta-band h2 { color: var(--paper); margin: 0; }
.cta-band p { color: color-mix(in srgb, var(--paper) 70%, transparent); margin: .5rem 0 0; }

/* Prose (for about/privacy/terms) */
.prose h1 { margin-bottom: 2rem; }
.prose h2 { margin-top: 2.5rem; font-size: 1.6rem; }
.prose h3 { margin-top: 2rem; font-size: 1.2rem; }
.prose p, .prose li { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.75; }
.prose a { color: var(--ink); font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose blockquote {
  margin: 2rem 0; padding: 1rem 1.5rem;
  border-left: 3px solid var(--yellow); background: var(--paper-warm);
  font-family: var(--font-display); font-style: italic; font-size: 1.25rem;
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: .85rem; font-weight: 500;
  margin-bottom: .4rem; color: var(--ink-soft);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .85rem 1rem;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 1rem; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow) 50%, transparent);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* Footer */
.site-footer {
  background: var(--ink); color: color-mix(in srgb, var(--paper) 80%, transparent);
  padding: 4rem 0 2rem; margin-top: 4rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid color-mix(in srgb, var(--paper) 10%, transparent);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.site-footer h4 {
  color: var(--paper); font-family: var(--font-sans); font-weight: 600;
  font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem;
}
.site-footer a { color: color-mix(in srgb, var(--paper) 75%, transparent); text-decoration: none; font-size: .95rem; display: block; padding: .25rem 0; }
.site-footer a:hover { color: var(--yellow); }
.footer-bottom {
  padding-top: 2rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: color-mix(in srgb, var(--paper) 55%, transparent);
}
.footer-flag {
  display: inline-flex; margin-right: .5rem; vertical-align: middle; border-radius: 2px; overflow: hidden;
  width: 18px; height: 12px; flex-direction: column;
}
.footer-flag span:nth-child(1) { background: var(--yellow); flex: 2; }
.footer-flag span:nth-child(2) { background: var(--blue); flex: 1; }
.footer-flag span:nth-child(3) { background: var(--red); flex: 1; }
.footer-flag span { display: block; width: 100%; }

/* 404 */
.notfound {
  min-height: 70vh; display: flex; flex-direction: column; justify-content: center; text-align: center;
  padding: 4rem 1.5rem;
}
.notfound .big {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(6rem, 20vw, 14rem); line-height: .9;
  color: var(--yellow); margin: 0;
}

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Utils */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
