/* ==========================================================================
   WTC GOIÂNIA — components
   ========================================================================== */

/* --- Buttons ----------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  /* Side padding stops growing with enlarged text (10vw >= 1.75rem at any
     normal size), leaving the room to the label. */
  padding: 0.95rem min(1.75rem, 10vw);
  font-family: var(--f-data); font-size: var(--t-micro); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--acento-grafo);
  color: var(--acento); background: transparent;
  transition: background var(--d-medium) var(--e-standard), color var(--d-medium) var(--e-standard);
  position: relative; overflow: hidden;
  /* Under enlarged text a single uppercase word can outgrow a narrow screen:
     the button stays inside its container and the word breaks instead of
     being clipped by the overflow above. */
  max-width: 100%; overflow-wrap: anywhere;
}
.button svg { flex-shrink: 0; transition: transform var(--d-medium) var(--e-exit); }
.button:hover svg, .button:focus-visible svg { transform: translateX(5px); }
.button:hover, .button:focus-visible { background: var(--acento-grafo); color: var(--color-ink); }

.button-solid {
  background: var(--color-accent); border-color: var(--color-accent); color: var(--color-ink); font-weight: 600;
}
.button-solid:hover, .button-solid:focus-visible {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-ink);
}
/* On a white section the white hover above would erase the button. */
.theme-white .button-solid:hover, .theme-white .button-solid:focus-visible {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-white);
}

.button-text {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-family: var(--f-data); font-size: var(--t-micro);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--acento); text-decoration: none;
  padding-bottom: 5px; border-bottom: 1px solid currentColor;
  max-width: 100%; overflow-wrap: anywhere; /* same reason as .button */
}
.button-text svg { transition: transform var(--d-medium) var(--e-exit); }
.button-text:hover svg { transform: translateX(5px); }

.button-group { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* --- Photo frame (placeholder) ----------------------------------------------
   Replace with a <picture> keeping the same aspect ratio. The mono caption
   describes the intended framing for the real photo shoot.
   -------------------------------------------------------------------------- */
.frame {
  position: relative; overflow: hidden;
  /* Flat primary placeholder field — see --g-frame in tokens.css. */
  background: var(--g-frame);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  isolation: isolate;
}
.frame::before {
  content: ""; position: absolute; inset: 12px; z-index: 2;
  border: 1px solid var(--color-accent);
  pointer-events: none;
}
.frame-mark { display: flex; gap: 9px; z-index: 3; opacity: 0.5; }
.frame-mark i {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--color-accent); position: relative;
}
.frame-mark i::after {
  content: ""; position: absolute; inset: 5px 0;
  border-top: 1px solid var(--color-accent); border-bottom: 1px solid var(--color-accent);
}
/* With the photo in place: the image covers the whole field and the thin
   ::before border still sits on top. */
.frame-photo > img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}

/* --- Virtual tour -------------------------------------------------------------
   The frame reuses .frame: same aspect ratio, same thin border. The iframe
   sits on top of the cover once the visitor picks an environment.
   -------------------------------------------------------------------------- */
.tour-frame > iframe {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; border: 0;
}
.tour-tabs { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); }
.tour-tabs .button { flex: 1 1 13rem; justify-content: center; }
.tour-tabs .button[aria-pressed="true"] {
  background: var(--acento-grafo); color: var(--color-ink);
}

.frame-portrait { aspect-ratio: 3 / 4; }
.frame-wide     { aspect-ratio: 16 / 9; }
.frame-panel    { aspect-ratio: 21 / 9; }
.frame-square   { aspect-ratio: 1 / 1; }
.frame-tall     { aspect-ratio: 2 / 3; }

/* --- Hero ---------------------------------------------------------------------- */
/* The hero's dark semantic roles come from tokens.css (.hero shares the
   .theme-dark selector), so any component placed inside inherits the
   correct contrast without needing an explicit color. */
.hero {
  background: var(--fundo); color: var(--tinta);
  padding-top: clamp(7.5rem, 14vw, 11rem);
  padding-bottom: 0;
  position: relative; overflow: hidden;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: end;
  /* The text column pulls back from the hero's bottom edge; the frame
     touches the stats bar, creating the hard seam that gives the
     editorial cut. */
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}
.hero-grid > .frame { margin-bottom: calc(clamp(3rem, 6vw, 5.5rem) * -1); }
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}
@media (max-width: 939px) {
  .hero-grid > .frame { margin-bottom: 0; }
}
.hero-title { color: var(--tinta-forte); margin-bottom: var(--sp-6); }
/* Inline, not block: the <em> highlights the word within the line and the
   break is done with <br> in the HTML. With display:block, any text after
   the </em> — including the closing period — fell alone onto a new line. */
.hero-title em { font-style: normal; color: var(--acento); }
.hero .lead { max-width: 42ch; margin-bottom: var(--sp-7); }
.hero-coordinate {
  font-family: var(--f-data); font-size: var(--t-label);
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--acento); margin-bottom: var(--sp-5); display: block;
}
/* Unit signature in the hero. The marks at /img/wtc-hotel.svg and
   /img/wtc-events.svg already contain the full WTC Goiânia lockup, so they
   take the support label's place instead of sitting alongside it. Scale is
   by width, same as the header: the three artworks in /img share the same
   internal proportion, so equal widths give type of the same body size. */
.unit-logo {
  display: block; width: clamp(232px, 30vw, 300px); height: auto;
  margin-bottom: var(--sp-5);
}

/* --- Hero with full-bleed photo ------------------------------------------------ */
/* Home variant: instead of the vertical frame, the photo fills the hero's
   whole field and the text sits on top. The frame gave contrast for free —
   without it, the 4.5:1 for the text is guaranteed by the blue filter, not
   by the photo's crop. That's why the filter is structural here, not
   decoration. */
.hero-image {
  padding-bottom: clamp(4.5rem, 9vw, 7.5rem);
  min-height: min(86vh, 820px);
  display: flex; align-items: flex-end;
  isolation: isolate;
}
.hero-image > .wrap { width: 100%; }
/* Text spans the full .wrap width (client request 2026-09-29) — no column
   cap on the grid or the lead. */
.hero-image .hero-grid {
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 0;
}
.hero-image .lead { max-width: none; }
/* Over the photo the accent steps up a grade: --color-accent is calibrated
   against the flat scrim below and closes the 4.5:1 target over the photo. */
.hero-image .hero-coordinate { color: var(--color-accent); }

.hero-media {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  /* Same family as .frame: while the final photo isn't in yet, the hero
     falls back to an intentional field instead of a hole. */
  background: var(--g-frame);
}
.hero-media img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: 50% 38%;
  /* The raw crop throws the façade's sign exactly behind the title. Scaling
     from the left edge pushes the sign into the free field on the right and
     leaves the text column over the plain wall — the contrast comes from
     the photo's plane, not just the scrim. */
  transform: scale(1.05);
  transform-origin: 0% 58%;
}
.hero-media video { width: 100%; height: 100%; display: block; object-fit: cover; }
/* Layer 1 — the brand blue filter (--color-secondary). `color` blend mode
   keeps the photo's luminance and swaps only the chroma, so the towers
   still read as volume; a flat overlay would turn into a stain. The dose
   is partial: at 0.52 opacity the photo reads monochrome-blue without
   flattening into a solid field. */
.hero-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--color-secondary);
  mix-blend-mode: color;
  opacity: 0.52;
  pointer-events: none;
}
/* Layer 2 — dark scrim. Flat black darkens the photo regardless of hue,
   independent of the blue filter above, so the title keeps its contrast
   even over a light patch of the crop. Gradient goes darker on the left,
   where the title sits, and lighter on the right. */
.hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.65));
  pointer-events: none;
}
/* Lighter dose of both layers, for heroes whose footage is already dark
   (O Complexo). The left side keeps the heavier scrim, under the title. */
.hero-soft .hero-media::before { opacity: 0.35; }
.hero-soft .hero-media::after {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}
/* Video heroes (client request 2026-11-04: lighter footage). The scrim runs
   bottom-up instead: the text block starts at 30–44% of the hero's height,
   so the top third opens up while the band behind the text keeps its dose.
   Measured over 8 frames of each clip at 1440 and 390 px: title and lead
   contrast held or improved vs the left-right gradient. */
.hero-media:has(video)::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.68) 55%, rgba(0, 0, 0, 0.3));
}
.hero-soft .hero-media:has(video)::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.52) 55%, rgba(0, 0, 0, 0.18));
}
/* Narrow screen: the photo's crop switches to width, which brings the
   façade sign to the center — right over the title. The framing moves left,
   where the wall is plain, and the scaling almost fully backs off. */
@media (max-width: 939px) {
  .hero-media img {
    object-position: 8% 62%;
    transform: scale(1.06);
    transform-origin: 0% 50%;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .hero-media::before { opacity: 1; mix-blend-mode: normal; }
}

/* Photo/video heroes on phones (home, hotel, events): the two buttons stack,
   so inline-grid stretches both to the wider one's width and 1fr rows to the
   taller one's height (a label wraps on the hotel at 320px). */
@media (max-width: 619px) {
  .hero-image .button-group { display: inline-grid; grid-auto-rows: 1fr; }
  .hero-image .button { justify-content: center; text-align: center; }
}

/* Pause/play for the hero video (js/hero-video.js). Sits in the hero's
   bottom padding, under .wrap's layer, so it never covers hero content. */
.hero-video-toggle {
  position: absolute; right: var(--gutter); bottom: var(--sp-3); z-index: 1;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--color-white); color: var(--color-white);
  background: rgba(0, 0, 0, 0.35);
  transition: background var(--d-fast) var(--e-standard), color var(--d-fast) var(--e-standard);
}
.hero-video-toggle:hover { background: var(--color-white); color: var(--color-ink); }

/* Inner heroes: no hard seam, padding on the hero itself to also cover
   pages that don't use .hero-grid (404 and policy). */
.hero-inner { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.hero-inner .hero-grid { align-items: center; padding-bottom: 0; }
.hero-inner .hero-grid > .frame { margin-bottom: 0; }

/* --- Hero search (WTC Business) -------------------------------------------------
   .hero-viewport holds the hero and the stats bar together at exactly one
   screen: the hero takes the flexible remainder (flex:1), the stats bar
   keeps its natural height, so both are visible on load with no scrolling. */
.hero-viewport { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
/* The results panel hangs below the hero, so this hero can't clip (.hero's
   overflow:hidden; .hero-media already clips the footage on its own) and must
   stack above the stats bar (z-index 2) that follows it. */
.hero-fullscreen { flex: 1; display: flex; align-items: center; overflow: visible; z-index: 3; }
.hero-fullscreen .wrap { width: 100%; position: relative; z-index: 1; }
.hero-search { position: relative; width: 100%; text-align: left; }
.hero-search .hero-title { margin-bottom: var(--sp-6); }
.hero-search-combobox { position: relative; }
.hero-search-field input {
  width: 100%; padding: 1.35rem 1.5rem;
  background: transparent;
  border: 1px solid var(--linha);
  color: var(--tinta-forte);
  font-family: var(--f-body); font-size: var(--t-lead);
  border-radius: 0; -webkit-appearance: none; appearance: none;
  transition: border-color var(--d-fast) var(--e-standard);
}
.hero-search-field input::placeholder { color: var(--tinta-tenue); }
.hero-search-field input:focus { border-color: var(--acento-grafo); outline: none; }

/* Results panel overlays the hero, right under the field — it never pushes
   layout height while typing. */
.hero-search-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + var(--sp-2)); z-index: 20;
  background: var(--superficie); border: 1px solid var(--linha);
  /* Capped by the screen height too, so on landscape phones the list
     scrolls inside the panel instead of running past the viewport. */
  max-height: min(22rem, 70vh); max-height: min(22rem, 70dvh); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--d-medium) var(--e-standard), transform var(--d-medium) var(--e-exit), visibility var(--d-medium);
}
.hero-search-panel[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
.hero-search-panel .directory-list { border-top: 0; }
.hero-search-panel .directory-item { padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--linha-tenue); }
.hero-search-panel .directory-item:last-child { border-bottom: 0; }
.hero-search-panel .directory-item.is-active { background: var(--fundo); }
.hero-search-panel .directory-item mark { background: transparent; color: var(--acento); font-weight: 600; }
.hero-search-panel .directory-state { padding: var(--sp-6) var(--sp-5); border-top: 0; }

/* --- Occupancy models (escritórios × lajes) --------------------------------------- */
.occupancy-grid { display: grid; gap: var(--sp-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 780px) { .occupancy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.occupancy {
  display: flex; flex-direction: column;
  background: var(--superficie);
  border: 1px solid var(--linha-tenue);
  border-top: 2px solid var(--acento-grafo);
}
.occupancy .frame { margin: 0; }
.occupancy-body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.occupancy-body p { font-size: var(--t-small); color: var(--tinta-fraca); }
.occupancy-body .button-text { margin-top: auto; align-self: flex-start; padding-top: var(--sp-3); }

/* Stats bar under the hero */
.stats-bar {
  background: var(--fundo); color: var(--tinta);
  position: relative; z-index: 2;
}
.stats-bar ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-bar li {
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.75rem);
  text-align: center;
}
/* Mobile 2×2: only the inner cross, no lines on the outer edges. The wrap
   drops its gutter so the horizontal line runs to the screen edges. */
.stats-bar .wrap               { padding-inline: 0; }
.stats-bar li:nth-child(odd)   { border-right: 1px solid var(--linha); }
.stats-bar li:nth-child(-n+2)  { border-bottom: 1px solid var(--linha); }
@media (min-width: 760px) {
  .stats-bar { border-top: 1px solid var(--linha); }
  .stats-bar .wrap { padding-inline: var(--gutter); }
  .stats-bar ul { grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--linha); }
  .stats-bar li { border-right: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
}
.stats-bar .v {
  display: block; font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.05; color: var(--tinta-forte); font-weight: 600;
  /* No tabular-nums: Schibsted Grotesk gives "." and "," a digit-wide slot
     there ("1 . 300"), and each value sits alone in its cell anyway. */
  margin-bottom: var(--sp-2);
}
.stats-bar .k {
  display: block; font-family: var(--f-data); font-size: 0.625rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--tinta-tenue); line-height: 1.5;
}

/* --- Territories (signature element) ----------------------------------------------
   The complex sold as four territories — Office, Receber, Viver e conectar,
   Residence — instead of a floor directory. Photo-led cards, one link each,
   no per-card CTA and no interactive map: the pitch has to read in seconds.
   -------------------------------------------------------------------------- */
.territories { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
@media (min-width: 1000px) {
  .territories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.territory-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  border: 1px solid var(--linha-tenue);
  transition: border-color var(--d-medium) var(--e-standard);
}
.territory-card:hover, .territory-card:focus-visible { border-color: var(--acento-grafo); }

.territory-media { aspect-ratio: 4 / 5; margin: 0; }
.territory-media img { transition: transform var(--d-slow) var(--e-standard); }
.territory-card:hover .territory-media img,
.territory-card:focus-visible .territory-media img { transform: scale(1.045); }

.territory-body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.territory-body p { font-size: var(--t-small); color: var(--tinta-fraca); }
.territory-tags {
  margin-top: auto; padding-top: var(--sp-3);
  font-family: var(--f-data); font-size: var(--t-micro);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--tinta-tenue);
}
/* From tablet up, stacked portrait photos ran ~3,900px tall. Each card turns
   sideways — photo at 50%, same 4/5 crop, text beside it — and stays that way
   in the 2x2 grid on desktop, where full-width portrait photos would be just
   as tall. */
@media (min-width: 640px) {
  .territory-card { flex-direction: row; }
  .territory-media { flex: 0 0 50%; }
  .territory-body { padding: var(--sp-6); }
}

/* --- Unit cards ---------------------------------------------------------------- */
.card {
  display: flex; flex-direction: column;
  background: var(--superficie);
  border: 1px solid var(--linha-tenue);
  border-top: 2px solid var(--acento-grafo);
  text-decoration: none; color: inherit;
  transition: transform var(--d-medium) var(--e-exit), border-color var(--d-medium);
}
a.card:hover, a.card:focus-visible { transform: translateY(-4px); border-color: var(--linha); }
.card-body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.card-body .label { color: var(--acento); }
.card-body p { font-size: var(--t-small); color: var(--tinta-fraca); }
.card-body .button-text { margin-top: auto; align-self: flex-start; padding-top: var(--sp-3); }
/* On the blue section the text roles turn white, but the card stays a white
   surface — so the card restores the light-theme roles it sits on. */
.theme-cerrado .card {
  --tinta:        var(--color-ink);
  --tinta-forte:  var(--color-ink);
  --tinta-fraca:  var(--color-ink);
  --tinta-tenue:  var(--color-ink);
  --linha:        var(--color-ink);
  --linha-tenue:  var(--color-ink);
  --acento:       var(--color-accent);
  --acento-grafo: var(--color-accent);
  color: var(--tinta);
}

/* --- Spec list ------------------------------------------------------------------ */
.specs { border-top: 1px solid var(--linha); }
.specs div {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
  justify-content: space-between; align-items: baseline;
  padding: var(--sp-4) 0; border-bottom: 1px solid var(--linha-tenue);
}
.specs dt { font-size: var(--t-small); color: var(--tinta-fraca); }
.specs dt svg { position: relative; top: 0.2em; }
.specs dd {
  font-family: var(--f-data); font-size: var(--t-small); font-weight: 500;
  color: var(--tinta-forte); font-variant-numeric: tabular-nums; text-align: right;
}

/* --- Marked list ------------------------------------------------------------------ */
.marked-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.marked-list li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--sp-3);
  font-size: var(--t-small); color: var(--tinta-fraca);
}
.marked-list-icon {
  width: 26px; height: 26px; margin-top: 0.1em;
  color: var(--acento); stroke-width: 1.6;
}
.marked-list b { display: block; color: var(--tinta-forte); font-weight: 600; margin-bottom: 2px; }

/* --- Testimonials ------------------------------------------------------------------ */
.testimonial {
  border-left: 2px solid var(--acento-grafo);
  padding-left: clamp(1.25rem, 3vw, 2rem);
}
.testimonial blockquote {
  font-family: var(--f-display); font-size: var(--t-h3);
  line-height: 1.42; color: var(--tinta-forte); margin-bottom: var(--sp-4);
}
.testimonial cite {
  font-style: normal; font-family: var(--f-data); font-size: 0.6875rem;
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--tinta-tenue);
}
.testimonial cite b { display: block; color: var(--acento); font-weight: 500; margin-bottom: 3px; }

/* --- FAQ (native details) ---------------------------------------------------------- */
.faq { border-top: 1px solid var(--linha); }
.faq details { border-bottom: 1px solid var(--linha); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
  padding: var(--sp-5) 0; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-size: var(--t-h4); font-weight: 600;
  color: var(--tinta-forte);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 13px; height: 13px;
  border-right: 1.5px solid var(--acento-grafo); border-bottom: 1.5px solid var(--acento-grafo);
  transform: rotate(45deg) translateY(-3px);
  transition: transform var(--d-medium) var(--e-exit);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq .faq-body { padding-bottom: var(--sp-5); max-width: 62ch; font-size: var(--t-small); color: var(--tinta-fraca); }
.faq .faq-body p + p { margin-top: var(--sp-3); }

/* --- Form -------------------------------------------------------------------------- */
/* minmax(0, 1fr) instead of the implicit auto track: a date input or a long
   select option would otherwise widen the whole form past a narrow screen. */
.form { display: grid; gap: var(--sp-5); grid-template-columns: minmax(0, 1fr); }
.field-row { display: grid; gap: var(--sp-5); grid-template-columns: minmax(0, 1fr); }
/* Two columns only while each field keeps 14rem: in a narrow side column
   (Eventos at ~900px) the pair stacks instead of cutting a long option. */
@media (min-width: 620px) { .field-row-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); } }

.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label {
  font-family: var(--f-data); font-size: var(--t-label);
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--tinta-fraca);
}
.field label .req { color: var(--acento); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem;
  background: transparent;
  border: 1px solid var(--linha);
  /* 16px, not --t-small (15px): iOS Safari zooms the page into any field
     under 16px on focus — iPads included, hence no breakpoint. */
  color: var(--tinta-forte); font-size: 1rem;
  transition: border-color var(--d-fast) var(--e-standard);
  border-radius: 0; -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  padding-right: 2.75rem;
}
.field select option { background: var(--color-accent); color: var(--color-ink); }
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--acento-grafo); }
.field input::placeholder, .field textarea::placeholder { color: var(--tinta-tenue); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--color-ink);
}
.field-error { font-size: var(--t-micro); color: var(--color-ink); min-height: 0; }
.field-error:empty { display: none; }

.consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--sp-3); align-items: start; }
.consent input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 3px; padding: 0;
  border: 1px solid var(--linha); background: transparent;
  display: grid; place-items: center; cursor: pointer;
}
.consent input[type="checkbox"]::after {
  content: ""; width: 9px; height: 9px; background: var(--acento-grafo);
  transform: scale(0); transition: transform var(--d-fast) var(--e-exit);
}
.consent input[type="checkbox"]:checked::after { transform: scale(1); }
.consent label { font-size: var(--t-micro); color: var(--tinta-fraca); line-height: 1.6; text-transform: none; letter-spacing: 0; font-family: var(--f-body); }
.consent a { color: var(--acento); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-feedback {
  padding: var(--sp-4) var(--sp-5); font-size: var(--t-small);
  border: 1px solid var(--linha); display: none;
}
.form-feedback[data-state="ok"]    { display: block; border-color: var(--acento-grafo); color: var(--tinta-forte); }
.form-feedback[data-state="error"] { display: block; border-color: var(--color-ink); color: var(--color-ink); }

/* --- Company directory (WTC Business) ----------------------------------------------- */
.directory { margin-top: var(--sp-8); }
.directory-search { max-width: 34rem; }
.directory-hint { font-size: var(--t-micro); color: var(--tinta-tenue); margin-top: var(--sp-2); }

.directory-results { margin-top: var(--sp-7); }
.directory-state { padding: var(--sp-7) 0; border-top: 1px solid var(--linha); }
.directory-state p { color: var(--tinta-fraca); margin-top: var(--sp-2); }
.directory-state .button { margin-top: var(--sp-5); }

.directory-list { border-top: 1px solid var(--linha); }
.directory-item {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) 0; border-bottom: 1px solid var(--linha-tenue);
}
.directory-item p { font-size: var(--t-small); color: var(--tinta-fraca); margin-top: var(--sp-1); }
.directory-item .data { display: block; margin-top: var(--sp-2); color: var(--tinta-tenue); }

/* Company cards ("Quem está no WTC"): logo box, initials while there's no logo. */
.company-logo {
  width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--linha-tenue);
  font-family: var(--f-data); font-weight: 600; color: var(--acento);
}
.company-logo img { width: 100%; height: 100%; object-fit: contain; }
.card-body .data { color: var(--tinta-tenue); }

/* --- Contact channels -------------------------------------------------------------- */
.channel {
  border: 1px solid var(--linha-tenue); background: var(--superficie);
  padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3);
  border-top: 2px solid var(--acento-grafo);
}
.channel .label { color: var(--acento); }
.channel p { font-size: var(--t-small); color: var(--tinta-fraca); }
.channel-links { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-3); }
.channel-links a {
  font-family: var(--f-data); font-size: var(--t-micro);
  color: var(--tinta-forte); text-decoration: none;
  display: inline-flex; align-items: center; gap: var(--sp-3);
}
.channel-links a:hover { color: var(--acento); }

/* --- Blog article cards -------------------------------------------------------------- */
.article-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--linha-tenue); background: var(--superficie);
}
.article-card .frame { margin: 0; }
.article-card-body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); }
.article-card-body p { font-size: var(--t-small); color: var(--tinta-fraca); }

/* --- Gallery ----------------------------------------------------------------------- */
.gallery { position: relative; }
.gallery-track {
  display: flex; gap: var(--sp-4);
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  padding-bottom: var(--sp-2);
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track > * {
  scroll-snap-align: start; flex: 0 0 84%;
}
@media (min-width: 700px)  { .gallery-track > * { flex-basis: 48%; } }
@media (min-width: 1060px) { .gallery-track > * { flex-basis: 32%; } }

.gallery-controls { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); align-items: center; }
.gallery-controls button {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--linha); color: var(--tinta-fraca);
  transition: border-color var(--d-fast), color var(--d-fast);
}
.gallery-controls button:hover:not(:disabled) { border-color: var(--acento-grafo); color: var(--acento); }
.gallery-controls button:disabled { opacity: 0.35; cursor: default; }
.gallery-progress { flex: 1; height: 1px; background: var(--linha); position: relative; margin-left: var(--sp-4); }
.gallery-progress i {
  position: absolute; inset: 0 auto 0 0; width: 100%; height: 1px; background: var(--acento-grafo);
  transform-origin: left; transition: transform var(--d-medium) var(--e-standard);
}

/* --- Gallery mosaic ------------------------------------------------------------
   Five frames, deliberately uneven sizes. Row height is fixed via
   grid-auto-rows so column/row spans shape each frame; .frame's default
   aspect-ratio must be cleared here or it overrides the grid stretch. */
.gallery-mosaic > .frame { aspect-ratio: auto; }
.gallery-mosaic {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(7rem, 26vw, 10.5rem);
  grid-template-areas:
    "a a"
    "a a"
    "b d"
    "c d"
    "e f"
    "g g";
}
@media (min-width: 700px) {
  .gallery-mosaic {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: clamp(8rem, 14vw, 12rem);
    grid-template-areas:
      "a a b g g"
      "a a d c c"
      "e f d c c";
  }
}
.gallery-mosaic > :nth-child(1) { grid-area: a; }
.gallery-mosaic > :nth-child(2) { grid-area: b; }
.gallery-mosaic > :nth-child(3) { grid-area: c; }
.gallery-mosaic > :nth-child(4) { grid-area: d; }
.gallery-mosaic > :nth-child(5) { grid-area: e; }
.gallery-mosaic > :nth-child(6) { grid-area: f; }
.gallery-mosaic > :nth-child(7) { grid-area: g; }

/* --- Event mosaic (WTC Ballroom configurations) ---------------------------------
   A simpler variant of .gallery-mosaic, sized for a half-width column instead
   of the full section width: one tall frame, four square, one wide — total
   height stays pinned to the text column (.event-mosaic fills height:100%),
   rows just get thinner as more images are added. */
.event-mosaic {
  display: grid;
  height: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(5rem, 1fr));
  gap: var(--sp-3);
  grid-template-areas:
    "a b"
    "a c"
    "d e"
    "f f";
}
.event-mosaic > .frame { aspect-ratio: auto; }
.event-mosaic > :nth-child(1) { grid-area: a; }
.event-mosaic > :nth-child(2) { grid-area: b; }
.event-mosaic > :nth-child(3) { grid-area: c; }
.event-mosaic > :nth-child(4) { grid-area: d; }
.event-mosaic > :nth-child(5) { grid-area: e; }
.event-mosaic > :nth-child(6) { grid-area: f; }

/* --- Final CTA ------------------------------------------------------------------------ */
/* Plain light theme — uses the root default roles, no local overrides. */
.final-cta {
  background: var(--fundo); color: var(--tinta);
  padding-block: var(--section-y); position: relative; overflow: hidden;
}
.final-cta .wrap { position: relative; z-index: 1; }
.final-cta h2 { color: var(--tinta-forte); margin-bottom: var(--sp-5); }
.final-cta p { color: var(--tinta-fraca); max-width: 48ch; margin-bottom: var(--sp-7); font-size: var(--t-lead); }
/* The column is too narrow for both buttons side by side, so they stack;
   inline-grid stretches both to the wider one's width. */
.final-cta .button-group { display: inline-grid; }
.final-cta .button { justify-content: center; }

/* --- Data table ------------------------------------------------------------------------ */
.table-wrap {
  overflow-x: auto; border-top: 1px solid var(--tinta-forte);
  /* Scroll cue: a soft shadow on whichever side still has columns. The
     "local" covers scroll with the table and hide the "scroll" shadows once
     an edge is reached. Focusable (tabindex in the HTML) so arrow keys
     scroll it in every browser. */
  background:
    linear-gradient(to right, var(--fundo) 30%, transparent) left / 2rem 100% no-repeat local,
    linear-gradient(to left, var(--fundo) 30%, transparent) right / 2rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgb(0 0 0 / 0.18), transparent) left / 0.75rem 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgb(0 0 0 / 0.18), transparent) right / 0.75rem 100% no-repeat scroll;
}
.data-table { min-width: 34rem; font-size: var(--t-small); }
.data-table th {
  text-align: left; font-family: var(--f-data); font-size: var(--t-label);
  letter-spacing: var(--ls-label); text-transform: uppercase; font-weight: 500;
  color: var(--tinta-tenue); padding: var(--sp-4) var(--sp-5) var(--sp-4) 0;
  border-bottom: 1px solid var(--linha); white-space: nowrap;
}
.data-table td {
  padding: var(--sp-4) var(--sp-5) var(--sp-4) 0;
  border-bottom: 1px solid var(--linha-tenue); vertical-align: top;
}
.data-table td:first-child { color: var(--tinta-forte); font-weight: 600; }
.data-table .num { font-family: var(--f-data); font-variant-numeric: tabular-nums; }

/* --- Consent banner ---------------------------------------------------------------------- */
/* Sits above the floating WhatsApp button, never over it: both live in the
   bottom-right corner, and the banner used to swallow the button's clicks. */
.consent-banner {
  --banner-bottom: calc(var(--sp-4) + var(--whatsapp-size) + var(--sp-3));
  position: fixed; inset: auto var(--sp-4) var(--banner-bottom) var(--sp-4);
  z-index: var(--z-modal);
  max-width: 30rem; margin-left: auto;
  background: var(--color-secondary); border: 1px solid var(--color-white);
  padding: var(--sp-5);
  /* Orange on the blue field is 1.56:1 — the outline button and the link
     switch to white, same as .theme-cerrado. */
  --acento: var(--color-white); --acento-grafo: var(--color-white);
  transform: translateY(calc(100% + var(--banner-bottom)));
  transition: transform var(--d-slow) var(--e-exit);
  /* Never taller than the room above the WhatsApp button: on short screens or
     with enlarged text the banner scrolls inside instead of running off the top. */
  max-height: calc(100vh - var(--banner-bottom) - var(--sp-4));
  max-height: calc(100dvh - var(--banner-bottom) - var(--sp-4));
  overflow-y: auto; overscroll-behavior: contain;
}
.consent-banner[data-visible="true"] { transform: translateY(0); }
/* The open mobile menu covers the whole screen: the banner steps aside while
   it's open and comes back, choice still pending, when it closes. */
.drawer[data-open="true"] ~ .consent-banner { visibility: hidden; }
.consent-banner p { font-size: var(--t-micro); color: var(--color-white); margin-bottom: var(--sp-4); }
.consent-banner a { color: var(--color-white); }
.consent-banner .button-group .button { padding: 0.7rem 1.2rem; font-size: 0.6875rem; }

/* --- Floating WhatsApp ---------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed; right: var(--sp-4); bottom: var(--sp-4); z-index: 70;
  width: var(--whatsapp-size); height: var(--whatsapp-size); display: block;
  transition: transform var(--d-medium) var(--e-exit);
}
.whatsapp-float img { display: block; width: 100%; height: 100%; }
.whatsapp-float:hover { transform: scale(1.06); }

/* Area picker: photo panel + option cards. Stacks on mobile; side by side from 48rem. */
/* The dialog itself doesn't scroll: .whatsapp-dialog-scroll does, so the close
   button (a direct child, positioned against the dialog) stays in its corner
   while the channel list scrolls under it. */
.whatsapp-dialog {
  width: min(64rem, calc(100% - 2 * var(--sp-4)));
  max-height: calc(100dvh - 2 * var(--sp-4));
  padding: 0; border: 0; overflow: hidden;
  background: var(--color-bg-light); color: var(--color-ink);
}
.whatsapp-dialog-scroll { max-height: inherit; overflow-y: auto; overscroll-behavior: contain; }
.whatsapp-dialog::backdrop { background: rgb(105 141 193 / 0.7); }

.whatsapp-dialog-intro {
  position: relative; isolation: isolate;
  padding: var(--sp-7) var(--sp-5) calc(var(--sp-6) + 5rem);
  background: var(--color-accent); color: var(--color-ink);
}
.whatsapp-dialog-intro img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.whatsapp-dialog-intro::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* Phones: the text keeps a solid accent behind it (ink on accent 4.76:1);
     the extra 5rem of bottom padding is where the photo shows, under a
     light fade. */
  background: linear-gradient(to bottom, var(--color-accent) calc(100% - 6rem), rgb(226 163 94 / 0.45) calc(100% - 3rem), rgb(226 163 94 / 0.1));
}
.whatsapp-dialog-intro h2 {
  font-family: var(--f-display); font-weight: 600; line-height: 1.1;
  font-size: clamp(2rem, 3.4vw, 2.75rem); color: inherit;
  margin-bottom: var(--sp-4);
}
.whatsapp-dialog-intro .brand-dots i { background: var(--color-ink); }
.whatsapp-dialog-intro p { font-size: var(--t-body); max-width: 20rem; }

.whatsapp-dialog-body { padding: var(--sp-5) var(--sp-4); }
.whatsapp-dialog-body ul { display: grid; gap: var(--sp-4); }

.whatsapp-option {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--color-white); border: 1px solid rgb(64 64 64 / 0.12);
  text-decoration: none;
  transition: border-color var(--d-medium) var(--e-standard);
}
.whatsapp-option:hover, .whatsapp-option:focus-visible { border-color: var(--color-accent); }
.whatsapp-option-icon {
  display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: color-mix(in srgb, var(--color-accent) 22%, white);
}
.whatsapp-option-icon svg { width: 45%; height: 45%; stroke-width: 1.5; }
.whatsapp-option-text {
  font-size: var(--t-small); line-height: 1.5;
  color: color-mix(in srgb, var(--color-ink) 72%, white);
}
.whatsapp-option-text b {
  display: block; margin-bottom: var(--sp-1);
  font-family: var(--f-display); font-weight: 600; font-size: var(--t-h4);
  color: var(--color-ink);
}
.whatsapp-option > svg {
  width: 26px; height: auto; color: var(--color-accent);
  transition: transform var(--d-medium) var(--e-exit);
}
.whatsapp-option:hover > svg, .whatsapp-option:focus-visible > svg { transform: translateX(5px); }

.whatsapp-dialog-close {
  position: absolute; top: var(--sp-3); right: var(--sp-3); z-index: 1;
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  color: var(--color-ink);
}
.whatsapp-dialog-close:hover { opacity: 0.6; }

@media (min-width: 48rem) {
  .whatsapp-dialog-scroll { display: grid; grid-template-columns: 36% 1fr; }
  .whatsapp-dialog-intro { padding: var(--sp-9) var(--sp-6) var(--sp-6); min-height: 36rem; }
  .whatsapp-dialog-intro::before { background: linear-gradient(to bottom, var(--color-accent) 50%, rgb(226 163 94 / 0.35)); }
  .whatsapp-dialog-body { padding: var(--sp-9) var(--sp-6) var(--sp-7); }
  .whatsapp-option { gap: var(--sp-5); padding: var(--sp-5) var(--sp-6); }
  .whatsapp-option-icon { width: 4.5rem; height: 4.5rem; }
  .whatsapp-option-text b { font-size: var(--t-h3); }
  .whatsapp-dialog-close { top: var(--sp-5); right: var(--sp-5); }
}

/* --- Scroll reveal --------------------------------------------------------------------
   The initial hidden state only applies once nav.js sets html[data-js].
   If JavaScript fails or is blocked, the content stays visible.
   -------------------------------------------------------------------------------------- */
html[data-js] [data-reveal] { opacity: 0; transform: translateY(18px); }
html[data-js] [data-reveal][data-visible="true"] {
  opacity: 1; transform: none;
  transition: opacity var(--d-slow) var(--e-standard), transform var(--d-slow) var(--e-exit);
}
@media (prefers-reduced-motion: reduce) {
  html[data-js] [data-reveal] { opacity: 1; transform: none; }
}

/* --- Floor plans ----------------------------------------------------------------
   Reuses .gallery (one big plan per slide, the next one peeking in). The plan
   sits on a white field and is never cropped (object-fit: contain), so the
   final drawings can have any aspect ratio. Click opens #plan-dialog.
   -------------------------------------------------------------------------- */
.plans .gallery-track > * { flex-basis: 92%; }
.plan { display: grid; gap: var(--sp-5); align-content: start; }
.plan-zoom {
  display: block; width: 100%; padding: 0; border: 0;
  background: var(--color-white); cursor: zoom-in;
}
.plan-zoom img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.plan-specs { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); font-size: var(--t-small); }
@media (min-width: 60rem) { .plans .gallery-track > * { flex-basis: 88%; } }
/* Mouse drag (js/plans.js): no snap and no text selection mid-drag. */
.plans .gallery-track.is-dragging { scroll-snap-type: none; user-select: none; }
.plans .gallery-track.is-dragging * { cursor: grabbing; }

/* Full-screen viewer: the dialog covers the whole viewport; clicking anywhere
   but the close button closes it (cursor says so). */
.plan-dialog {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: var(--sp-4); border: 0;
  background: transparent; cursor: zoom-out;
}
.plan-dialog[open] { display: grid; place-items: center; }
.plan-dialog::backdrop { background: rgb(64 64 64 / 0.95); }
.plan-dialog img {
  max-width: 100%; max-height: calc(100dvh - 2 * var(--sp-4));
  width: auto; height: auto; object-fit: contain; background: var(--color-white);
}
.plan-dialog-close {
  position: fixed; top: var(--sp-4); right: var(--sp-4);
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  background: var(--color-white); color: var(--color-ink); border-radius: 50%; cursor: pointer;
}
.plan-dialog-close:hover { opacity: 0.8; }

/* --- Review mode: highlights data still pending client confirmation --------------------
   Enable with ?review=1 in the URL. No effect in production.
   -------------------------------------------------------------------------------------- */
html[data-review] [data-pending] {
  outline: 1px dashed var(--color-accent); outline-offset: 2px;
}
html[data-review] [data-pending]::after {
  content: "⚠ " attr(data-pending);
  display: block; font-family: var(--f-data); font-size: 0.625rem;
  letter-spacing: 0.08em; color: var(--color-accent); text-transform: uppercase; margin-top: 2px;
}
