/*
  Layout: página única no estilo do Lefosse. Fundo claro, muito espaço, linhas finas no lugar de cartões,
  ouro só em detalhes. Sem gradientes, sem sombras, sem ícones decorativos.
  Todas as cores vêm de css/palettes.css.
*/
:root {
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(56px, 9vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 100; }
.skip:focus { top: 12px; }

/* Cabeçalho */
.site-header { background: var(--nav-bg); border-bottom: 1px solid var(--nav-line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { text-decoration: none; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 500; color: var(--nav-ink); }
.brand b { color: var(--gold-nav); font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { text-decoration: none; color: var(--nav-ink); font-size: 13px; letter-spacing: .04em; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--gold-nav); }
.site-nav .site-nav__cta { background: var(--gold); color: var(--on-gold); padding: 10px 18px; font-weight: 600; border-bottom: 0; border-radius: 2px; }
.site-nav .site-nav__cta:hover { filter: brightness(.95); }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; color: var(--nav-ink); cursor: pointer; }
.menu-toggle__icon, .menu-toggle__icon::before { display: block; width: 28px; height: 1.5px; background: currentColor; content: ""; }
.menu-toggle__icon { position: relative; top: -3px; }
.menu-toggle__icon::before { position: absolute; top: 8px; left: 0; }

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-ink); padding: clamp(64px, 11vw, 136px) 0 clamp(72px, 12vw, 148px); }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hero); margin-bottom: 20px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 6vw, 62px); line-height: 1.1; max-width: 17ch; text-wrap: balance; margin-bottom: 24px; }
.lead { max-width: 52ch; font-size: clamp(16px, 2vw, 18px); opacity: .9; margin-bottom: 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gold-rule { height: 3px; background: var(--gold); }

/* Botões */
.btn { display: inline-block; font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: .02em; text-decoration: none; text-align: center; padding: 14px 26px; border-radius: 2px; border: 1px solid var(--gold); background: var(--gold); color: var(--on-gold); cursor: pointer; }
.btn:hover { filter: brightness(.95); }
.btn--ghost { background: transparent; color: var(--hero-ink); border-color: var(--gold-hero); }
.btn--ghost:hover { filter: none; background: rgba(127, 127, 127, .12); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { filter: none; background: var(--surface); }

/* Seções */
.section { padding: var(--section-y) 0; }
.section--lined { border-top: 1px solid var(--line); }
.section-title { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 28px; }
.statement { font-family: var(--serif); font-size: clamp(22px, 3.2vw, 32px); line-height: 1.3; margin-bottom: 24px; max-width: 28ch; text-wrap: balance; }
.note { font-size: 13px; color: var(--muted); margin-top: 28px; max-width: 62ch; }

/* Sobre */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.portrait { aspect-ratio: 4 / 5; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); display: grid; place-items: center; color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.split__text p:not(.statement) { max-width: 58ch; color: var(--muted); margin-bottom: 16px; }

/* Áreas: lista com linhas finas, como em "Expertises" do Lefosse */
.areas { border-top: 1px solid var(--line); }
.area { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 48px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.area h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; }
.area p { color: var(--muted); max-width: 54ch; }

/* Atendimento */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: etapa; }
.steps li { counter-increment: etapa; border-top: 3px solid var(--gold); padding-top: 20px; }
.steps li::before { content: "Etapa " counter(etapa); display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 10px; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.25; margin-bottom: 10px; }
.steps p { color: var(--muted); }

/* Contato */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.details { display: grid; gap: 18px; }
.details dt { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 2px; }
.details dd { color: var(--ink); }
.details a { text-underline-offset: 3px; }

.form { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: clamp(20px, 4vw, 36px); display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--field-line); border-radius: 2px; padding: 12px 14px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 1px; border-color: var(--gold-ink); }
.field [aria-invalid="true"] { border-color: #A32020; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form__status { font-size: 14px; min-height: 1.4em; }
.form .note { margin-top: 0; }

/* Rodapé */
.site-footer { background: var(--foot-bg); color: var(--foot-ink); padding: 28px 0; font-size: 13px; }
.site-footer b { color: var(--gold-foot); font-weight: 600; }
.footer-row { display: flex; justify-content: space-between; gap: 12px 40px; flex-wrap: wrap; }
.footer-legal { max-width: 64ch; opacity: .85; }

/* Botão flutuante de WhatsApp: rótulo neutro e sem animação, para manter a publicidade sóbria */
.whatsapp-float { position: fixed; right: 16px; bottom: 16px; z-index: 150; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; background: var(--gold); color: var(--on-gold); border: 1px solid var(--on-gold); border-radius: 2px; font-size: 14px; font-weight: 600; letter-spacing: .02em; text-decoration: none; }
.whatsapp-float:hover { filter: brightness(.95); }
.whatsapp-float:focus-visible { outline: 2px solid var(--on-gold); outline-offset: 3px; }
.site-footer { padding-bottom: 84px; }

/* Seletor de paletas (aparece só quando showPaletteSwitcher = true em js/config.js). Fica à esquerda para não cobrir o botão de WhatsApp. */
.palette-switcher { position: fixed; left: 16px; bottom: 16px; z-index: 200; width: min(280px, calc(100vw - 32px)); background: #FFFFFF; color: #232323; border: 1px solid #232323; font: 13px/1.4 var(--sans); }
.palette-switcher__toggle { width: 100%; text-align: left; font: inherit; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 10px 14px; background: #232323; color: #FFFFFF; border: 0; cursor: pointer; }
.palette-switcher__list { padding: 8px; display: grid; gap: 4px; }
.palette-switcher__list[hidden] { display: none; }
.palette-switcher__hint { font-size: 12px; color: #5F5F5F; padding: 2px 6px 6px; }
.palette-switcher__option { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; padding: 8px 10px; background: #FFFFFF; color: #232323; border: 1px solid #D9D9D9; cursor: pointer; }
.palette-switcher__option:hover { border-color: #232323; }
.palette-switcher__option[aria-pressed="true"] { border-color: #232323; background: #F1F1F1; font-weight: 600; }
.palette-switcher__option[aria-pressed="true"]::after { content: "Em uso"; margin-left: auto; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.palette-switcher__dots { display: inline-flex; flex: none; }
.palette-switcher__dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #FFFFFF; box-shadow: 0 0 0 1px #BDBDBD; margin-left: -4px; }
.palette-switcher__dots i:first-child { margin-left: 0; }

/* Telas pequenas */
@media (max-width: 600px) {
  .palette-switcher { bottom: 76px; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--nav-bg); border-bottom: 1px solid var(--nav-line); padding: 8px var(--gutter) 20px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--nav-line); }
  .site-nav .site-nav__cta { margin-top: 16px; text-align: center; border-bottom: 0; }
  .split, .contact, .area { grid-template-columns: 1fr; }
  .portrait { max-width: 360px; }
  .steps { grid-template-columns: 1fr; }
}
