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

/* === TOKENS === */
:root {
  --bg:         #f6f4f1;
  --bg-2:       #eceae6;
  --rule:       rgba(0,0,0,0.08);
  --rule-light: rgba(0,0,0,0.05);
  --ink:        #111110;
  --ink-2:      #48443f;
  --ink-3:      #928d87;
  --orange:     #e0601a;
  --orange-bg:  rgba(224,96,26,0.07);
  --orange-bd:  rgba(224,96,26,0.22);
}

/* === BASE === */
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* === SKIP LINK === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  background: var(--orange);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  transition: top 0.1s;
}
.skip-link:focus { top: 0; }

/* === LANGUAGE === */
[data-lang]        { display: none; }
[data-lang-inline] { display: none; }
body.lang-en [data-lang="en"]        { display: block; }
body.lang-pt [data-lang="pt"]        { display: block; }
body.lang-en [data-lang-inline="en"] { display: inline; }
body.lang-pt [data-lang-inline="pt"] { display: inline; }

/* === LAYOUT === */
main { padding-top: 52px; }

.wrap {
  max-width: 74ch;
  margin-left: max(11vw, 3rem);
  margin-right: auto;
  padding: 0 3rem;
}

/* === NAV === */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(246,244,241,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  margin-left: max(11vw, 3rem);
  padding: 0 3rem 0 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 24px; width: auto; display: block; }
.nav-brand {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2);
}
.nav-brand-pro { color: var(--orange); }
.nav-right { display: flex; align-items: center; gap: 1.75rem; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); text-decoration: none;
  transition: color 0.15s; white-space: nowrap;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a[aria-current="page"] { color: var(--orange); }
.btn-wa-nav {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: var(--orange);
  padding: 0.4rem 0.9rem; border-radius: 4px;
  text-decoration: none; transition: background 0.15s;
  white-space: nowrap;
}
.btn-wa-nav:hover { background: #c4521a; }

/* Lang switch */
.lang-switch { position: relative; }
#lang-btn {
  display: flex; align-items: center; gap: 0.3rem;
  background: none; border: 1px solid var(--rule);
  padding: 0.25rem 0.55rem; border-radius: 4px;
  cursor: pointer; font-family: 'Manrope', sans-serif;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.08em; color: var(--ink-3);
  transition: border-color 0.15s;
}
#lang-btn:hover { border-color: var(--orange-bd); color: var(--ink); }
.lang-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--rule);
  border-radius: 6px; padding: 0.35rem 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  min-width: 100px;
}
.lang-menu.open { display: block; }
.lang-opt {
  display: block; width: 100%;
  padding: 0.45rem 0.9rem;
  font-size: 0.72rem; font-weight: 600; text-align: left;
  background: none; border: none; cursor: pointer;
  font-family: 'Manrope', sans-serif; color: var(--ink-3);
  transition: color 0.15s;
}
.lang-opt:hover, .lang-opt.active { color: var(--orange); }

/* Mobile nav */
.nav-burger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 4px;
  flex-direction: column; gap: 4px;
}
.nav-burger span {
  display: block; width: 20px; height: 2px;
  background: var(--ink-2); border-radius: 2px;
  transition: 0.2s;
}
@media (max-width: 680px) {
  .nav-links, .btn-wa-nav { display: none; }
  .nav-burger { display: flex; }
}
.nav-overlay {
  display: none; position: fixed;
  inset: 0; z-index: 99;
  background: var(--bg);
  flex-direction: column; align-items: flex-start;
  justify-content: center;
  padding: 3rem 2rem;
}
.nav-overlay.open { display: flex; }
.nav-overlay a {
  font-weight: 700; font-size: clamp(1.75rem, 5vw, 2.5rem);
  color: var(--ink); text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s;
  padding: 0.4rem 0;
}
.nav-overlay a:hover { color: var(--orange); }
.mob-lang {
  margin-top: 2rem;
  display: flex; gap: 1rem;
}
.mob-lang button {
  background: none; border: 1px solid var(--rule);
  padding: 0.35rem 0.75rem; border-radius: 4px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  cursor: pointer; color: var(--ink-3);
  transition: border-color 0.15s, color 0.15s;
}
.mob-lang button.active, .mob-lang button:hover {
  color: var(--orange); border-color: var(--orange-bd);
}

/* === PAGE HEADER === */
.page-header {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--rule);
}
.tag {
  display: inline-block;
  background: var(--orange-bg);
  color: var(--orange);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.25rem 0.7rem; border-radius: 4px;
  margin-bottom: 1.5rem;
}
.page-header h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.page-header .lead {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 46ch;
  margin-bottom: 2rem;
}
.header-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* === BUTTONS === */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--orange); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.4rem; border-radius: 4px;
  transition: background 0.15s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: #c4521a; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--ink-2);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: color 0.15s, border-color 0.15s;
  background: none; cursor: pointer;
}
.btn-ghost:hover { color: var(--orange); border-color: var(--orange-bd); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--ink-2);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  transition: color 0.15s, border-color 0.15s;
}
.btn-secondary:hover { color: var(--orange); border-color: var(--orange-bd); }

/* === SECTIONS === */
section {
  padding: 5rem 0 8rem;
  border-bottom: 1px solid var(--rule);
}
section:last-child { border-bottom: none; }
.section-label {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 2.5rem;
}

/* === FOOTER === */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}
.footer-inner {
  max-width: 74ch;
  margin-left: max(11vw, 3rem);
  margin-right: auto;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.f-copy {
  font-size: 0.72rem; font-weight: 400;
  color: var(--ink-3);
}
.f-logo { height: 20px; width: auto; opacity: 0.35; }

/* === ACCESSIBILITY === */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* === PRINT === */
@media print {
  #nav, .btn-primary, .btn-ghost, .btn-wa-nav { display: none; }
  body { background: #fff; color: #000; }
  .wrap { margin: 0; padding: 0 2cm; max-width: 100%; }
}
