/* =========================================================================
   Galeria — Garcia Car Center
   Layout editorial: hero tipográfico, índice fixo, capítulos assimétricos.
   ========================================================================= */
.gx {
  --navy: #0f1a3c;
  --navy-2: #16255a;
  --blue: #23397e;
  --yellow: #e9d554;
  --paper: #f3f1ec;
  --paper-2: #e7e4dc;
  --ink: #0f1a3c;
  --muted: #5d6478;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --pad: clamp(16px, 4vw, 56px);
  --max: 1240px;
  font-family: "Poppins", sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}
.gx *, .gx *::before, .gx *::after { box-sizing: border-box; }
.gx img { display: block; max-width: 100%; }
.gx a { text-decoration: none; }
.gx button { font-family: inherit; }

/* texto revelado linha a linha */
.gx-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
/* um SVG do cabeçalho injeta "* { font-weight: 400; font-style: normal }": força herdar do título */
.gx .gx-line, .gx .gx-line > span { font-weight: inherit; font-style: inherit; font-size: inherit; letter-spacing: inherit; color: inherit; line-height: inherit; }
.gx-line > span { display: inline-block; transform: translate3d(0, 110%, 0); transition: transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 90ms + var(--ld, 0ms)); }
.gx-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
}
.gx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(233,213,84,.6); animation: gx-pulse 2.4s infinite; }
@keyframes gx-pulse { 70% { box-shadow: 0 0 0 10px rgba(233,213,84,0); } 100% { box-shadow: 0 0 0 0 rgba(233,213,84,0); } }

/* elementos que entram ao carregar */
[data-load] { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 120ms + 150ms); }
.gx-line[data-load] { opacity: 1; transform: none; }
.gx-line[data-load] > span { --ld: 150ms; }
.gx.is-ready [data-load] { opacity: 1; transform: none; }
.gx.is-ready .gx-line[data-load] > span,
.is-in .gx-line > span { transform: none; }

/* ------------------------------------------------------------------ HERO */
.gx-hero { position: relative; background: var(--navy); color: #fff; padding: clamp(40px, 6vw, 88px) var(--pad) clamp(28px, 4vw, 48px); isolation: isolate; }
.gx-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% 30%, rgba(0,153,220,.22), transparent 62%),
    radial-gradient(700px 400px at 10% 100%, rgba(35,57,126,.7), transparent 70%);
}
.gx-hero-in {
  max-width: 1440px; margin: 0 auto; min-height: min(78vh, 820px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; column-gap: 24px;
}
.gx-hero .gx-kicker { grid-column: 1 / 8; grid-row: 1; align-self: start; color: rgba(255,255,255,.75); }
.gx .gx-display {
  grid-column: 1 / -1; grid-row: 2; align-self: center; position: relative; z-index: 2; margin: 0;
  color: #fff; font-size: clamp(64px, 12.2vw, 212px); font-weight: 700; line-height: .9; letter-spacing: -.045em;
  pointer-events: none; text-shadow: 0 2px 30px rgba(8,13,32,.35);
}
.gx .gx-display em { font-style: italic; font-weight: 300; letter-spacing: -.03em; }
.gx-line--2 { padding-left: 14vw; }
.gx-hero-media {
  grid-column: 8 / 13; grid-row: 1 / 3; align-self: center; position: relative; z-index: 1;
  aspect-ratio: 4 / 5; max-height: 74vh; width: 100%; margin-top: 24px; justify-self: end;
}
.gx-slides { position: absolute; inset: 0; overflow: hidden; border-radius: 6px; background: var(--navy-2); }
.gx-slides::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(90deg, rgba(15,26,60,.72) 0%, rgba(15,26,60,.25) 38%, transparent 60%), linear-gradient(0deg, rgba(15,26,60,.35), transparent 30%); }
.gx-slide { position: absolute; inset: 0; margin: 0; clip-path: inset(0 0 0 100%); transition: clip-path 1.3s var(--ease-io); }
.gx-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform 6s linear; }
.gx-slide.is-on { clip-path: inset(0 0 0 0); z-index: 2; }
.gx-slide.is-on img { transform: scale(1.02); }
.gx-slide.is-out { clip-path: inset(0 0 0 0); z-index: 1; }
.gx-slide-ui { position: absolute; left: 0; right: 0; bottom: -34px; display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.gx-slide-ui b { color: #fff; font-weight: 600; }
.gx-slide-label { display: inline-block; transition: opacity .4s, transform .6s var(--ease); }
.gx-slide-label.is-swap { opacity: 0; transform: translateY(8px); }
.gx-slide-bar { position: absolute; left: 0; right: 0; bottom: -12px; height: 2px; background: rgba(255,255,255,.15); overflow: hidden; }
.gx-slide-bar i { position: absolute; inset: 0; background: var(--yellow); transform-origin: left; transform: scaleX(0); }
.gx-slide-bar i.is-run { animation: gx-bar 5s linear forwards; }
@keyframes gx-bar { to { transform: scaleX(1); } }

.gx-hero-foot {
  grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: minmax(0, 5fr) auto auto; align-items: end;
  gap: 24px 56px; margin-top: clamp(56px, 7vw, 96px); padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16);
}
.gx-hero-foot p { margin: 0; max-width: 40ch; color: rgba(255,255,255,.75); font-size: 15px; line-height: 1.7; }
.gx-stats { display: flex; gap: 40px; margin: 0; }
.gx-stats dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.gx-stats dd { margin: 4px 0 0; font-size: 40px; font-weight: 600; line-height: 1; color: #fff; letter-spacing: -.02em; }
.gx-scroll { display: inline-flex; align-items: center; gap: 14px; color: #fff; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.gx-scroll:hover, .gx-scroll:focus { color: var(--yellow); }
.gx-scroll i { position: relative; width: 1px; height: 48px; background: rgba(255,255,255,.25); overflow: hidden; }
.gx-scroll i::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--yellow); animation: gx-drop 1.8s var(--ease-io) infinite; }
@keyframes gx-drop { to { top: 100%; } }

/* --------------------------------------------------------------- MARQUEE */
.gx-marquee { background: var(--yellow); color: var(--navy); overflow: hidden; padding: 18px 0; border-block: 1px solid rgba(15,26,60,.12); }
.gx-marquee-track { display: flex; width: max-content; animation: gx-marquee 48s linear infinite; }
.gx-marquee-track > div { display: flex; align-items: center; flex-shrink: 0; }
.gx-marquee span { padding: 0 28px; font-size: clamp(22px, 2.6vw, 40px); font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.gx-marquee span:nth-of-type(even) { font-style: italic; font-weight: 300; }
.gx-marquee i { font-style: normal; font-size: 18px; opacity: .6; }
.gx-marquee:hover .gx-marquee-track { animation-play-state: paused; }
@keyframes gx-marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ----------------------------------------------------------------- ÍNDICE */
.gx-index { position: sticky; top: 0; z-index: 30; background: rgba(243,241,236,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(15,26,60,.1); }
.gx-index-in { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); overflow-x: auto; scrollbar-width: none; }
.gx-index-in::-webkit-scrollbar { display: none; }
.gx-index ol { display: flex; gap: 4px; margin: 0; padding: 12px 0; list-style: none; width: max-content; }
.gx-index a {
  position: relative; z-index: 1; display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 14px; border-radius: 999px;
  color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; transition: color .4s var(--ease);
}
.gx-index a span { font-size: 10px; font-weight: 600; letter-spacing: .08em; opacity: .7; }
.gx-index a:hover, .gx-index a:focus { color: var(--ink); }
.gx-index a.is-on { color: #fff; }
.gx-index-ind { position: absolute; top: 12px; left: 0; height: calc(100% - 24px); width: 0; border-radius: 999px; background: var(--navy); transition: transform .6s var(--ease), width .6s var(--ease), opacity .3s; opacity: 0; pointer-events: none; }
.gx-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--yellow); transform-origin: left; transform: scaleX(0); }

/* ------------------------------------------------------------- CAPÍTULOS */
.gx-chapters { padding: clamp(24px, 4vw, 48px) var(--pad) clamp(80px, 10vw, 160px); }
.gx-ch { max-width: var(--max); margin: 0 auto; padding-top: clamp(72px, 10vw, 150px); scroll-margin-top: 40px; }
.gx-ch-head { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; gap: 16px 48px; margin-bottom: clamp(36px, 5vw, 72px); padding-bottom: 22px; border-bottom: 1px solid rgba(15,26,60,.14); }
.gx-ch-head::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
.gx-ch-head.is-in::after { transform: scaleX(1); }
.gx-ch-num {
  position: absolute; right: 0; top: -.62em; z-index: 0; font-size: clamp(90px, 15vw, 230px); font-weight: 700; line-height: 1; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(15,26,60,.16); pointer-events: none; user-select: none;
  transform: translate3d(0, 40px, 0); opacity: 0; transition: transform 1.6s var(--ease), opacity 1.2s var(--ease);
}
.gx-ch-head.is-in .gx-ch-num { transform: none; opacity: 1; }
.gx .gx-ch-title { position: relative; z-index: 1; margin: 0; color: var(--ink); font-size: clamp(40px, 6.6vw, 104px); font-weight: 700; line-height: .95; letter-spacing: -.04em; }
.gx-ch-meta { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; padding-bottom: 6px; opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease) .35s, transform 1.2s var(--ease) .35s; }
.gx-ch-head.is-in .gx-ch-meta { opacity: 1; transform: none; }
.gx-ch-meta p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.gx-ch-count { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }

/* linhas assimétricas */
.gx-rows { display: flex; flex-direction: column; gap: clamp(28px, 6vw, 96px); }
.gx-row { display: flex; align-items: var(--al); gap: var(--gap); padding-left: var(--off); }
.gx-ph { flex: 0 0 var(--w); width: var(--w); margin: 0; will-change: transform; }
.gx-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.gx .gx-open:hover, .gx .gx-open:focus { background: none; color: inherit; }
.gx-open:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.gx-mask {
  position: relative; display: block; overflow: hidden; aspect-ratio: var(--r); border-radius: 4px; background: var(--paper-2);
  clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease), border-radius .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.gx-mask img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); transition: transform 1.8s var(--ease), filter .8s var(--ease); transition-delay: calc(var(--i, 0) * 120ms); }
.gx-ph.is-in .gx-mask { clip-path: inset(0 0 0 0); }
.gx-ph.is-in .gx-mask img { transform: scale(1); }
.gx-ph.is-in .gx-open:hover .gx-mask { border-radius: 18px; }
.gx-ph.is-in .gx-open:hover .gx-mask img { transform: scale(1.06); transition-delay: 0s; transition-duration: 1.2s; }
.gx .gx-ph figcaption {
  display: flex; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 12px; font-style: normal; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + .5s);
}
.gx-ph figcaption span { color: var(--ink); font-weight: 600; }
.gx-ph.is-in figcaption { opacity: 1; transform: none; }
.gx-ph:hover figcaption, .gx-ph:hover figcaption span { color: var(--blue); transition-delay: 0s; }

/* ------------------------------------------------------------------- CTA */
.gx-cta { position: relative; background: var(--navy); color: #fff; padding: clamp(80px, 11vw, 170px) var(--pad); overflow: hidden; isolation: isolate; }
.gx-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 500px at 85% 20%, rgba(0,153,220,.2), transparent 65%); }
.gx-cta-in { max-width: var(--max); margin: 0 auto; }
.gx-cta .gx-kicker { color: rgba(255,255,255,.7); }
.gx .gx-cta-title { margin: 24px 0 clamp(40px, 6vw, 80px); color: #fff; font-size: clamp(52px, 10vw, 168px); font-weight: 700; line-height: .92; letter-spacing: -.045em; }
.gx .gx-cta-title em { font-style: italic; font-weight: 300; color: var(--yellow); }
.gx-cta-title .gx-line:nth-child(2) { padding-left: 10vw; }
.gx-cta-title .gx-line:nth-child(2) > span { transition-delay: 120ms; }
.gx-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.16); }
.gx-cta address { font-style: normal; color: rgba(255,255,255,.75); font-size: 15px; line-height: 1.7; }
.gx-link { position: relative; color: #fff; font-size: 15px; font-weight: 500; padding-bottom: 4px; }
.gx-link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
.gx-link:hover, .gx-link:focus { color: var(--yellow); }
.gx-link:hover::after { transform: scaleX(0); transform-origin: left; }
.gx-link i { display: inline-block; font-style: normal; transition: transform .5s var(--ease); }
.gx-link:hover i { transform: translate(3px, -3px); }
.gx-magnet {
  margin-left: auto; display: grid; place-items: center; width: clamp(128px, 13vw, 176px); aspect-ratio: 1; border-radius: 50%;
  background: var(--yellow); color: var(--navy); font-size: 15px; font-weight: 600; line-height: 1.25; text-align: center;
  transition: background-color .3s, color .3s;
}
.gx-magnet span { display: block; }
.gx-magnet:hover, .gx-magnet:focus { background: var(--blue); color: #fff; }


/* ------------------------------------------------------------ LIGHTBOX */
.gx-lb { position: fixed; inset: 0; z-index: 99999; }
.gx-lb[hidden] { display: none; }
.gx-lb-bg { position: absolute; inset: 0; background: rgba(8,13,32,.96); opacity: 0; transition: opacity .6s var(--ease); }
.gx-lb.is-open .gx-lb-bg { opacity: 1; }
.gx-lb-stage { position: absolute; inset: 72px 24px 96px; display: grid; place-items: center; }
.gx-lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 4px; transform-origin: 0 0; will-change: transform; }
.gx-lb-stage img.is-swap { animation: gx-swap .7s var(--ease); }
@keyframes gx-swap { from { opacity: 0; transform: translate3d(var(--dx, 40px), 0, 0) scale(.98); } }
.gx-lb-ui { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; color: #fff; opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease) .2s, transform .7s var(--ease) .2s; }
.gx-lb.is-open .gx-lb-ui { opacity: 1; transform: none; }
.gx-lb-cap { display: flex; gap: 16px; margin: 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.gx-lb-n { color: var(--yellow); font-weight: 600; }
.gx-lb-nav { display: flex; gap: 8px; }
.gx-lb button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; min-width: 48px; padding: 0 18px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: transparent; color: #fff; font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.gx-lb button:hover, .gx-lb button:focus-visible { background: #fff; color: var(--navy); border-color: #fff; }
.gx-lb button:focus { background: transparent; color: #fff; }
.gx-lb button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.gx-lb-x { position: fixed; top: 20px; right: 20px; }
.gx-lb-x i { font-style: normal; font-size: 22px; line-height: 1; }

/* ---------------------------------------------------------- RESPONSIVO */
@media (max-width: 1024px) {
  .gx-hero-in { min-height: 0; grid-template-rows: auto auto auto auto; }
  .gx-hero .gx-kicker { grid-column: 1 / -1; }
  .gx-display { grid-row: 2; margin-top: 28px; font-size: clamp(64px, 14vw, 140px); }
  .gx-line--2 { padding-left: 10vw; }
  .gx-hero-media { grid-column: 3 / 13; grid-row: 3; aspect-ratio: 4 / 3; max-height: none; margin-top: 36px; }
  .gx-hero-foot { grid-row: 4; grid-template-columns: 1fr auto; margin-top: 72px; }
  .gx-scroll { display: none; }
  .gx-ch-head { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .gx-hero-media { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
  .gx-hero-foot { grid-template-columns: 1fr; gap: 24px; margin-top: 64px; }
  .gx-stats dd { font-size: 32px; }
  .gx-marquee { padding: 12px 0; }
  .gx-index ol { padding: 10px 0; }
  .gx-index a { padding: 8px 12px; }
  .gx-ch-num { top: -.45em; }
  .gx-ch-meta p { font-size: 14px; }
  .gx-row { flex-wrap: wrap; gap: 12px 4%; padding-left: 0; justify-content: space-between; }
  .gx-ph { flex-basis: var(--wm); width: var(--wm); }
  .gx-row--single { justify-content: center; }
  .gx-row--trio { justify-content: space-between; }
  .gx-row--trio .gx-ph:nth-child(3) { margin: 0 auto; }
  .gx .gx-ph figcaption { margin-top: 8px; font-size: 11px; }
  .gx-cta-title .gx-line:nth-child(2) { padding-left: 6vw; }
  .gx-magnet { margin-left: 0; }
  .gx-lb-stage { inset: 64px 8px 120px; }
  .gx-lb-ui { flex-wrap: wrap; justify-content: center; padding: 16px; }
  .gx-lb-cap { width: 100%; justify-content: center; }
  .gx-lb-x { top: 12px; right: 12px; }
}

/* sem animações para quem prefere */
@media (prefers-reduced-motion: reduce) {
  .gx *, .gx *::before, .gx *::after { animation: none !important; transition: none !important; }
  .gx [data-load], .gx-line > span, .gx-mask, .gx-mask img, .gx-ph figcaption, .gx-ch-meta, .gx-ch-num { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .gx-ph { transform: none !important; }
}
