/* ==========================================================================
   Receita: Escritório e Equipe — espresso-capitals
   Faixas de café alternando com creme e branco; Cinzel nos títulos, itálico caramelo
   em Cormorant Garamond; retângulo, com o card de pessoa como única forma arredondada.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ec-header-h) + 12px); }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--ec-paper); color: var(--ec-ink); font-family: var(--ec-font-body); font-size: 16.5px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ec-caramel); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 300; background: var(--ec-caramel); color: var(--ec-espresso); padding: 10px 18px; }
.skip-link:focus { left: 16px; }
.wrap { width: min(var(--ec-container), calc(100% - 48px)); margin-inline: auto; }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--ec-font-display); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: .01em; }
/* a expressão em itálico: Cormorant Garamond em caixa alta, caramelo — uma por título */
h1 em, h2 em, .closing em { font-family: var(--ec-font-accent); font-style: italic; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; color: var(--ec-caramel); }
.section-title { font-size: var(--ec-section-heading); margin-bottom: 22px; }
.section-lead { color: var(--ec-muted); max-width: 62ch; margin: 0 0 40px; }
.section-lead.center { margin-inline: auto; }
.label { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ec-caramel); margin: 0 0 14px; }
.label::before { content: ""; width: 5px; height: 5px; background: var(--ec-caramel); }
.label-center { justify-content: center; }

/* Ação ------------------------------------------------------------------------- */
.action { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--ec-caramel); color: var(--ec-espresso); border: 1px solid var(--ec-caramel);
  font-family: var(--ec-font-body); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 15px 24px; border-radius: var(--ec-radius); cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease; }
.action:hover { background: var(--ec-caramel-deep); border-color: var(--ec-caramel-deep); color: #fff; }
.action-sm { padding: 11px 18px; }
.action-ghost { background: transparent; color: var(--ec-on-dark); border-color: var(--ec-line-dark); }
.action-ghost:hover { background: transparent; border-color: var(--ec-caramel); color: var(--ec-caramel); }
.action-full { width: 100%; }

/* Navbar · nav-espresso-topbar --------------------------------------------------- */
.topbar { background: #211A15; color: var(--ec-on-dark-muted); font-size: 12.5px; }
.topbar-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.header { position: sticky; top: 0; z-index: 100; background: rgba(42, 33, 27, .97); color: var(--ec-on-dark); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.header.scrolled { border-bottom-color: rgba(180, 138, 90, .35); }
.header-row { display: flex; align-items: center; gap: 26px; height: var(--ec-header-h); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--ec-caramel); }
.brand-mark { width: 42px; height: 42px; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-family: var(--ec-font-display); font-size: 18px; font-weight: 500; color: var(--ec-on-dark); }
.brand-copy small { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--ec-caramel); }
.nav { display: flex; gap: clamp(14px, 2vw, 28px); }
.nav a { font-size: 14.5px; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ec-caramel); }
.menu-toggle { display: none; background: none; border: 1px solid var(--ec-line-dark); padding: 10px 9px; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ec-on-dark); margin: 4px 0; transition: transform .3s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-2.75px) rotate(-45deg); }
.nav-mobile { display: none; flex-direction: column; background: var(--ec-espresso); color: var(--ec-on-dark); padding: 6px 24px 16px; }
.nav-mobile a { padding: 13px 0; border-bottom: 1px solid var(--ec-line-dark); }
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile.open { display: flex; }

/* PhotoHero · hero-office-stats ------------------------------------------------------ */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: center; background: var(--ec-espresso); color: var(--ec-on-dark); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; margin: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(42, 33, 27, .93) 0%, rgba(42, 33, 27, .78) 55%, rgba(42, 33, 27, .62) 100%); }
.hero-inner { position: relative; padding-block: clamp(72px, 10vw, 128px) clamp(96px, 11vw, 140px); }
.hero h1 { font-size: var(--ec-hero-heading); max-width: 24ch; margin-bottom: 22px; color: var(--ec-on-dark); }
.lead { font-size: 17.5px; color: var(--ec-on-dark-muted); max-width: 60ch; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { list-style: none; margin: 48px 0 0; padding: 22px 0 0; border-top: 1px solid var(--ec-line-dark); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 760px; }
.stats strong { display: block; font-family: var(--ec-font-display); font-size: 22px; font-weight: 500; color: var(--ec-caramel); }
.stats span { font-size: 13.5px; color: var(--ec-on-dark-muted); }
.explore { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ec-on-dark-muted); }
.explore i { position: relative; width: 1px; height: 46px; background: var(--ec-line-dark); overflow: hidden; }
/* assinatura: um filete caramelo desce devagar pela linha */
.explore i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ec-caramel); animation: ec-explorar 2.4s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes ec-explorar { to { top: 100%; } }
.hero[data-ws2-layout="single"] .hero-bg { display: none; }

/* Faixas ------------------------------------------------------------------------------ */
.band { padding-block: var(--ec-band-y); }
.band-paper { background: var(--ec-paper); }
.band-cream { background: var(--ec-cream); }
.band-dark { background: var(--ec-espresso); color: var(--ec-on-dark); }
.band-dark h2, .band-dark h3 { color: var(--ec-on-dark); }
.band-dark .section-lead { color: var(--ec-on-dark-muted); }

/* AboutQuote · about-quote-split -------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-grid p { color: var(--ec-muted); }
.quote { margin: 0 0 24px; padding: 22px 26px; background: var(--ec-cream); border-left: 3px solid var(--ec-caramel);
  font-family: var(--ec-font-accent); font-style: italic; font-size: 23px; line-height: 1.4; color: var(--ec-ink); }
.closing { margin-top: 18px; font-size: 18px; }

/* Team · team-portrait-cards ------------------------------------------------------------ */
.team { list-style: none; margin: 40px auto 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; gap: 28px; }
/* só o card de pessoa arredonda: pessoa não é peça de catálogo */
.person { background: var(--ec-espresso); color: var(--ec-on-dark); border-radius: var(--ec-radius-person); overflow: hidden; box-shadow: 0 18px 40px rgba(42, 33, 27, .18); }
.person figure { margin: 0; background: var(--ec-espresso-raised); }
.person img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 18%; }
.person-copy { padding: 20px 22px 24px; text-align: center; }
.person h3 { font-size: 20px; color: var(--ec-on-dark); }
.role { margin: 6px 0 4px; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ec-caramel); }
.person-copy p:last-child { margin: 0; font-size: 14px; color: var(--ec-on-dark-muted); }

/* Areas · areas-taupe-grid --------------------------------------------------------------- */
.areas-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.areas-grid > div > p { color: var(--ec-muted); }
.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.areas-grid .hint { margin: 14px 0 0; font-size: 13px; color: var(--ec-muted); }

/* Flip — o card de área vira em Y: frente taupe, verso creme. Comportamento global (data-ws2-flip);
   hover e foco no link do verso viram pelo CSS; toque, Enter e Espaço pelo comportamento. */
.flip { position: relative; perspective: 1300px; height: 220px; cursor: pointer; }
.flip:focus-visible { outline-offset: 4px; }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transition: transform var(--ec-flip-duration) var(--ec-flip-ease); }
@media (hover: hover) { .flip:hover .flip-inner { transform: rotateY(180deg); } }
.flip.is-flipped .flip-inner, .flip:has(.flip-back a:focus-visible) .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 22px; border-radius: var(--ec-radius);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.flip-front { justify-content: flex-end; gap: 14px; background: var(--ec-taupe); color: var(--ec-on-dark); }
.flip-front .num { position: absolute; top: 14px; right: 18px; font-family: var(--ec-font-display); font-size: 48px; line-height: 1; color: var(--ec-on-dark); opacity: .16; }
.flip-front h3 { font-size: 17px; color: var(--ec-on-dark); }
.flip-back { transform: rotateY(180deg); justify-content: center; background: var(--ec-cream); border: 1px solid var(--ec-line); border-top: 3px solid var(--ec-caramel); color: var(--ec-ink); }
.flip-back h3 { font-size: 16px; color: var(--ec-caramel-deep); }
.flip-back p { margin: 10px 0 16px; font-size: 14.5px; line-height: 1.55; color: var(--ec-ink); }
.link-line { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ec-caramel-deep); padding-bottom: 3px; border-bottom: 1px solid currentColor; }
.icon-box { display: grid; place-items: center; width: 38px; height: 38px; background: rgba(180, 138, 90, .18); color: var(--ec-caramel); border-radius: var(--ec-radius); }
.icon-box svg { width: 20px; height: 20px; }

/* Benefits · benefits-dark-grid ------------------------------------------------------------ */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.benefit { padding: 26px 24px 28px; background: var(--ec-espresso-raised); border: 1px solid var(--ec-line-dark); border-radius: var(--ec-radius);
  transition: border-color .25s ease, transform .25s ease; }
.benefit:hover { border-color: rgba(180, 138, 90, .6); transform: translateY(-2px); }
.benefit .num { font-size: 12px; letter-spacing: .14em; color: var(--ec-caramel); }
.benefit h3 { font-size: 19px; margin: 10px 0 12px; }
.benefit p { margin: 0; font-size: 15px; color: var(--ec-on-dark-muted); }

/* Articles · articles-cards -------------------------------------------------------------- */
.articles { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.article { background: var(--ec-paper); border-radius: var(--ec-radius); overflow: hidden; display: flex; flex-direction: column; padding-bottom: 20px; }
.article figure { margin: 0 0 16px; background: var(--ec-espresso); }
.article img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.article .meta, .article h3, .article .more { margin-inline: 20px; }
.article .meta { margin-top: 0; margin-bottom: 6px; font-size: 12.5px; color: var(--ec-muted); }
.article h3 { font-size: 17px; line-height: 1.35; margin-bottom: 14px; }
.article .more { margin-top: auto; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ec-caramel); }

/* ContactUnits · contact-units-form --------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.channels { display: grid; gap: 14px; }
.channel { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; background: var(--ec-cream); border: 1px solid var(--ec-line); border-radius: var(--ec-radius); }
.channel .icon-box { flex: 0 0 auto; background: var(--ec-caramel); color: #fff; }
.channel strong { display: block; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ec-caramel-deep); margin-bottom: 4px; }
.channel span, .channel p { font-size: 15px; color: var(--ec-ink); margin: 0 0 10px; }
.map-link { font-size: 13px; font-weight: 600; color: var(--ec-caramel-deep); border-bottom: 1px solid currentColor; }
.form-card { background: var(--ec-cream); border: 1px solid var(--ec-line); border-top: 3px solid var(--ec-caramel); border-radius: var(--ec-radius); padding: clamp(22px, 3.5vw, 36px); display: grid; gap: 16px; }
.form-card h3 { font-size: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ec-muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; padding: 11px 13px; background: #fff; color: var(--ec-ink); border: 1px solid var(--ec-line); border-radius: var(--ec-radius); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--ec-caramel); outline-offset: 0; }
.field [aria-invalid="true"], .field .invalid { border-color: #B5523B; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ec-muted); }
.consent a { text-decoration: underline; color: var(--ec-ink); }
.form-status { margin: 0; font-size: 14px; color: var(--ec-caramel-deep); min-height: 1.2em; }

/* Footer · footer-espresso-columns ------------------------------------------------------------ */
.footer { background: var(--ec-espresso); color: var(--ec-on-dark-muted); padding: clamp(48px, 6vw, 76px) 0 22px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer p { margin: 0 0 8px; }
.footer-brand { font-family: var(--ec-font-display); font-size: 21px; color: var(--ec-on-dark); }
.footer-title { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ec-on-dark); font-weight: 600; padding-bottom: 10px;
  margin-bottom: 14px !important; border-bottom: 1px solid rgba(180, 138, 90, .5); width: fit-content; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col a:hover { color: var(--ec-caramel); }
.footer .ws2-social-row { width: auto; margin: 16px 0 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--ec-line-dark); font-size: 12.5px; }

.floating { position: fixed; right: 20px; bottom: 20px; z-index: 120; width: 54px; height: 54px; background: var(--ec-caramel); color: var(--ec-espresso); display: grid; place-items: center; border-radius: var(--ec-radius); }

/* Revelação ------------------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Responsivo ------------------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .nav, .header-row .action-sm { display: none; }
  .menu-toggle { display: block; }
  .about-grid, .areas-grid, .contact-grid { grid-template-columns: 1fr; }
  .benefits, .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .topbar-row span:last-child { display: none; }
  .stats, .benefits, .articles, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .team { grid-template-columns: minmax(0, 340px); }
  .areas { grid-template-columns: 1fr; }
  .hero-actions .action { width: 100%; }
  .explore { display: none; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* Movimento reduzido — escopado para o preview da WS2 ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html:not([data-ws2-motion="full"]) { scroll-behavior: auto; }
  html:not([data-ws2-motion="full"]) .reveal { transform: none !important; transition: opacity .4s ease !important; }
  html:not([data-ws2-motion="full"]) .reveal.in { opacity: 1; }
  html:not([data-ws2-motion="full"]) .explore i::after { animation: none; top: 30%; }
  html:not([data-ws2-motion="full"]) .benefit:hover { transform: none; }
  /* card de área troca de lado por fusão, sem girar */
  html:not([data-ws2-motion="full"]) .flip-inner { transform: none !important; transition: none; }
  html:not([data-ws2-motion="full"]) .flip-face { transition: opacity .25s ease; }
  html:not([data-ws2-motion="full"]) .flip-back { transform: none; opacity: 0; }
  html:not([data-ws2-motion="full"]) .flip.is-flipped .flip-back,
  html:not([data-ws2-motion="full"]) .flip:hover .flip-back,
  html:not([data-ws2-motion="full"]) .flip:has(.flip-back a:focus-visible) .flip-back { opacity: 1; }
  html:not([data-ws2-motion="full"]) .flip.is-flipped .flip-front,
  html:not([data-ws2-motion="full"]) .flip:hover .flip-front,
  html:not([data-ws2-motion="full"]) .flip:has(.flip-back a:focus-visible) .flip-front { opacity: 0; }
}
