/* =============================================
   APOENA Talentos — style.css
   Paleta: Bordô #500000 | Dourado #9A7B3A | Off-white #F8F5F0
   Tipografia: Cormorant Garamond + DM Sans
   ============================================= */

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

:root {
  --bordo:       #500000;
  --bordo-light: #6B0000;
  --bordo-dark:  #380000;
  --gold:        #9A7B3A;
  --gold-light:  #C4A055;
  --off-white:   #F8F5F0;
  --cream:       #EDE8E0;
  --warm-grey:   #C8C0B4;
  --text:        #1A1612;
  --text-mid:    #4A3F35;
  --text-light:  #7A6E65;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --container: 1100px;
  --radius:    5px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 4px rgba(80,0,0,.06);
  --shadow-md: 0 4px 20px rgba(80,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(80,0,0,.14);
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; }

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,245,240,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.logo-mark {
  width: 34px; height: 34px;
  background: var(--bordo);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 2px;
}
.logo-text-group { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--bordo);
  letter-spacing: .1em;
}
.logo-sub {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.header-nav { display: flex; align-items: center; gap: 1.5rem; }
.header-nav a {
  font-size: .82rem;
  color: var(--text-mid);
  letter-spacing: .04em;
  transition: color var(--transition);
}
.header-nav a:hover { color: var(--bordo); }
.header-nav-cta {
  background: var(--bordo) !important;
  color: var(--off-white) !important;
  padding: .45rem 1rem;
  border-radius: var(--radius);
  font-weight: 500 !important;
  font-size: .78rem !important;
  letter-spacing: .06em !important;
  transition: background var(--transition) !important;
}
.header-nav-cta:hover { background: var(--bordo-light) !important; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .85rem 1.9rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  background: none;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--bordo);
  color: var(--off-white);
  border-color: var(--bordo);
}
.btn-primary:hover {
  background: var(--bordo-light);
  border-color: var(--bordo-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-gold {
  background: var(--gold);
  color: var(--off-white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(154,123,58,.3);
}
.btn-outline-light {
  background: transparent;
  color: var(--off-white);
  border-color: rgba(248,245,240,.4);
}
.btn-outline-light:hover {
  background: rgba(248,245,240,.1);
  border-color: var(--off-white);
}
.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  border-color: var(--cream);
}
.btn-ghost:hover { border-color: var(--bordo); color: var(--bordo); }
.btn-sm { padding: .6rem 1.25rem; font-size: .78rem; }
.btn-arrow { font-size: 1rem; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  background: var(--bordo-dark);
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 40%, rgba(154,123,58,.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 15% 70%, rgba(80,0,0,.4) 0%, transparent 70%);
}
.hero-deco::before {
  content: '';
  position: absolute;
  top: 8%;
  right: 8%;
  width: 300px; height: 300px;
  border: 1px solid rgba(154,123,58,.12);
  border-radius: 50%;
}
.hero-deco::after {
  content: '';
  position: absolute;
  bottom: 12%;
  right: 18%;
  width: 160px; height: 160px;
  border: 1px solid rgba(154,123,58,.07);
  border-radius: 50%;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: 6rem 5rem;
}
.hero-tag {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(154,123,58,.35);
  padding: .3rem .85rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  animation: fadeUp .6s ease both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 600;
  line-height: 1.07;
  color: var(--off-white);
  max-width: 620px;
  margin-bottom: 1.5rem;
  animation: fadeUp .6s .08s ease both;
}
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-sub {
  font-size: .98rem;
  color: rgba(248,245,240,.7);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 2.25rem;
  animation: fadeUp .6s .16s ease both;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeUp .6s .24s ease both;
}

/* =============================================
   SECTIONS
   ============================================= */
.section { padding-block: 5rem; }
.section-light  { background: var(--off-white); }
.section-dark   { background: var(--text); }
.section-form   { background: var(--cream); }

.section-header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}
.section-header-light .section-title,
.section-header-light .section-desc { color: var(--off-white); }
.section-header-light .section-label { color: var(--gold-light); opacity: 1; }

.section-label {
  display: block;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bordo);
  opacity: .7;
  margin-bottom: .6rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1rem;
}
.section-desc { font-size: .94rem; color: var(--text-light); line-height: 1.7; }

/* =============================================
   TWO COLS (sobre)
   ============================================= */
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.col-card {
  background: #fff;
  border: 1px solid var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
}
.col-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.col-profissional { border-top: 3px solid var(--bordo); }
.col-empresa { border-top: 3px solid var(--gold); }
.col-icon { font-size: 1.8rem; }
.col-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
}
.col-card p { font-size: .9rem; color: var(--text-light); line-height: 1.65; }
.col-card ul { display: flex; flex-direction: column; gap: .35rem; }
.col-card li {
  font-size: .85rem;
  color: var(--text-mid);
  padding-left: 1rem;
  position: relative;
}
.col-card li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--bordo);
  font-weight: 700;
}
.col-card .btn { margin-top: auto; align-self: flex-start; }

/* =============================================
   FORMULÁRIO
   ============================================= */
.form-wrapper {
  max-width: 760px;
  margin-inline: auto;
}

/* Progress */
.form-progress { margin-bottom: 2.5rem; }
.progress-steps {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.p-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  flex-shrink: 0;
}
.p-step span {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--warm-grey);
  color: var(--text-light);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem;
  font-weight: 500;
  transition: var(--transition);
}
.p-step em {
  font-style: normal;
  font-size: .65rem;
  letter-spacing: .06em;
  color: var(--text-light);
  white-space: nowrap;
}
.p-step.active span {
  background: var(--bordo);
  border-color: var(--bordo);
  color: #fff;
}
.p-step.done span {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.p-step.active em,
.p-step.done em { color: var(--bordo); font-weight: 500; }

.p-connector {
  flex: 1;
  height: 2px;
  background: var(--warm-grey);
  margin: 0 .35rem;
  margin-bottom: 1.4rem;
  transition: background var(--transition);
}
.p-connector.done { background: var(--gold); }

.progress-bar-track {
  height: 3px;
  background: var(--cream);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--bordo);
  border-radius: 2px;
  transition: width .4s ease;
  width: 25%;
}

/* Steps */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeUp .35s ease; }

.step-card {
  background: #fff;
  border: 1px solid var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--bordo);
  border-bottom: 1px solid var(--cream);
  padding-bottom: .75rem;
}

/* Fields */
.field-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.field-group label {
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: .02em;
}
.req { color: var(--bordo); font-weight: 700; }

.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="tel"],
.field-group input[type="date"],
.field-group select,
.field-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  background: var(--off-white);
  border: 1.5px solid var(--cream);
  border-radius: var(--radius);
  padding: .7rem .9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--bordo);
  box-shadow: 0 0 0 3px rgba(80,0,0,.07);
}
.field-group input.has-error,
.field-group select.has-error,
.field-group textarea.has-error {
  border-color: #c0392b;
}
.field-error {
  font-size: .75rem;
  color: #c0392b;
  display: none;
}
.field-error.visible { display: block; }

.fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Radio & Checkbox */
.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .4rem; }

.radio-opt,
.check-opt {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: var(--off-white);
  border: 1.5px solid var(--cream);
  border-radius: var(--radius);
  padding: .45rem .8rem;
  cursor: pointer;
  font-size: .84rem;
  color: var(--text-mid);
  transition: var(--transition);
  user-select: none;
}
.radio-opt:hover,
.check-opt:hover { border-color: var(--bordo); color: var(--bordo); }
.radio-opt input,
.check-opt input { accent-color: var(--bordo); width: 14px; height: 14px; }

/* Upload */
.upload-area {
  border: 2px dashed var(--warm-grey);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--text-light);
}
.upload-area:hover,
.upload-area.drag-over {
  border-color: var(--bordo);
  background: rgba(80,0,0,.03);
  color: var(--bordo);
}
.upload-area svg { width: 32px; height: 32px; opacity: .5; }
.upload-area p { font-size: .87rem; }
.upload-area strong { color: var(--bordo); }
#upload-filename {
  font-size: .75rem;
  color: var(--gold);
  font-weight: 500;
}

/* LGPD */
.lgpd-box {
  background: rgba(80,0,0,.03);
  border: 1px solid rgba(80,0,0,.1);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.check-lgpd {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  cursor: pointer;
  font-size: .85rem;
  color: var(--text-mid);
  font-weight: 500;
}
.check-lgpd input { accent-color: var(--bordo); margin-top: 3px; flex-shrink: 0; }
.lgpd-texto {
  font-size: .75rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Nav form */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1rem;
}

/* Sucesso */
.form-sucesso,
.form-erro-envio { display: none; }
.form-sucesso.visible,
.form-erro-envio.visible { display: block; }

.form-sucesso {
  text-align: center;
  background: #fff;
  border: 1px solid var(--cream);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  animation: fadeUp .4s ease;
}
.sucesso-icon {
  width: 60px; height: 60px;
  background: var(--bordo);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.25rem;
}
.form-sucesso h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .75rem;
}
.form-sucesso p { font-size: .93rem; color: var(--text-light); line-height: 1.7; max-width: 480px; margin-inline: auto; }
.sucesso-contato { margin-top: 1.25rem !important; }
.sucesso-contato a { color: var(--bordo); font-weight: 500; }

.form-erro-envio {
  background: #fff0f0;
  border: 1px solid rgba(192,57,43,.2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: center;
  margin-top: 1rem;
}
.form-erro-envio p { font-size: .88rem; color: #c0392b; margin-bottom: .75rem; }

/* =============================================
   EMPRESAS
   ============================================= */
.empresa-cta-box {
  text-align: center;
  max-width: 480px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.empresa-cta-box p { font-size: .95rem; color: rgba(248,245,240,.65); line-height: 1.7; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--text);
  padding-block: 2.25rem;
  border-top: 1px solid rgba(248,245,240,.05);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: .75rem; }
.footer-logo-mark {
  width: 36px; height: 36px;
  background: var(--bordo);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--off-white);
  letter-spacing: .08em;
}
.footer-tagline { font-size: .72rem; color: var(--gold); letter-spacing: .1em; }
.footer-wa {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(248,245,240,.5);
  font-size: .84rem;
  transition: color var(--transition);
}
.footer-wa:hover { color: #25D366; }
.footer-wa svg { width: 16px; height: 16px; }
.footer-copy { font-size: .72rem; color: rgba(248,245,240,.25); letter-spacing: .04em; }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 720px) {
  .two-cols { grid-template-columns: 1fr; }
  .fields-row { grid-template-columns: 1fr; }
  .header-nav a:not(.header-nav-cta) { display: none; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; justify-content: center; }
  .step-card { padding: 1.5rem 1.25rem; }
  .progress-steps { overflow-x: auto; }
  .p-step em { display: none; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 2.2rem; }
  .section { padding-block: 3.5rem; }
  .checkbox-grid { grid-template-columns: 1fr 1fr; }
}
