/* ============================================================
   Expat Investments — clean business website
   Palette: navy #0A2540 · mint #19D3A2 · paper #F7F9FB · white
   ============================================================ */

:root {
  --navy: #0A2540;
  --navy-soft: #10315A;
  --mint: #19D3A2;
  --mint-dark: #0FA37C;
  --paper: #F7F9FB;
  --line: #E3E9F0;
  --ink: #1B2B3D;
  --muted: #5A6B7E;
  --font-head: "Archivo Black", "Archivo", sans-serif;
  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(10, 37, 64, 0.05), 0 8px 24px rgba(10, 37, 64, 0.07);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.12; font-weight: 400; }

h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); letter-spacing: -0.5px; }

.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 18px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--mint-dark);
  margin-bottom: 14px;
}

.lead { font-size: 1.16rem; color: var(--muted); max-width: 34em; }

.section-intro { color: var(--muted); max-width: 40em; margin-bottom: 46px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-soft); }

.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }

.btn-block { width: 100%; text-align: center; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }

.brand-mark {
  width: 22px; height: 22px; border-radius: 5px;
  background: var(--navy);
  position: relative; flex: none;
}
.brand-mark::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 4px;
  background: var(--mint); border-radius: 2px;
}

.brand-name { font-family: var(--font-head); font-size: 1.02rem; color: var(--navy); letter-spacing: 0.2px; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.98rem; }
.site-nav a:hover { color: var(--navy); }
.btn-nav { color: #fff !important; padding: 10px 20px; font-size: 0.94rem; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; position: relative;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--navy);
  position: absolute; left: 9px; transition: transform 0.2s ease;
}
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 88px 0 96px; }

.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }

.hero-copy h1 { margin: 0 0 22px; }
.hero-copy .lead { margin-bottom: 32px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.hero-trust { list-style: none; display: flex; gap: 26px; flex-wrap: wrap; }
.hero-trust li { font-size: 0.92rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-trust li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint);
}

/* Hero visual */
.hero-visual { position: relative; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); max-width: 360px; margin-left: auto; }

.panel-title { font-weight: 700; color: var(--navy); font-size: 0.98rem; margin-bottom: 18px; }

.panel-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.panel-label { font-size: 0.9rem; color: var(--muted); }
.panel-value { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.panel-mint { color: var(--mint-dark); }

.bar { height: 8px; border-radius: 4px; background: #EDF2F7; margin-bottom: 20px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 4px; }
.bar-gross { width: 100%; background: var(--navy); }
.bar-net { width: 64%; background: var(--mint); }

.panel-divider { height: 1px; background: var(--line); margin: 6px 0 18px; }

.hero-badge {
  margin-top: 16px; margin-left: auto; max-width: 360px;
  background: var(--navy); color: #fff; border-radius: 12px;
  padding: 16px 20px; display: flex; gap: 14px; align-items: center;
  box-shadow: var(--shadow);
}
.badge-number { font-family: var(--font-head); font-size: 1.5rem; color: var(--mint); white-space: nowrap; }
.badge-text { font-size: 0.84rem; line-height: 1.45; color: #C9D6E4; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: end; margin-bottom: 46px;
}
.section-side { color: var(--muted); max-width: 34em; padding-bottom: 6px; }

.group-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mint-dark); margin: 34px 0 18px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.card-grid:first-of-type { margin-top: 0; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 10px;
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 30px 28px; transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { border-color: #C6D4E2; transform: translateY(-3px); box-shadow: var(--shadow); }

.card-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--paper); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 { font-size: 1.06rem; margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--muted); }

/* ---------- Who / About ---------- */
.who-grid, .about-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start;
}

.who-copy p, .about-copy p { color: var(--muted); margin-bottom: 18px; }

.check-list { list-style: none; margin-top: 8px; }
.check-list li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 16px;
  width: 14px; height: 8px;
  border-left: 2.4px solid var(--mint-dark); border-bottom: 2.4px solid var(--mint-dark);
  transform: rotate(-45deg);
}

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }

.step {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 34px 28px;
}

.step-number {
  font-family: var(--font-head); font-size: 0.95rem; color: var(--mint-dark);
  display: inline-block; border: 1.6px solid var(--mint); border-radius: 999px;
  padding: 5px 13px; margin-bottom: 18px;
}

.step h3 { font-size: 1.12rem; margin-bottom: 10px; }
.step p { font-size: 0.96rem; color: var(--muted); }

.process-cta {
  margin-top: 52px; background: var(--navy); border-radius: 16px;
  padding: 40px 44px; display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.process-cta p { color: #D7E2EE; font-size: 1.12rem; max-width: 26em; }
.process-cta .btn-primary { background: var(--mint); color: var(--navy); font-weight: 700; }
.process-cta .btn-primary:hover { background: #3FE3B7; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

.contact-copy p { color: var(--muted); margin-bottom: 24px; }

.contact-facts { list-style: none; }
.contact-facts li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.98rem; }
.contact-facts li:last-child { border-bottom: none; }
.contact-facts strong { color: var(--navy); }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 36px; box-shadow: var(--shadow);
}

.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 7px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; font: inherit; font-size: 0.97rem; color: var(--ink);
  padding: 12px 14px; border: 1.4px solid var(--line); border-radius: var(--radius);
  background: #FBFCFD; transition: border-color 0.15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--mint-dark); background: #fff;
}
.form-row textarea { resize: vertical; }

.form-consent { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 22px; }
.form-consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--mint-dark); flex: none; }
.form-consent label { font-size: 0.86rem; color: var(--muted); }

.form-note { margin-top: 14px; font-size: 0.92rem; color: var(--mint-dark); min-height: 1.2em; }
.form-note.error { color: #C0392B; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--navy); padding: 56px 0; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }

.stat { border-left: 2px solid rgba(25, 211, 162, 0.55); padding-left: 20px; }

.stat-number {
  display: block; font-family: var(--font-head); font-size: 1.7rem;
  color: var(--mint); margin-bottom: 8px;
}
.stat-text { font-size: 0.92rem; color: #B8C8D8; line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }

.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 0; margin-bottom: 14px; overflow: hidden;
}

.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  font-weight: 600; color: var(--navy); font-size: 1.02rem;
  padding: 20px 56px 20px 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--mint-dark); border-bottom: 2px solid var(--mint-dark);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item p { padding: 0 24px 22px; color: var(--muted); font-size: 0.96rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #B8C8D8; padding: 64px 0 34px; }

.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 44px; }

.footer-brand .brand-name { color: #fff; }
.footer-tag { margin-top: 12px; font-size: 0.92rem; max-width: 24em; }

.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.footer-nav a { color: #B8C8D8; text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover { color: var(--mint); }

.footer-legal { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 26px; }
.footer-legal p { font-size: 0.82rem; color: #7E93A8; max-width: 72em; margin-bottom: 10px; }
.footer-copy { color: #61778D; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .who-grid, .about-grid, .contact-grid, .faq-grid, .section-head { grid-template-columns: 1fr; gap: 44px; }
  .card-grid, .steps { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-badge { position: static; margin-top: 20px; max-width: none; }
  .panel { margin-left: 0; max-width: none; }
}

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .hero { padding: 60px 0 72px; }
  .card-grid, .steps, .stats-grid { grid-template-columns: 1fr; }
  .process-cta { padding: 30px 26px; }

  .site-nav {
    position: fixed; inset: 72px 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 24px 24px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn-nav { border-bottom: none; text-align: center; margin-top: 12px; }
  .nav-toggle { display: block; }
}

/* ---------- Logo, honeypot, legal pages, new form fields ---------- */
.brand-logo { height: 44px; width: auto; display: block; }
.hidden-field { display: none; }
.contact-wa { margin-top: 1.4rem; color: var(--muted, #55677d); }
.contact-wa a { color: var(--mint, #19d3a2); font-weight: 700; text-decoration: none; }
.contact-wa a:hover { text-decoration: underline; }
input[type="month"] { font-family: inherit; }
.form-consent a { color: var(--mint, #19d3a2); }
button:disabled { opacity: 0.6; cursor: not-allowed; }

.legal-page { padding-top: calc(var(--header-h, 72px) + 3rem); }
.legal-inner { max-width: 720px; margin: 0 auto; }
.legal-inner h2 { font-family: var(--font-head, 'Archivo Black', sans-serif); font-size: 1.15rem; margin: 2.2rem 0 0.6rem; color: var(--navy, #0a2540); }
.legal-inner p { color: #33475b; line-height: 1.65; margin-bottom: 0.8rem; }
.legal-inner strong { color: var(--navy, #0a2540); }
