/* ============================================================
   DRH 247 — estilos do tema
   (cabeçalho, rodapé, páginas comuns e ajustes do Elementor)
   As seções da página inicial são estilizadas dentro do Elementor.
   ============================================================ */

:root {
  --drh-ink: #190504;
  --drh-ink-800: #241009;
  --drh-umber: #33100a;
  --drh-terra: #481206;
  --drh-gold: #a6713b;
  --drh-marigold: #ffd074;
  --drh-gold-700: #7a4f22;
  --drh-gold-400: #c08f5c;
  --drh-paper: #faf8f4;
  --drh-line: #e5e0d6;
  --drh-line-strong: #d2cabb;
  --drh-fg2: #3b3d57;
  --drh-border-dark: #6e3c28;
  --drh-text-dark: #dccfc3;
  --drh-offwhite: #f4f1ea;
  --drh-font: "Crimson Pro", Georgia, "Times New Roman", serif;
  --drh-header-h: 76px;
  --drh-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--drh-paper);
  color: var(--drh-ink);
  font-family: var(--drh-font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--drh-gold-700); text-decoration: none; }
a:hover { color: var(--drh-ink); text-decoration: underline; text-decoration-color: var(--drh-gold); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--drh-gold); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--drh-header-h) + 8px); }
.admin-bar [id] { scroll-margin-top: calc(var(--drh-header-h) + 40px); }

.drh-skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--drh-marigold); color: var(--drh-ink); padding: 10px 16px; border-radius: 8px;
}
.drh-skip:focus { left: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* ---------- botões do tema (cabeçalho / barra do celular) ---------- */
.drh-btn {
  font: 600 16px/1.2 var(--drh-font);
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform 140ms var(--drh-ease), background 240ms var(--drh-ease), filter 240ms var(--drh-ease);
}
.drh-btn:hover { text-decoration: none; transform: translateY(-1px); }
.drh-btn:active { transform: translateY(1px) scale(.99); }
.drh-btn--primary, .drh-btn--primary:hover { background: var(--drh-marigold); color: var(--drh-ink); }
.drh-btn--primary:hover { filter: brightness(.94); }

/* ---------- cabeçalho ---------- */
.drh-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(25, 5, 4, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--drh-border-dark);
}
.admin-bar .drh-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .drh-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .drh-header { top: 0; } }

.drh-header__inner {
  max-width: 1244px; margin: 0 auto; padding: 0 32px;
  height: var(--drh-header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.drh-brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; flex: none; }
.drh-brand__logo { height: 34px; width: auto; display: block; }
.drh-brand__text { font: 600 21px/1 var(--drh-font); letter-spacing: -.01em; color: var(--drh-offwhite); white-space: nowrap; }
.drh-brand__text span { color: var(--drh-gold); }

.drh-nav ul, .drh-drawer ul, .drh-footer__list { list-style: none; margin: 0; padding: 0; }
.drh-nav__list { display: flex; align-items: center; gap: 26px; }
.drh-nav a { font: 500 16px/1 var(--drh-font); color: var(--drh-text-dark); }
.drh-nav a:hover, .drh-nav .current-menu-item > a { color: var(--drh-gold-400); text-decoration: none; }

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

.drh-menu-btn {
  display: none;
  width: 44px; height: 44px; place-items: center;
  border: 1px solid var(--drh-border-dark); border-radius: 10px;
  background: transparent; color: var(--drh-offwhite); cursor: pointer; padding: 0;
}
.drh-menu-btn[aria-expanded="false"] .ic-close,
.drh-menu-btn[aria-expanded="true"] .ic-menu { display: none; }

.drh-drawer {
  border-top: 1px solid var(--drh-border-dark);
  padding: 8px 32px 24px;
  background: var(--drh-ink);
  max-height: calc(100vh - var(--drh-header-h));
  overflow-y: auto;
}
.drh-drawer[hidden] { display: none !important; }
.drh-drawer li a {
  display: block; padding: 15px 0;
  font: 500 19px/1 var(--drh-font); color: var(--drh-text-dark);
  border-bottom: 1px solid #4a2418;
}
.drh-drawer li:last-child a { border-bottom: 0; }
.drh-drawer a:hover { color: var(--drh-gold-400); text-decoration: none; }

@media (min-width: 1100px) { .drh-drawer { display: none !important; } }
@media (max-width: 1099px) {
  .drh-nav { display: none; }
  .drh-menu-btn { display: grid; }
}
@media (max-width: 767px) {
  .drh-header__inner { padding: 0 20px; height: 64px; }
  :root { --drh-header-h: 64px; }
  .drh-header__cta { display: none; }
  .drh-drawer { padding: 4px 20px 20px; }
}

/* ---------- rodapé ---------- */
.drh-footer { background: var(--drh-ink); color: var(--drh-text-dark); padding-top: 64px; }
.drh-footer__inner { max-width: 1244px; margin: 0 auto; padding: 0 32px 24px; }
.drh-footer__cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid #4a2418;
}
.drh-footer__brand { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.drh-footer__brand p { margin: 0; font-size: 16px; color: var(--drh-text-dark); max-width: 280px; line-height: 1.55; }
.drh-footer__list { display: flex; flex-direction: column; gap: 11px; }
.drh-footer__list a { font-size: 15.5px; color: var(--drh-text-dark); }
.drh-footer__list a:hover { color: var(--drh-gold-400); text-decoration: none; }
.drh-footer__list--extra li + li { margin-top: 12px; }
.drh-footer__note { display: block; font-size: 14.5px; color: #b9a99b; margin-top: 4px; }
.drh-footer__bottom { padding-top: 22px; color: #b9a99b; font-size: 14px; }
@media (max-width: 767px) {
  .drh-footer { padding-top: 48px; }
  .drh-footer__inner { padding: 0 20px 24px; }
  .drh-footer__cols { gap: 32px; }
}

/* ---------- barra fixa do celular ---------- */
.drh-phonebar { display: none; }
@media (max-width: 767px) {
  .drh-phonebar {
    display: flex; justify-content: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(25, 5, 4, .95);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--drh-border-dark);
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  }
  .drh-phonebar .drh-btn { width: 100%; max-width: 420px; }
  body.has-drh-phonebar { padding-bottom: 72px; }
  body.elementor-editor-active .drh-phonebar { display: none; }
}

/* ---------- páginas comuns, posts e blog ---------- */
.drh-page { max-width: 860px; margin: 0 auto; padding: 72px 32px 96px; }
.drh-page__header { margin-bottom: 32px; }
.drh-page__title { font: 400 clamp(34px, 4.4vw, 52px)/1.08 var(--drh-font); letter-spacing: -.012em; color: var(--drh-ink); margin: 0; }
.drh-meta { color: #8b8678; font-size: 15px; margin: 10px 0 0; }
.drh-thumb { margin: 0 0 32px; }
.drh-thumb img { border-radius: 18px; display: block; width: 100%; }
.drh-content { font-size: 19px; line-height: 1.68; color: var(--drh-fg2); }
.drh-content h2, .drh-content h3, .drh-content h4 { color: var(--drh-ink); font-weight: 500; line-height: 1.15; margin: 1.6em 0 .5em; }
.drh-content h2 { font-size: clamp(28px, 3.4vw, 40px); }
.drh-content h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; }
.drh-content img { border-radius: 14px; }
.drh-content blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid var(--drh-gold); font-style: italic; color: var(--drh-ink); }
.drh-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.drh-card { background: #fff; border: 1px solid var(--drh-line); border-radius: 18px; padding: 24px; }
.drh-card__img img { border-radius: 12px; display: block; width: 100%; margin-bottom: 16px; }
.drh-card__title { font: 500 26px/1.15 var(--drh-font); margin: 8px 0 10px; }
.drh-card__title a { color: var(--drh-ink); }
.drh-card__excerpt { color: var(--drh-fg2); }
.nav-links { display: flex; gap: 12px; margin-top: 40px; }
@media (max-width: 767px) { .drh-page { padding: 48px 20px 72px; } }

/* ============================================================
   Ajustes para os widgets do Elementor (página inicial)
   ============================================================ */

/* Botões: leve elevação ao passar o mouse e quebra de linha no celular */
.drh-btn-el .elementor-button {
  transition: transform 140ms var(--drh-ease), background-color 240ms var(--drh-ease), border-color 240ms var(--drh-ease), color 240ms var(--drh-ease);
}
.drh-btn-el .elementor-button:hover { transform: translateY(-1px); text-decoration: none; }
.drh-btn-el .elementor-button:active { transform: translateY(1px) scale(.99); }
@media (max-width: 767px) {
  .elementor-button { white-space: normal; }
  .elementor-button .elementor-button-text { text-align: center; }
}

/* Botão sempre no pé do cartão (cartões de planos) */
.e-con > .drh-push-bottom,
.drh-push-bottom { margin-top: auto !important; padding-top: 28px; }

/* Proporção das fotos (troque a imagem no Elementor; o recorte se mantém) */
.drh-ratio-45 img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; height: auto; }
.drh-ratio-34 img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; height: auto; }

/* Faixa dourada no topo do cartão do teste */
.drh-top-gold { border-top-color: var(--drh-gold) !important; }

/* Textos */
.elementor-widget-text-editor p { margin: 0 0 1em; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.elementor-widget-heading .elementor-heading-title { text-wrap: balance; }
.elementor-widget-text-editor { text-wrap: pretty; }
.drh-link { text-decoration: underline; text-decoration-color: var(--drh-gold); text-underline-offset: 3px; }

/* Destaque de textos pendentes ("[prazo a definir]" etc.) */
mark.drh-pendente {
  background: #fff1b8; color: var(--drh-ink);
  border: 1px dashed #a9741f; border-radius: 4px; padding: 0 5px; font-style: normal;
}

/* Perguntas frequentes (widget Alternar / Toggle) */
.drh-faq .elementor-toggle { border-top: 1px solid var(--drh-line-strong); }
.drh-faq .elementor-toggle-item { border-bottom: 1px solid var(--drh-line-strong); }
.drh-faq .elementor-tab-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 0 !important; cursor: pointer; }
.drh-faq .elementor-tab-title .elementor-toggle-title { order: 0; flex: 1; }
.drh-faq .elementor-tab-title .elementor-toggle-icon {
  order: 1; flex: none; width: 36px; height: 36px;
  border: 1px solid var(--drh-line-strong); border-radius: 999px;
  display: grid !important; place-items: center; float: none !important; margin: 0 !important;
}
.drh-faq .elementor-toggle-icon i, .drh-faq .elementor-toggle-icon svg { font-size: 14px; width: 14px; height: 14px; }
.drh-faq .elementor-tab-content { border: 0 !important; }
.drh-faq a.elementor-toggle-title { color: inherit; text-decoration: none; }

/* Cards com mesma altura dentro das grades */
.e-grid > .e-con { height: 100%; }

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
