/* ============================================
   ColombiaRetirement.com — Global Stylesheet
   Editorial, warm, retirement lifestyle brand
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --emerald: #0F4C3A;
  --emerald-light: #1a6b53;
  --terracotta: #C85A3C;
  --terracotta-dark: #a84528;
  --gold: #D4A74A;
  --cream: #FAF7F2;
  --cream-dark: #f0ebe0;
  --charcoal: #1A1A1A;
  --muted: #6B6B6B;
  --border: #e6e0d4;
  --shadow-sm: 0 2px 8px rgba(26,26,26,0.06);
  --shadow-md: 0 8px 24px rgba(26,26,26,0.08);
  --shadow-lg: 0 20px 60px rgba(26,26,26,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1280px;
  --content-width: 760px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald); text-decoration: none; transition: color .2s; }
a:hover { color: var(--terracotta); }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.75rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1em; }
.lead { font-size: 1.25rem; color: var(--muted); line-height: 1.55; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.narrow { max-width: var(--content-width); margin: 0 auto; padding: 0 1.5rem; }

/* ============ NAVIGATION ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.logo {
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.35rem;
  color: var(--emerald); letter-spacing: -0.01em;
}
.logo span { color: var(--terracotta); }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--charcoal); font-size: 0.95rem; font-weight: 500;
}
.nav-links a:hover { color: var(--terracotta); }
.nav-cta {
  background: var(--emerald); color: var(--cream) !important;
  padding: 0.6rem 1.25rem; border-radius: 999px; font-weight: 600;
}
.nav-cta:hover { background: var(--terracotta); color: var(--cream) !important; }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--charcoal); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.25rem;
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,76,58,0.72) 0%, rgba(26,26,26,0.4) 50%, rgba(200,90,60,0.3) 100%);
}
.hero-content {
  position: relative; z-index: 2; color: var(--cream);
  max-width: var(--max-width);
  margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem);
  width: 100%;
}
.hero h1 {
  color: var(--cream); max-width: 900px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}
.hero .eyebrow {
  display: inline-block; padding: 0.5rem 1rem;
  background: rgba(250,247,242,0.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(250,247,242,0.25);
  border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream);
  margin-bottom: 1.75rem;
}
.hero .lead {
  color: rgba(250,247,242,0.92);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  max-width: 640px; margin: 1.5rem 0 2.5rem;
}
.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 1.85rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; font-family: inherit;
  border: 2px solid transparent; cursor: pointer;
  transition: all .25s ease; text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--terracotta); color: var(--cream); }
.btn-primary:hover { background: var(--terracotta-dark); color: var(--cream); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: rgba(250,247,242,0.12); color: var(--cream);
  backdrop-filter: blur(8px); border-color: rgba(250,247,242,0.4);
}
.btn-secondary:hover { background: var(--cream); color: var(--charcoal); }
.btn-outline { background: transparent; color: var(--emerald); border-color: var(--emerald); }
.btn-outline:hover { background: var(--emerald); color: var(--cream); }
.btn-emerald { background: var(--emerald); color: var(--cream); }
.btn-emerald:hover { background: var(--emerald-light); color: var(--cream); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ============ SECTIONS ============ */
section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 4rem; }
.section-header .eyebrow {
  display: inline-block; color: var(--terracotta);
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--muted); font-size: 1.15rem; }

/* ============ STATS BAR ============ */
.stats {
  background: var(--emerald); color: var(--cream);
  padding: 3.5rem 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.stat { text-align: center; }
.stat-number {
  font-family: 'Fraunces', serif; font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 700; color: var(--gold); line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.9rem; opacity: 0.85; letter-spacing: 0.05em; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; } }

/* ============ FEATURE GRID ============ */
.features { background: var(--cream); }
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: white; padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all .3s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  color: var(--gold); display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1.5rem;
}
.feature-card h3 { margin-bottom: 0.75rem; }
.feature-card p { color: var(--muted); margin-bottom: 1.25rem; }
.feature-card a { font-weight: 600; font-size: 0.95rem; }
.feature-card a::after { content: ' →'; transition: all .2s; }
.feature-card a:hover::after { margin-left: 4px; }

/* ============ SPLIT SECTION ============ */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.split.reverse .split-img { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.reverse .split-img { order: 0; }
}
.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-content .eyebrow {
  color: var(--terracotta); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem;
  display: block;
}
.split-content h2 { margin-bottom: 1.25rem; }
.split-content p { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.25rem; }

/* ============ CTA BANNER ============ */
.cta-banner {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0;
  text-align: center;
  color: var(--cream);
  overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.cta-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(rgba(15,76,58,0.85), rgba(26,26,26,0.75));
  z-index: 1;
}
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner h2 { color: var(--cream); margin-bottom: 1rem; }
.cta-banner p { color: rgba(250,247,242,0.9); font-size: 1.2rem; margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ============ CALCULATOR ============ */
.calc-wrapper {
  background: white; border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-width: 960px; margin: 0 auto;
}
.calc-intro { text-align: center; margin-bottom: 2.5rem; }
.calc-intro h2 { margin-bottom: 0.75rem; }
.calc-intro p { color: var(--muted); }
.calc-inputs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 640px) { .calc-inputs { grid-template-columns: 1fr; } }
.form-group label {
  display: block; font-weight: 600; font-size: 0.9rem;
  margin-bottom: 0.5rem; color: var(--charcoal);
}
.form-group input, .form-group select {
  width: 100%; padding: 0.9rem 1rem;
  border: 2px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; background: var(--cream);
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--emerald);
}
.calc-results { display: none; }
.calc-results.visible { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.comparison {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  margin: 2rem 0;
}
@media (max-width: 640px) { .comparison { grid-template-columns: 1fr; } }
.compare-card {
  padding: 2rem; border-radius: var(--radius);
  border: 2px solid var(--border);
}
.compare-card.medellin { background: linear-gradient(135deg, #f5f9f6, #eaf3ee); border-color: var(--emerald); }
.compare-card h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.5rem; font-family: 'Inter', sans-serif; font-weight: 700; }
.compare-card .city-name { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 600; margin-bottom: 1.5rem; }
.line-item {
  display: flex; justify-content: space-between;
  padding: 0.7rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.line-item:last-of-type { border-bottom: none; }
.line-item span:last-child { font-weight: 600; }
.total-row {
  display: flex; justify-content: space-between;
  padding-top: 1rem; margin-top: 0.5rem;
  border-top: 2px solid var(--charcoal);
  font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 700;
}
.savings-banner {
  background: linear-gradient(135deg, var(--terracotta), #e07856);
  color: var(--cream); padding: 2rem; border-radius: var(--radius);
  text-align: center; margin-top: 1.5rem;
}
.savings-banner .big-number {
  font-family: 'Fraunces', serif; font-size: 3rem; font-weight: 700;
  line-height: 1; margin: 0.5rem 0;
}
.savings-banner p { font-size: 1.05rem; opacity: 0.95; }
.disclaimer {
  font-size: 0.8rem; color: var(--muted);
  text-align: center; margin-top: 1.5rem; font-style: italic;
}

/* ============ CONTENT PAGES ============ */
.page-hero {
  position: relative;
  padding: clamp(6rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 6rem);
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  color: var(--cream);
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.25; z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow {
  display: inline-block; color: var(--gold);
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.page-hero h1 { color: var(--cream); max-width: 800px; margin-bottom: 1.25rem; }
.page-hero p { color: rgba(250,247,242,0.9); font-size: 1.2rem; max-width: 640px; }

.content { padding: clamp(4rem, 7vw, 6rem) 0; }
.content .narrow > * + * { margin-top: 1.25rem; }
.content h2 { margin-top: 3rem; margin-bottom: 1rem; }
.content h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.content p { color: #2d2d2d; font-size: 1.08rem; line-height: 1.75; }
.content ul, .content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.content li { margin-bottom: 0.6rem; color: #2d2d2d; line-height: 1.7; }
.content .callout {
  background: var(--cream-dark); border-left: 4px solid var(--terracotta);
  padding: 1.5rem 1.75rem; border-radius: 8px; margin: 2rem 0;
}
.content .callout strong { color: var(--terracotta-dark); }
.content .callout-emerald {
  background: #f5f9f6; border-left-color: var(--emerald);
}
.content .callout-emerald strong { color: var(--emerald); }

/* ============ NEIGHBORHOOD CARDS ============ */
.hood-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
}
@media (max-width: 760px) { .hood-grid { grid-template-columns: 1fr; } }
.hood-card {
  background: white; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border);
  transition: all .3s ease;
}
.hood-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hood-card-img {
  aspect-ratio: 16/10; background-size: cover; background-position: center;
}
.hood-card-body { padding: 2rem; }
.hood-card h3 { margin-bottom: 0.25rem; }
.hood-card .tag { color: var(--terracotta); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.hood-card p { color: var(--muted); margin: 1rem 0 1.25rem; font-size: 0.98rem; }
.hood-stats { display: flex; gap: 1.5rem; font-size: 0.85rem; color: var(--muted); padding-top: 1rem; border-top: 1px solid var(--border); }
.hood-stats strong { color: var(--charcoal); display: block; font-size: 1rem; font-family: 'Fraunces', serif; }

/* ============ TIMELINE ============ */
.timeline { max-width: 800px; margin: 0 auto; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 20px; top: 0; bottom: 0;
  width: 3px; background: var(--border);
}
.timeline-item {
  position: relative; padding-left: 4rem; margin-bottom: 3rem;
}
.timeline-item::before {
  content: ''; position: absolute; left: 12px; top: 6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--terracotta); border: 4px solid var(--cream);
  box-shadow: 0 0 0 3px var(--terracotta);
}
.timeline-item h3 { margin-bottom: 0.5rem; }
.timeline-item .when {
  color: var(--terracotta); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.25rem;
  display: block;
}

/* ============ FOOTER ============ */
footer {
  background: var(--charcoal); color: var(--cream);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.footer-brand .logo { color: var(--gold); font-size: 1.5rem; }
.footer-brand p { color: rgba(250,247,242,0.7); margin-top: 1rem; max-width: 320px; font-size: 0.95rem; }
footer h4 {
  color: var(--cream); font-family: 'Inter', sans-serif;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.75rem; }
footer ul a { color: rgba(250,247,242,0.7); font-size: 0.95rem; }
footer ul a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid rgba(250,247,242,0.1);
  text-align: center; color: rgba(250,247,242,0.5); font-size: 0.85rem;
}

/* ============ EMAIL CAPTURE ============ */
.email-capture {
  display: flex; gap: 0.75rem; max-width: 480px; margin: 0 auto;
}
.email-capture input {
  flex: 1; padding: 1rem 1.25rem; border-radius: 999px;
  border: 2px solid rgba(250,247,242,0.3);
  background: rgba(250,247,242,0.1); color: var(--cream);
  font-family: inherit; font-size: 1rem;
  backdrop-filter: blur(8px);
}
.email-capture input::placeholder { color: rgba(250,247,242,0.6); }
.email-capture input:focus { outline: none; border-color: var(--gold); }
@media (max-width: 560px) {
  .email-capture { flex-direction: column; }
  .email-capture input, .email-capture .btn { width: 100%; }
}

/* ============ UTILITY ============ */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
