/* ==========================================================================
   WTC GOIÂNIA — layout: wrap, sections, header, footer
   Spacing rule: only .section controls vertical rhythm between blocks.
   No element selector sets vertical section margin.
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: var(--wrap-narrow); }

.section {
  background: var(--fundo);
  color: var(--tinta);
  padding-block: var(--section-y);
  position: relative;
  scroll-margin-top: 90px;
}
.section-compact { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section-no-top { padding-top: 0; }
/* Separates consecutive sections that share the same background (e.g. the
   WTC Hall block), where the bg change alone can't mark the boundary. */
.section-divider { border-top: 1px solid var(--linha); }
/* For a page whose first block isn't .hero (fixed header needs the same
   clearance regardless of which element sits behind it first). */
.section-header-offset { padding-top: clamp(7.5rem, 14vw, 11rem); }

/* Section header: tri-dot mark + title. */
.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head .lead { margin-top: var(--sp-5); }

.brand-dots {
  display: flex; gap: 7px; align-items: center;
  margin-bottom: var(--sp-4);
}
.brand-dots i {
  display: block; width: 9px; height: 9px;
  border-radius: 50%; background: var(--acento-grafo);
}
.brand-dots i:nth-child(2) { opacity: 0.62; }
.brand-dots i:nth-child(3) { opacity: 0.34; }

/* --- Header ----------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--z-header);
  transition: background var(--d-medium) var(--e-standard),
              border-color var(--d-medium) var(--e-standard),
              box-shadow var(--d-medium) var(--e-standard);
  border-bottom: 1px solid transparent;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5);
  min-height: 76px;
}
.header.is-solid {
  background: var(--color-secondary);
  border-bottom-color: var(--color-secondary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

/* Official WTCA Licensed Member logo (/img/wtc-goiania.svg).
   The artwork is locked and solid white: scale is controlled by width
   alone — height follows on its own, which is why the HTML's height="201"
   needs height:auto here to avoid distortion. The three marks in /img
   share the same internal proportion, so equal widths produce type of the
   same size across all of them. */
.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo img { display: block; width: 224px; height: auto; }
.logo-footer img { width: 250px; }

/* Primary navigation */
.nav-primary { display: none; }
@media (min-width: 1100px) {
  .nav-primary { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
}
.nav-primary a {
  font-size: var(--t-micro); letter-spacing: 0.045em;
  color: var(--color-white); text-decoration: none;
  padding-block: var(--sp-2);
  position: relative; white-space: nowrap;
  transition: color var(--d-fast) var(--e-standard);
}
.nav-primary a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--color-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--d-medium) var(--e-exit);
}
.nav-primary a:hover, .nav-primary a:focus-visible { color: var(--color-white); }
.nav-primary a:hover::after, .nav-primary a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: var(--sp-4); }

/* Below 620px the logo, the CTA, and the menu button don't fit together in
   the bar (~446px of content for ~320px of usable space at a 360px screen).
   The CTA drops here: "Contact" stays in the drawer, and the floating
   WhatsApp button remains visible. */
@media (max-width: 619px) {
  .header-actions > .button { display: none; }
  /* 192px at 320, 216px at 360, capped at the tablet's 224px from 374px up —
     still clears the menu diamond at 320. */
  .logo img { width: clamp(168px, 60vw, 224px); }
  /* Under enlarged text the bar's rem gap grows: the mark gives way
     (img max-width: 100%) instead of pushing the menu off-screen. */
  .header .logo { flex-shrink: 1; min-width: 0; }
}

/* Menu button — diamond shape, an echo of WTC Lisbon, in orange */
.menu-button {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--color-accent);
  transform: rotate(45deg);
  transition: background var(--d-fast) var(--e-standard);
  flex-shrink: 0;
}
.menu-button:hover { background: var(--color-accent); border-color: var(--color-accent); }
.menu-button:hover span i { background: var(--color-ink); }
.menu-button span { display: block; transform: rotate(-45deg); }
.menu-button span i {
  display: block; width: 17px; height: 1.5px;
  background: var(--color-accent); margin: 4px 0;
  transition: transform var(--d-medium) var(--e-exit), opacity var(--d-fast);
}
.menu-button[aria-expanded="true"] span i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] span i:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (min-width: 1100px) { .menu-button { display: none; } }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: var(--color-secondary);
  padding: 96px var(--gutter) var(--sp-8);
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity var(--d-medium) var(--e-standard), visibility var(--d-medium);
}
/* Visibility flips at once on open (it only lingers on close, for the fade),
   so nav.js can move focus to the first link in the same frame. */
.drawer[data-open="true"] {
  opacity: 1; visibility: visible;
  transition: opacity var(--d-medium) var(--e-standard), visibility 0s;
}
.drawer ul { display: flex; flex-direction: column; }
.drawer li { border-bottom: 1px solid var(--color-white); }
.drawer a {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) 0;
  font-family: var(--f-display); font-size: 1.375rem;
  color: var(--color-white); text-decoration: none;
}
@media (min-width: 1100px) { .drawer { display: none; } }

/* --- Footer ------------------------------------------------------------------ */
/* Dark gray field (--color-ink, client request 2026-09-29) — white carries
   the text (~10.4:1, AAA); accent is the hover color (~4.8:1 — AA). */
.footer { background: var(--color-ink); color: var(--color-white); padding-block: var(--sp-8) var(--sp-6); }
.footer-top {
  display: grid; gap: var(--sp-7);
  grid-template-columns: 1fr;
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--color-white);
}
/* Until the footer spreads into columns (780px), the link blocks pair up two
   by two; the brand and the address (its e-mail doesn't fit half a phone)
   take the full row. */
@media (max-width: 779px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-5); }
  .footer-brand, .footer-address { grid-column: 1 / -1; }
}
/* Phones: the mark spans 80% of the screen, centered (overrides the header's
   phone width on .logo img, which the footer mark also matches). */
@media (max-width: 619px) {
  .logo-footer { justify-content: center; }
  .logo-footer img { width: 80vw; }
}
@media (min-width: 780px)  { .footer-top { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1080px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; } }

.footer h3 {
  font-family: var(--f-data); font-size: var(--t-label);
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--color-white); margin-bottom: var(--sp-4); font-weight: 700;
}
.footer-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-list a { font-size: var(--t-micro); color: var(--color-white); text-decoration: none; transition: color var(--d-fast); }
.footer-list a:hover { color: var(--color-accent); }
.footer address { font-style: normal; font-size: var(--t-micro); line-height: 1.7; }
.footer address a { color: var(--color-white); text-decoration: none; }
.footer address a:hover { color: var(--color-accent); }

.footer-social { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); flex-wrap: wrap; }
.footer-social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--color-white); color: var(--color-white);
  transition: border-color var(--d-fast), color var(--d-fast);
}
.footer-social a:hover { border-color: var(--color-accent); color: var(--color-accent); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6);
  align-items: center; justify-content: space-between;
  padding-top: var(--sp-5);
  font-family: var(--f-data); font-size: 0.6875rem;
  letter-spacing: var(--ls-data); color: var(--color-white); /* ~10.4:1 on #404040 */
}
.footer-bottom a { color: var(--color-white); text-decoration: none; }
.footer-bottom a:hover { color: var(--color-accent); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); }

/* --- Utility grids -------------------------------------------------------- */
/* Single column is minmax(0, 1fr), not the implicit auto track: an auto
   track grows to its widest child's min-content (a select with a long option,
   a long word under enlarged text) and pushes the page past the screen. */
.grid-2 { display: grid; gap: clamp(2rem, 4vw, 4rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

.grid-3 { display: grid; gap: var(--sp-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px)  { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.editorial-grid { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .editorial-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
@media (min-width: 900px) { .editorial-grid-reverse { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
