:root {
  --green-deep: #0e5c3f;
  --green: #15803d;
  --gold: #f0a92e;
  --gold-light: #ffd97a;
  --red: #b5342a;
  --cream: #fdf6ea;
  --sand: #f6ead6;
  --ink: #2b2118;
  --ink-soft: #5c4f42;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(43, 33, 24, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- NAV ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; max-width: 1200px; margin: 0 auto;
}
.logo { color: #fff; font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.nav-links { display: flex; gap: 1.25rem; list-style: none; }
.nav-links a { color: #ffe9c4; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: #fff; text-decoration: underline; }
.menu-btn {
  display: none; background: none; border: 2px solid #ffe9c4; color: #ffe9c4;
  font-size: 1.25rem; border-radius: 8px; padding: 0.2rem 0.6rem; cursor: pointer;
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, var(--green-deep) 0%, #0a7a4b 45%, #0e9b5e 70%, var(--gold) 130%);
  color: #fff; position: relative; overflow: hidden;
}
.hero-content { max-width: 1100px; margin: 0 auto; padding: 4.5rem 1.25rem 6rem; }
.hero-kicker {
  display: inline-block; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.35);
  padding: 0.35rem 1rem; border-radius: 999px; font-size: 0.9rem; letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); line-height: 1.08; font-weight: 800; margin-bottom: 1.25rem; }
.hero-sub { font-size: 1.12rem; max-width: 640px; color: #fdf3dd; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 0.8rem 1.6rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 6px 18px rgba(240,169,46,0.45); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 2px solid #ffe9c4; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.hero-wave {
  height: 70px;
  background: var(--cream);
  clip-path: ellipse(60% 100% at 50% 100%);
}

/* ---------- SECTIONS ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--sand); }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; color: var(--green-deep); }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 760px; margin-bottom: 2rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; margin: 2rem 0; }
.stat {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.25rem; text-align: center; border-top: 4px solid var(--gold);
}
.stat-num { display: block; font-size: 1.9rem; font-weight: 800; color: var(--green-deep); }
.stat-label { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- CARDS ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.5rem; border-top: 4px solid var(--green);
}
.card h3 { margin-bottom: 0.75rem; font-size: 1.2rem; }
.card ul { padding-left: 1.1rem; }
.card li { margin-bottom: 0.5rem; }
.example {
  margin-top: 1rem; background: #fff8e8; border-left: 4px solid var(--gold);
  padding: 0.7rem 0.9rem; border-radius: 0 10px 10px 0; font-style: italic; color: var(--ink-soft);
}

/* ---------- VARIANT TOGGLE ---------- */
.variant-toggle { display: inline-flex; background: #fff; border-radius: 999px; padding: 0.3rem; box-shadow: var(--shadow); margin-bottom: 1.75rem; }
.toggle-btn {
  border: none; background: transparent; padding: 0.6rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; cursor: pointer; color: var(--ink-soft);
}
.toggle-btn.active { background: var(--green-deep); color: #fff; }

/* ---------- TABLE ---------- */
.table-title { margin: 2.5rem 0 1rem; font-size: 1.35rem; color: var(--green-deep); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
th, td { padding: 0.8rem 1rem; text-align: left; }
thead th { background: var(--green-deep); color: #fff; }
tbody tr:nth-child(even) { background: #faf3e3; }
tbody tr:hover { background: #fdf0d0; }
td:first-child { font-weight: 700; color: var(--green); }
td:nth-child(2) { font-weight: 700; color: var(--red); }

.note {
  margin-top: 1.5rem; background: #e8f6ee; border-left: 4px solid var(--green);
  padding: 1rem 1.2rem; border-radius: 0 12px 12px 0;
}

/* ---------- COUNTRY SECTIONS ---------- */
.country { color: #fff; }
.country .container { position: relative; }
.country.br { background: linear-gradient(160deg, #0a6b42 0%, #0e8a55 60%, #12a567 100%); }
.country.pt { background: linear-gradient(160deg, #8e1f1f 0%, #b5342a 55%, #d1543a 100%); }
.country h2, .country .lead { color: #fff; }
.country .lead { color: #ffe9c4; }
.country-header { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.5rem; }
.flag { font-size: 2.6rem; }
.country .card { border-top-color: var(--gold); }
.country .note { background: rgba(255,255,255,0.14); border-left-color: var(--gold-light); color: #fff; }

.phrases .card { border-top-color: var(--red); }

/* ---------- FOOTER ---------- */
footer { background: var(--ink); color: #e9dcc8; padding: 2.5rem 0; text-align: center; }
footer .small { font-size: 0.85rem; opacity: 0.75; margin-top: 0.4rem; }
.to-top { display: inline-block; margin-top: 1rem; color: var(--gold-light); font-weight: 700; text-decoration: none; }
.to-top:hover { text-decoration: underline; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; right: 1rem; flex-direction: column;
    background: var(--green-deep); padding: 1rem 1.5rem; border-radius: 12px; box-shadow: var(--shadow); gap: 0.8rem;
  }
  .nav-links.open { display: flex; }
  .hero-content { padding: 3rem 1.25rem 4.5rem; }
  .section { padding: 3rem 0; }
}
