/*
Site: Dr. Bernardo Perondi — onepage estático
Identidade: Matéria e Grão
Versão: 3.0 (migrado de WordPress para HTML estático)
*/

/* ============================================
   TOKENS
   ============================================ */
:root {
  --bg-main: #EFE4D3;
  --bg-soft: #DCD7C6;
  --surface-warm: #E7D9C2;
  --brand-green: #5C7355;
  --brand-deep: #2F4135;
  --brand-ochre: #B89B6C;
  --brand-urucum: #A5533E;
  --text-main: #292D29;
  --text-soft: #5D5A53;
  --border-soft: #CFC3B4;
  --font-heading: 'Alegreya', Georgia, serif;
  --font-body: 'Source Sans 3', Arial, sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--brand-deep);
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.15;
}
h1 { font-size: clamp(48px, 6.5vw, 80px); line-height: 1.0; font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: clamp(20px, 2.5vw, 24px); }
p  { margin-bottom: 1.25rem; }
a  { color: var(--brand-green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-deep); }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
section { padding: 96px 0; }
.section-alt  { background: var(--bg-soft); }
.section-dark { background: var(--brand-deep); }
.section-dark h2, .section-dark h3 { color: var(--bg-main); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-body);
  text-decoration: none;
  transition: all .25s;
  cursor: pointer;
  border: none;
  letter-spacing: .02em;
}
.btn-primary { background: var(--brand-urucum); color: #fff; }
.btn-primary:hover { background: #8a4533; color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--brand-deep); color: var(--brand-deep); }
.btn-outline:hover { background: var(--brand-deep); color: var(--bg-main); }
.btn-outline-light { background: transparent; border: 1.5px solid rgba(239,228,211,.4); color: var(--bg-main); }
.btn-outline-light:hover { background: rgba(239,228,211,.12); color: var(--bg-main); }

/* ============================================
   HEADER & NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: var(--brand-deep);
  z-index: 1000;
  padding: 14px 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-branding a {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  color: var(--bg-main);
  text-decoration: none;
}
.site-branding a span {
  color: var(--brand-ochre);
  font-style: italic;
  font-weight: 400;
}
.main-navigation ul { list-style: none; display: flex; gap: 28px; }
.main-navigation a {
  font-size: 14px;
  font-weight: 400;
  color: rgba(239,228,211,.7);
  text-decoration: none;
  letter-spacing: .02em;
  transition: color .2s;
}
.main-navigation a:hover { color: var(--bg-main); }
.header-cta .btn { padding: 9px 22px; font-size: 14px; }

/* ============================================
   HAMBURGER MENU
   ============================================ */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bg-main);
  border-radius: 2px;
  transition: all .3s ease;
  transform-origin: center;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-navigation {
  display: none;
  background: var(--brand-deep);
  border-top: 1px solid rgba(239,228,211,.1);
  padding: 20px 32px;
}
.mobile-navigation.open { display: block; }
.mobile-navigation ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-navigation li a {
  display: block;
  padding: 12px 0;
  font-size: 17px;
  font-weight: 400;
  color: rgba(239,228,211,.8);
  border-bottom: 1px solid rgba(239,228,211,.08);
  text-decoration: none;
}
.mobile-navigation li:last-child a { border-bottom: none; }

/* ============================================
   HERO
   ============================================ */
.hero-section {
  padding: 150px 0 90px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--bg-main);
}
.hero-kicker {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand-urucum);
  margin-bottom: 24px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: center;
}
.hero-portrait-wrap { flex-shrink: 0; }
.hero-portrait {
  width: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  aspect-ratio: 1/1;
  display: block;
  box-shadow: 0 12px 48px rgba(0,0,0,.2);
}
.hero-section h1 { max-width: 820px; margin-bottom: 0; }
.hero-section h1 em { font-style: italic; font-weight: 400; color: var(--brand-green); }
.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--brand-urucum);
  margin: 32px 0;
  border-radius: 2px;
}
.hero-sub {
  font-size: 19px;
  color: var(--text-soft);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-meta { font-size: 13px; color: var(--text-soft); letter-spacing: .04em; margin: 0; }

/* Linha urucum pós-hero */
.urucum-line {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-urucum) 0%, var(--brand-ochre) 40%, transparent 100%);
}

/* ============================================
   TRUST BLOCK (dark)
   ============================================ */
.trust-block {
  background: var(--brand-deep);
  padding: 48px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.trust-item { text-align: center; }
.trust-icon {
  width: 44px; height: 44px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
}
.trust-icon svg { width: 28px; height: 28px; stroke: var(--brand-ochre); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.trust-item h4 { font-family: var(--font-heading); font-size: 17px; color: var(--bg-main); margin-bottom: 6px; font-weight: 600; }
.trust-item p  { font-size: 13px; color: rgba(239,228,211,.6); margin: 0; }

/* ============================================
   SECTION LABEL (caps)
   ============================================ */
.section-cap {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand-urucum);
  margin-bottom: 16px;
}
.section-cap-light { color: var(--brand-ochre); }

/* ============================================
   PARA QUEM — cards-solid
   ============================================ */
.cards-solid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 48px;
}
.card-solid {
  background: var(--surface-warm);
  padding: 36px 28px;
  position: relative;
}
.card-solid:first-child { border-radius: 16px 0 0 16px; }
.card-solid:last-child  { border-radius: 0 16px 16px 0; }
.card-solid::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--brand-green);
}
.card-solid h3 { font-size: 21px; color: var(--brand-deep); margin-bottom: 10px; font-weight: 700; }
.card-solid p  { font-size: 15px; color: var(--text-soft); margin: 0; line-height: 1.6; }

/* ============================================
   ABORDAGEM — dark com pull quote
   ============================================ */
.abordagem-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 72px;
  align-items: start;
}
.pull-quote {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.8vw, 36px);
  font-style: italic;
  color: var(--brand-ochre);
  line-height: 1.25;
  font-weight: 400;
  position: relative;
  padding-left: 24px;
}
.pull-quote::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  background: var(--brand-urucum);
  border-radius: 2px;
}
.abordagem-body p { font-size: 17px; color: rgba(239,228,211,.8); line-height: 1.7; margin-bottom: 20px; }

/* ============================================
   ÁREAS — chips
   ============================================ */
.areas-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.area-chip {
  background: var(--bg-main);
  border: 1.5px solid var(--border-soft);
  padding: 12px 22px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--brand-deep);
  font-weight: 600;
  transition: all .2s;
}
.section-alt .area-chip { background: var(--surface-warm); }
.area-chip:hover { background: var(--brand-deep); color: var(--bg-main); border-color: var(--brand-deep); }

/* ============================================
   CETAMINA — dark noise
   ============================================ */
.cetamina-section {
  background: var(--brand-deep);
  padding: 96px 0;
  position: relative;
}
.cetamina-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") repeat;
  background-size: 120px;
  opacity: .04;
  pointer-events: none;
}
.cetamina-inner { max-width: 860px; position: relative; z-index: 1; }
.cetamina-section h2 { font-size: clamp(30px, 4vw, 46px); color: var(--bg-main); margin-bottom: 24px; }
.cetamina-section p  { font-size: 17px; color: rgba(239,228,211,.78); line-height: 1.7; max-width: 720px; margin-bottom: 18px; }

/* ============================================
   SOBRE
   ============================================ */
.sobre-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 72px;
  align-items: start;
}
.sobre-bio p { font-size: 17px; color: var(--text-soft); line-height: 1.75; margin-bottom: 20px; }
.creds-box {
  background: var(--surface-warm);
  border-radius: 16px;
  padding: 32px;
  border-top: 3px solid var(--brand-green);
}
.creds-box h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--brand-deep);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: .04em;
}
.cred-row { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.cred-row:last-child { margin-bottom: 0; }
.cred-dash { color: var(--brand-green); font-weight: 700; margin-top: 1px; flex-shrink: 0; }
.cred-row p { font-size: 14px; color: var(--text-soft); margin: 0; line-height: 1.5; }
.crm-strip {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: .04em;
}

/* ============================================
   SOBRE — FOTO E GALERIA
   ============================================ */
.sobre-foto-wrap {
  margin-top: 56px;
  text-align: center;
}
.sobre-foto {
  width: 100%;
  max-width: 720px;
  height: 400px;
  object-fit: cover;
  object-position: center 50%;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}
.sobre-foto-legenda {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.galeria-section { padding: 64px 0; }
.galeria-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.galeria-item { position: relative; overflow: hidden; border-radius: 4px; }
.galeria-item img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease;
}
.galeria-item:first-child img { object-position: 30% 38%; }
.galeria-item:last-child img  { object-position: center 52%; }
.galeria-item:hover img { transform: scale(1.03); }
.galeria-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  font-size: 13px;
  color: #fff;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ============================================
   ATENDIMENTO
   ============================================ */
.atend-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.atend-block {
  padding: 32px;
  border-radius: 12px;
  background: var(--surface-warm);
  border-bottom: 3px solid var(--brand-ochre);
}
.atend-block h3 { font-size: 22px; color: var(--brand-deep); margin-bottom: 10px; }
.atend-block p  { font-size: 15px; color: var(--text-soft); margin: 0; }
.cta-center { text-align: center; margin-top: 56px; }

/* ============================================
   FAQ
   ============================================ */
.faq-max { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-soft); padding: 22px 0; }
.faq-question {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--brand-deep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
}
.faq-toggle {
  width: 32px; height: 32px;
  border: 1.5px solid var(--border-soft);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text-soft);
  flex-shrink: 0;
  transition: all .2s;
  font-family: var(--font-body);
  font-weight: 300;
}
.faq-item.active .faq-toggle {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: var(--bg-main);
}
.faq-answer { margin-top: 14px; font-size: 16px; color: var(--text-soft); line-height: 1.7; display: none; }
.faq-item.active .faq-answer { display: block; }

/* ============================================
   CTA FINAL
   ============================================ */
.cta-final-section {
  background: var(--brand-deep);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final-section::before {
  content: '────────────────────';
  display: block;
  color: var(--brand-urucum);
  font-size: 12px;
  letter-spacing: .3em;
  opacity: .4;
  margin-bottom: 40px;
}
.cta-final-section h2 { font-size: clamp(32px, 4vw, 52px); color: var(--bg-main); margin-bottom: 16px; font-style: italic; }
.cta-final-section p  { font-size: 17px; color: rgba(239,228,211,.7); margin-bottom: 40px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #1e2b22;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-col h4 { font-family: var(--font-heading); color: var(--brand-ochre); font-size: 16px; margin-bottom: 14px; font-weight: 700; }
.footer-col p, .footer-col a { font-size: 14px; color: rgba(239,228,211,.6); text-decoration: none; line-height: 2; }
.footer-col a:hover { color: var(--bg-main); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(239,228,211,.07);
  text-align: center;
  font-size: 12px;
  color: rgba(239,228,211,.35);
  line-height: 1.8;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9001;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 13px 20px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  transition: all .3s ease;
}
.whatsapp-float:hover { background: #1ebe5d; color: #fff; transform: translateY(-2px); }
.whatsapp-float svg { flex-shrink: 0; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .main-navigation { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .abordagem-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-section { padding: 110px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-portrait-wrap { display: flex; justify-content: center; order: -1; }
  .hero-portrait { max-width: 180px; }
  .hero-actions { flex-direction: column; }
  .cards-solid { grid-template-columns: 1fr; gap: 12px; }
  .card-solid { border-radius: 12px !important; }
  .areas-flow { gap: 10px; }
  .sobre-grid { grid-template-columns: 1fr; }
  .galeria-grid { grid-template-columns: 1fr; }
  .galeria-item img { height: 260px; }
  .sobre-foto { height: 260px; }
  .atend-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .whatsapp-float .float-label { display: none; }
  .whatsapp-float { padding: 13px; border-radius: 50%; }
}

@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PÁGINAS INTERNAS (legal / 404)
   ============================================ */
.legal-section { padding: 140px 0 96px; }
.legal-max { max-width: 720px; margin: 0 auto; }
.legal-max h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 8px; }
.legal-max h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  color: var(--brand-deep);
}
.legal-max p { color: var(--text-soft); line-height: 1.75; margin-bottom: 14px; }
.legal-max a:not(.btn) { color: var(--brand-urucum); }
.legal-date {
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 32px !important;
}

.erro-section { padding: 160px 0 120px; text-align: center; }
.erro-section h1 { font-size: clamp(60px, 10vw, 110px); color: var(--brand-green); line-height: 1; }
.erro-section h2 { margin: 16px 0 12px; }
.erro-section p { color: var(--text-soft); max-width: 480px; margin: 0 auto 32px; }

@media (max-width: 768px) {
  .legal-section { padding: 110px 0 64px; }
  .erro-section { padding: 120px 0 80px; }
}
