/* Barbara Gatica — mídia kit
   Fonts self-hosted locally (see assets/fonts). Subset files reused across
   weights because the source files are variable fonts. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/archivo-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/big-shoulders-display-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/big-shoulders-display-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/big-shoulders-display-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #0d0d0c;
  color: #f5f2ec;
  font-family: Archivo, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #f5c400; text-decoration: none; }
a:hover { color: #ffd94a; }
html { scroll-behavior: smooth; }

@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pulseRing { 0% { transform: scale(1); opacity: .55; } 70% { transform: scale(1.7); opacity: 0; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes floatBall { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- nav: desktop / mobile swap (CSS instead of JS state) ---------- */
.nav-desktop { display: flex; flex-wrap: wrap; gap: clamp(10px,2vw,26px); font-family:'Big Shoulders Display',Impact,sans-serif; font-weight:700; font-size:clamp(13px,1.5vw,17px); letter-spacing:.14em; text-transform:uppercase; }
.nav-toggle { display: none; }
@media (max-width: 819px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 8px; border: none; background: transparent; cursor: pointer; }
}
.nav-toggle-bar { display: block; height: 2px; background: #f5f2ec; border-radius: 2px; transition: background .2s ease, transform .3s cubic-bezier(.2,.7,.2,1), opacity .2s ease, width .3s ease; }
.nav-toggle:hover .nav-toggle-bar { background: #f5c400; }
.nav-toggle-bar--accent { width: 60%; background: #f5c400; }
/* com o menu aberto as barras viram um X, no mesmo lugar em que se clicou para abrir */
body.menu-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle-bar--accent { width: 100%; transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 49; background: rgba(13,13,12,.97); backdrop-filter: blur(6px); display: none; flex-direction: column; justify-content: center; gap: 6px; padding: 88px clamp(20px,7vw,48px) 40px; animation: riseIn .35s ease both; }
.mobile-menu.is-open { display: flex; }
.mobile-menu a { padding: 10px 0; border-bottom: 1px solid rgba(245,242,236,.12); font-family:'Big Shoulders Display',Impact,sans-serif; font-weight:900; font-size:clamp(38px,11vw,64px); line-height:1; letter-spacing:.02em; text-transform:uppercase; color:#f5f2ec; }
.mobile-menu a:hover { color: #f5c400; }
body.menu-open { overflow: hidden; }

/* ---------- hero title ---------- */
/* O mobile fica no tamanho original; do breakpoint do menu (819px) para cima
   o título vale metade disso, senão domina a tela inteira no desktop. */
#bg-hero-title { font-size: clamp(68px, 17.5vw, 268px); }
@media (min-width: 820px) {
  #bg-hero-title { font-size: clamp(34px, 8.75vw, 134px); }
}

/* ---------- image slots (photo placeholders that the CMS fills in) ---------- */
.img-slot { position: relative; width: 100%; height: 100%; overflow: hidden; background: linear-gradient(135deg, rgba(245,242,236,.09), rgba(245,242,236,.02)); }
.img-slot img { display: none; width: 100%; height: 100%; object-fit: cover; }
.img-slot.has-image img { display: block; }
.img-slot.has-image .img-slot-label { display: none; }
.img-slot-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(245,242,236,.4); }

/* ---------- hover treatments (replace the design tool's inline style-hover) ---------- */
.card-chapter { transition: background .35s ease; }
.card-chapter:hover { background: #1a1917; }
.row-timeline { transition: padding-left .35s ease, background .35s ease; }
.row-timeline:hover { padding-left: 14px; background: rgba(13,13,12,.04); }
.card-change { transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .4s ease; }
.card-change:hover { transform: translateY(-6px); border-color: #f5c400; }
.row-calendar { transition: padding-left .35s ease, background .35s ease; }
.row-calendar:hover { padding-left: 14px; background: rgba(245,242,236,.05); }

/* ---------- documentary play / YouTube facade ---------- */
.play-frame { position:relative; width:100%; aspect-ratio:16/9; border-radius:clamp(10px,1.6vw,20px); overflow:hidden; background:#1a1917; cursor:pointer; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; display: block; }
.play-frame__scrim { position:absolute; inset:0; background:linear-gradient(180deg,rgba(13,13,12,.15),rgba(13,13,12,.7)); pointer-events:none; }
.play-frame__button { position:absolute; inset:0; display:grid; place-items:center; pointer-events:none; }
.play-frame__ring { position:relative; display:grid; place-items:center; width:clamp(64px,9vw,112px); height:clamp(64px,9vw,112px); border-radius:999px; background:#f5c400; color:#0d0d0c; }
.play-frame__ring span.pulse { position:absolute; inset:0; border-radius:999px; border:2px solid #f5c400; animation:pulseRing 2.4s ease-out infinite; }
.play-frame__glyph { font-family:'Big Shoulders Display',Impact,sans-serif; font-weight:900; font-size:clamp(20px,2.6vw,32px); line-height:1; padding-left:4px; }
.play-frame__caption { position:absolute; left:clamp(14px,2vw,28px); bottom:clamp(14px,2vw,28px); right:clamp(14px,2vw,28px); font-family:'Big Shoulders Display',Impact,sans-serif; font-weight:800; font-size:clamp(14px,1.6vw,20px); letter-spacing:.04em; text-transform:uppercase; pointer-events:none; }
.play-frame iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.play-frame.is-playing .play-frame__scrim,
.play-frame.is-playing .play-frame__button,
.play-frame.is-playing .play-frame__caption { display: none; }
