:root {
  --paper: #f5f1e9;
  --paper-deep: #ebe5d9;
  --white: #fffdf9;
  --ink: #222321;
  --muted: #676760;
  --wine: #31583b;
  --wine-dark: #1e3c2c;
  --olive: #b7a06a;
  --line: rgba(34, 35, 33, .15);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, 'Aptos', 'Segoe UI', Arial, sans-serif;
  --page: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid #a86a45; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 9; background: var(--white); padding: 12px 16px; }
.skip-link:focus { left: 12px; top: 12px; }
.wrap { width: min(var(--page), calc(100% - 52px)); margin-inline: auto; }
.topline { border-bottom: 1px solid var(--line); }
.nav { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fffaf3; background: var(--wine); font-family: var(--serif); font-size: 15px; letter-spacing: -.05em; }
.brand-name { display: block; font-family: var(--serif); font-size: 17px; letter-spacing: -.025em; }
.brand-caption { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 29px; font-size: 12px; letter-spacing: .035em; }
.nav-links a { text-decoration: none; color: #484943; }
.nav-links a:hover { color: var(--wine); }
.nav-contact { display: inline-flex; align-items: center; gap: 9px; padding: 12px 17px; border: 1px solid var(--wine); border-radius: 999px; color: var(--wine) !important; }
.nav-contact:hover { background: var(--wine); color: white !important; }

footer { padding: 18px 0 28px; background: var(--paper-deep); }
.legal-note { margin: 0 0 16px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid var(--line); color: #74736c; font-size: 10px; }
.footer-row strong { color: var(--ink); font-weight: 600; }

.intake .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--wine);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .16em;
  font-weight: 700;
  text-transform: uppercase;
}

.intake .eyebrow::before { content: ''; width: 25px; height: 1px; background: currentColor; }

.intake-intro {
  padding: 62px 0 42px;
  background: radial-gradient(ellipse at 82% 40%, rgba(183, 160, 106, .18), transparent 36%),
    linear-gradient(180deg, #f8f5ef 0%, var(--paper) 100%);
}

.intake h1 {
  max-width: 780px;
  margin: 19px 0 16px;
  font: 400 clamp(41px, 6vw, 71px)/1.04 var(--serif);
  letter-spacing: -.055em;
  text-wrap: balance;
}

.intake h1 em { color: var(--wine); font-style: normal; }

.intake-intro-text {
  max-width: 590px;
  margin: 0;
  color: #565750;
  font-size: 16px;
  line-height: 1.7;
}

.intake-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(252px, .45fr);
  align-items: start;
  gap: clamp(24px, 4.5vw, 60px);
  padding-bottom: 70px;
}

.intake-card {
  padding: clamp(20px, 3.6vw, 40px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(30, 31, 28, .055);
}

.intake-card h2,
.intake-card h3,
.intake-sidebar h2 {
  margin: 0;
  font: 400 clamp(27px, 3vw, 34px)/1.13 var(--serif);
  letter-spacing: -.033em;
}

.intake-card-header p,
.intake-help {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.intake-card-header { margin-bottom: 23px; }

.intake-fields,
.intake-group { min-inline-size: 0; margin: 0; padding: 0; border: 0; }

.intake-group { margin-bottom: 28px; }

.intake-group legend {
  width: 100%;
  margin-bottom: 15px;
  padding: 13px 0 0;
  border-top: 1px solid var(--line);
  font: 400 24px/1.25 var(--serif);
  letter-spacing: -.02em;
}

.intake-optional {
  margin-left: 5px;
  color: var(--muted);
  font: 500 12px/1.3 var(--sans);
  letter-spacing: 0;
}

.intake-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.intake-field + .intake-field-grid { margin-top: 14px; }

.intake-field {
  display: grid;
  min-inline-size: 0;
  align-content: start;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.intake-field input,
.intake-field select {
  width: 100%;
  min-height: 46px;
  padding: 8px 11px;
  color: var(--ink);
  border: 1px solid #a9ada2;
  border-radius: 8px;
  background-color: #fffefb;
  font: 400 16px/1.35 var(--sans);
}

.intake-field :disabled { background-color: #f3f1eb; color: var(--muted); }

.intake-field input[type="file"] {
  padding: 7px 8px;
  font-size: 14px;
}

.intake-field input::file-selector-button {
  margin-right: 8px;
  padding: 7px 10px;
  border: 1px solid #9ba79a;
  border-radius: 6px;
  color: var(--wine-dark);
  background: #ecf1e9;
  font: 600 14px/1.2 var(--sans);
  cursor: pointer;
}

.intake-attachment-selection {
  margin-top: 11px;
  color: var(--muted);
  font-size: 14px;
}

.intake-attachment-selection ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 20px;
  overflow-wrap: anywhere;
}

.intake-clear {
  min-height: 44px;
  padding: 7px 0;
  border: 0;
  color: var(--wine-dark);
  background: transparent;
  font: 600 14px/1.4 var(--sans);
  text-decoration: underline;
  cursor: pointer;
}

.intake-attachment-consent {
  margin-top: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #faf8f2;
}

.intake-help { margin: -4px 0 10px; }

.intake-checklist {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf8f2;
}

.intake-check {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.intake-checklist .intake-check {
  min-height: 43px;
  padding: 10px 12px;
}

.intake-checklist .intake-check + .intake-check { border-top: 1px solid var(--line); }

.intake-check input {
  flex: 0 0 auto;
  align-self: flex-start;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--wine);
}

.intake-privacy {
  padding: 14px;
  border: 1px solid #cfd9cd;
  border-radius: 10px;
  background: #f1f5ee;
}

.intake-privacy summary {
  width: fit-content;
  color: var(--wine-dark);
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
}

.intake-privacy p {
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.intake-consent {
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid #cfd9cd;
}

.intake .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 650 14px/1.3 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.intake .button-primary { color: #fffaf5; background: var(--wine); }
.intake .button-primary:hover { background: var(--wine-dark); }

.intake .intake-submit { margin-top: 17px; }
.intake .button:disabled { background: #586859; cursor: default; }

.intake-notice,
.intake-success {
  margin: 14px 0;
  padding: 13px 15px;
  border: 1px solid #d4c6a8;
  border-radius: 9px;
  background: #fbf4e6;
  font-size: 14px;
  line-height: 1.55;
}

.intake-notice[data-error="true"] { border-color: #c69080; background: #fbede7; color: #673528; }

.intake-success { background: #eef4eb; border-color: #bdceba; }
.intake-success p { margin: 9px 0 0; overflow-wrap: anywhere; }

.intake-sidebar { display: grid; gap: 18px; }

.intake-sidebar h2 { font-size: 27px; }

.intake-side-card,
.intake-whatsapp { padding: 23px; border-radius: 18px; }

.intake-side-card {
  border: 1px solid var(--line);
  background: #ece7dc;
}

.intake-side-card ol {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding-left: 22px;
  color: #454b43;
  font-size: 14px;
  line-height: 1.55;
}

.intake-side-card li { padding-left: 3px; }
.intake-side-card li::marker { color: var(--wine); font-weight: 700; }

.intake-whatsapp { color: #fcf8ee; background: var(--wine-dark); }
.intake-whatsapp p { margin: 12px 0 15px; color: #f0eee3; font-size: 14px; line-height: 1.55; }

.intake .intake-whatsapp-button {
  border-color: #e0e5d9;
  color: #fffdf7;
}

.intake .intake-whatsapp-button:hover { color: var(--wine-dark); background: #fffdf7; }

@media (max-width: 800px) {
  .intake-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .intake-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .wrap { width: min(var(--page), calc(100% - 36px)); }
  .nav { min-height: 74px; align-items: flex-start; flex-direction: column; gap: 15px; padding: 16px 0 12px; }
  .nav-links { width: 100%; gap: 19px; overflow-x: auto; padding: 2px 0 5px; white-space: nowrap; font-size: 11px; }
  .nav-contact { padding: 8px 12px; }
  .intake-intro { padding: 46px 0 31px; }
  .intake-intro-text { font-size: 15px; }
  .footer-row { flex-direction: column; }
}

@media (max-width: 550px) {
  .intake-layout { padding-bottom: 48px; }
  .intake-field-grid,
  .intake-sidebar { grid-template-columns: minmax(0, 1fr); }
  .intake-submit { width: 100%; }
}

/* Atendimento em telas pequenas. Não altera campos, validação ou envio. */
@media (max-width: 550px) {
  .wrap { width: calc(100% - 28px); }

  .nav {
    min-height: 0;
    gap: 8px;
    padding-block: 10px 5px;
  }

  .brand { min-height: 44px; }
  .nav-links { align-items: center; gap: 14px; padding-bottom: 3px; }

  .nav-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    flex: 0 0 auto;
  }

  .nav-contact { padding-block: 0; }
  .intake-intro { padding-block: 24px 21px; }

  .intake h1 {
    margin-block: 10px;
    font-size: clamp(30px, 8.6vw, 44px);
    line-height: 1.06;
  }

  .intake-intro-text { line-height: 1.5; }
  .intake-card { min-width: 0; padding: 16px; border-radius: 16px; }
  .intake-card-header { margin-bottom: 16px; }
  .intake-group { margin-bottom: 22px; }
  .intake-group legend { margin-bottom: 11px; }

  .intake-field input,
  .intake-field select {
    min-height: 50px;
    max-width: 100%;
    font-size: 16px;
  }

  .intake-field select { padding-inline-end: 20px; text-overflow: ellipsis; }

  .intake-field input[type="file"] {
    min-width: 0;
    min-height: 52px;
    text-overflow: ellipsis;
  }

  .intake-field input::file-selector-button {
    min-height: 36px;
    padding-inline: 7px;
  }

  .intake-checklist .intake-check,
  .intake-consent { min-height: 48px; }

  .intake-check { align-items: flex-start; }
  .intake-check input { width: 21px; height: 21px; margin-top: 1px; }
  .intake-check span { min-width: 0; overflow-wrap: anywhere; }

  .intake-privacy summary {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding-block: 12px;
  }

  .intake .intake-submit,
  .intake .intake-whatsapp-button { width: 100%; min-height: 52px; }

  .intake-layout { gap: 16px; padding-bottom: 32px; }
  .intake-side-card, .intake-whatsapp { padding: 16px; border-radius: 14px; }
}
