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

:root {
  --orange:     #EF7E49;
  --orange-dim: #d96a35;
  --black:      #141210;
  --ink:        #2a2420;
  --muted:      #7a6e68;
  --white:      #fdfcfb;
  --cream:      #f8f4f0;
  --line:       rgba(20, 18, 16, 0.10);
  --danger:     #c0392b;

  --font: 'Inter', 'Helvetica Neue', sans-serif;

  --section-pad: clamp(5rem, 10vw, 9rem);
  --max-w: 1200px;
  --form-w: 720px;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Grain overlay ─────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* ─── Scroll reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── Nav ─────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
nav.scrolled {
  background: rgba(253, 252, 251, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(20, 18, 16, 0.08);
}
.nav-logo img {
  height: 56px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
}
.nav-cta:hover { background: var(--orange-dim); color: var(--white) !important; }

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--section-pad) + 4rem) clamp(1.5rem, 5vw, 4rem) var(--section-pad);
}
.hero-compact {
  min-height: auto;
  padding: calc(7rem + 2vw) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
}
.hero-compact .hero-sub { max-width: none; }
.hero::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -8%;
  width: clamp(320px, 50vw, 700px);
  height: clamp(320px, 50vw, 700px);
  background: radial-gradient(ellipse at 60% 40%, #EF7E49 0%, transparent 70%);
  opacity: 0.12;
  border-radius: 50% 60% 55% 45% / 55% 45% 60% 50%;
  pointer-events: none;
  animation: blobFloat 10s ease-in-out infinite;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-2%, 3%) scale(1.04); }
  66%       { transform: translate(2%, -2%) scale(0.97); }
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 2rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--orange);
}
.hero-title {
  font-family: var(--font);
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--black);
  max-width: 18ch;
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: italic;
  color: var(--orange);
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.7;
  font-weight: 400;
}

/* ─── Section label ─────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.25rem;
}
.section-label span {
  display: inline-block;
  width: 1.5rem;
  height: 1.5px;
  background: currentColor;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  padding: 0.875rem 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled, .btn[aria-busy="true"] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(239, 126, 73, 0.35);
}
.btn-primary:hover:not(:disabled):not([aria-busy="true"]) {
  background: var(--orange-dim);
  box-shadow: 0 8px 28px rgba(239, 126, 73, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid currentColor;
}
.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-link {
  background: none;
  border: none;
  color: var(--orange);
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-link:hover { color: var(--orange-dim); }

.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn[aria-busy="true"] .btn-spinner { display: inline-block; }
.btn[aria-busy="true"] .btn-label { opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Form section ─────────────────────────────────────────── */
.form-section {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem) var(--section-pad);
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.form-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(239,126,73,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.form-inner {
  max-width: var(--form-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.form-title {
  font-family: var(--font);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 0.75rem;
}
.form-lead {
  color: var(--muted);
  font-size: 1.0625rem;
  margin-bottom: 2.5rem;
}
.req {
  color: var(--orange);
  font-weight: 700;
}

/* ─── Form fields ─────────────────────────────────────────── */
.apply-form {
  display: grid;
  gap: 1.5rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.field label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="email"],
.field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.875rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(239, 126, 73, 0.12);
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(122, 110, 104, 0.7);
}
.field textarea { min-height: 110px; }
.field.has-error input,
.field.has-error textarea {
  border-color: var(--danger);
}
.field-error {
  font-size: 0.8125rem;
  color: var(--danger);
  min-height: 1em;
}
.field-error:empty { display: none; }
.field-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.field-counter {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.radio-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.radio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  transition: border-color 0.2s, color 0.2s;
}
.radio input { accent-color: var(--orange); }
.radio:has(input:checked) {
  border-color: var(--orange);
  color: var(--orange);
}

.field-checkbox { gap: 0; }
.checkbox {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
  font-weight: 400;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  line-height: 1.5;
}
.checkbox input {
  margin-top: 0.2rem;
  accent-color: var(--orange);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}
.form-actions .btn { align-self: flex-start; min-width: 220px; }
.form-disclaimer {
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 60ch;
}
.form-global-error {
  margin-top: 0.5rem;
  padding: 0.875rem 1rem;
  background: rgba(192, 57, 43, 0.08);
  border-left: 3px solid var(--danger);
  color: var(--danger);
  font-size: 0.9375rem;
  border-radius: 2px;
}
.form-global-error--visible { display: block; margin-bottom: 1.5rem; }

.link-accent { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.link-accent:hover { color: var(--orange-dim); }

/* ─── Vitrine ─────────────────────────────────────────────── */
.vitrine {
  padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 5vw, 4rem) var(--section-pad);
}
.vitrine-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.vitrine-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.member-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 4px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.member-card:hover {
  transform: translateY(-3px);
  border-color: rgba(239, 126, 73, 0.5);
  box-shadow: 0 14px 40px rgba(20, 18, 16, 0.08);
}
.member-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.member-empresa {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
}
.member-cidade {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}
.member-links {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.member-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.member-links a:hover {
  color: var(--orange);
  border-color: var(--orange);
}
.member-links svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* skeleton loader */
.member-card.skeleton {
  pointer-events: none;
  border-color: var(--line);
}
.member-card.skeleton:hover { transform: none; box-shadow: none; }
.sk-line {
  height: 12px;
  background: linear-gradient(90deg, rgba(20,18,16,0.06) 0%, rgba(20,18,16,0.12) 50%, rgba(20,18,16,0.06) 100%);
  background-size: 200% 100%;
  animation: skShimmer 1.4s linear infinite;
  border-radius: 2px;
}
.sk-line-name { height: 18px; width: 70%; }
.sk-line-sm { width: 40%; }
.sk-line-md { width: 85%; margin-top: auto; }
@keyframes skShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.vitrine-empty,
.vitrine-error {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  font-size: 1.0625rem;
}
.vitrine-error { color: var(--danger); }

/* ─── Thanks ─────────────────────────────────────────────── */
.thanks {
  min-height: calc(100svh - 220px);
  padding: calc(8rem + 2vw) clamp(1.5rem, 5vw, 4rem) var(--section-pad);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.thanks::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -8%;
  width: clamp(320px, 50vw, 700px);
  height: clamp(320px, 50vw, 700px);
  background: radial-gradient(ellipse at 60% 40%, #EF7E49 0%, transparent 70%);
  opacity: 0.12;
  border-radius: 50% 60% 55% 45% / 55% 45% 60% 50%;
  pointer-events: none;
  animation: blobFloat 10s ease-in-out infinite;
}
.thanks-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.thanks-card .hero-eyebrow { margin-bottom: 1.5rem; }
.thanks-title {
  font-family: var(--font);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 1.25rem;
}
.thanks-title em { font-style: italic; color: var(--orange); }
.thanks-sub {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 56ch;
  margin-bottom: 2rem;
}
.thanks-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.thanks-disclaimer {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 56ch;
  margin-top: 0.5rem;
}

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--black);
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(253,252,251,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--orange); }
.footer-copy {
  font-size: 0.75rem;
  color: rgba(253,252,251,0.25);
  font-weight: 400;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { gap: 1rem; }
  .nav-links li:not(:last-child) { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 1rem; }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .form-actions .btn { width: 100%; min-width: 0; }
  .thanks-ctas .btn { width: 100%; }
}
