/* =============================================================================
   global.css — Shared styles for fan-construcoes_2026 theme
   Includes: reset, tokens, layout, typography, header, footer,
             newsletter, WhatsApp button, reveal animations.
   Page-specific styles live in assets/css/pages/*.css
   ============================================================================= */

/* ── Gotham font-face ──────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/gotham/gothamthin-webfont.woff2') format('woff2'),
       url('../fonts/gotham/gothamthin-webfont.woff') format('woff');
  font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/gotham/gothamxlight-webfont.woff2') format('woff2'),
       url('../fonts/gotham/gothamxlight-webfont.woff') format('woff');
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/gotham/gothamlight-webfont.woff2') format('woff2'),
       url('../fonts/gotham/gothamlight-webfont.woff') format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/gotham/gothambook-webfont.woff2') format('woff2'),
       url('../fonts/gotham/gothambook-webfont.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/gotham/gothammedium-webfont.woff2') format('woff2'),
       url('../fonts/gotham/gothammedium-webfont.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/gotham/gothambold-webfont.woff2') format('woff2'),
       url('../fonts/gotham/gothambold-webfont.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/gotham/gothamblack-webfont.woff2') format('woff2'),
       url('../fonts/gotham/gothamblack-webfont.woff') format('woff');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html     { scroll-behavior: smooth; }
body     { font-family: 'Gotham', 'Arial', sans-serif; background: #fff; color: #241f21; overflow-x: hidden; }
img      { display: block; max-width: 100%; }
button   { cursor: pointer; font-family: inherit; border: none; background: none; }
a        { text-decoration: none; color: inherit; }
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  --v:   #ff0000;
  --ve:  #990000;
  --preto: #241f21;
  --g01: #f2f3f3;
  --g02: #e6e6e7;
  --g03: #cccdcf;
  --g06: #808386;
  --g07: #666a6e;
  --g08: #4d5155;

  --r:   999px;
  --rl:  12px;
  --t:   .25s cubic-bezier(.4, 0, .2, 1);

  /* Horizontal padding: scales with viewport, aligns content to 1216px @ 1440px */
  --pp:  clamp(112px, 7.78vw, 160px);
  --gap: 32px;
  --sv:  80px; /* section vertical padding */
}

/* ── Layout ────────────────────────────────────────────────────────────────── */
.section    { padding: var(--sv) 0; }
.section-sm { padding: 48px 0; }
.section-72 { padding: 72px 0; }
.section-no-pb:has(+ #pagination) { padding-bottom: 0 !important; } /* sem paginação, mantém o espaço até o footer */

.container {
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pp);
  padding-right: var(--pp);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
}

.col-12 { grid-column: span 12; }
.col-11 { grid-column: span 11; }
.col-10 { grid-column: span 10; }
.col-9  { grid-column: span 9;  }
.col-8  { grid-column: span 8;  }
.col-7  { grid-column: span 7;  }
.col-6  { grid-column: span 6;  }
.col-5  { grid-column: span 5;  }
.col-4  { grid-column: span 4;  }
.col-3  { grid-column: span 3;  }
.col-2  { grid-column: span 2;  }
.col-1  { grid-column: span 1;  }

/* Grid/layout modifiers */
.grid--center   { align-items: center; }
.grid--end      { align-items: flex-end; }
.grid--start    { align-items: start; }
.grid--rg0      { row-gap: 0; }
.grid--mb48     { margin-bottom: 48px; }
.col--end       { display: flex; justify-content: flex-end; }
.col--row-end   { display: flex; align-items: flex-end; justify-content: flex-end; gap: 16px; }
.col--flex-col  { display: flex; flex-direction: column; }
.mb-48          { margin-bottom: 48px; }
.icon-sm        { width: 16px; height: 16px; object-fit: contain; }

/* ── Typography ────────────────────────────────────────────────────────────── */
.stag    { font-family: 'Gotham', sans-serif; font-size: 13px; font-weight: 700; font-style: normal; color: var(--ve); text-transform: uppercase; letter-spacing: 0; line-height: 1.2; margin-bottom: 16px; }
.stitle  { font-size: 40px; font-weight: 500; color: var(--preto); line-height: 1.2; }
.stitle-w { color: white; }

/* ── Shared buttons ────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px; background: var(--v); color: white;
  border-radius: var(--r); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}
.btn-primary:hover { background: var(--ve); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,0,0,.3); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 24px; border: 1px solid var(--v); border-radius: var(--r);
  font-size: 13px; font-weight: 700; color: var(--preto);
  text-transform: uppercase; letter-spacing: .04em;
  transition: background var(--t), color var(--t), transform var(--t), box-shadow var(--t);
}
.btn-outline:hover { background: var(--v); color: white; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,0,0,.25); }

.btn-outline-white {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 24px; border: 1px solid var(--v); border-radius: var(--r);
  font-size: 13px; font-weight: 700; color: white;
  text-transform: uppercase; letter-spacing: .04em; align-self: flex-start;
  transition: background var(--t), transform var(--t);
}
.btn-outline-white:hover { background: rgba(255,0,0,.2); transform: translateY(-1px); }

.btn-filter {
  appearance: none; -webkit-appearance: none;
  display: inline-flex; align-items: center;
  padding: 12px 40px 12px 24px; border: 1px solid var(--g06);
  border-radius: var(--r); font-size: 13px; font-weight: 700; color: var(--preto);
  text-transform: uppercase; letter-spacing: .04em; min-width: 197px;
  background: white; cursor: pointer; font-family: inherit;
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.btn-filter:hover { border-color: var(--v); background: rgba(255,0,0,.05); transform: translateY(-1px); }

/* ── Carousel controls ─────────────────────────────────────────────────────── */
.carousel-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 40px; }
.carousel-dots      { display: flex; gap: 8px; }
.dot--active        { width: 56px; height: 4px; background: var(--v); border-radius: 999px; cursor: pointer; }
.dot--inactive      { width: 24px; height: 4px; background: var(--g03); border-radius: 999px; cursor: pointer; }
.carousel-arrows    { display: flex; gap: 12px; }
.btn-arrow {
  width: 40px; height: 40px; border-radius: var(--r); border: 1px solid var(--ve);
  display: flex; align-items: center; justify-content: center; color: var(--ve);
  transition: background var(--t), color var(--t), transform var(--t);
}
.btn-arrow:hover { background: var(--ve); color: white; transform: scale(1.05); }

/* ── Header ────────────────────────────────────────────────────────────────── */
#header {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 1000;
  padding: 0 var(--pp); pointer-events: none;
}
.header__inner {
  pointer-events: all; max-width: calc(1920px - 2 * var(--pp)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: rgba(0,0,0,.7); border-radius: var(--r);
  backdrop-filter: blur(12px); transition: background var(--t);
}
.header__inner.is-scrolled { background: rgba(0,0,0,.92); }
.header__inner.is-hidden { opacity: 0; pointer-events: none; }

.header__logo img { width: 94px; height: 40px; object-fit: contain; transition: opacity var(--t); }
.header__logo img:hover { opacity: .85; }

.nav__list  { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav__link  { font-size: 14px; font-weight: 400; color: white; transition: color var(--t); }
.nav__link:hover,
.nav__link--active { color: var(--v); }

.nav__dropdown {
  display: flex; align-items: center; gap: 6px; font-size: 14px; color: white;
  cursor: pointer; transition: color var(--t);
}
.nav__dropdown img { width: 12px; height: 12px; transition: filter var(--t); }
.nav__dropdown:hover { color: var(--v); }
.nav__dropdown:hover img { filter: invert(13%) sepia(96%) saturate(7494%) hue-rotate(3deg) brightness(120%); }
.nav__list {
  position: relative;
  align-items: center;
  height: 68px;
  display: flex;
}

.nav__list li:hover .nav__sub { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
#header .nav__list li:hover .nav__sub { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }

#header .nav__list li .nav__sub {
  position: absolute; top: calc(100% + 40px); left: 50%; transform: translateX(-50%) translateY(-4px);
  background: #900;
  padding: 16px;
  border-radius: 10px;
  min-width: 160px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t), transform var(--t);
  z-index: 1001;
}
#header .nav__list li .nav__sub::before {
  content: '' !important;
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 14px solid #900;
  background: transparent !important;
}
#header .nav__list li .nav__sub::after {
  content: '' !important;
  position: absolute; bottom: 100%; left: 0; right: 0;
  height: 24px;
  background: transparent !important;
  display: block !important;
}
#header .nav__list li .nav__sub a {
  padding: 5px;
  margin: 0 auto;
  border-radius: 4px;
  display: block;
  font-size: 14px; font-weight: 400; color: white;
  transition: background var(--t);
  white-space: nowrap; background: transparent;
}

#header .nav__list li .nav__sub a:before{
  border-bottom: 1px solid rgba(255, 255, 255, 0.20);
}

#header .nav__list li .nav__sub a:last-child{
  border-bottom: none;
  margin-bottom: 0;
}

#header .nav__list li .nav__sub a:hover { background: #f00; }

/* nav__dropdown needs position:relative for the submenu */
.nav__list li { position: relative; }

/* .nav__sub itself is pointer-events:none until li:hover fires, so its own
   ::before/::after can't bridge the gap (they inherit that pointer-events:none
   and can't be hovered to trigger the very state that would enable them).
   This bridge lives on li directly instead, always hoverable, spanning the
   same 40px gap used by .nav__sub's top offset. */
.nav__list li.menu-item-has-children::after {
  content: '';
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: 160px; height: 40px;
}

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

.btn-portal {
  display: flex; align-items: center; gap: 10px; padding: 10px 20px; height: 40px;
  background: var(--v); color: white; border-radius: var(--r);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}
.btn-portal:hover { background: var(--ve); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,0,0,.3); }
.btn-portal svg { width: 18px; height: 18px; }

.btn-search {
  width: 40px; height: 40px; border-radius: var(--r); background: #ad0000;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t), transform var(--t);
}
.btn-search:hover { background: var(--ve); transform: scale(1.05); }
.btn-search:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.btn-search svg { width: 20px; height: 20px; color: white; }

.btn-hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px; background: rgba(255,255,255,.1);
  border-radius: 8px; transition: background var(--t);
}
.btn-hamburger:hover { background: rgba(255,255,255,.2); }
.btn-hamburger__line { display: block; width: 22px; height: 2px; background: white; border-radius: 2px; transition: transform .3s, opacity .3s; }
.btn-hamburger.is-open .btn-hamburger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btn-hamburger.is-open .btn-hamburger__line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.btn-hamburger.is-open .btn-hamburger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu ───────────────────────────────────────────────────────────── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(14,13,14,.97); backdrop-filter: blur(16px);
  transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; pointer-events: none;
}
.mobile-menu.is-open { transform: translateX(0); pointer-events: all; }

.mobile-menu__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-menu__logo img { width: 80px; height: 34px; object-fit: contain; }

.btn-close-menu {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background var(--t);
}
.btn-close-menu:hover { background: rgba(255,255,255,.2); }
.btn-close-menu svg { width: 20px; height: 20px; color: white; }

.mobile-menu__nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; padding: 32px 20px; }
.mobile-menu__item {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 18px; font-weight: 500; color: white;
  padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.07);
  cursor: pointer; transition: color var(--t);
}
.mobile-menu__item:hover { color: var(--v); }
.mobile-menu__item a { color: inherit; text-decoration: none; }
.mobile-menu__item a:hover,
.mobile-menu__item a.nav__link--active { color: var(--v); }

.mobile-menu__chevron {
  width: 8px; height: 8px; border-right: 2px solid rgba(255,255,255,.35);
  border-bottom: 2px solid rgba(255,255,255,.35); transform: rotate(-45deg);
  transition: .4s;
}
.mobile-menu__item:hover .mobile-menu__chevron { border-color: var(--v); }

.mobile-menu__foot { padding: 24px 20px 40px; border-top: 1px solid rgba(255,255,255,.08); }
.btn-portal-mobile {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; width: 100%; background: var(--v); color: white;
  border-radius: var(--r); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; transition: background var(--t);
}
.btn-portal-mobile:hover { background: var(--ve); }
.btn-portal-mobile svg { width: 18px; height: 18px; }

/* ── Search modal ─────────────────────────────────────────────────────────── */
.search-modal {
  position: fixed; inset: 0; z-index: 3001;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.search-modal.is-open { opacity: 1; pointer-events: all; }
.search-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.74);
  backdrop-filter: blur(10px);
}
.search-modal__box {
  position: relative; z-index: 1;
  width: min(720px, 100%);
  background: white;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  transform: translateY(12px) scale(.98);
  transition: transform .25s ease;
}
.search-modal.is-open .search-modal__box { transform: translateY(0) scale(1); }
.search-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--preto); background: var(--g01);
  transition: background var(--t), color var(--t), transform var(--t);
}
.search-modal__close:hover { background: var(--ve); color: white; transform: rotate(90deg); }
.search-modal__close:focus-visible { outline: 2px solid var(--v); outline-offset: 3px; }
.search-modal__close svg { width: 18px; height: 18px; }
.search-modal__eyebrow {
  font-size: 12px; font-weight: 700; color: var(--ve);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 12px;
}
.search-modal__title {
  max-width: calc(100% - 48px);
  font-size: 32px; font-weight: 700; line-height: 1.2;
  color: var(--preto); margin-bottom: 28px;
}
.search-modal__label {
  display: block;
  font-size: 13px; font-weight: 600; color: var(--g08);
  margin-bottom: 10px;
}
.search-modal__control {
  display: flex; align-items: center; gap: 12px;
  padding: 8px;
  border: 1px solid var(--g02);
  border-radius: var(--r);
  background: var(--g01);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.search-modal__control:focus-within {
  border-color: var(--v);
  background: white;
  box-shadow: 0 0 0 3px rgba(255,0,0,.14);
}
.search-modal__input {
  min-width: 0; flex: 1;
  width: 100%;
  height: 48px; padding: 0 12px 0 18px;
  border: none; outline: none;
  background: transparent;
  font-family: inherit; font-size: 16px;
  color: var(--preto);
}
.search-modal__input::placeholder { color: var(--g06); }
.search-modal__submit {
  height: 48px; padding: 0 22px;
  border-radius: var(--r);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--v); color: white;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  transition: background var(--t), transform var(--t);
  flex-shrink: 0;
}
.search-modal__submit:hover { background: var(--ve); transform: translateY(-1px); }
.search-modal__submit:focus-visible { outline: 2px solid var(--preto); outline-offset: 3px; }
.search-modal__submit svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Newsletter ────────────────────────────────────────────────────────────── */
#newsletter { background: #181818; }
.newsletter__tag  { font-size: 16px; font-weight: 500; color: var(--v); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.newsletter__title { font-size: 24px; font-weight: 500; color: white; white-space: nowrap; }

.newsletter__form {
  display: flex; align-items: center; background: white;
  border-radius: var(--r); padding: 8px 8px 8px 16px; gap: 12px;
  transition: box-shadow var(--t);
}
.newsletter__form:focus-within { box-shadow: 0 0 0 3px rgba(255,0,0,.3); }
.newsletter__form svg  { width: 24px; height: 24px; color: var(--g06); flex-shrink: 0; }
.newsletter__form input {
  flex: 1; border: none; outline: none; font-family: inherit;
  font-size: 16px; color: var(--preto); background: transparent;
}
.newsletter__form input::placeholder { color: var(--g06); }
.btn-send {
  padding: 12px 24px; background: var(--ve); color: white; border-radius: var(--r);
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap; flex-shrink: 0; transition: background var(--t);
}
.btn-send:hover { background: #700000; }

.newsletter__consent { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.newsletter__checkbox {
  width: 16px; height: 16px; border: 1px solid var(--g03); border-radius: 2px;
  cursor: pointer; flex-shrink: 0; position: relative;
  transition: background var(--t), border-color var(--t);
}
.newsletter__checkbox.is-checked {
  background: var(--vermelho); border-color: var(--vermelho);
}
.newsletter__checkbox.is-checked::after {
  content: '';
  position: absolute; left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: 2px solid white; border-top: none; border-left: none;
  transform: rotate(45deg);
}
.newsletter__consent-label { font-size: 14px; font-weight: 300; color: var(--g03); }
.newsletter__consent-label a { font-weight: 500; text-decoration: underline; }
.newsletter__consent-label a:hover { color: white; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
#footer { background: var(--g01); }

.footer__logo { display: block; width: 151px; height: 64px; flex-shrink: 0; margin-bottom: 24px; }
.footer__logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity var(--t); }
.footer__logo img:hover { opacity: .8; }

.footer__actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; height: 100%; }

.btn-portal-footer {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px; height: 40px;
  border-radius: var(--r); font-family: 'Gotham', sans-serif; font-size: 12px; font-weight: 700; font-style: normal;
  text-transform: uppercase; letter-spacing: 0; line-height: 1.2; color: white;
  transition: opacity var(--t), transform var(--t);
}
.btn-portal-footer:hover { opacity: .85; transform: translateY(-1px); }
.btn-portal-footer--broker  { background: var(--preto); }
.btn-portal-footer--client  { background: var(--ve); }
.btn-portal-footer svg { width: 18px; height: 18px; flex-shrink: 0; }

.footer__social { display: flex; gap: 16px; }
.footer__social-item {
  width: 40px; height: 40px; border-radius: var(--r); border: 1px solid var(--g03);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.footer__social-item:hover { background: var(--preto); border-color: var(--preto); transform: translateY(-2px); }
.footer__social-item img { width: 20px; height: 20px; object-fit: contain; }

.footer__divider { border-top: 1px solid var(--g02); border-bottom: 1px solid var(--g02); padding: 32px 0; margin: 40px 0; }

.footer__contacts { display: flex; align-items: center; justify-content: space-between; }
.footer__contact  { display: flex; align-items: center; gap: 12px; transition: transform var(--t); }
.footer__contact:hover { transform: translateX(3px); }
.footer__contact-icon {
  width: 32px; height: 32px; border-radius: 50%; background: var(--preto);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.footer__contact-icon img { width: 16px; height: 16px; object-fit: contain; }
.footer__contact-text     { font-size: 16px; color: var(--preto); line-height: 1.4; text-decoration: none; }

.footer__index { display: block; width: 78.4px; height: 14px; flex-shrink: 0; }
.footer__index img { width: 100%; height: 100%; object-fit: contain; object-position: right center; opacity: .7; transition: opacity var(--t); }
.footer__index:hover img { opacity: 1; }

.footer__copy-text { font-size: 14px; color: var(--g08); }
.mobile-menu__subs {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.mobile-menu__subs.is-open { max-height: 200px; }

.mobile-menu__item.is-open .mobile-menu__chevron {
  transform: rotate(45deg);
}

.mobile-menu__sub-link {
  display: block; padding: 14px 0 14px 32px;
  font-size: 16px; font-weight: 400; color: white;
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color var(--t);
}
.mobile-menu__sub-link:hover { color: var(--v); }

/* ── WhatsApp button ───────────────────────────────────────────────────────── */
#whatsapp-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 998;
  width: 52px; height: 52px; border-radius: 50%; background: #2da539;
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 4px 16px rgba(45,165,57,.4);
  transition: transform var(--t), box-shadow var(--t);
}
#whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 8px 24px rgba(45,165,57,.5); }
#whatsapp-btn svg { width: 28px; height: 28px; }
#whatsapp-btn img { width: 28px; height: 28px; object-fit: contain; }

/* ── Modal sucesso (newsletter + contato) ──────────────────────────────────── */
.form-modal {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.form-modal.open { opacity: 1; pointer-events: all; }
.form-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.form-modal__box {
  position: relative; z-index: 1;
  background: white; border-radius: 16px;
  padding: 48px 40px; max-width: 440px; width: 90%;
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
}
.form-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gray-01); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-08); transition: background var(--t);
}
.form-modal__close:hover { background: var(--gray-02); }
.form-modal__close svg { width: 18px; height: 18px; }
.form-modal__icon svg { width: 72px; height: 72px; }
.form-modal__title { font-family: 'Gotham', sans-serif; font-size: 24px; font-weight: 700; color: var(--preto); margin: 0; }
.form-modal__sub { font-size: 15px; color: var(--gray-08); line-height: 1.6; margin: 0; }
.btn-sub {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px;
  background: var(--ve); color: white;
  border-radius: var(--r);
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap;
  transition: background var(--t), transform var(--t);
  font-family: inherit; cursor: pointer; border: none;
}
.btn-sub:hover { background: #700000; transform: translateY(-1px); }
.form-modal__btn { margin-top: 8px; width: 100%; justify-content: center; }

/* ── Pagination ────────────────────────────────────────────────────────────── */
#pagination { padding: 48px 0 var(--sv); }
.pag { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pag-btn {
  width: 40px; height: 40px; border-radius: var(--r); border: 1px solid var(--g02);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; color: var(--g08); background: white;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.pag-btn:hover  { border-color: #900; color: #900; }
.pag-btn.active { background: #900; border-color: #900; color: white; font-weight: 700; }
.pag-btn.nav    { width: 40px; padding: 0; }
.pag-btn.nav svg { display: block; pointer-events: none; }
.pag-ellipsis   { font-size: 14px; color: var(--g06); padding: 0 4px; }

/* ── Card de empreendimento (Empreendimentos / Fan Urbanismo) ───────────────── */
.emp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.emp-card {
  position: relative;
  border-radius: 16px; overflow: hidden;
  background: var(--g01);
  aspect-ratio: 592/480;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  text-decoration: none; color: inherit;
  transition: transform var(--t), box-shadow var(--t);
}
.emp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
}
.emp-card[data-status="vendido"] { opacity: .85; }
.emp-card-img {
  position: absolute; inset: 0;
  background-image: var(--bg);
  background-size: cover; background-position: center;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.emp-card:hover .emp-card-img { transform: scale(1.04); }
.emp-card-overlay {
  position: absolute; inset: 0;
  /* Escurece só a metade de baixo, de forma gradual, para o texto branco ficar legível em fotos claras */
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.18) 55%, rgba(0,0,0,.55) 78%, rgba(0,0,0,.82) 100%);
}
.emp-card-badge {
  position: absolute;
  top: 20px; left: 20px;
  padding: 6px 14px;
  border-radius: var(--r);
  font-family: 'Gotham', sans-serif; font-size: 13px; font-weight: 500; font-style: normal;
  text-transform: uppercase; letter-spacing: 0; line-height: 1.2;
  color: white;
}
.bdg-lanc   { background: var(--v); }
.bdg-vend   { background: #116419; }
.bdg-disp   { background: #1a6fb5; }
.bdg-obra   { background: #e07b00; }
.bdg-pronto { background: #241f21; }
.emp-card-badge[style*="--status-color"] { background: var(--status-color); }

.emp-card-body {
  position: relative; z-index: 2;
  padding: 0 24px 24px;
}
.emp-bairro {
  font-family: Gotham;
  font-size: 14px; font-weight: 500;
  color: white;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 6px;
}
.emp-name {
  font-family: 'Gotham', sans-serif;
  font-size: 32px; font-weight: 700; font-style: normal; color: white;
  line-height: 1.2; letter-spacing: 0; margin-bottom: 15px;
}
.emp-specs {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,.15);
  flex-wrap: wrap;
}
.emp-spec { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.emp-spec img {
  width: 18px; height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .85;
}
.emp-spec span { font-size: 16px; font-weight: 300; color: white; line-height: 1.4; }
.emp-bairro, .emp-name, .emp-spec span { text-shadow: 0 1px 8px rgba(0,0,0,.35); }
@media (max-width: 1024px) {
  .emp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .emp-name { font-size: 22px; }
}

/* ── Content category filter (FanFlix / FanCast) ───────────────────────────── */
.content-filter {
  display: flex; gap: 12px; margin-bottom: 40px;
  overflow-x: auto; scrollbar-width: none;
}
.content-filter::-webkit-scrollbar { display: none; }
.content-filter__chip {
  flex-shrink: 0; white-space: nowrap;
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--g02);
  font-size: 14px; font-weight: 500; color: var(--g08); background: white;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.content-filter__chip:hover  { border-color: #900; color: #900; }
.content-filter__chip.active { background: #900; border-color: #900; color: white; font-weight: 700; }

/* ── Search results ────────────────────────────────────────────────────────── */
.search-page { padding: 152px 0 var(--sv); background: white; min-height: 70vh; }
.search-page__head {
  max-width: 880px;
  margin-bottom: 48px;
}
.search-page__eyebrow {
  font-size: 13px; font-weight: 700; color: var(--ve);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 14px;
}
.search-page__title {
  font-size: 40px; font-weight: 700; color: var(--preto);
  line-height: 1.18; margin-bottom: 16px;
}
.search-page__summary {
  font-size: 16px; color: var(--g08);
  line-height: 1.65;
}
.fan-search-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.search-result {
  display: flex; flex-direction: column;
  min-height: 100%;
  color: inherit; background: white;
}
.search-result:hover .search-result__thumb img { transform: scale(1.04); }
.search-result__thumb {
  width: 100%; aspect-ratio: 16/10;
  border-radius: 8px; overflow: hidden;
  margin-bottom: 20px; background: var(--g02);
}
.search-result__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.search-result__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--g01), var(--g02));
  color: var(--ve);
}
.search-result__placeholder svg { width: 42px; height: 42px; }
.search-result__type {
  font-size: 11px; font-weight: 700; color: var(--v);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 10px;
}
.search-result__title {
  font-size: 20px; font-weight: 700; color: var(--preto);
  line-height: 1.3; margin-bottom: 12px;
  transition: color var(--t);
}
.search-result:hover .search-result__title { color: var(--ve); }
.search-result__excerpt {
  font-size: 14px; color: var(--g08);
  line-height: 1.65; margin-bottom: 20px;
}
.search-result__read {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto;
  font-size: 13px; font-weight: 700; color: var(--preto);
  text-transform: uppercase; letter-spacing: .06em;
  transition: gap var(--t);
}
.search-result:hover .search-result__read { gap: 10px; }
.search-result__read svg { width: 14px; height: 14px; color: var(--v); }
.search-empty {
  max-width: 720px;
  padding: 40px;
  border-radius: 8px;
  background: var(--g01);
}
.search-empty__title {
  font-size: 24px; font-weight: 700; color: var(--preto);
  margin-bottom: 12px;
}
.search-empty__text {
  font-size: 16px; color: var(--g08);
  line-height: 1.65; margin-bottom: 24px;
}
.search-empty__form {
  display: flex; gap: 12px; align-items: center;
  max-width: 560px;
}
.search-empty__input {
  min-width: 0; flex: 1;
  width: 100%;
  height: 48px; padding: 0 18px;
  border: 1px solid var(--g03); border-radius: var(--r);
  font-family: inherit; font-size: 15px; color: var(--preto);
}
.search-empty__input:focus { outline: none; border-color: var(--v); box-shadow: 0 0 0 3px rgba(255,0,0,.12); }
.search-empty__submit {
  height: 48px; padding: 0 22px;
  border-radius: var(--r); background: var(--v); color: white;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  transition: background var(--t), transform var(--t);
}
.search-empty__submit:hover { background: var(--ve); transform: translateY(-1px); }

/* ── Reveal animations ─────────────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); }
.rv.is-visible { opacity: 1; transform: translateY(0); }

/* ── Tema de cores Fan Urbanismo (página Fan Urbanismo e empreendimentos marcados) ── */
/* Troca só a cor de destaque do conteúdo; header, menu, busca e rodapé mantêm a marca Fan. */
body.theme-urbanismo { --ve: #0E566F; }
body.theme-urbanismo #header,
body.theme-urbanismo .mobile-menu,
body.theme-urbanismo .search-modal,
body.theme-urbanismo #footer { --ve: #990000; }
/* Tons derivados que estavam fixos em vermelho no conteúdo */
body.theme-urbanismo .dif-card:hover { border-color: rgba(14,86,111,.3); }
body.theme-urbanismo .finput:focus,
body.theme-urbanismo #contato .wpcf7-form input:focus,
body.theme-urbanismo #contato .wpcf7-form select:focus,
body.theme-urbanismo #contato .wpcf7-form textarea:focus { box-shadow: 0 0 0 2px rgba(14,86,111,.15); }
body.theme-urbanismo .btn-sub:hover,
body.theme-urbanismo #contato .wpcf7-form input[type="submit"]:hover { background: #0a4052; }

/* ── Banner de imagem única: zoom contínuo (mesmo motion da Home/Empreendimentos) ── */
.hero-zoom img { animation: fan-hero-zoom 20s linear infinite alternate; }
@keyframes fan-hero-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  .hero-zoom img { animation: none; }
}
.rv-d1 { transition-delay: .1s; }
.rv-d2 { transition-delay: .2s; }
.rv-d3 { transition-delay: .3s; }
.rv-d4 { transition-delay: .4s; }
.rv-d5 { transition-delay: .5s; }
.rv-d6 { transition-delay: .6s; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1280px) { :root { --pp: max(80px, calc((100vw - 1216px) / 2)); } }

@media (max-width: 1100px) {
  :root { --pp: 40px; }
  #newsletter .col-5,
  #newsletter .col-7 { grid-column: span 12; }
  #footer .col-3,
  #footer .col-9     { grid-column: span 12; }
  .footer__actions   { justify-content: flex-start; flex-wrap: wrap; gap: 12px; }
  .footer__contacts  { flex-direction: column; align-items: flex-start; gap: 16px; }
  .newsletter__title { white-space: normal; }
}

@media (max-width: 900px) {
  .nav__list,
  .header__actions .btn-portal,
  .header__actions .btn-search { display: none; }
  .btn-hamburger { display: flex; }
  .fan-search-results { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --pp: 20px; --sv: 56px; }
  .stitle { font-size: 28px; }
  .newsletter__title { font-size: 20px; }
  .search-modal { padding: 16px; align-items: flex-start; padding-top: 96px; }
  .search-modal__box { padding: 32px 20px 24px; }
  .search-modal__title { font-size: 26px; }
  .search-modal__control,
  .search-empty__form { flex-direction: column; align-items: stretch; border-radius: 18px; }
  .search-modal__submit,
  .search-empty__submit { width: 100%; }
  .search-page { padding-top: 120px; }
  .search-page__title { font-size: 30px; }
  .fan-search-results { grid-template-columns: 1fr; }
  .search-empty { padding: 28px 20px; }
}

/* ── LOGOS MARQUEE (componente global) ───────────────────────────────────── */
#logos { background: var(--g02); padding: 48px 0; overflow: hidden; }
.ltrack-ttl {
  font-size: clamp(18px, 2vw, 24px); font-weight: 700; color: var(--preto);
  text-align: center;
  margin: 0 0 32px;
}
.ltrack-wrap { overflow: hidden; }
.ltrk {
  display: flex; gap: 48px; align-items: center;
  width: max-content;
  animation: lmq 20s linear infinite;
}
.ltrk:hover { animation-play-state: paused; }
@keyframes lmq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.lcard {
  flex-shrink: 0;
  width: 220px; height: 100px;
  background: var(--g01);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--t), box-shadow var(--t), background var(--t);
}
.lcard:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); background: white; }
.lcard img {
  max-width: 126px; max-height: 58px;
  width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(.2);
  transition: filter var(--t);
}
.lcard:hover img { filter: grayscale(0); }
.lcard img[alt="Grupo Fan" i] { max-width: 158px; max-height: 74px; }
