/* Site Fênix Sorriso em /fenix (carregado depois de style.css). Tudo sob .fx-* para não afetar os painéis do Acesso do Cliente. */
:root {
  --fx-bg: #312e29;
  --fx-header: #33302c;
  --fx-surface: #45423e;
  --fx-cream: #e7e1d8;
  --fx-ink: #463939;
  --fx-wine: #6f1a21;
  --fx-gold: #c99a3a;
  --fx-line: #86827c;
  --fx-border: #756e68;
  --fx-meta: #836859;
  --fx-grad-card: linear-gradient(135deg, #3f2a27 0%, #6c1c21 100%);
  --fx-h-header: 80px;
  --fx-font-title: "Montserrat", system-ui, sans-serif;
  --fx-font-body: "Quicksand", system-ui, sans-serif;
}

body.fx-body {
  background: var(--fx-bg);
  color: var(--fx-cream);
  font-family: var(--fx-font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}
body.fx-lock { overflow: hidden; }
.fx-body .bg-gradient { display: none; }
.fx-body img { max-width: 100%; display: block; }
.fx-body a { color: inherit; }

.fx-main { padding-top: var(--fx-h-header); min-height: 70vh; }
.fx-container { width: 100%; max-width: 1150px; margin: 0 auto; padding: 0 22px; }
.fx-container--acesso { max-width: 1280px; }
.fx-center { text-align: center; }

/* ---------- botões ---------- */
.fx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 32px; border: 0; border-radius: 10px;
  font-family: var(--fx-font-title); font-weight: 600; font-size: 16px; text-decoration: none;
  cursor: pointer; transition: filter .15s, transform .15s; text-align: center;
}
.fx-btn--cream { background: var(--fx-cream); color: var(--fx-ink) !important; }
.fx-btn--wine { background: var(--fx-wine); color: var(--fx-cream) !important; }
.fx-btn--wide { min-width: 255px; }
.fx-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.fx-body a:focus-visible, .fx-body button:focus-visible, .fx-body input:focus-visible,
.fx-body select:focus-visible { outline: 2px solid var(--fx-gold); outline-offset: 3px; }

/* ---------- header ---------- */
.fx-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--fx-h-header);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 24px;
  background: var(--fx-header); box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.fx-brand img { width: 76px; height: 52px; object-fit: contain; }
.fx-nav { display: flex; align-items: center; gap: 50px; }
.fx-nav a {
  font-family: var(--fx-font-title); font-weight: 600; font-size: 13px; letter-spacing: .02em;
  text-transform: uppercase; text-decoration: none; color: var(--fx-cream); white-space: nowrap;
  padding-bottom: 8px; border-bottom: 2px solid transparent; margin-bottom: -10px;
}
.fx-nav a:hover { opacity: .75; }
.fx-nav a[aria-current="page"] { border-bottom-color: var(--fx-cream); }
.fx-nav a.fx-nav__acesso {
  border: 1.5px solid var(--fx-cream); border-radius: 8px; padding: 8px 14px; margin-bottom: 0;
}
.fx-nav a.fx-nav__acesso[aria-current="page"] { background: var(--fx-cream); color: var(--fx-ink); }
.fx-header__right { display: flex; align-items: center; gap: 18px; }
.fx-social { display: flex; align-items: center; gap: 18px; }
.fx-social a { color: var(--fx-cream); display: inline-flex; }
.fx-social svg { width: 20px; height: 20px; }
.fx-social a:hover { opacity: .75; }
.fx-social--lg svg { width: 28px; height: 28px; }

.fx-user { position: relative; padding-left: 18px; border-left: 1px solid var(--fx-border); }
.fx-user__btn {
  display: flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer;
  color: var(--fx-cream); font: 600 13px var(--fx-font-body);
}
.fx-user__email { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-user__drop {
  position: absolute; right: 0; top: calc(100% + 14px); min-width: 180px; padding: 8px;
  background: var(--fx-header); border: 1px solid var(--fx-border); border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4); display: flex; flex-direction: column;
}
.fx-user__drop a, .fx-user__drop button {
  padding: 8px 10px; font: 600 12px var(--fx-font-body); color: var(--fx-cream); text-decoration: none;
  background: none; border: 0; text-align: left; cursor: pointer; border-radius: 6px;
}
.fx-user__drop a:hover, .fx-user__drop button:hover { background: rgba(255, 255, 255, .08); }

.fx-burger { display: none; background: none; border: 0; color: var(--fx-cream); cursor: pointer; padding: 6px; }

/* ---------- gaveta ---------- */
.fx-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, .55); }
.fx-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200; width: min(100%, 420px);
  background: var(--fx-bg); padding: 12px 22px 24px; overflow-y: auto; display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s;
}
.fx-drawer.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
.fx-drawer__top { display: flex; justify-content: flex-end; }
.fx-drawer__close { background: none; border: 0; color: var(--fx-cream); cursor: pointer; padding: 6px; }
.fx-drawer__acesso { width: 100%; margin: 8px 0 12px; }
.fx-drawer__nav a {
  display: block; padding: 16px 0; font: 600 18px var(--fx-font-title); text-decoration: none;
  color: var(--fx-cream); border-bottom: 1px solid var(--fx-border);
}
.fx-drawer__nav a[aria-current="page"] { color: var(--fx-gold); }
.fx-drawer__bottom { margin-top: auto; padding-top: 28px; display: grid; gap: 20px; }
.fx-drawer__user { display: grid; gap: 10px; font-size: 14px; }
.fx-drawer__user a, .fx-drawer__user button {
  background: none; border: 0; padding: 0; text-align: left; font: 600 14px var(--fx-font-body);
  color: var(--fx-cream); text-decoration: none; cursor: pointer;
}
.fx-only-admin { display: none !important; }
body.is-admin .fx-only-admin { display: inline !important; }

/* ---------- blocos comuns ---------- */
.fx-sec { padding: 96px 0; }
.fx-sec--tight { padding: 48px 0; }
.fx-sec--20anos { padding: 150px 0; }
.fx-cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.fx-eyebrow { font: 600 16px var(--fx-font-title); letter-spacing: .1em; margin-bottom: 8px; }
.fx-h2, .fx-contato-bloco h2 {
  font: 700 40px/1.2 var(--fx-font-title); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 40px;
}
.fx-h3-lg { font: 700 20px/1.4 var(--fx-font-title); letter-spacing: .05em; margin-bottom: 20px; }
.fx-h3-md { font: 700 24px/1.35 var(--fx-font-title); margin-top: 20px; }
.fx-cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fx-card { background: var(--fx-grad-card); border: 1px solid var(--fx-border); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.fx-card h3 { font: 700 24px/1.25 var(--fx-font-title); text-transform: uppercase; }
.fx-card--serv img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; filter: grayscale(1); }
.fx-card--serv:hover img { filter: none; }
.fx-card__link { margin-top: auto; font: 700 18px var(--fx-font-title); text-decoration: none; }
.fx-card__link:hover { text-decoration: underline; }
.fx-card--mvv h3 { font-size: 32px; }

/* hero */
.fx-hero-home {
  min-height: 560px; height: calc(100vh - var(--fx-h-header));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; text-align: center; padding: 40px 22px;
  background: var(--fx-bg) url("/static/img/fenix/bg-hero-home.png") center / cover no-repeat;
}
.fx-hero-home__logo { width: 608px; max-width: 80vw; }
.fx-hero-home__txt { font: 500 22px/1.5 var(--fx-font-title); letter-spacing: .12em; max-width: 860px; text-align: center; }
.fx-hero-home .fx-btn { width: 270px; height: 55px; }

.fx-hero-int {
  min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; padding: 32px 22px; background: var(--fx-bg) url("/static/img/fenix/bg-hero-interna.png") center / cover no-repeat;
}
.fx-hero-int h1 { font: 700 36px/1.2 var(--fx-font-title); letter-spacing: .1em; }
.fx-hero-int p { font: 500 16px/1.5 var(--fx-font-title); letter-spacing: .15em; max-width: 860px; }

.fx-20anos__logo img { width: 476px; max-width: 100%; margin: 0 auto; }
.fx-20anos__txt { text-align: center; opacity: .95; }
.fx-20anos__txt p { margin-bottom: 16px; opacity: .85; }
.fx-20anos__txt .fx-btn { margin-top: 16px; }

/* banner */
.fx-banner { position: relative; height: 360px; overflow: hidden; background: linear-gradient(90deg, #6a4d1c 0%, #3c1213 100%); }
.fx-banner__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fx-banner__shade { position: absolute; inset: 0; background: rgba(30, 14, 14, .45); }
.fx-banner__txt {
  position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; text-align: center; padding: 24px 22px;
}
.fx-banner__txt h2 { font: 700 40px/1.2 var(--fx-font-title); letter-spacing: .05em; }
.fx-banner__txt p { font: 500 16px/1.5 var(--fx-font-title); letter-spacing: .15em; max-width: 900px; }

/* sobre */
.fx-sobre-top { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; justify-content: center; }
.fx-sobre-top__foto { width: 393px; }
.fx-sobre-top__txt img { width: 498px; max-width: 100%; }
.fx-timeline {
  max-width: 1050px; margin: 0 auto; padding: 56px 24px 0; border-radius: 16px;
  background: linear-gradient(180deg, var(--fx-surface), var(--fx-bg));
}
.fx-tl__item { display: grid; grid-template-columns: 220px 10px minmax(0, 460px); column-gap: 28px; justify-content: center; padding-bottom: 60px; }
.fx-tl__ano { font: 700 32px/1.1 var(--fx-font-title); text-align: right; }
.fx-tl__dot { position: relative; margin-bottom: -60px; }
.fx-tl__dot::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: var(--fx-gold); }
.fx-tl__dot::after { content: ""; position: absolute; left: 0; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--fx-gold); }
.fx-tl__item:last-child .fx-tl__dot { margin-bottom: 0; }
.fx-tl__item:last-child .fx-tl__dot::before { bottom: auto; height: 16px; }
.fx-tl__txt p { margin-bottom: 14px; }
.fx-valores { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fx-valores ul { list-style: none; display: grid; gap: 14px; align-content: start; }
.fx-card--mvv .fx-valores li { font-size: 14px; }
.fx-faixa {
  min-height: 367px; display: flex; align-items: center; justify-content: center; padding: 40px 22px; text-align: center;
  background: var(--fx-bg) url("/static/img/fenix/pattern-chumbo.png") center / cover;
}
.fx-faixa p { font: 700 28px/1.35 var(--fx-font-title); max-width: 900px; }

/* serviços */
.fx-sec--serv { display: grid; gap: 80px; padding: 80px 0; overflow: hidden; }
.fx-serv { display: flex; align-items: center; gap: 60px; }
.fx-serv img { flex: 0 0 min(580px, 46%); width: min(580px, 46%); aspect-ratio: 580 / 381; object-fit: cover; border-radius: 0 16px 16px 0; }
.fx-serv__txt { flex: 1; box-sizing: content-box; max-width: 540px; padding-right: max(22px, calc((100vw - 1150px) / 2)); }
.fx-serv--inv { flex-direction: row-reverse; }
.fx-serv--inv img { border-radius: 16px 0 0 16px; }
.fx-serv--inv .fx-serv__txt { padding-right: 0; padding-left: max(22px, calc((100vw - 1150px) / 2)); margin-left: auto; }
.fx-serv__txt h3 { font: 700 28px/1.25 var(--fx-font-title); text-transform: uppercase; margin-bottom: 16px; }
.fx-serv__txt p { margin-bottom: 14px; }
.fx-serv { scroll-margin-top: 96px; }

/* contato */
.fx-contato3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.fx-contato3__col { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.fx-contato3__col h3 { font: 700 24px/1.25 var(--fx-font-title); }
.fx-ico { width: 28px; height: 28px; }

/* bloco de contato / formulário */
.fx-contato-bloco { padding: 60px 0; background: linear-gradient(180deg, var(--fx-surface), var(--fx-bg)); }
.fx-contato-bloco__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.fx-contato-bloco h2 { font-size: 36px; margin-bottom: 18px; }
.fx-gold { display: block; width: 50px; height: 3px; background: var(--fx-gold); margin-bottom: 20px; }
.fx-contato-bloco__txt p { font: 500 16px/1.5 var(--fx-font-title); letter-spacing: .15em; }
.fx-form { display: grid; gap: 18px; }
.fx-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fx-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fx-field label { font: 600 12px var(--fx-font-body); text-transform: uppercase; letter-spacing: .05em; }
.fx-field input[type="text"], .fx-field input[type="email"], .fx-field input[type="tel"], .fx-field select {
  height: 40px; width: 100%; background: transparent; color: var(--fx-cream); border: 0;
  border-bottom: 2px solid var(--fx-line); border-radius: 0; font: 500 16px var(--fx-font-body); padding: 0 2px;
}
.fx-field select option { color: var(--fx-ink); background: var(--fx-cream); }
.fx-field input:focus, .fx-field select:focus { outline: none; border-bottom-color: var(--fx-gold); }
.fx-field.has-error input, .fx-field.has-error select { border-bottom-color: #e58a8a; }
.fx-check { display: flex; gap: 10px; align-items: flex-start; font-size: 12px !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important; }
.fx-check input { margin-top: 3px; accent-color: var(--fx-gold); flex: none; }
.fx-err { font-size: 12px; color: #f0a0a0; min-height: 0; }
.fx-form__ok { font-size: 14px; color: var(--fx-cream); }

/* ---------- Acesso do Cliente ---------- */
.fx-page--acesso { background: var(--fx-bg); padding-bottom: 48px; }
.fx-acesso-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 24px 0 16px; }
.fx-acesso-bar h1 { font: 700 24px var(--fx-font-title); }
.fx-acesso-bar p { font-size: 14px; opacity: .75; }
.fx-acesso-bar__comp { display: flex; align-items: center; gap: 10px; padding: 0; margin: 0; background: none; border: 0; }
.fx-acesso-bar__comp .panel-hint { margin: 0; color: var(--fx-cream); }
.fx-subtabs-wrap { position: relative; margin-bottom: 20px; }
.fx-subtabs { display: flex; gap: 8px; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.fx-subtabs .tab-btn {
  flex: none; height: 36px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--fx-border);
  color: var(--fx-cream); opacity: .75; font-family: var(--fx-font-body); font-weight: 600; scroll-snap-align: start; white-space: nowrap;
}
.fx-subtabs .tab-btn:hover { opacity: 1; color: var(--fx-cream); }
.fx-subtabs .tab-btn.is-active { background: var(--fx-cream); color: var(--fx-ink); border-color: var(--fx-cream); opacity: 1; }

/* ---------- rodapé e botão flutuante ---------- */
.fx-footer { background: var(--fx-header); }
.fx-footer__top { padding: 48px 0; }
.fx-footer__grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.fx-footer__grid img { width: 172px; height: 62px; object-fit: contain; }
.fx-footer__end { text-align: right; font: 600 16px var(--fx-font-body); }
.fx-footer__end a { text-decoration: none; }
.fx-footer__bottom { border-top: 2px solid #7c7770; padding: 16px 0; font-size: 12px; }
.fx-footer__line { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
body[data-rota="acesso"] .fx-footer__top, body[data-rota="acesso"] .fx-wpp-float { display: none; }
.fx-body .fx-wpp-float {
  position: fixed; right: 40px; bottom: 40px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: var(--fx-cream); color: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}
.fx-wpp-float svg { width: 32px; height: 32px; }

/* ---------- animações de entrada (efeitos do site original) ----------
   O fenix-site.js liga .fx-anim-on (só sem prefers-reduced-motion), marca .is-in quando o elemento
   entra na tela e troca por .is-done no fim, devolvendo transform/transition ao estilo normal (hover dos botões).
   Os keyframes só têm "from": o fim é o próprio estilo do elemento (ex.: a opacidade .85 dos parágrafos). */
.fx-anim-on [data-anim]:not(.is-in):not(.is-done) { opacity: 0; }
[data-anim].is-in {
  animation: var(--fx-kf) var(--fx-dur, .75s) cubic-bezier(.2, .7, .3, 1) var(--fx-delay, 0s) both;
}
[data-anim="fade"] { --fx-kf: fx-fade; }
[data-anim="zoom"] { --fx-kf: fx-zoom; }
[data-anim="rise"] { --fx-kf: fx-rise; }
[data-anim="flip"] { --fx-kf: fx-flip; }
[data-anim="flip-y"] { --fx-kf: fx-flip-y; }
[data-anim="bounce"] { --fx-kf: fx-bounce; }
@keyframes fx-fade { from { opacity: 0; } }
@keyframes fx-zoom { from { opacity: 0; transform: scale(calc(1 - .2 * var(--fx-int, 1))); } }
@keyframes fx-rise { from { opacity: 0; transform: translateY(40px); } }
@keyframes fx-flip { from { opacity: 0; transform: perspective(800px) rotateX(calc(80deg * var(--fx-int, 1))); } }
@keyframes fx-flip-y { from { opacity: 0; transform: perspective(800px) rotateY(calc(80deg * var(--fx-int, 1))); } }
@keyframes fx-bounce {
  0% { opacity: 0; transform: scale(calc(1 - 2.5 * var(--fx-int, .2))); }
  55% { opacity: 1; transform: scale(calc(1 + .4 * var(--fx-int, .2))); }
  80% { transform: scale(calc(1 - .15 * var(--fx-int, .2))); }
  100% { transform: none; }
}
/* Na impressão sai tudo, inclusive o que ainda não foi rolado até a tela. */
@media print {
  .fx-anim-on [data-anim] { opacity: 1 !important; animation: none !important; }
}

/* ---------- celular / tablet ---------- */
@media (max-width: 1100px) {
  .fx-nav { gap: 28px; }
  .fx-header__right .fx-social { display: none; }
}
@media (max-width: 900px) {
  :root { --fx-h-header: 64px; }
  .fx-header { padding: 0 16px; }
  .fx-brand img { width: 56px; height: 38px; }
  .fx-nav, .fx-header__right { display: none; }
  .fx-burger { display: block; }
  .fx-container { padding: 0 16px; }
  .fx-sec { padding: 56px 0; }
  .fx-sec--20anos { padding: 56px 0; }
  .fx-cols2, .fx-sobre-top, .fx-cards3, .fx-contato3, .fx-contato-bloco__grid, .fx-form__row { grid-template-columns: 1fr; }
  .fx-contato3 { gap: 32px; }
  .fx-h2 { font-size: 28px; }
  .fx-hero-home__txt { font-size: 16px; }
  .fx-hero-int { min-height: 220px; }
  .fx-hero-int h1 { font-size: 26px; }
  .fx-banner__txt h2 { font-size: 26px; }
  .fx-sobre-top__foto { width: 80%; margin: 0 auto; }
  .fx-sobre-top__txt img { margin: 0 auto; }
  .fx-timeline { padding: 32px 16px 0; }
  .fx-tl__item { grid-template-columns: 16px 1fr; grid-template-areas: "dot ano" "dot txt"; column-gap: 16px; padding-bottom: 36px; }
  .fx-tl__ano { grid-area: ano; text-align: left; margin-bottom: 8px; }
  .fx-tl__dot { grid-area: dot; margin-bottom: -36px; }
  .fx-tl__txt { grid-area: txt; }
  .fx-faixa { min-height: 240px; }
  .fx-faixa p { font-size: 20px; }
  .fx-sec--serv { gap: 48px; padding: 48px 0; }
  .fx-serv, .fx-serv--inv { flex-direction: column; align-items: stretch; gap: 20px; padding: 0 16px; }
  .fx-serv img, .fx-serv--inv img { flex: none; width: 100%; height: 220px; aspect-ratio: auto; border-radius: 16px; }
  .fx-serv__txt, .fx-serv--inv .fx-serv__txt { padding: 0; max-width: none; margin: 0; }
  .fx-contato-bloco { padding: 40px 0; }
  .fx-contato-bloco h2 { font-size: 28px; }
  .fx-acesso-bar { flex-direction: column; align-items: stretch; }
  .fx-acesso-bar__comp { width: 100%; flex-wrap: wrap; }
  .fx-acesso-bar__comp select { flex: 1; min-width: 0; }
  .fx-subtabs-wrap::after {
    content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 24px; pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--fx-bg));
  }
  .fx-footer__grid, .fx-footer__line { flex-direction: column; text-align: center; }
  .fx-footer__end { text-align: center; }
  .fx-wpp-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .fx-wpp-float svg { width: 28px; height: 28px; }
}
