/* ==========================================================================
   Marco da Transição — Site público (LocalWeb)
   Paleta: bordô #5A052A / #8B1A1A — dourado #C9A84C / #AD8947 — creme #FAF7F2
   Tipografia: Playfair Display (titulos) + Inter (corpo)
   ========================================================================== */

:root {
  --burgundy-900: #5A052A;
  --burgundy-700: #8B1A1A;
  --burgundy-600: #6E0E2D;
  --gold-700:    #AD8947;
  --gold-500:    #C9A84C;
  --gold-200:    #E5D5A8;
  --cream-100:   #FAF7F2;
  --cream-200:   #F5EFE6;
  --cream-300:   #E8E4DD;
  --ink-900:     #2C2C2C;
  --ink-700:     #4A4A4A;
  --ink-500:     #6B6B6B;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--cream-100);
}
a { color: var(--burgundy-900); text-decoration: none; }
a:hover { color: var(--gold-700); }

img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--cream-300);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; gap: 24px;
}
.site-header__logo {
  display: flex; align-items: center;
  color: var(--burgundy-900);
}
.site-header__logo-img { height: 44px; width: auto; display: block; }
@media (min-width: 1024px) { .site-header__logo-img { height: 52px; } }
.site-header__nav { display: flex; gap: 28px; }
.site-header__nav a {
  font-size: 14px; font-weight: 500; color: var(--burgundy-900);
  letter-spacing: 0.01em;
}
.site-header__nav a:hover, .site-header__nav a.is-active { color: var(--gold-700); }
.site-header__actions { display: flex; align-items: center; gap: 14px; }
.site-header__login { color: var(--burgundy-900); display: inline-flex; }
.site-header__login:hover { color: var(--gold-700); }

/* ---------- Seletor de idioma ---------- */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--cream-300); border-radius: 999px;
  overflow: hidden; background: #fff;
}
.lang-switch__btn {
  font-size: 12px; font-weight: 700; letter-spacing: .03em;
  padding: 6px 11px; color: var(--ink-500, #6b6b6b);
  line-height: 1; transition: background .15s, color .15s;
}
.lang-switch__btn + .lang-switch__btn { border-left: 1px solid var(--cream-300); }
.lang-switch__btn:hover { color: var(--burgundy-900); background: var(--cream-100); }
.lang-switch__btn.is-active { background: var(--burgundy-900); color: #fff; }

/* ---------- Flash de formulário ---------- */
.form-flash {
  border-radius: 10px; padding: 12px 16px; margin: 0 0 16px;
  font-size: 14px; font-weight: 500;
}
.form-flash--success { background: #e8f5ed; color: #1d6b3f; border: 1px solid #b7e0c6; }
.form-flash--error   { background: #fdecec; color: #a32020; border: 1px solid #f3c2c2; }

/* ---------- Traduções do post ---------- */
.post__langs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-500, #6b6b6b);
  margin: 4px 0 24px; padding: 10px 14px;
  background: var(--cream-100); border-radius: 10px;
}
.post__langs a {
  font-weight: 600; color: var(--burgundy-900);
  text-decoration: underline; text-underline-offset: 2px;
}
.post__langs a:hover { color: var(--gold-700); }

@media (max-width: 860px) {
  .site-header__nav { display: none; }
  .site-header__inner { padding: 12px 16px; gap: 12px; }
  .lang-switch__btn { padding: 6px 9px; font-size: 11px; }
}

/* ---------- Hero (home) ---------- */
.hero { padding: 80px 0 60px; background: var(--cream-100); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-700); font-weight: 600;
}
.hero__eyebrow::before {
  content: ''; display: inline-block; width: 50px; height: 1px;
  background: var(--gold-700);
}
.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  color: var(--burgundy-900);
  margin: 18px 0;
  font-weight: 600;
}
.hero__title em {
  font-style: italic; color: var(--gold-700); font-weight: 600;
}
.hero__lead { font-size: 17px; color: var(--ink-700); max-width: 540px; }
.hero__lead strong { color: var(--burgundy-900); }
.hero__cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__quote {
  background: var(--burgundy-900); color: #fff;
  padding: 36px; position: relative;
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 18px; line-height: 1.5;
}
.hero__quote::before {
  content: '"'; position: absolute; top: 8px; left: 24px;
  font-size: 60px; color: var(--gold-500); line-height: 1;
}
.hero__quote-author {
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.25);
  font-style: normal; font-size: 14px;
}
.hero__quote-author strong { display: block; font-weight: 600; }
.hero__quote-author span { color: var(--gold-200); font-size: 12px; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 0; transition: all 0.2s ease;
  border: 1.5px solid transparent;
}
.btn--primary {
  background: var(--burgundy-900); color: #fff; border-color: var(--burgundy-900);
}
.btn--primary:hover {
  background: var(--burgundy-600); color: #fff; border-color: var(--burgundy-600);
}
.btn--outline {
  background: transparent; color: var(--burgundy-900); border-color: var(--burgundy-900);
}
.btn--outline:hover { background: var(--burgundy-900); color: #fff; }

/* ---------- Sections genéricas ---------- */
.section { padding: 72px 0; }
.section--cream { background: var(--cream-200); }
.section__eyebrow {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-700); font-weight: 600; display: block; margin-bottom: 12px;
}
.section__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--burgundy-900); margin: 0 0 16px; font-weight: 600;
}
.section__title::after {
  content: ''; display: block; width: 60px; height: 2px;
  background: var(--gold-500); margin-top: 14px;
}
.section__lead { color: var(--ink-700); max-width: 720px; font-size: 17px; }

/* ---------- Cards de "Oferecemos" ---------- */
.cards-grid {
  display: grid; gap: 24px; margin-top: 48px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: #fff; padding: 32px 28px;
  border: 1px solid var(--cream-300);
  border-top: 3px solid var(--gold-500);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(90,5,42,0.18); }
.card__title { font-family: 'Playfair Display', serif; color: var(--burgundy-900); font-size: 22px; margin: 0 0 12px; }
.card__text { color: var(--ink-700); font-size: 15px; line-height: 1.55; }

/* ---------- Sobre ---------- */
.about-grid {
  display: grid; gap: 48px; align-items: center; margin-top: 40px;
  grid-template-columns: 1fr 1.4fr;
}
.about-grid img { border: 1px solid var(--cream-300); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.faq details {
  background: #fff; border: 1px solid var(--cream-300); padding: 0;
}
.faq summary {
  cursor: pointer; padding: 18px 22px;
  font-weight: 600; color: var(--burgundy-900);
  font-family: 'Playfair Display', serif; font-size: 18px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; color: var(--gold-700); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; margin: 0; color: var(--ink-700); }

/* ---------- Newsletter / Contato ---------- */
.newsletter {
  background: var(--burgundy-900); color: #fff;
  padding: 64px 0; text-align: center;
}
.newsletter h2 { font-family: 'Playfair Display', serif; color: #fff; font-size: 32px; margin: 0 0 8px; }
.newsletter p { color: var(--gold-200); margin: 0 0 24px; }
.newsletter form { display: flex; gap: 0; max-width: 460px; margin: 0 auto; }
.newsletter input[type=email] {
  flex: 1; padding: 14px 18px; border: 0; font-size: 15px; outline: none;
}
.newsletter button {
  background: var(--gold-700); color: #fff; border: 0;
  padding: 14px 26px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; font-size: 13px; cursor: pointer;
}
.newsletter button:hover { background: var(--gold-500); color: var(--burgundy-900); }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px;
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--cream-300);
  font-family: inherit; font-size: 15px; margin-bottom: 14px; outline: none;
  background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold-700); }
.contact-form button { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--burgundy-900); color: var(--gold-200); padding: 56px 0 32px; margin-top: 60px; }
.site-footer__grid {
  display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
.site-footer h4 {
  font-family: 'Playfair Display', serif; color: #fff;
  font-size: 16px; margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--gold-200); font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px; margin-top: 40px;
  display: flex; justify-content: space-between; color: var(--gold-200); font-size: 13px;
}
@media (max-width: 720px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-hero { padding: 56px 0 16px; }
.blog-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem); color: var(--burgundy-900); margin: 8px 0 14px;
}
.blog-hero h1::after {
  content: ''; display: block; width: 60px; height: 2px;
  background: var(--gold-500); margin-top: 14px;
}
.blog-hero p { color: var(--ink-700); max-width: 640px; margin: 0; }

.blog-toolbar {
  display: flex; gap: 12px; margin: 32px 0 16px; flex-wrap: wrap;
}
.blog-toolbar form { flex: 1; min-width: 240px; display: flex; }
.blog-toolbar input {
  flex: 1; padding: 12px 16px; border: 1px solid var(--cream-300); outline: none; font-size: 14px; background: #fff;
}
.blog-toolbar input:focus { border-color: var(--gold-700); }
.blog-toolbar button {
  padding: 12px 22px; background: var(--burgundy-900); color: #fff; border: 0;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 700;
  cursor: pointer;
}

.blog-layout {
  display: grid; gap: 36px; grid-template-columns: 1fr 280px; padding: 24px 0 64px;
}
@media (max-width: 900px) { .blog-layout { grid-template-columns: 1fr; } }

.blog-list {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.blog-card {
  background: #fff; border: 1px solid var(--cream-300);
  display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -24px rgba(90,5,42,0.25); }
.blog-card__cover {
  background: var(--cream-200); aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-700); font-family: 'Playfair Display', serif; font-size: 32px;
}
.blog-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card__cat {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-700); font-weight: 700; margin-bottom: 10px;
}
.blog-card__title {
  font-family: 'Playfair Display', serif; font-size: 22px; color: var(--burgundy-900);
  line-height: 1.25; margin: 0 0 12px;
}
.blog-card__excerpt { color: var(--ink-700); font-size: 14px; flex: 1; }
.blog-card__meta { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--cream-300); font-size: 12px; color: var(--ink-500); display: flex; gap: 8px; align-items: center; }

.blog-sidebar {
  background: #fff; border: 1px solid var(--cream-300); padding: 22px; height: fit-content;
}
.blog-sidebar h3 {
  font-family: 'Playfair Display', serif; color: var(--burgundy-900); font-size: 18px; margin: 0 0 14px;
}
.blog-sidebar h3::after {
  content: ''; display: block; width: 30px; height: 2px;
  background: var(--gold-500); margin-top: 8px;
}
.blog-sidebar ul { list-style: none; padding: 0; margin: 0; }
.blog-sidebar li { padding: 8px 0; border-bottom: 1px solid var(--cream-300); }
.blog-sidebar li:last-child { border-bottom: 0; }
.blog-sidebar a { color: var(--ink-700); font-size: 14px; }
.blog-sidebar a:hover, .blog-sidebar a.is-active { color: var(--burgundy-900); font-weight: 600; }

/* ---------- Blog post (detalhe) ---------- */
.post {
  max-width: 760px; margin: 0 auto; padding: 40px 24px 80px;
}
.post__back {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
  color: var(--burgundy-900); margin-bottom: 24px; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 600;
}
.post__cat {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-700); font-weight: 700;
}
.post__title {
  font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem);
  color: var(--burgundy-900); line-height: 1.15; margin: 12px 0 18px;
}
.post__excerpt { font-size: 18px; color: var(--ink-700); line-height: 1.55; margin-bottom: 24px; }
.post__meta {
  display: flex; gap: 20px; padding: 16px 0;
  border-top: 1px solid var(--cream-300); border-bottom: 1px solid var(--cream-300);
  color: var(--ink-500); font-size: 14px;
}
.post__cover { margin: 32px 0; }
.post__cover img { width: 100%; }

/* ---------- Tipografia do conteúdo (markdown) ---------- */
.prose { color: var(--ink-900); font-size: 17px; line-height: 1.75; }
.prose h2, .prose h3, .prose h4 {
  font-family: 'Playfair Display', serif; color: var(--burgundy-900);
  margin-top: 1.8em; margin-bottom: 0.6em;
}
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 22px; }
.prose h4 { font-size: 18px; }
.prose p { margin: 0 0 1.2em; }
.prose strong { color: var(--ink-900); font-weight: 700; }
.prose em { font-style: italic; color: var(--burgundy-900); }
.prose a { color: var(--burgundy-700); text-decoration: underline; text-underline-offset: 4px; }
.prose a:hover { color: var(--gold-700); }
.prose blockquote {
  border-left: 4px solid var(--gold-500); margin: 1.6em 0;
  padding: 12px 0 12px 22px; color: var(--ink-700); font-style: italic;
}
.prose ul, .prose ol { padding-left: 1.4em; margin: 1.2em 0; }
.prose li { margin-bottom: 0.4em; }
.prose code {
  background: var(--cream-200); padding: 2px 6px; border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em; color: var(--burgundy-900);
}
.prose pre {
  background: var(--cream-200); padding: 18px; overflow-x: auto;
  border-left: 3px solid var(--gold-500); margin: 1.4em 0;
}
.prose pre code { background: transparent; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--cream-300); margin: 2.4em 0; }
.prose .table-wrap { overflow-x: auto; margin: 1.6em 0; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: 12px 16px; border: 1px solid var(--cream-300); text-align: left; font-size: 15px; }
.prose th { background: var(--cream-200); color: var(--burgundy-900); font-weight: 700; }

.legal-note {
  margin-top: 60px; padding: 22px; background: var(--cream-200);
  border-left: 3px solid var(--gold-500); font-size: 14px; color: var(--ink-700);
}


/* ============================================================
   CHATBOT WIDGET
   ============================================================ */
.chatbot {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  font-family: 'Inter', system-ui, sans-serif;
}

/* Botão flutuante */
.chatbot__toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #C9A84C;
  background: #5A052A;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(90,5,42,.35);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.chatbot__toggle:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 24px rgba(90,5,42,.45);
}
.chatbot__toggle-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.chatbot__toggle-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #C9A84C;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Janela do chat */
.chatbot__window {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 340px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: chatbot-slide-in .2s ease;
}
@keyframes chatbot-slide-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

/* Header */
.chatbot__header {
  background: #5A052A;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chatbot__header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #C9A84C;
  flex-shrink: 0;
}
.chatbot__header > div {
  flex: 1;
  min-width: 0;
}
.chatbot__header strong {
  display: block;
  color: #FAF7F2;
  font-size: 14px;
  font-weight: 700;
}
.chatbot__header span {
  display: block;
  color: #C9A84C;
  font-size: 11px;
}
.chatbot__close {
  background: none;
  border: none;
  color: #FAF7F2;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: .7;
  transition: opacity .15s;
}
.chatbot__close:hover { opacity: 1; }

/* Mensagens */
.chatbot__messages {
  flex: 1;
  height: 300px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #FAF7F2;
  scroll-behavior: smooth;
}
.chatbot__msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  word-break: break-word;
}
.chatbot__msg--bot {
  background: #fff;
  color: #2a2a2a;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.chatbot__msg--user {
  background: #5A052A;
  color: #FAF7F2;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

/* Typing indicator */
.chatbot__msg--typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
}
.chatbot__msg--typing span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8B1A1A;
  animation: chatbot-typing 1.2s infinite ease-in-out;
}
.chatbot__msg--typing span:nth-child(2) { animation-delay: .2s; }
.chatbot__msg--typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chatbot-typing {
  0%, 80%, 100% { transform: scale(.7); opacity: .5; }
  40%            { transform: scale(1);  opacity: 1;   }
}

/* Formulário */
.chatbot__form {
  display: flex;
  border-top: 1px solid #E8E0D5;
  background: #fff;
}
.chatbot__input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-size: 13.5px;
  outline: none;
  background: transparent;
  color: #1a1a1a;
}
.chatbot__input::placeholder { color: #aaa; }
.chatbot__send {
  background: #5A052A;
  border: none;
  color: #C9A84C;
  padding: 0 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background .15s;
}
.chatbot__send:hover { background: #8B1A1A; }

@media (max-width: 480px) {
  .chatbot { bottom: 16px; right: 16px; }
  .chatbot__window { width: calc(100vw - 32px); right: -4px; }
}


/* ==== Badge de vídeo nos cards do blog ==== */
.blog-card__cover { position: relative; }
.blog-card__play {
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(90,5,42,0.92); color: var(--gold-200);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px -4px rgba(0,0,0,0.35);
  pointer-events: none;
}
.blog-card__play svg { margin-left: 2px; }

/* ==== Embed de vídeo na página do post (16:9 responsivo) ==== */
.post__video {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  margin: 28px 0 36px; background: #000;
  border: 1px solid var(--cream-300);
}
.post__video iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
