/* =============================================
   styles.css — Brand tokens + all components
   Requires: Bootstrap 5.3+
   ============================================= */

/* --- Brand tokens --- */
:root {
  --bs-body-font-family: 'DM Sans', sans-serif;
  --bs-body-bg: #fdfaf5;
  --bs-body-color: #1a2a1f;
  --green-deep: #1a3a2a;
  --green-primary: #2d6a4f;
  --green-medium: #40916c;
  --green-light: #52b788;
  --green-pale: #b7e4c7;
  --green-wash: #d8f3dc;
  --cream-dark: #f5f0e8;
  --text-secondary: #4a5a50;
  --text-muted: #7a8a80;
  --orange-accent: #e07a3a;
}

body { -webkit-font-smoothing: antialiased; }
.container { max-width: 1140px; }
h1, h2, h3, h4 { font-family: 'Fraunces', serif; color: var(--green-deep); }

/* --- Brand utilities --- */
.btn-brand            { background: var(--green-primary); color: #fff; border-radius: 10px; font-weight: 600; padding: 14px 32px; text-decoration: none; display: inline-block; transition: background .2s; }
.btn-brand:hover      { background: var(--green-deep); color: #fff; }
.btn-brand-orange     { background: var(--orange-accent); }
.btn-brand-orange:hover { background: #c96a2e; color: #fff; }
.btn-brand-sm         { padding: 10px 22px; font-size: .9rem; }

.bg-cream-dark        { background: var(--cream-dark); }
.bg-green-deep        { background: var(--green-deep); }
.bg-green-wash        { background: var(--green-wash); }

.text-secondary-custom { color: var(--text-secondary); }
.text-muted-custom    { color: var(--text-muted); }
.text-green-pale      { color: var(--green-pale); }
.text-green-primary   { color: var(--green-primary); }
.text-green-deep      { color: var(--green-deep); }
.text-orange          { color: var(--orange-accent); }
.border-brand         { border-color: rgba(45,106,79,.08) !important; }

/* --- Icon box --- */
.icon-box { width: 44px; height: 44px; background: var(--green-wash); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }

/* --- Step number circle --- */
.step-number { width: 48px; height: 48px; border-radius: 50%; background: var(--green-deep); color: #fff; font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.1rem; display: inline-flex; align-items: center; justify-content: center; }

/* --- Flag images --- */
.flag-card img { width: 72px; height: 48px; object-fit: cover; border-radius: 5px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }

/* --- Pricing --- */
.pricing-header { padding: 20px; text-align: center; }
.pricing-header .amount { font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 700; }
.pricing-connector { font-size: 1.4rem; color: var(--green-pale); font-weight: 700; }

/* --- Big stat / fact number --- */
.fact-number { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 700; color: var(--green-primary); line-height: 1; }

/* --- Callout / disclaimer box --- */
.callout { border-left: 4px solid var(--orange-accent); }

/* --- Dark panel items --- */
.dark-item { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; }
.dark-item .label-upper { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--green-pale); }
.dark-item .value-big { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 700; color: #fff; }

/* --- Comparison table --- */
.comp-table { border-collapse: collapse; table-layout: fixed; }
.comp-table thead th { background: var(--green-deep); color: #fff; padding: 24px 16px; text-align: center; vertical-align: bottom; border-right: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.comp-table thead th:first-child { text-align: left; width: 160px; }
.comp-table thead th:last-child { border-right: none; }
.comp-table thead th:nth-child(3) { background: #264a37; }
.comp-table thead th:nth-child(4) { background: #3c3c3c; }
.comp-table thead th:nth-child(5) { background: #4d3a2b; }
.comp-table .th-flag { font-size: 1.8rem; display: block; margin-bottom: 4px; }
.comp-table tbody td { padding: 14px 16px; border-bottom: 1px solid #f2efe9; border-right: 1px solid #f6f3ee; vertical-align: top; font-size: .85rem; }
.comp-table tbody td:first-child { background: #fafaf7; font-weight: 600; color: var(--text-secondary); border-right-color: var(--cream-dark); }
.comp-table tbody td:last-child { border-right: none; }
.comp-table tfoot td { background: var(--green-deep); padding: 16px; border-right: 1px solid rgba(255,255,255,.06); vertical-align: top; }
.comp-table tfoot td:last-child { border-right: none; }

/* Value colors for table cells */
.v-good { color: #2a7a4c; font-weight: 600; }
.v-warn { color: var(--orange-accent); font-weight: 600; }
.v-bad  { color: #c44536; font-weight: 600; }
.v-detail { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.v-foot { font-size: .85rem; font-weight: 700; }
.v-foot-sub { font-size: .75rem; color: rgba(255,255,255,.45); }

/* Recommended badge in table header */
.badge-rec { position: absolute; top: 8px; right: 8px; background: #c8956c; font-size: .6rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 2px 8px; border-radius: 10px; color: #fff; }

/* --- Timeline bars --- */
.tl-bar { height: 30px; border-radius: 6px; display: flex; align-items: center; padding: 0 12px; font-size: .75rem; font-weight: 600; color: #fff; }
.tl-bar-green  { background: #2d5a3f; }
.tl-bar-orange { background: var(--orange-accent); }
.tl-bar-red    { background: #c44b3f; }

/* --- Form styling (Bootstrap override) --- */
.form-control, .form-select {
  border: 1px solid rgba(45,106,79,.15);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .95rem;
  background: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(45,106,79,.1);
}

/* --- Checklist (sidebar) --- */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 24px; margin-bottom: 8px; font-size: .9rem; color: var(--text-secondary); }
.checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--green-primary); font-weight: 700; }

/* --- About page --- */
.about-photo { width: 100%; border-radius: 12px; object-fit: cover; box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.quote-block { border-left: 4px solid var(--orange-accent); background: var(--cream-dark); border-radius: 0 10px 10px 0; padding: 20px 24px; font-style: italic; color: var(--text-secondary); }



/* --- Navigation --- */
.navbar { border-bottom: 1px solid rgba(45,106,79,.1); }
.navbar-toggler { border: 1px solid rgba(45,106,79,.2); padding: 6px 10px; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(45,106,79,.1); }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231a3a2a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
a.nav-link-custom { text-decoration: none; font-weight: 600; color: var(--green-deep); font-size: .95rem; transition: color .2s; }
a.nav-link-custom:hover { color: var(--green-primary); }
a.phone-link { text-decoration: none; color: var(--green-primary); font-weight: 700; font-size: 1rem; }
a.phone-link:hover { color: var(--green-deep); }
.phone-label { font-size: .78rem; color: var(--text-muted); font-weight: 500; }

@media (max-width: 991.98px) {
  .navbar-collapse { padding-top: 16px; margin-top: 12px; border-top: 1px solid rgba(45,106,79,.08); }
  .navbar-collapse a.nav-link-custom { display: block; padding: 10px 0; font-size: 1rem; }
  .navbar-collapse .phone-block { padding: 12px 0; }
  .navbar-collapse .btn-brand { margin-top: 8px; width: 100%; text-align: center; }
}

/* === Article / Guide pages === */
.article-content {  line-height: 1.7; }
.article-content h2 { font-size: 1.5rem; margin-top: 2.8rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--orange-accent); }
.article-content h3 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: .75rem; }
.article-content p { margin-bottom: 1rem; }
.article-content li { margin-bottom: .4rem; line-height: 1.65; }

.article-note { background: #fef9ec; border-left: 4px solid var(--orange-accent); padding: .85rem 1.15rem; margin: 1rem 0 1.25rem; border-radius: 0 5px 5px 0; font-size: .93rem; }
.article-note strong { color: #8a5a1e; }

.article-step { display: flex; align-items: center; gap: .75rem; margin-top: 2.5rem; margin-bottom: .75rem; }
.article-step .step-circle { width: 36px; height: 36px; border-radius: 50%; background: var(--green-deep); color: #fff; font-family: 'Fraunces', serif; font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.article-step .step-title { font-size: 1.15rem; margin: 0; }

.article-content .table { font-size: .9rem; }
.article-content .table thead th { background: var(--green-deep); color: #fff; font-weight: 600; border: none; padding: .7rem .75rem; font-size: .85rem; }
.article-content .table tbody td { padding: .65rem .75rem; vertical-align: middle; border-color: var(--cream-dark); }
.article-content .table tbody tr:nth-child(even) { background: var(--cream-dark); }

.article-content .table-responsive { border-radius: 6px; overflow: auto; border: 1px solid var(--cream-dark); }
.table-note { font-size: .85rem; color: var(--text-muted); font-style: italic; }

.article-hero { background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-primary) 100%); color: #fff; padding: 3.5rem 0 3rem; text-align: center; }
.article-hero h1 { color: #fff; font-size: 2.2rem; margin-bottom: .75rem; }
.article-hero .lead { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 700px; margin: 0 auto; line-height: 1.6; }

.article-cta { background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-primary) 100%); color: #fff; padding: 3rem 1rem; text-align: center; margin-top: 3rem; border-radius: 16px; }
.article-cta h2 { color: #fff; border: none; margin-top: 0; padding-bottom: 0; }
.article-cta p { color: rgba(255,255,255,.8); max-width: 540px; margin: .5rem auto 1.5rem; }
.cta-sub { display: block; font-size: .8rem; margin-top: .3rem; font-weight: 400; opacity: .8; }

@media (max-width: 767.98px) {
    .article-hero h1 { font-size: 1.6rem; }
    .article-hero .lead { font-size: .95rem; }
}

/* --- Sidebar contact --- */
.sidebar-contact { position: sticky; top: 2rem; border-left: 1px solid rgba(45,106,79,.15); padding-left: 1.5rem; }
.sidebar-contact-photo { width: 150px; height: 150px;  object-fit: cover; display: block; margin-bottom: .75rem; }
.sidebar-contact-name { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 600; color: var(--green-deep); margin-bottom: .1rem; }
.sidebar-contact-role { font-size: .82rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.4; }
.sidebar-contact-links { margin-bottom: 1.25rem; }
.sidebar-contact-link { display: flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--text-secondary); font-size: .84rem; font-weight: 500; padding: .25rem 0; transition: color .2s; }
.sidebar-contact-link:hover { color: var(--green-primary); }
.sidebar-contact-link svg { flex-shrink: 0; }
.sidebar-contact .btn-brand { width: 100%; font-size: .85rem; padding: 11px 18px; text-align: center; }
 
details.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 0.5rem 0;
}
 
details.faq-item summary {
  font-weight:bold;
}
details.faq-item p {
  margin-bottom:0px;
}

/* --- Interactive Latin America map --- */
.map-container { position: relative; }
.country-shape { fill: var(--green-wash); stroke: #fff; stroke-width: 1.5; cursor: pointer; transition: fill .15s; }
.country-shape:hover, .country-shape.active { fill: var(--green-primary); }
.country-label { font-family: 'DM Sans', sans-serif; font-size: 11px; fill: var(--green-deep); pointer-events: none; text-anchor: middle; }
.country-shape:hover + .country-label, .country-shape.active + .country-label { fill: #fff; }
#map-tooltip { display: none; position: absolute; background: #fff; border: 1px solid rgba(45,106,79,.15); border-radius: 12px; padding: 16px 20px; max-width: 340px; box-shadow: 0 4px 16px rgba(0,0,0,.1); font-size: .9rem; line-height: 1.55; z-index: 10; }
