/* =========================================================
   dualbi. — landing page styles
   ========================================================= */

:root {
  --blue: #3066be;
  --purple: #9a349a;
  --red: #db4d3c;
  --bg: #fff4f1;
  --bg-alt: #fbe9e0;
  --ink: #2a2118;
  --ink-soft: #6b5d51;
  --line: rgba(42, 33, 24, 0.12);
  --paper-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  --brand-gradient: linear-gradient(90deg, var(--blue), var(--purple), var(--red));
  --shadow-soft: 0 20px 45px -25px rgba(42, 33, 24, 0.35);
  --radius: 14px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--paper-noise);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- i18n toggle ---------- */
.i18n.en { display: none; }
html[data-lang="en"] .i18n.pt { display: none; }
html[data-lang="en"] .i18n.en { display: inline; }
h1 .i18n, h2 .i18n, h3 .i18n, p .i18n, li .i18n { display: block; }
h1 .i18n.en, h2 .i18n.en, h3 .i18n.en, p .i18n.en, li .i18n.en { display: none; }
html[data-lang="en"] h1 .i18n.en, html[data-lang="en"] h2 .i18n.en,
html[data-lang="en"] h3 .i18n.en, html[data-lang="en"] p .i18n.en,
html[data-lang="en"] li .i18n.en { display: block; }
html[data-lang="en"] h1 .i18n.pt, html[data-lang="en"] h2 .i18n.pt,
html[data-lang="en"] h3 .i18n.pt, html[data-lang="en"] p .i18n.pt,
html[data-lang="en"] li .i18n.pt { display: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 28px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--blue); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 34px; font-size: 1rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 244, 241, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { min-width: 0; flex: none; }
.brand img { height: 38px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 20px; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }

.header-nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.header-nav-link:hover { color: var(--ink); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 6px 4px;
  font: inherit;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.lang-btn.is-active { color: var(--ink); border-color: var(--red); }
.lang-btn:hover { color: var(--ink); }
.lang-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.lang-sep { color: var(--line); }

/* ---------- sections (one "screen" each) ---------- */
.section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 56px) 0 72px;
}
.alt-bg { background: var(--bg-alt); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 18px;
}
.eyebrow-on-dark { color: #ffd9c4; }
.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-gradient);
  flex: none;
}

.section-body {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

.chip-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip-list li {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
}

/* ---------- hero ---------- */
.hero { color: #fff8f4; padding-top: var(--header-h); }
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 14, 26, 0.55) 0%, rgba(20, 14, 26, 0.72) 55%, rgba(20, 14, 26, 0.88) 100%),
    linear-gradient(100deg, rgba(48, 102, 190, 0.55), rgba(154, 52, 154, 0.4) 55%, rgba(219, 77, 60, 0.35));
  mix-blend-mode: multiply;
  background-color: #14101a;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  width: 100%;
  min-width: 0;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  color: #fff;
  margin-bottom: 0.4em;
}
.hero-sub {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: rgba(255, 244, 241, 0.88);
  max-width: 56ch;
  margin-bottom: 2em;
}
.hero-cta { margin-bottom: 3.5em; }
.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.hero-pillars a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: rgba(255, 244, 241, 0.85);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.15s ease;
}
.hero-pillars a:hover { color: #fff; }
.hero-pillars a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--brand-gradient);
  transition: width 0.2s ease;
}
.hero-pillars a:hover::after { width: 100%; }

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
}
.scroll-cue span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: #fff;
  animation: scrollcue 1.8s ease infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- split sections ---------- */
.split-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}
.split-copy, .split-media { min-width: 0; }
.split-reverse .split-inner { grid-template-columns: 0.95fr 1.05fr; }
.split-reverse .split-copy { order: 2; }
.split-reverse .split-media { order: 1; }

.split-copy h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ---------- contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.contact-intro, .contact-form { min-width: 0; }
.contact-intro h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.contact-direct a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  width: fit-content;
  border-bottom: 1.5px solid var(--line);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.contact-direct a:hover { color: var(--blue); border-color: var(--blue); }

.contact-form {
  background: #fffaf7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-soft);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(48, 102, 190, 0.15);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-submit { width: 100%; margin-top: 4px; }
.form-note {
  margin: 14px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-note.success { color: #2f7a4d; }
.form-note.error { color: var(--red); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-brand img { height: 26px; width: auto; opacity: 0.85; }
.footer-brand p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.footer-contact-link {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  border-bottom: 1.5px solid var(--red);
  padding-bottom: 2px;
}
.footer-contact-link:hover { color: var(--red); }

/* ---------- scroll reveal ----------
   Content is visible by default (progressive enhancement).
   JS only hides elements it can confirm are off-screen at load,
   via .reveal-pending, then reveals them on intersection. */
.reveal { transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.reveal-pending { opacity: 0; transform: translateY(18px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.reveal-pending { opacity: 1; transform: none; }
  .reveal { transition: none; }
  .scroll-cue span { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .container { padding: 0 24px; }
  .split-inner,
  .split-reverse .split-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .split-copy, .split-reverse .split-copy { order: 2; }
  .split-media, .split-reverse .split-media { order: 1; }
  .split-media img { aspect-ratio: 16 / 10; }

  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 28px; }

  .section { padding: calc(var(--header-h) + 40px) 0 56px; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .container { padding: 0 18px; }
  .brand img { height: 30px; }
  .header-actions { gap: 12px; }
  .btn-sm { padding: 8px 14px; font-size: 0.8rem; }

  .hero-title { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-pillars { gap: 10px 20px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 22px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
