/* ===== Identidade CONFARBRAS =====
   Vermelho #8B1E1E · Verde #0F4C3A · Dourado #C8A24B · Creme #F3E8D1 · Carvão #111111
   Títulos: Cinzel · Apoio: Montserrat (headline em Playfair Display, como no layout) */
:root {
  --red: #8B1E1E;
  --red-dark: #6d1414;
  --green: #0F4C3A;
  --green-dark: #0a3528;
  --gold: #C8A24B;
  --gold-dark: #9a6b1a;
  --cream: #F3E8D1;
  --ink: #111111;
  --muted: #5d5a55;
  --line: #e4ddd0;
  --paper: #fdfbf7;
  --radius: 14px;
  --font-title: "Cinzel", Georgia, serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.5; }

/* Fundo: arte única (assets/fundo.jpg, 1122×1402). Em telas largas cobre a página inteira;
   no celular o topo (foto) e a base (ondas vermelho/verde) são ancorados separadamente. */
.page {
  --img-w: min(100vw, 1600px);
  position: relative; display: flex; flex-direction: column;
  min-height: calc(var(--img-w) * 1.2495);
  background: var(--paper) url("assets/fundo.jpg") center top / cover no-repeat;
}
img { max-width: 100%; display: block; }
.wrap { width: min(1122px, 100% - 32px); margin-inline: auto; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic--fill { fill: currentColor; stroke: none; }

/* ================= HERO ================= */
.hero { position: relative; padding: 24px 0 36px; min-height: calc(var(--img-w) * .5); }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 680px) 1fr; column-gap: 24px; }
.hero__inner > * { grid-column: 1; }

.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--ink); }
.brand__logo { width: 120px; height: 120px; object-fit: contain; }
.brand__name { display: block; font-family: var(--font-title); font-weight: 600; font-size: clamp(30px, 4vw, 44px); line-height: 1; letter-spacing: .01em; }
.brand__sub { display: block; margin-top: 8px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #3b3935; line-height: 1.5; }

.eyebrow { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); }
.eyebrow li + li::before { content: "•"; margin-right: 22px; color: var(--gold-dark); }

.hero__title {
  margin: 20px 0 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -.025em; white-space: nowrap;
}
.hero__title span { display: block; }
.hero__title em {
  display: block; font-style: normal;
  background: linear-gradient(180deg, #b9832a 0%, #8a5a12 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin: 18px 0 0; text-shadow: 0 0 10px rgba(255,255,255,.85); max-width: 500px; font-size: clamp(16px, 2vw, 20px); line-height: 1.45; color: #2b2925; }

.divider { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--gold); }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.divider span { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.hero .divider { max-width: 460px; }
.hero .divider::before { background: var(--gold); }

.pillars { list-style: none; margin: 26px 0 0; padding: 0; display: flex; gap: clamp(16px, 4vw, 52px); }
.pillars li { text-align: center; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #3b3935; line-height: 1.5; }
.pillars__ic { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 8px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fbf3e0, #f1e4c6); color: var(--gold-dark); box-shadow: inset 0 0 0 1px rgba(200,162,75,.25); }
.pillars__ic .ic { width: 32px; height: 32px; }

.hero__quote { position: absolute; right: 0; top: calc(var(--img-w) * .22); margin: 0; width: 190px; text-align: right; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.hero__quote p { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 20px; line-height: 1.3; }
.hero__quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 13px; letter-spacing: .1em; }
.hero__quote::after { content: ""; display: block; margin: 16px 0 0 auto; width: 90px; height: 1px; background: var(--gold); }
.hero__tags { position: absolute; right: 0; top: calc(var(--img-w) * .33); margin: 0; text-align: right; color: #fff; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; line-height: 1.75; text-shadow: 0 1px 8px rgba(0,0,0,.5); }

/* ================= FORMULÁRIO ================= */
.form-section { padding: 0 0 36px; }
.form-section__inner { position: relative; }
.card {
  position: relative; max-width: 860px; margin-inline: auto;
  background: #fff; border-radius: 22px; padding: 28px 36px 26px;
  box-shadow: 0 18px 50px rgba(60,40,10,.12), 0 2px 8px rgba(60,40,10,.06);
}
.card__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 22px; }
.card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(160deg, #d9b35c, #b98a2c); color: #fff; }
.card__icon .ic { width: 22px; height: 22px; }
.card__head h2 { margin: 0; font-family: var(--font-title); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }
.card__head p { margin: 0 0 0 auto; max-width: 380px; font-size: 12px; color: var(--muted); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #2b2925; }
.field b { color: #c0392b; font-weight: 700; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select {
  width: 100%; height: 46px; padding: 0 14px; font: 400 14px var(--font-body); color: var(--ink);
  background: #fff; border: 1px solid #d9d4ca; border-radius: 10px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #a7a39b; }
input:focus-visible, select:focus-visible { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,162,75,.28); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
input[type="date"] { color: var(--muted); }
input[type="date"]:valid { color: var(--ink); }
select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235d5a55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; }
[hidden] { display: none !important; }
/* Campo País: sem a setinha do datalist; as sugestões aparecem ao digitar. */
input[list]::-webkit-calendar-picker-indicator { display: none !important; opacity: 0; }
input[list] { appearance: none; -webkit-appearance: none; }
.address { border: 0; margin: 0; padding: 0; min-width: 0; }
.address legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #2b2925; }
.address__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 18px; }
.address__grid > div { min-width: 0; }
.address__grid label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #2b2925; }
.address__grid b { color: #c0392b; font-weight: 700; }
.address .s1 { grid-column: span 1; } .address .s2 { grid-column: span 2; } .address .s3 { grid-column: span 3; }
.input-ic { position: relative; }
.input-ic > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #4a5a6a; pointer-events: none; }
.input-ic input { padding-left: 44px; }
.error { min-height: 0; margin: 4px 0 0; font-size: 12px; color: #c0392b; }
.error:empty { display: none; }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; height: 46px; border-radius: 10px; overflow: hidden; background: #efeeeb; border: 1px solid #d9d4ca; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 0 4px; cursor: pointer; font-size: 13px; font-weight: 500; color: #3b3935; transition: background .15s, color .15s; }
.segmented label .ic { width: 16px; height: 16px; }
.segmented input:checked + label { background: linear-gradient(180deg, #a02626, var(--red)); color: #fff; font-weight: 600; }
.segmented input:focus-visible + label { outline: 3px solid rgba(200,162,75,.6); outline-offset: -3px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px;
  border: 0; border-radius: 12px; cursor: pointer; text-decoration: none; font: 600 17px var(--font-body);
  transition: transform .1s, filter .15s, box-shadow .15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(200,162,75,.7); outline-offset: 2px; }
.btn--primary { margin-top: 20px; color: #fff; background: linear-gradient(180deg, #a52828, var(--red-dark)); box-shadow: 0 6px 16px rgba(139,30,30,.3), inset 0 1px 0 rgba(255,255,255,.18); }
.btn--primary[disabled] { cursor: progress; filter: grayscale(.25) brightness(.95); }
.btn--gold { width: 100%; min-height: 46px; font-size: 14px; font-weight: 600; color: #3a2a06; background: linear-gradient(180deg, #ddb862, #c39a3c); }
.btn--gold .ic { width: 20px; height: 20px; }

.form-status { margin: 12px 0 0; text-align: center; font-size: 14px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-error { color: #b3261e; }
.privacy { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.privacy .ic { width: 15px; height: 15px; color: #5b6472; }

.success { padding: 28px 8px 12px; text-align: center; }
.success__ic { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%; background: var(--green); color: #fff; }
.success__ic .ic { width: 34px; height: 34px; stroke-width: 2.5; }
.success h3 { margin: 0 0 8px; font-family: var(--font-title); font-size: 24px; color: var(--green); }
.success p { margin: 0 auto 10px; max-width: 520px; color: #3b3935; }
.success__offer { padding: 12px 16px; border-radius: 10px; background: var(--cream); font-size: 14px; }

/* Texto lateral (só em telas largas) */
.side-note { position: absolute; right: 0; top: 150px; width: 112px; color: var(--gold-dark); }
.side-note p { margin: 0; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; line-height: 2; color: #6b6259; }
.side-note__rule { display: block; width: 40px; height: 2px; margin: 12px 0 0; background: var(--gold); }
.side-note__star { display: block; width: 58px; height: 58px; margin: 74px auto 12px 12px; color: #c8973a; }
.side-note small { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #6b6259; line-height: 1.7; }
.side-note small span { font-size: 8px; letter-spacing: .12em; }

/* ================= OFERTA (dentro do formulário) ================= */
.offer {
  position: relative; display: grid; grid-template-columns: 1fr 280px; align-items: center; gap: 20px;
  margin-top: 22px; padding: 22px 22px; border-radius: 14px; overflow: hidden; color: #fff;
  background:
    radial-gradient(400px 200px at 0% 0%, rgba(200,162,75,.18), transparent 70%),
    linear-gradient(100deg, #1a1208 0%, #0d3a2c 30%, var(--green-dark) 100%);
}
.offer__eyebrow { margin: 0 0 6px; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.offer h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.1; }
.offer h3 em { font-style: normal; font-size: 1.25em; color: var(--gold); }
.offer__sub { margin: 4px 0 8px; font-family: var(--font-display); font-size: 16px; }
.offer__desc { margin: 0; font-size: 12.5px; line-height: 1.5; color: #dfe8e3; }
.offer__actions { display: grid; gap: 10px; }
.check { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 10px; cursor: pointer; background: #fff; color: #2b2925; font-size: 14px; font-weight: 500; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border: 2px solid #b6b1a7; border-radius: 6px; color: transparent; transition: background .15s, border-color .15s, color .15s; }
.check__box .ic { width: 15px; height: 15px; stroke-width: 3; }
.check input:checked + .check__box { background: var(--red); border-color: var(--red); color: #fff; }
.check input:focus-visible + .check__box { outline: 3px solid rgba(200,162,75,.7); outline-offset: 2px; }

.footer { margin-top: auto; padding: 20px 16px 44px; text-align: center; }
.footer p { margin: 0; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: #6b6259; line-height: 1.9; }
.divider--footer { max-width: 440px; margin: 14px auto 0; }

/* ================= RESPONSIVO ================= */
@media (max-width: 1240px) { .side-note { display: none; } }

@media (max-width: 900px) {
  .page { min-height: 0; background: var(--paper); }
  .page::before, .page::after {
    content: ""; position: absolute; left: 0; right: 0; z-index: 0; pointer-events: none;
    background-image: url("assets/fundo.jpg"); background-size: 100% auto; background-repeat: no-repeat;
  }
  .page::before { top: 92px; height: calc(100vw * .6); background-position: center top; -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 80%, transparent); }
  .page::after { bottom: 0; height: calc(100vw * .4); background-position: center bottom; -webkit-mask-image: linear-gradient(transparent, #000 35%); mask-image: linear-gradient(transparent, #000 35%); }
  .hero, .form-section, .footer { position: relative; z-index: 1; }
  .hero { min-height: 0; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__quote, .hero__tags { display: none; }
  .eyebrow { margin-top: calc(100vw * .42 + 70px); } /* deixa a foto aparecer abaixo do logo */
  .offer { grid-template-columns: 1fr; }
  .footer { padding-bottom: calc(100vw * .3); }
}

@media (max-width: 640px) {
  .hero { padding-top: 18px; }
  .brand__logo { width: 84px; height: 84px; }
  .brand { gap: 12px; }
  .brand__sub { font-size: 9px; letter-spacing: .16em; }
  .eyebrow { font-size: 9.5px; gap: 6px 14px; letter-spacing: .14em; }
  .eyebrow li + li::before { margin-right: 14px; }
  .pillars__ic { width: 58px; height: 58px; }
  .pillars li { font-size: 9.5px; letter-spacing: .1em; }
  .card { padding: 22px 18px; border-radius: 18px; }
  .card__head p { margin-left: 0; max-width: none; flex-basis: 100%; }
  .grid { grid-template-columns: 1fr; }
  .address__grid { grid-template-columns: repeat(2, 1fr); }
  .address .s3, .address .s2 { grid-column: 1 / -1; }
  .address .s1 { grid-column: 1 / -1; }
  .segmented label { font-size: 12px; gap: 4px; }
  .segmented label .ic { display: none; }
  input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select { font-size: 16px; } /* evita zoom no iOS */
  .btn { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
