/* =========================================================
   igual — one-page site
   Brand: Syne (display) · Inter (interface)
   Palette: Goiaba · Azul · Black · Off-white
   ========================================================= */

:root {
  /* Brand palette */
  --goiaba: #E37B5A;
  --goiaba-600: #CC6F51;
  --goiaba-700: #B66248;
  --goiaba-100: #FBEBE6;
  --goiaba-50: #FCF2EF;

  --azul: #A9B9E7;
  --azul-300: #C5D0EF;
  --azul-100: #E4E9F8;
  --azul-50: #F6F8FD;
  --azul-700: #5D667F;

  --ink: #1E1E24;
  --ink-700: #35353A;
  --ink-500: #4D4C50;

  --gray-600: #646466;
  --gray-500: #7B7B7C;
  --gray-400: #939293;
  --gray-300: #C1C1BF;
  --gray-200: #D9D8D5;

  --offwhite: #F0EFEB;

  /* Semantic */
  --bg: #F1F0EC;
  --surface: #FFFFFF;
  --text: var(--ink);
  --text-soft: #57575C;
  --text-muted: var(--gray-500);
  --line: rgba(30, 30, 36, 0.10);
  --line-strong: rgba(30, 30, 36, 0.16);

  /* Type */
  --font-display: "Syne", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Radius */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(30,30,36,.04), 0 2px 10px rgba(30,30,36,.05);
  --shadow: 0 18px 40px -18px rgba(30,30,36,.22);
  --shadow-lg: 0 40px 80px -28px rgba(30,30,36,.30);

  /* Layout */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 76px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--goiaba); color: #fff; }

:focus-visible {
  outline: 2.5px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: var(--r-pill);
  font-size: .85rem; font-weight: 600;
  transform: translateY(-150%);
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.eyebrow--center { display: flex; justify-content: center; }
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--goiaba);
  box-shadow: 0 0 0 4px var(--goiaba-50);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -0.01em;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--goiaba); --btn-fg: #fff; box-shadow: 0 10px 24px -12px rgba(227,123,90,.9); }
.btn--primary:hover { --btn-bg: var(--goiaba-600); box-shadow: 0 16px 30px -12px rgba(227,123,90,.95); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; border-color: var(--ink); }

.btn--outline {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--line-strong);
  padding: 11px 18px;
}
.btn--outline:hover { --btn-bg: var(--ink); --btn-fg: #fff; border-color: var(--ink); }

.btn--lg { padding: 16px 28px; font-size: 1rem; }

.btn__arrow {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ===================== HEADER ===================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(241, 240, 236, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand { display: inline-flex; align-items: center; }
.brand__logo {
  height: 30px; width: auto;
  transition: transform .3s var(--ease);
}
.brand:hover .brand__logo { transform: scale(1.03); }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 34px); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 80px;
  overflow: hidden;
}
.hero__decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
}
.blob--goiaba {
  width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  background: radial-gradient(circle at 30% 30%, var(--goiaba), transparent 70%);
  top: -14%; right: -8%;
  animation: float-a 18s ease-in-out infinite;
}
.blob--azul {
  width: 40vw; height: 40vw; max-width: 540px; max-height: 540px;
  background: radial-gradient(circle at 60% 40%, var(--azul), transparent 70%);
  bottom: -18%; left: -10%;
  opacity: .6;
  animation: float-b 22s ease-in-out infinite;
}
.hero__symbol {
  position: absolute;
  right: clamp(-60px, -2vw, 0px);
  top: 50%;
  width: clamp(320px, 42vw, 620px);
  transform: translateY(-46%) rotate(-2deg);
  fill: var(--ink);
  opacity: .05;
}

@keyframes float-a {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-3%, 4%) scale(1.06); }
}
@keyframes float-b {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(4%, -3%) scale(1.08); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 5.3rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: min(16ch, 100%);
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
.hero__title em {
  font-style: normal;
  color: var(--goiaba);
}

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 1;
  width: 26px; height: 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  display: grid; place-items: start center;
  padding-top: 8px;
}
.hero__scroll-line {
  width: 3px; height: 9px; border-radius: 3px;
  background: var(--ink-500);
  animation: scroll-dot 1.8s var(--ease) infinite;
}
@keyframes scroll-dot {
  0% { opacity: 0; transform: translateY(-2px); }
  35% { opacity: 1; }
  70%,100% { opacity: 0; transform: translateY(12px); }
}

/* ===================== PILARES ===================== */
.pillars { padding: clamp(40px, 6vw, 72px) 0 clamp(70px, 9vw, 120px); }
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 40px);
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.pillar::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--goiaba), var(--goiaba-600));
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.pillar:hover::before { transform: scaleX(1); }

.pillar__index {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--goiaba);
  letter-spacing: .06em;
}
.pillar__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  letter-spacing: -0.01em;
  margin: 14px 0 14px;
  line-height: 1.1;
}
.pillar__text {
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.62;
}

/* ===================== VAGAS ===================== */
.careers {
  padding: clamp(72px, 9vw, 120px) 0;
  background:
    radial-gradient(120% 120% at 100% 0%, var(--azul-50), transparent 55%),
    var(--offwhite);
  border-top: 1px solid var(--line);
}
.careers__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.careers__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-top: 16px;
  text-wrap: balance;
}
.careers__lead {
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-700);
  margin-top: 20px;
  max-width: 54ch;
}
.jobs__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.14;
  letter-spacing: -0.018em;
  max-width: 30ch;
  text-wrap: balance;
  margin-bottom: clamp(22px, 3vw, 34px);
}
.careers__photo {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.careers__photo img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.careers__photo:hover img { transform: scale(1.04); }

.jobs {
  list-style: none;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3.4vw, 40px);
  border-top: 1px solid var(--line);
  transition: background-color .3s var(--ease);
}
.job:first-child { border-top: 0; }
.job:hover { background: var(--goiaba-50); }
.job__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.job__badge--tech {
  color: var(--azul-700);
  background: var(--azul-100);
}
.job__badge--comercial {
  color: var(--goiaba-700);
  background: var(--goiaba-100);
}
.job__badge-emoji {
  font-size: .9em;
  line-height: 1;
}
.job__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.12rem, 1.9vw, 1.45rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.job__meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: .92rem;
  color: var(--text-muted);
}
.pin { width: 16px; height: 16px; fill: var(--goiaba); flex: none; }
.job__cta { flex: none; }

/* ===================== FOOTER ===================== */
.site-footer {
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-footer__inner .brand__logo { height: 26px; }
.site-footer__tag {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink-700);
  letter-spacing: -0.01em;
}
.site-footer__copy { color: var(--text-muted); font-size: .92rem; }

/* ===================== REVEAL ANIMATIONS ===================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Stagger inside groups */
.pillars__grid .pillar:nth-child(2) { transition-delay: .09s; }
.pillars__grid .pillar:nth-child(3) { transition-delay: .18s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 920px) {
  .careers__head { grid-template-columns: 1fr; }
  .careers__lead { max-width: none; }
  .hero__symbol { opacity: .04; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .pillars__grid { grid-template-columns: 1fr; }
  .pillars__grid .pillar { transition-delay: 0s !important; }
  .hero__scroll { display: none; }
  .job { flex-direction: column; align-items: flex-start; gap: 16px; }
  .job__cta { width: 100%; }
  .site-footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero__title { font-size: clamp(1.95rem, 8.4vw, 2.5rem); }
}

/* ===================== MOTION PREFERENCES ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .blob { animation: none; }
}
