:root {
  --bg: oklch(0.97 0.015 75);
  --bg-alt: oklch(0.995 0.006 75);
  --text: oklch(0.2 0.02 75);
  --text-muted: oklch(0.4 0.02 75);
  --text-muted-2: oklch(0.45 0.02 75);
  --text-muted-3: oklch(0.5 0.02 75);
  --border: oklch(0.87 0.015 75);
  --primary: oklch(0.33 0.10 15);
  --primary-on: oklch(0.98 0.006 15);
  --tag-bg: oklch(0.95 0.03 15);
  --tag-text: oklch(0.38 0.09 15);
  --faq-bg: oklch(0.95 0.03 15 / 0.35);
  --input-bg: oklch(0.99 0.005 75);
  --shadow-color: oklch(0.2 0.02 75 / 0.3);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
::selection { background: oklch(0.94 0.035 15); }

h1, h2, h3 { font-family: 'Source Serif 4', serif; font-weight: 600; margin: 0; }

img, svg { max-width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.97 0.015 75 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 48px;
  transition: transform 0.35s ease;
}

/* Header some ao rolar pra baixo, reaparece ao rolar pra cima */
.site-header.header-hidden { transform: translateY(-100%); }

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-mark-sm { width: 32px; height: 32px; }

.brand-name { font-family: 'Source Serif 4', serif; font-size: 20px; font-weight: 600; letter-spacing: 0.01em; }

.site-nav { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.site-nav a { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.site-nav a:hover { color: var(--primary); }

.nav-cta {
  background: var(--primary);
  color: var(--primary-on) !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 500;
}

/* Hambúrguer com tracinhos desencontrados, vira X ao abrir */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 60;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.25s ease, background 0.2s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; width: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; width: 22px; }
.nav-toggle span:nth-child(3) { top: 27px; width: 14px; left: 19px; }
.nav-toggle.is-open span { background: var(--primary); }
.nav-toggle.is-open span:nth-child(1) { top: 21px; left: 11px; width: 22px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 21px; left: 11px; width: 22px; transform: rotate(-45deg); }

/* Overlay escurecido atrás do menu lateral */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 55;
  background: oklch(0.2 0.02 75 / 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: none;
  padding: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay.is-open { display: block; opacity: 1; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: var(--primary-on); padding: 15px 30px; }
.btn-primary:hover { color: var(--primary-on); opacity: 0.92; }
.btn-block { width: 100%; padding: 14px; font-size: 15.5px; }

/* Hero */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 48px 96px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}
.hero-copy { flex: 1 1 420px; min-width: min(320px, 100%); }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.12; margin: 0 0 24px; }
.hero .lead { font-size: 18px; line-height: 1.6; color: var(--text-muted); max-width: 520px; margin: 0 0 36px; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-media { flex: 1 1 360px; min-width: min(280px, 100%); max-width: 480px; }
.hero-media .photo-slot { height: 420px; box-shadow: 0 24px 48px -24px var(--shadow-color); }

/* Photo */
.photo-slot {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
}

/* About */
.about { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-inner { max-width: 1200px; margin: 0 auto; padding: 96px 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.about-media { flex: 1 1 320px; min-width: min(260px, 100%); max-width: 420px; }
.about-media .photo-slot { height: 380px; }
.about-copy { flex: 2 1 420px; min-width: min(320px, 100%); }
.about-copy h2 { font-size: clamp(28px, 3vw, 38px); margin: 0 0 20px; }
.about-copy p { font-size: 17px; line-height: 1.7; color: var(--text-muted); margin: 0 0 28px; }
.tags { display: flex; gap: 12px; flex-wrap: wrap; }
.tag { background: var(--tag-bg); color: var(--tag-text); padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; }

/* Areas */
.areas { max-width: 1200px; margin: 0 auto; padding: 96px 48px; }
.section-intro { max-width: 640px; margin: 0 0 56px; }
.section-intro h2 { font-size: clamp(28px, 3vw, 38px); margin: 0 0 16px; }
.section-intro p { font-size: 17px; line-height: 1.6; color: var(--text-muted-2); margin: 0; }
.areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px; }
.area-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.area-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--tag-bg); display: flex; align-items: center; justify-content: center; }
.area-shape { width: 16px; height: 16px; background: var(--primary); }
.shape-square { border-radius: 3px; }
.shape-circle { border-radius: 50%; }
.area-card h3 { font-size: 22px; }
.area-card p { font-size: 15.5px; line-height: 1.65; color: var(--text-muted-2); margin: 0; flex: 1; }
.area-card > a { font-size: 15px; font-weight: 600; color: var(--primary); margin-top: 4px; }

.cost-callout {
  margin-top: 32px;
  background: var(--tag-bg);
  border-radius: 14px;
  padding: 32px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cost-callout h3 { font-size: 19px; margin: 0 0 8px; }
.cost-callout p { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin: 0; max-width: 520px; }
.cost-callout .btn-primary { flex-shrink: 0; white-space: nowrap; }

/* FAQ */
.faq { background: var(--faq-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.faq-inner { max-width: 760px; margin: 0 auto; padding: 96px 48px; }
.faq-inner h2 { font-size: clamp(28px, 3vw, 38px); margin: 0 0 40px; text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.faq-question span:first-child { font-size: 16px; font-weight: 600; color: var(--text); }
.faq-symbol { font-size: 20px; font-weight: 400; color: var(--primary); flex-shrink: 0; }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.2s ease; overflow: hidden; }
.faq-answer p { font-size: 15.5px; line-height: 1.65; color: var(--text-muted-2); margin: 0; padding: 0 24px; min-height: 0; overflow: hidden; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-item.is-open .faq-answer p { padding: 0 24px 22px; }

/* Contact */
.contact { max-width: 1200px; margin: 0 auto; padding: 96px 48px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 56px; }
.contact-info h2 { font-size: clamp(28px, 3vw, 38px); margin: 0 0 18px; }
.contact-info > p { font-size: 16.5px; line-height: 1.65; color: var(--text-muted-2); margin: 0 0 32px; max-width: 420px; }
.info-list { display: flex; flex-direction: column; gap: 20px; }
.info-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); margin: 0 0 4px; }
.info-value { font-size: 16px; margin: 0; color: oklch(0.3 0.02 75); }

.contact-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 14px; padding: 36px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13.5px; font-weight: 600; color: oklch(0.32 0.02 75); }
.field input, .field select, .field textarea {
  border: 1px solid oklch(0.85 0.015 75);
  border-radius: 7px;
  padding: 11px 13px;
  font-size: 15px;
  font-family: inherit;
  background: var(--input-bg);
  color: var(--text);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.form-success { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px 0; }
.form-success[hidden] { display: none; }
.form-success h3 { font-size: 22px; color: oklch(0.38 0.09 15); }
.form-success p { font-size: 15.5px; line-height: 1.6; color: var(--text-muted-2); margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 48px 100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-legal { text-align: right; }
.footer-note { font-size: 13.5px; color: var(--text-muted-3); margin: 0; }
.footer-credit { font-size: 12px; color: var(--text-muted-3); margin: 4px 0 0; }
.footer-credit a { color: var(--text-muted-3); text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: var(--primary); }

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 60;
  background: var(--primary);
  color: var(--primary-on);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 12px 28px -10px var(--shadow-color);
}
.whatsapp-float:hover { color: var(--primary-on); opacity: 0.92; }

/* Responsive nav */
@media (max-width: 760px) {
  .site-header { padding: 14px 20px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 58;
    height: 100dvh;
    width: min(300px, 85vw);
    margin: 0;
    background: var(--bg-alt);
    border-left: 1px solid var(--border);
    box-shadow: -16px 0 40px var(--shadow-color);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 5.5rem 24px 24px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav a { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-cta { width: 100%; text-align: center; margin-top: 12px; }

  .hero, .about-inner, .areas, .faq-inner, .contact { padding-left: 24px; padding-right: 24px; }

  /* No desktop a seção "Sobre" mostra imagem antes do texto (ordem inversa do
     Hero). Empilhado no mobile isso colocava as duas fotos (hero + sobre)
     uma logo após a outra. Invertendo a ordem aqui, o padrão fica sempre
     texto → imagem, igual ao Hero. */
  .about-copy { order: 1; }
  .about-media { order: 2; }
  .whatsapp-float { right: 16px; bottom: 16px; padding: 12px 18px; font-size: 13.5px; }
  .footer-legal { text-align: left; }
}

/* Páginas de conteúdo longo (páginas de serviço, artigos) — mesmas classes
   usadas pelo blog (admin-app/public/blog/blog.css), duplicadas aqui porque
   o site institucional (nginx) e o blog (Node) são publicados como imagens
   Docker separadas e não compartilham arquivos estáticos entre si. */
.blog-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 48px 56px;
  text-align: center;
}
.blog-hero p.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 16px;
}
.blog-hero h1 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 16px; }
.blog-hero p.lead { font-size: 17px; line-height: 1.6; color: var(--text-muted); margin: 0; }

.blog-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-card .blog-card-date { font-size: 13px; color: var(--text-muted-3); text-transform: uppercase; letter-spacing: 0.04em; }
.blog-card h2 { font-family: 'Source Serif 4', serif; font-size: 21px; font-weight: 600; margin: 0; line-height: 1.3; }
.blog-card p { font-size: 15px; line-height: 1.6; color: var(--text-muted-2); margin: 0; flex: 1; }
.blog-card .blog-card-link { font-size: 14.5px; font-weight: 600; color: var(--primary); }
.blog-card-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted-2);
  font-size: 15.5px;
}

.breadcrumb {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 48px 0;
  font-size: 13.5px;
  color: var(--text-muted-3);
}
.breadcrumb a { color: var(--text-muted-3); }
.breadcrumb a:hover { color: var(--primary); }

.article-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 48px 40px;
}
.article-header .blog-card-date { font-size: 13px; color: var(--text-muted-3); text-transform: uppercase; letter-spacing: 0.04em; display: block; margin-bottom: 14px; }
.article-header h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; margin: 0 0 18px; }
.article-header p.article-dek { font-size: 18px; line-height: 1.6; color: var(--text-muted); margin: 0; }

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 48px 64px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}
.article-body h2 { font-family: 'Source Serif 4', serif; font-size: 26px; font-weight: 600; margin: 44px 0 18px; }
.article-body h3 { font-family: 'Source Serif 4', serif; font-size: 21px; font-weight: 600; margin: 32px 0 14px; }
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text); }

.article-cta {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 36px;
  text-align: center;
  margin-top: 12px;
}
.article-cta h3 { font-family: 'Source Serif 4', serif; font-size: 21px; margin: 0 0 10px; }
.article-cta p { font-size: 15.5px; color: var(--text-muted-2); margin: 0 0 20px; }

.article-disclaimer {
  max-width: 760px;
  margin: 0 auto 64px;
  padding: 0 48px;
  font-size: 13px;
  color: var(--text-muted-3);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

@media (max-width: 640px) {
  .blog-hero, .blog-grid, .breadcrumb, .article-header, .article-body, .article-disclaimer {
    padding-left: 24px;
    padding-right: 24px;
  }
}
