/* ============================================================
   Clayton Fernandes Premium Theme — main.css
   Preto & Dourado · Imersivo · Elementor Ready
   ============================================================ */

/* ── Variáveis ── */
:root {
  --black:      #080808;
  --black2:     #0f0f0f;
  --black3:     #161616;
  --black4:     #1e1e1e;
  --gold:       #c9a84c;
  --gold-light: #e8c96a;
  --gold-pale:  #f5e6b8;
  --gold-dim:   rgba(201,168,76,0.12);
  --gold-bdr:   rgba(201,168,76,0.25);
  --white:      #ffffff;
  --off-white:  #f5f0e8;
  --gray:       #8a8a8a;
  --gray2:      #b0b0b0;
  --serif:      "Playfair Display", Georgia, serif;
  --sans:       "DM Sans", system-ui, sans-serif;
  --nav-h:      72px;
  --max-w:      1280px;
  --pad-x:      6%;
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Remove margens que o WordPress injeta por padrão */
html, body { margin: 0 !important; padding: 0 !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Garantir que não há margin-top do WP */
  margin-top: 0 !important;
  padding-top: 0 !important;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── WordPress: remover espaçamentos automáticos ── */
/* Remove padding gerado pelo Elementor e WP no body */
.elementor-page body,
body.elementor-page { padding-top: 0 !important; }

/* Remove margin-top que o WP adiciona quando não há admin bar */
body:not(.admin-bar) { margin-top: 0 !important; }

/* Bloqueia qualquer padding/margin injetado por plugins no #page, #content, #main */
#page, #content, #main, .site, .site-content { margin: 0; padding: 0; }

/* Remove estilos do WordPress para listas dentro do nav */
.cf-nav ul, .cf-nav li { margin: 0; padding: 0; list-style: none; }

/* ── Utilitários ── */
.cf-gold-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .3;
}
.cf-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.cf-eyebrow__line  { width: 28px; height: 1px; background: var(--gold); flex-shrink: 0; }
.cf-eyebrow__text  { font-size: 11px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }

.cf-section-head { margin-bottom: 60px; }
.cf-section-head .cf-eyebrow { margin-bottom: 18px; }
.cf-section-head h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800; letter-spacing: -.5px; line-height: 1.15;
  margin-bottom: 16px;
}
.cf-section-head p { font-size: 16px; color: var(--gray2); line-height: 1.75; max-width: 500px; font-weight: 300; }

/* ── Botões ── */
.cf-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 16px 32px; border-radius: 4px;
  font-size: 14px; font-weight: 600; letter-spacing: .3px;
  transition: background .2s, color .2s, transform .15s;
  cursor: pointer; border: none;
}
.cf-btn--gold {
  background: var(--gold); color: var(--black);
  box-shadow: 0 8px 36px rgba(201,168,76,.28);
}
.cf-btn--gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.cf-btn--ghost {
  background: transparent; color: var(--gray2);
  border: 1px solid rgba(255,255,255,.14);
}
.cf-btn--ghost:hover { border-color: var(--gold-bdr); color: var(--gold); }

/* ── NAV ── */
.cf-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 9999;
  height: var(--nav-h);
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 var(--pad-x);
  background: rgba(8,8,8,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,168,76,.12);
  transition: background .3s;
}
.cf-nav.scrolled { background: rgba(8,8,8,.99); }

/* Admin bar — apenas o nav se desloca, NÃO o body */
.admin-bar .cf-nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .cf-nav { top: 46px; } }

/* Wordmark — idêntico ao HTML aprovado */
.cf-nav__wordmark {
  font-family: var(--serif);
  font-size: 20px; font-weight: 700;
  color: var(--white) !important;
  white-space: nowrap; flex-shrink: 0;
  text-decoration: none !important;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  display: flex; align-items: center;
}
.cf-nav__wordmark:hover,
.cf-nav__wordmark:focus,
.cf-nav__wordmark:active,
.cf-nav__wordmark:visited {
  color: var(--white) !important;
  text-decoration: none !important;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}
.cf-nav__wordmark span { color: var(--gold); }
.cf-nav__logo-img { height: 44px; width: auto; display: block; }

/* ── Links do menu — wp_nav_menu sem container extra ── */
.cf-nav__links {
  display: flex; gap: 36px;
  margin: 0; padding: 0; list-style: none;
  flex: 1; justify-content: center;   /* centraliza entre logo e CTA */
}
.cf-nav__links li {
  margin: 0; padding: 0; list-style: none;
  position: relative;
}
/* Remove sub-menus desnecessários no estilo desktop */
.cf-nav__links .sub-menu { display: none; }

.cf-nav__links a,
.cf-nav__links a:visited {
  color: var(--gray) !important;
  font-size: 13px; letter-spacing: .5px;
  font-weight: 400; font-family: var(--sans);
  text-decoration: none !important;
  background: none; border: none;
  transition: color .2s;
  display: block; padding: 4px 0;
}
.cf-nav__links a:hover,
.cf-nav__links li.current-menu-item > a { color: var(--gold) !important; }

/* CTA botão */
.cf-nav__cta {
  display: flex; align-items: center; gap: 8px;
  color: var(--gold) !important;
  border: 1px solid var(--gold-bdr) !important;
  padding: 10px 22px; border-radius: 4px;
  font-size: 13px; font-weight: 500; letter-spacing: .5px;
  white-space: nowrap; text-decoration: none !important;
  transition: background .2s, color .2s; flex-shrink: 0;
}
.cf-nav__cta:hover { background: var(--gold) !important; color: var(--black) !important; }

/* Burger mobile */
.cf-nav__burger {
  display: none; order: 3;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.cf-nav__burger span { display: block; width: 22px; height: 2px; background: var(--gray2); transition: .3s; border-radius: 2px; }
.cf-nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cf-nav__burger.open span:nth-child(2) { opacity: 0; }
.cf-nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.cf-hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-top: var(--nav-h);
  background: var(--black);
  overflow: hidden;
}
.cf-hero__left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px var(--pad-x) 80px;
}
.cf-hero__left .cf-eyebrow { margin-bottom: 26px; }
.cf-hero__title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 800; line-height: 1.08; letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.cf-hero__title em { font-style: italic; color: var(--gold); }
.cf-hero__desc {
  font-size: 16px; color: var(--gray2); line-height: 1.8;
  max-width: 440px; margin-bottom: 44px; font-weight: 300;
}
.cf-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }
.cf-hero__stats { display: flex; gap: 0; }
.cf-hero__stat { padding: 0 36px 0 0; border-right: 1px solid rgba(255,255,255,.08); }
.cf-hero__stat:first-child { padding-left: 0; }
.cf-hero__stat:last-child { border-right: none; }
.cf-hero__stat + .cf-hero__stat { padding-left: 36px; }
.cf-hero__stat-num  { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 6px; }
.cf-hero__stat-label { font-size: 11px; color: var(--gray); letter-spacing: .5px; line-height: 1.4; }
.cf-hero__stats-sep { /* used in PHP loop */ display: none; }

/* Hero Right — imersivo */
.cf-hero__right {
  position: relative; overflow: hidden;
  min-height: calc(100vh - var(--nav-h));
}
.cf-hero__right img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: brightness(.88) contrast(1.05) saturate(.9);
}
.cf-hero__right::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--black) 0%, transparent 22%, transparent 78%, rgba(8,8,8,.45) 100%);
  z-index: 1; pointer-events: none;
}
.cf-hero__right::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(transparent, var(--black));
  z-index: 1; pointer-events: none;
}
.cf-hero__gold-tag {
  position: absolute; top: 36px; left: 32px; z-index: 3;
  background: var(--gold); color: var(--black);
  padding: 8px 16px; border-radius: 3px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
}
.cf-hero__float {
  position: absolute; bottom: 48px; right: 32px; z-index: 3;
  background: rgba(8,8,8,.94);
  border: 1px solid var(--gold-bdr);
  border-radius: 6px; padding: 18px 22px;
  backdrop-filter: blur(8px);
  animation: cfFloat 4s ease-in-out infinite;
}
@keyframes cfFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.cf-hero__float-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); margin-bottom: 5px; }
.cf-hero__float-value { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--gold); }
.cf-hero__float-sub   { font-size: 11px; color: var(--gray); margin-top: 4px; }

/* ── TRUST STRIP ── */
.cf-trust {
  background: var(--black2);
  padding: 30px var(--pad-x);
  display: flex; align-items: center; justify-content: center;
  gap: 52px; flex-wrap: wrap;
}
.cf-trust__item { text-align: center; }
.cf-trust__num   { font-family: var(--serif); font-size: 27px; font-weight: 700; color: var(--gold); }
.cf-trust__label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--gray); margin-top: 4px; }
.cf-trust__sep   { width: 1px; height: 42px; background: rgba(201,168,76,.14); }

/* ── SERVICES ── */
.cf-services { padding: 110px var(--pad-x); background: var(--black); }
.cf-services__grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 2px;
  border: 1px solid rgba(201,168,76,.08); border-radius: 8px; overflow: hidden;
}
.cf-svc-card {
  background: var(--black2); padding: 36px 30px;
  position: relative; transition: background .25s;
}
.cf-svc-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity .3s;
}
.cf-svc-card:hover { background: var(--black3); }
.cf-svc-card:hover::before { opacity: 1; }
.cf-svc-card__num {
  font-family: var(--serif); font-size: 38px; font-weight: 700;
  color: rgba(201,168,76,.2); line-height: 1; margin-bottom: 16px;
}
.cf-svc-card h3 { font-family: var(--serif); font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.cf-svc-card p  { font-size: 14px; color: var(--gray); line-height: 1.7; margin-bottom: 20px; font-weight: 300; }
.cf-svc-card__tag {
  display: inline-block;
  border: 1px solid var(--gold-bdr); color: var(--gold);
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 3px;
}

/* ── ABOUT ── */
.cf-about {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 88vh; overflow: hidden;
}
.cf-about__img { position: relative; overflow: hidden; }
.cf-about__img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: brightness(.82) contrast(1.08) saturate(.85);
}
.cf-about__img::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 50%;
  background: linear-gradient(90deg, transparent, var(--black));
  pointer-events: none;
}
.cf-about__content {
  background: var(--black);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 8% 100px 7%;
}
.cf-about__content .cf-eyebrow { margin-bottom: 18px; }
.cf-about__content h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 800; line-height: 1.15; margin-bottom: 22px;
}
.cf-about__content h2 em { font-style: italic; color: var(--gold); }
.cf-about__content > p { font-size: 15px; color: var(--gray2); line-height: 1.85; margin-bottom: 34px; font-weight: 300; }
.cf-about__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.cf-about__pill {
  background: var(--gold-dim); border: 1px solid var(--gold-bdr); color: var(--gold);
  font-size: 12px; font-weight: 500; letter-spacing: .4px;
  padding: 7px 16px; border-radius: 3px;
}
.cf-about__award {
  display: flex; align-items: center; gap: 16px;
  background: var(--black2); border: 1px solid var(--gold-bdr);
  border-radius: 6px; padding: 18px 22px;
}
.cf-about__award-icon { font-size: 28px; }
.cf-about__award h4  { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--gold); margin-bottom: 3px; }
.cf-about__award p   { font-size: 12px; color: var(--gray); font-weight: 300; }

/* ── HOW ── */
.cf-how { padding: 110px var(--pad-x); background: var(--black2); }
.cf-how .cf-section-head .cf-eyebrow { margin-bottom: 18px; }
.cf-how__grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  position: relative; margin-top: 60px;
}
.cf-how__grid::before {
  content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bdr) 30%, var(--gold-bdr) 70%, transparent);
}
.cf-how__step { text-align: center; padding: 0 16px; position: relative; z-index: 1; }
.cf-how__num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--black2); border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--gold);
}
.cf-how__step h4 { font-family: var(--serif); font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.cf-how__step p  { font-size: 13px; color: var(--gray); line-height: 1.7; font-weight: 300; }

/* ── CTA ── */
.cf-cta {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 80vh; overflow: hidden;
  border-top: 1px solid rgba(201,168,76,.1);
}
.cf-cta__img { position: relative; overflow: hidden; }
.cf-cta__img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: brightness(.75) contrast(1.1) saturate(.8);
}
.cf-cta__img::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 55%;
  background: linear-gradient(90deg, transparent, var(--black));
  pointer-events: none;
}
.cf-cta__content {
  background: var(--black);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 8% 100px 7%;
}
.cf-cta__content .cf-eyebrow { margin-bottom: 18px; }
.cf-cta__content h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 800; line-height: 1.15; margin-bottom: 18px;
}
.cf-cta__content h2 em { font-style: italic; color: var(--gold); }
.cf-cta__content > p { font-size: 16px; color: var(--gray2); line-height: 1.8; margin-bottom: 32px; font-weight: 300; }
.cf-cta__list { margin-bottom: 40px; }
.cf-cta__list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--gray2); margin-bottom: 14px; font-weight: 300;
}
.cf-check {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold-dim); border: 1px solid var(--gold-bdr);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--gold); font-weight: 700;
}
.cf-cta__note { font-size: 12px; color: var(--gray); margin-top: 14px; letter-spacing: .5px; }

/* ── FOOTER ── */
.cf-footer {
  background: #030810;
  border-top: 1px solid rgba(201,168,76,.08);
  padding: 34px var(--pad-x);
}
.cf-footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.cf-footer__logo { font-family: var(--serif); font-size: 18px; font-weight: 700; }
.cf-footer__logo span { color: var(--gold); }
.cf-footer__copy { font-size: 12px; color: #2a2a2a; letter-spacing: .5px; }

/* ── WhatsApp FAB ── */
.cf-wa-fab {
  position: fixed; bottom: 30px; right: 30px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(37,211,102,.42);
  transition: transform .2s;
}
.cf-wa-fab:hover { transform: scale(1.1); }

/* ── Elementor integration ── */
.elementor-page .cf-nav  { position: fixed !important; top: 0; }
.admin-bar.elementor-page .cf-nav { top: 32px; }
.elementor-section-wrap  { padding-top: 0 !important; margin-top: 0 !important; }
/* Remove padding que Elementor adiciona ao primeiro section */
.elementor-section:first-child { margin-top: 0 !important; }

/* ── WordPress: forçar nav colada ao topo ── */
/* Remove qualquer margin/padding injetado pelo WP no body antes do nosso CSS */
html:not(.admin-bar) body { margin-top: 0 !important; }
html { margin-top: 0 !important; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .cf-services__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .cf-hero    { grid-template-columns: 1fr; }
  .cf-hero__right  { display: none; }
  .cf-hero__left   { padding: 60px var(--pad-x) 80px; }
  .cf-hero__stats  { flex-direction: column; gap: 24px; }
  .cf-hero__stat   { border: none; padding: 0 !important; }
  .cf-about        { grid-template-columns: 1fr; }
  .cf-about__img   { height: 65vw; }
  .cf-about__img::after { display: none; }
  .cf-cta          { grid-template-columns: 1fr; }
  .cf-cta__img     { height: 65vw; }
  .cf-how__grid    { grid-template-columns: 1fr 1fr; gap: 40px; }
  .cf-how__grid::before { display: none; }

  /* Nav mobile */
  .cf-nav { gap: 16px; }
  .cf-nav__links   { display: none; } /* escondido — aparece via .open no wrapper */
  .cf-nav__burger  { display: flex; }
  .cf-nav__cta     { display: none; } /* esconde CTA no mobile — já tem FAB */

  /* Wrapper mobile gerado pelo JS */
  .cf-nav__mobile {
    display: none; /* escondido por padrão */
  }
  .cf-nav__mobile.open {
    display: block;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(8,8,8,.98);
    border-bottom: 1px solid var(--gold-bdr);
    padding: 24px var(--pad-x) 32px;
    z-index: 9998;
  }
  .admin-bar .cf-nav__mobile.open { top: calc(var(--nav-h) + 32px); }
  @media screen and (max-width: 782px) {
    .admin-bar .cf-nav__mobile.open { top: calc(var(--nav-h) + 46px); }
  }

  /* Quando aberto, mostrar links em coluna */
  .cf-nav__mobile.open .cf-nav__links {
    display: flex; flex-direction: column; gap: 0;
  }
  .cf-nav__mobile.open .cf-nav__links li {
    border-bottom: 1px solid rgba(201,168,76,.08);
  }
  .cf-nav__mobile.open .cf-nav__links a {
    font-size: 16px !important; padding: 14px 0 !important;
    color: var(--gray2) !important;
  }
  .cf-nav__mobile.open .cf-nav__links a:hover { color: var(--gold) !important; }

  /* Footer e trust */
  .cf-footer__inner { flex-direction: column; text-align: center; }
  .cf-trust { gap: 28px; }
  .cf-trust__sep { display: none; }
}
@media (max-width: 600px) {
  .cf-services__grid { grid-template-columns: 1fr; border: none; }
  .cf-how__grid      { grid-template-columns: 1fr; }
  :root { --pad-x: 5%; }
}

/* ── Menu do Rodapé ── */
.cf-footer__links {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin: 0; padding: 0; list-style: none;
  justify-content: center;
}
.cf-footer__links li { margin: 0; padding: 0; }
.cf-footer__links a {
  font-size: 13px; color: #444; text-decoration: none;
  transition: color .2s; letter-spacing: .5px;
}
.cf-footer__links a:hover { color: var(--gold); }

/* ── #cf-main: sem padding/margin extras ── */
#cf-main {
  margin: 0; padding: 0;
  /* Empurra o conteúdo para baixo do nav fixo quando Elementor não usa Canvas */
  /* Se a página usar template Canvas, isso não se aplica */
}

/* ── Elementor: respeitar nav fixo ── */
.elementor-section-wrap > .elementor-section:first-child,
.elementor-section-wrap > .e-con:first-child {
  margin-top: 0 !important;
}

/* ── Redes Sociais no Nav ── */
.cf-nav__social {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto; /* empurra para direita, antes do CTA */
}
.cf-nav__social-link {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  color: var(--gray);
  border: 1px solid rgba(255,255,255,0.08);
  transition: color .2s, border-color .2s, background .2s;
  text-decoration: none !important;
  flex-shrink: 0;
}
.cf-nav__social-link:hover {
  color: var(--gold) !important;
  border-color: var(--gold-bdr);
  background: rgba(201,168,76,0.08);
}
/* Mobile: esconder no burger */
@media (max-width: 900px) {
  .cf-nav__social { display: none; }
}
