/* ============================================================
   MARKET ENTRY ADVISOR — Global Stylesheet
   Design: Refined Dark Luxury with Gold Accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --ink:       #0d0d0d;
  --deep:      #111418;
  --surface:   #181c22;
  --card:      #1e242c;
  --border:    rgba(255,255,255,0.07);
  --gold:      #c9a96e;
  --gold-lt:   #e8cfa0;
  --gold-dk:   #8a6d3b;
  --white:     #f4f1ec;
  --muted:     #8a8f99;
  --accent:    #2a6049;    /* subtle green */
  --radius:    4px;
  --nav-h:     76px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--deep);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.display-xl {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
}

.display-lg  { font-size: clamp(2.2rem, 4.5vw, 4rem); }
.display-md  { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.display-sm  { font-size: clamp(1.2rem, 2vw, 1.7rem); }

em { font-style: italic; color: var(--gold); }

p { font-size: 1.05rem; color: rgba(244,241,236,0.78); }

.label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── LAYOUT ─────────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 7rem 0; }
.section-sm { padding: 4rem 0; }

/* ── NAVIGATION ─────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(13,13,13,0.82) 0%, transparent 100%);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

#nav.scrolled {
  background: rgba(17, 20, 24, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}

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

.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(244,241,236,0.92);
  transition: color var(--transition);
}

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

.nav-lang {
  display: flex;
  gap: 0.5rem;
}

.nav-lang button {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.nav-lang button.active,
.nav-lang button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--ink);
}

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

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all var(--transition);
}

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--deep);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition);
}

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

.nav-mobile .close-btn {
  position: absolute;
  top: 2rem; right: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.2rem;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-primary:hover::after { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(201,169,110,0.3); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.2rem;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(244,241,236,0.3);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.2rem;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-whatsapp:hover {
  background: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}

/* ── DIVIDER LINE ─────────────────────────────────────── */
.gold-line {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}

.gold-line.center { margin: 1.5rem auto; }

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  background: var(--ink);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 1.2rem;
  filter: brightness(0) invert(1) opacity(0.85);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 260px;
  line-height: 1.7;
}

.footer-col h5 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul li a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-contact-item:hover { color: var(--white); }

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: all var(--transition);
}

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

/* ── CARDS ───────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
  transition: all var(--transition);
}

.card:hover {
  border-color: rgba(201,169,110,0.3);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

/* ── ANIMATIONS ──────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SCROLL PROGRESS BAR ─────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--gold);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── GRAIN OVERLAY ───────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-lang, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 5rem 0; }
  .container { padding: 0 1.25rem; }
}

/* ============================================================
   MOBILE IMPROVEMENTS — Added May 2026
   ============================================================ */

/* ── NAV MOBILE FIXES ────────────────────────────────── */
@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-links, .nav-lang, .nav-cta { display: none !important; }

  .nav-mobile {
    padding: 2rem;
    gap: 1.8rem;
  }

  .nav-mobile a {
    font-size: 2rem;
  }
}

/* ── HERO MOBILE ─────────────────────────────────────── */
@media (max-width: 600px) {
  .hero {
    min-height: 100svh;
  }

  .hero-content {
    padding: 0 1.25rem 5rem !important;
  }

  .hero-headline {
    max-width: 100% !important;
    font-size: clamp(2rem, 10vw, 3rem) !important;
  }

  .hero-sub {
    font-size: 0.95rem !important;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .hero-scroll { display: none; }
}

/* ── PROOF STRIP MOBILE ──────────────────────────────── */
@media (max-width: 600px) {
  .proof-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
  }

  .proof-number { font-size: 2.6rem !important; }
}

/* ── SECTION SPACING MOBILE ──────────────────────────── */
@media (max-width: 600px) {
  .section { padding: 4rem 0 !important; }

  h2.display-lg { font-size: clamp(1.7rem, 8vw, 2.4rem) !important; }
  h2.display-md { font-size: clamp(1.4rem, 7vw, 2rem) !important; }

  .gold-line { margin: 1rem 0 !important; }
}

/* ── CARDS MOBILE ────────────────────────────────────── */
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr !important;
  }

  .service-card { padding: 2rem 1.5rem !important; }

  .problem-list { gap: 1rem !important; }
  .problem-item { padding: 1.2rem !important; }

  .cta-inner {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions a {
    width: 100%;
    justify-content: center;
  }
}

/* ── PROCESS MOBILE ──────────────────────────────────── */
@media (max-width: 600px) {
  .process-steps {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .process-connector { display: none !important; }

  .step-circle {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.4rem !important;
  }
}

/* ── ARTICLE HERO MOBILE ─────────────────────────────── */
@media (max-width: 600px) {
  .article-hero {
    min-height: 50vh;
  }

  .article-hero-content {
    padding: 3rem 0 2rem !important;
  }

  .article-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem) !important;
  }

  .article-subtitle {
    font-size: 0.95rem !important;
  }

  .article-layout {
    grid-template-columns: 1fr !important;
  }

  .article-sidebar { position: static !important; }

  .article-stats {
    grid-template-columns: 1fr !important;
  }

  .next-articles-grid {
    grid-template-columns: 1fr !important;
  }

  .article-body-wrap { padding: 3rem 0 4rem !important; }

  .article-pullquote {
    padding: 1.5rem !important;
    margin: 2rem 0 !important;
  }

  .article-pullquote blockquote {
    font-size: 1.2rem !important;
  }
}

/* ── REAL IMAGES IN ARTICLE HEROES ──────────────────── */
.article-hero-bg.img-sudamerica {
  background-image: url('../images/sudamerica.jpg');
  background-size: cover;
  background-position: center;
}

.article-hero-bg.img-bogota {
  background-image: url('../images/bogota.jpg');
  background-size: cover;
  background-position: center top;
}

.article-hero-bg.img-remesa {
  background-image: url('../images/remesa.jpg');
  background-size: cover;
  background-position: center;
}

/* ── INSIGHTS INDEX MOBILE ───────────────────────────── */
@media (max-width: 600px) {
  .featured-card {
    grid-template-columns: 1fr !important;
  }

  .featured-image {
    min-height: 220px !important;
  }

  .featured-content {
    padding: 1.5rem !important;
  }

  .articles-grid {
    grid-template-columns: 1fr !important;
  }

  .filter-inner { gap: 0.5rem !important; }
  .filter-btn { font-size: 0.72rem !important; padding: 0.4rem 0.9rem !important; }
}

/* ── CONTACT MOBILE ──────────────────────────────────── */
@media (max-width: 600px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .calendly-banner {
    padding: 2rem !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 1.5rem !important;
  }

  .contact-form-wrap {
    padding: 1.5rem !important;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }
}

/* ── FOOTER MOBILE ───────────────────────────────────── */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 1rem !important;
  }

  footer { padding: 3rem 0 2rem !important; }
}

/* ── ABOUT PAGE MOBILE ───────────────────────────────── */
@media (max-width: 600px) {
  .story-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .story-photo { position: static !important; }

  .story-photo-badge {
    right: 0 !important;
    bottom: -0.5rem !important;
  }

  .values-grid {
    grid-template-columns: 1fr !important;
  }

  .timeline::before { left: 14px !important; }

  .timeline-item {
    grid-template-columns: 28px 1fr !important;
  }

  .timeline-item:nth-child(even) .tl-content {
    grid-column: 2 !important;
    text-align: left !important;
    direction: ltr !important;
  }

  .timeline-item:nth-child(even) .tl-empty { display: none !important; }
  .timeline-item:nth-child(odd) .tl-content {
    text-align: left !important;
    grid-column: 2 !important;
  }

  .tl-dot { width: 10px !important; height: 10px !important; }
  .tl-content { padding: 0 0 0 0.5rem !important; }
}

/* ── SERVICES MOBILE ─────────────────────────────────── */
@media (max-width: 600px) {
  .service-detail-inner {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    direction: ltr !important;
  }

  .service-detail:nth-child(even) .service-detail-inner {
    direction: ltr !important;
  }

  .service-left { position: static !important; }

  .service-big-num { font-size: 5rem !important; }

  .faq-grid { grid-template-columns: 1fr !important; }
}

/* ── GENERAL IMAGE SAFETY ────────────────────────────── */
img {
  max-width: 100%;
  height: auto;
}

/* ── BUTTON FULL WIDTH HELPERS ───────────────────────── */
@media (max-width: 480px) {
  .btn-primary, .btn-secondary, .btn-whatsapp {
    font-size: 0.78rem !important;
    padding: 0.85rem 1.4rem !important;
  }
}
