/* ==========================================================================
   Rota Nobre — site público
   CSS puro, sem build. Paleta: preto #0B0B0C, dourado #C9A24A, papel #F7F5F0.
   ========================================================================== */
:root {
  --ink: #0B0B0C;
  --ink-2: #151517;
  --ink-3: #222226;
  --gold: #C9A24A;
  --gold-2: #E3C77E;
  --gold-3: #9C7A2E;
  --paper: #F7F5F0;
  --white: #FFFFFF;
  --text: #1C1B19;
  --muted: #6B665C;
  --muted-light: #B9B3A6;
  --line: #E6E1D6;
  --line-dark: rgba(201, 162, 74, .22);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 11, 12, .08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, .h1 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1, .h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.icon { flex: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.muted-light { color: var(--muted-light); }
.eyebrow { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-3); margin-bottom: 1rem; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .9rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent; font: 700 .98rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--ink); box-shadow: 0 6px 18px rgba(201, 162, 74, .28); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-ghost-dark { border-color: var(--line); color: var(--text); background: var(--white); }
.btn-ghost-dark:hover { border-color: var(--gold); }
.btn-sm { padding: .6rem 1rem; font-size: .9rem; }
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 12, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand img { width: 168px; height: auto; }
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-button { display: none; color: var(--white); cursor: pointer; padding: .5rem; }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn) { color: #E9E5DA; text-decoration: none; font-size: .95rem; font-weight: 500; padding: .3rem 0; border-bottom: 1.5px solid transparent; }
.main-nav a:not(.btn):hover, .main-nav a[aria-current="page"] { color: var(--gold-2); border-bottom-color: var(--gold); }

@media (max-width: 900px) {
  .menu-button { display: inline-flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem 1rem 1.5rem; background: var(--ink); border-bottom: 1px solid var(--line-dark); display: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: .85rem .25rem !important; border-bottom: 1px solid rgba(255, 255, 255, .06) !important; }
  .menu-toggle:checked ~ .main-nav { display: flex; }
  .brand img { width: 140px; }
}

.preview-bar { background: var(--gold); color: var(--ink); text-align: center; font-weight: 700; font-size: .9rem; padding: .5rem 1rem; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(ellipse at 80% 10%, #2a2312 0%, var(--ink) 55%); color: var(--white); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .5; }
.hero .eyebrow { color: var(--gold); }
.hero h1, .hero .h1 { color: var(--white); }
.hero .lead { font-size: 1.15rem; color: #D9D4C7; max-width: 38rem; }
.hero-image .hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding: 4.5rem 0; }
.hero-compact { padding: 4rem 0 3.5rem; }
.hero-compact .hero-grid { display: block; max-width: 820px; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.2rem; }
.hero-note { display: flex; align-items: center; gap: .45rem; font-size: .88rem; color: var(--muted-light); margin: 0; }
.hero-media { margin: 0; position: relative; }
.hero-media img { border-radius: 22px; aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.hero-media::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--line-dark); border-radius: 26px; z-index: -1; }
/* Foto horizontal (ex.: Virtus na orla): coluna maior e proporção natural */
.hero-landscape .hero-grid { grid-template-columns: .95fr 1.15fr; }
.hero-landscape .hero-media img { aspect-ratio: auto; }
@media (max-width: 900px) {
  .hero-image .hero-grid { grid-template-columns: 1fr; gap: 2rem; padding: 2.8rem 0 3rem; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .hero-landscape .hero-media img { aspect-ratio: auto; }
  .hero-media::before { display: none; }
}

/* ---------- Seções ---------- */
.section { padding: 5rem 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: #E9E5DA; }
.section-dark h2 { color: var(--white); }
.section-dark .eyebrow { color: var(--gold); }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split-media-left > :first-child { order: 0; }
.more-link { margin-top: 2rem; }
.more-link a, .card-link { color: var(--gold-3); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.more-link a:hover, .card-link:hover { color: var(--ink); }
@media (max-width: 900px) {
  .section { padding: 3.5rem 0; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
}

.prose { font-size: 1.05rem; }
.prose h2 { font-size: 1.9rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose a { color: var(--gold-3); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote { border-left: 3px solid var(--gold); margin: 1.5rem 0; padding: .3rem 0 .3rem 1.2rem; color: var(--muted); font-style: italic; }
.prose img { border-radius: 10px; margin: 1.5rem 0; }

.media-frame { margin: 0; }
.media-frame img { border-radius: 18px; box-shadow: var(--shadow); aspect-ratio: 4 / 4.6; object-fit: cover; width: 100%; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.section-dark figcaption { color: var(--muted-light); }

/* ---------- Cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem; position: relative; transition: border-color .2s ease, box-shadow .2s ease; }
.card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.card h3 { margin-top: .9rem; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: .6rem; }
.card-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--gold); }
@media (max-width: 1000px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-4, .cards-3 { grid-template-columns: 1fr; } }

/* ---------- Veículo ---------- */
.vehicle-media { margin: 0; position: relative; }
.vehicle-media img:first-child { border-radius: 18px; aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.vehicle-media-2 { position: absolute; width: 42%; right: -1.2rem; bottom: 2.2rem; border-radius: 14px; border: 4px solid var(--ink); aspect-ratio: 1; object-fit: cover; }
.specs { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .9rem; }
.specs li { display: flex; gap: .9rem; align-items: center; padding: .9rem 1.1rem; border: 1px solid var(--line-dark); border-radius: 12px; background: var(--ink-2); }
.specs .icon { color: var(--gold); }
.lead-sm { font-size: 1.08rem; }
@media (max-width: 900px) { .vehicle-media-2 { display: none; } }

/* ---------- Regiões ---------- */
.region-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.region-groups.is-compact { grid-template-columns: 1fr; }
.region-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.region-group h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.35rem; }
.region-group h3 .icon { color: var(--gold-3); }
.region-primary { border-top: 3px solid var(--gold); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .4rem .85rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .92rem; font-weight: 500; }
.region-primary .chips li { background: var(--ink); color: var(--white); border-color: var(--ink); }
@media (max-width: 900px) { .region-groups { grid-template-columns: 1fr; } }

/* ---------- Passos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: s; }
.steps li { padding: 1.6rem 0 0; border-top: 1px solid var(--line); }
.step-n { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-3); font-family: var(--serif); font-size: 1.35rem; font-weight: 700; margin-bottom: .8rem; }
.steps p { color: var(--muted); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-3); font-size: 1.5rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .8rem 0 0; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: var(--white); padding: 4rem 0; border-top: 1px solid var(--line-dark); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.cta h2 { color: var(--white); margin-bottom: .3rem; }
.cta p { color: var(--muted-light); margin: 0; max-width: 40rem; }
@media (max-width: 800px) { .cta-inner { flex-direction: column; align-items: flex-start; } }

/* ---------- Contato ---------- */
.contact-split { align-items: start; }
.contact-facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.contact-facts li { display: flex; align-items: center; gap: .7rem; }
.contact-facts .icon { color: var(--gold-3); }
.contact-facts a { font-weight: 700; }
.wa-form { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 2rem; }
.wa-form label { display: block; font-weight: 700; margin: 0 0 .4rem; }
.wa-form input, .wa-form textarea { width: 100%; font: inherit; font-size: 1rem; padding: .85rem 1rem; border: 1px solid #D5CFC2; border-radius: 10px; background: var(--white); margin-bottom: 1.1rem; }
.wa-form input:focus, .wa-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 74, .25); }
.optional { font-weight: 400; color: var(--muted); }
.field-hint { font-size: .88rem; color: var(--muted); margin-top: -.6rem; }
.field-error { color: #A12A1B; font-weight: 600; font-size: .92rem; }
.form-note { font-size: .85rem; color: var(--muted); margin: .9rem 0 0; }
.wa-fallback { margin-top: 1.3rem; padding-top: 1.2rem; border-top: 1px dashed #CFC8B9; }
.wa-fallback textarea { font-size: .9rem; background: #FFFDF8; }
.wa-fallback-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.copy-status { color: #2E6B2E; font-weight: 700; margin: .7rem 0 0; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card-media img, .post-card-placeholder { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.post-card-placeholder { display: grid; place-items: center; background: var(--ink); }
.post-card-placeholder img { width: 55%; aspect-ratio: auto; }
.post-card-body { padding: 1.3rem 1.4rem 1.5rem; }
.post-card h3 { font-size: 1.4rem; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--gold-3); }
.post-card p { color: var(--muted); font-size: .95rem; }
.post-meta { font-size: .82rem; color: var(--muted); margin-bottom: .5rem; }
.post-meta a { color: var(--gold-3); font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
.cat-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.cat-nav a { padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: .92rem; }
.cat-nav a[aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2.5rem; }
.pagination a { color: var(--gold-3); font-weight: 700; }
.empty { color: var(--muted); }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.article-head { background: var(--paper); padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); }
.article-cover { margin-top: 2rem; }
.article-cover img { border-radius: 16px; width: 100%; }
.article-body { padding: 2.5rem 0 1rem; }
.article-cta { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; background: var(--ink); color: var(--white); border-radius: 18px; padding: 1.6rem 1.8rem; margin-bottom: 2.5rem; }
.article-cta p { margin: .2rem 0 0; color: var(--muted-light); }
.related-service { margin-bottom: 3rem; color: var(--muted); }
.related-service a { color: var(--gold-3); font-weight: 700; }
@media (max-width: 700px) { .article-cta { flex-direction: column; align-items: flex-start; } }

.legal h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }

/* ---------- Rodapé ---------- */
.site-footer { background: #070708; color: #CFC9BC; padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-grid img { width: 170px; margin-bottom: 1rem; }
.footer-tag { font-size: .95rem; color: var(--muted-light); }
.footer-title { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-links a, .footer-bottom a { color: #E9E5DA; text-decoration: none; }
.footer-links a:hover, .footer-bottom a:hover { color: var(--gold-2); }
.footer-wa { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--white) !important; text-decoration: none; font-size: 1.1rem; }
.footer-wa .icon { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; padding-top: 1.5rem; font-size: .85rem; color: var(--muted-light); }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flutuante ---------- */
.wa-float { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--ink); box-shadow: 0 10px 26px rgba(0, 0, 0, .35); transition: transform .15s ease; }
.wa-float:hover { transform: scale(1.06); }

/* ---------- Consentimento ---------- */
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; max-width: 560px; background: var(--ink); color: #E9E5DA; border: 1px solid var(--line-dark); border-radius: 14px; padding: 1.1rem 1.2rem; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); font-size: .9rem; }
.consent a { color: var(--gold-2); }
.consent p { margin: 0 0 .8rem; }
.consent-actions { display: flex; gap: .6rem; justify-content: flex-end; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
