/* LG.OPTIC — site institucional. Dourado da marca (o mesmo do sistema) sobre grafite. */
:root {
  --gold: #c09939;
  --gold-d: #9c7a24;
  --gold-l: #f6eedb;
  --ink: #14161b;
  --ink-2: #1d2027;
  --ink-3: #2a2e37;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --text: #1b1d22;
  --muted: #5d6170;
  --line: #e7e3d9;
  --on-ink: #f2efe7;
  --on-ink-muted: #a9a59a;
  --radius: 14px;
  --wrap: 1120px;
  --font-display: 'Saira', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-d); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0 0 .6em; color: inherit; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.eyebrow {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .18em;
  font-size: .78rem; font-weight: 600; color: var(--gold-d); margin-bottom: .9rem; display: block;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 8px; }

/* ── Botões ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; letter-spacing: .02em; text-decoration: none;
  border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d3ad4f; color: var(--ink); }
.btn-line { border-color: currentColor; color: inherit; }
.btn-line:hover { background: rgba(192, 153, 57, .12); color: inherit; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ── Cabeçalho ─────────────────────────────────────── */
.site-header { background: var(--ink); color: var(--on-ink); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(192, 153, 57, .25); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--on-ink); text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand span { font-family: var(--font-display); font-weight: 700; font-style: italic; letter-spacing: .06em; font-size: 1.2rem; color: var(--gold); }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--on-ink); text-decoration: none; font-size: .97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav .btn { padding: .55rem 1.1rem; font-size: .92rem; }
.nav .btn-gold, .nav .btn-gold:hover { color: var(--ink); }
.menu-toggle { display: none; background: none; border: 1px solid rgba(242, 239, 231, .3); color: var(--on-ink); border-radius: 8px; padding: .45rem .7rem; font: inherit; cursor: pointer; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 20px 1.25rem; border-bottom: 1px solid rgba(192, 153, 57, .25); }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid rgba(242, 239, 231, .08); }
  .nav .btn { margin-top: .9rem; justify-content: center; border-bottom: none; }
}

/* ── Seções ─────────────────────────────────────────── */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-ink { background: var(--ink); color: var(--on-ink); }
.section-ink .lead, .section-ink .muted { color: var(--on-ink-muted); }
.section-ink .eyebrow { color: var(--gold); }
.section-tint { background: var(--gold-l); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.muted { color: var(--muted); }

/* Hero da página inicial: o emblema como "lente" ao lado do texto. */
.hero { background: var(--ink); color: var(--on-ink); overflow: hidden; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.35fr .65fr; gap: 3rem; align-items: center; padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: var(--on-ink-muted); margin-bottom: 2rem; max-width: 60ch; }
.hero h1 { max-width: 16ch; }
.hero-lens {
  aspect-ratio: 1; max-width: 400px; width: 100%; justify-self: center; border-radius: 50%;
  border: 1px solid rgba(192, 153, 57, .35); display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 50% 45%, rgba(192, 153, 57, .16), transparent 62%);
}
.hero-lens::before, .hero-lens::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed rgba(192, 153, 57, .22); }
.hero-lens::before { inset: 9%; }
.hero-lens::after { inset: 21%; border-style: solid; border-color: rgba(192, 153, 57, .14); }
.hero-lens img { width: 62%; position: relative; z-index: 1; }
.hero-lens .tick { position: absolute; font-family: var(--font-display); font-size: .72rem; letter-spacing: .14em; color: var(--on-ink-muted); text-transform: uppercase; }
.hero-lens .tick-top { top: 3%; }
.hero-lens .tick-bottom { bottom: 3%; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .hero-lens { max-width: 260px; order: -1; }
}

/* Página interna: faixa de título. */
.page-head { background: var(--ink); color: var(--on-ink); padding-block: clamp(2.75rem, 6vw, 4.25rem); }
.page-head .lead { color: var(--on-ink-muted); margin: 0; }
.page-head .eyebrow { color: var(--gold); }

/* ── Grades e blocos ───────────────────────────────── */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.section-ink .card { background: var(--ink-2); border-color: var(--ink-3); }
.card h3 { margin-bottom: .45rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .who { font-family: var(--font-display); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); font-weight: 600; }
.section-ink .card .who { color: var(--gold); }
.ticks { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .45rem; }
.ticks li { padding-left: 1.5rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: .7rem; border-radius: 50%; border: 2px solid var(--gold); }

/* Passos (é uma sequência de verdade: do provador ao óculos pronto). */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.25rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--gold); padding-top: 1rem; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; color: var(--gold-d); font-size: .95rem; letter-spacing: .1em; display: block; margin-bottom: .35rem; }
.section-ink .steps li::before { color: var(--gold); }
.steps h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.steps p { margin: 0; font-size: .98rem; }

/* Medidas que o provador tira (termos reais de ótica). */
.measures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--ink-3); border: 1px solid var(--ink-3); border-radius: var(--radius); overflow: hidden; }
.measures div { background: var(--ink-2); padding: 1.25rem; }
.measures dt { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--gold); }
.measures dd { margin: 0; color: var(--on-ink-muted); font-size: .92rem; line-height: 1.45; }

/* Missão / visão: duas colunas com fio dourado. */
.statement { border-left: 3px solid var(--gold); padding: .2rem 0 .2rem 1.4rem; }
.statement p { font-size: 1.22rem; line-height: 1.55; margin: 0; }
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.75rem 2rem; }
.values strong { font-family: var(--font-display); font-size: 1.1rem; display: block; margin-bottom: .2rem; }
.values p { margin: 0; color: var(--muted); }

/* Preço da anuidade. */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.price > div { padding: 2rem; }
.price > div + div { border-left: 1px solid var(--line); background: var(--paper); }
.price .amount { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.2rem); font-weight: 700; line-height: 1; margin: .3rem 0 .4rem; }
.price .amount small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.split { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin: .9rem 0 .6rem; background: var(--line); }
.split span:first-child { background: var(--gold); flex: 90; }
.split span:last-child { background: var(--ink); flex: 10; }
@media (max-width: 700px) {
  .price { grid-template-columns: 1fr; }
  .price > div + div { border-left: none; border-top: 1px solid var(--line); }
}

/* Onde estamos: mapa das óticas (estilo dos alfinetes em /css/oticas-map.css, do sistema). */
.map-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.75rem; }
.map-tools { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.btn-small { padding: .5rem 1.1rem; font-size: .92rem; }
.map-frame { height: 460px; border: 1px solid var(--line); }
.map-foot { margin: 1rem 0 0; }
@media (max-width: 700px) { .map-frame { height: 360px; } }

/* Formulário de candidatura (diretor comercial). */
.apply-form { display: grid; gap: 1rem; }
.apply-form .field { display: grid; gap: .35rem; min-width: 0; }
.apply-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.apply-form .field-uf { max-width: 120px; }
.apply-form label { font-weight: 600; font-size: .95rem; }
.apply-form input, .apply-form select, .apply-form textarea {
  font: inherit; color: var(--text); background: var(--paper); width: 100%;
  border: 1.5px solid var(--line); border-radius: 10px; padding: .7rem .85rem;
}
.apply-form textarea { resize: vertical; }
.apply-form input:focus, .apply-form select:focus, .apply-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(192, 153, 57, .2); }
.apply-form .btn { justify-self: start; border: none; cursor: pointer; font-size: 1rem; }
.apply-form .btn:disabled { opacity: .6; cursor: progress; }
.apply-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply-status { border-radius: 10px; padding: .8rem 1rem; font-weight: 600; }
.apply-status.ok { background: #e7f4ea; color: #1d5a2c; border: 1px solid #b9dfc3; }
.apply-status.err { background: #fbecea; color: #8a2b20; border: 1px solid #f0c4be; }
@media (max-width: 520px) { .apply-form .field-row { grid-template-columns: 1fr; } .apply-form .field-uf { max-width: none; } }

/* CTA final. */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta h2 { margin: 0 0 .3rem; }
.cta p { margin: 0; }

/* ── Textos longos (políticas) ─────────────────────── */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; align-items: start; }
.doc-nav { position: sticky; top: 92px; font-size: .95rem; }
.doc-nav strong { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--muted); display: block; margin-bottom: .6rem; }
.doc-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.doc-nav a { display: block; padding: .35rem .7rem; border-radius: 8px; color: var(--text); text-decoration: none; }
.doc-nav a:hover { background: var(--gold-l); }
.doc-nav a[aria-current="page"] { background: var(--gold-l); color: var(--gold-d); font-weight: 600; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose .updated { color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2.5rem; }
@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; gap: 1.5rem; }
  .doc-nav { position: static; }
  .doc-nav ul { display: flex; flex-wrap: wrap; gap: .4rem; }
  .doc-nav a { border: 1px solid var(--line); }
}

/* Perguntas frequentes: cada pergunta abre e fecha (details/summary, sem JavaScript). */
.faq { max-width: 74ch; }
.faq h2 { font-size: 1.35rem; margin: 2.4rem 0 .9rem; scroll-margin-top: 90px; }
.faq h2:first-child { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq h2 + details { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 2.2rem 1rem 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .35rem; top: 50%; width: .55rem; height: .55rem;
  border-right: 2px solid var(--gold-d); border-bottom: 2px solid var(--gold-d);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--gold-d); }
.faq details p { margin: 0 0 1.1rem; color: var(--muted); max-width: 68ch; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Dado que ainda falta preencher (nome, CNPJ, endereço…): bem visível de propósito. */
.todo { background: #fff3c4; color: #6b4e00; border: 1px dashed #c9a227; border-radius: 4px; padding: 0 .3em; font-style: normal; }

/* Contato. */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; gap: .1rem; }
.contact-list span { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--muted); }
.contact-list a, .contact-list strong { font-size: 1.1rem; }

/* ── Rodapé ─────────────────────────────────────────── */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding-block: 3rem 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer img { width: 150px; margin-bottom: 1rem; }
.site-footer h4 { font-family: var(--font-display); color: var(--on-ink); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; margin: 0 0 .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--on-ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-legal { border-top: 1px solid var(--ink-3); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .88rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

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