﻿/* ==========================================================================
   Modern CSS Reset
   ========================================================================== */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Tejo Estúdio - Base Theme (Classless / Semantic CSS)
   ========================================================================== */

:root {
  /* Fixed Brutalist Theme */
  --artwork-base-color: #010101;
  --bg-color: #fafafa; /* neutral-50 */
  --text-color: #171717; /* neutral-900 */
  --text-muted: #737373; /* neutral-500 */
  --border-color: #171717;
  --accent-color: #000;
  --accent-text: #fff;

  --shadow-color: #000;
  --shadow-hard: 4px 4px 0px 0px var(--shadow-color);
  --shadow-hard-lg: 8px 8px 0px 0px var(--shadow-color);

  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Button specific */
  --button-hover-bg: #f5f5f5;

  /* Layering (Z-Index Tokens) */
  --z-back: -1;
  --z-base: 1;
  --z-main: 10;
  --z-logo: 90;
  --z-kite: -1; /* Atualmente no fundo absoluto */
  --z-trailer-active: 105;
  --z-exu: 110;
  --z-lang: 1000;
}

/* Utilities (Global) */
.tejo-text-left {
  text-align: left !important;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  cursor: default;
}

::selection {
  background-color: var(--accent-color);
  color: var(--accent-text);
}

/* Tipografia Base */
h1, h2, h3, h4, h5, h6 {
  font-weight: 900; /* font-black */
  letter-spacing: -0.05em; /* tracking-tighter */
  line-height: 1.1;
  margin-bottom: 1rem;
}

h2, .tejo-h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.tejo-hero-subtitle {
  font-size: 1.25rem; /* Tamanho reduzido para o subtítulo */
  line-height: 1.3;
  font-weight: 700;
}

.tejo-narrative-text {
  font-size: 1.125rem;
  line-height: 1.5;
}

.tejo-credits-text {
  color: var(--text-muted);
}

h1 {
  font-size: 3.75rem; /* 60px - text-6xl base */
  text-transform: uppercase;
}

h2 {
  font-size: 3rem; /* text-5xl */
}

h3 {
  font-size: 2.25rem; /* text-4xl */
}

h4 {
  font-size: 1.5rem; /* text-2xl */
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.625; /* leading-relaxed */
}

blockquote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.25; /* leading-tight */
  text-align: center;
  color: var(--text-color);
  margin: 2rem 0;
  padding: 0 1rem;
}

/* Elementos Interativos (Links e Botões) */
a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 700; /* font-bold */
}

a:hover {
  text-decoration: underline;
}

button,
.tejo-btn,
.tejo-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 700;
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--border-color);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  font-family: var(--font-sans);
}

button:hover,
.tejo-btn:hover,
.tejo-link-btn:hover {
  box-shadow: var(--shadow-hard);
  transform: translate3d(0, -2px, 0);
}

button.primary {
  background-color: var(--accent-color);
  color: var(--accent-text);
}

button.primary:hover {
  background-color: var(--bg-color);
  color: var(--text-color);
  box-shadow: var(--shadow-hard);
}

button:not(.primary):not(.tejo-link-btn):hover,
a.tejo-btn:not(.primary):not(.tejo-link-btn):hover {
  background-color: var(--button-hover-bg);
  box-shadow: var(--shadow-hard);
}

/* Imagens (Estilo Brutalista / P&B) */
img {
  border: 2px solid transparent; /* Placeholder para transição caso precise de borda */
}

figure {
  margin-bottom: 2rem;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-hard);
  background-color: var(--bg-color);
  transition: all 0.3s ease;
}

figure:hover {
  box-shadow: var(--shadow-hard-lg);
}

figure img {
  width: 100%;
  height: auto;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

figure:hover img,
img.tejo-grayscale:hover {
  filter: grayscale(0%);
}

img.tejo-grayscale {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

/* Separações e Linhas */
hr {
  border: 0;
  height: 2px;
  background-color: var(--border-color);
  margin: 3rem 0;
}

/* Listas */
ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

ul li, ol li {
  margin-bottom: 0.5rem;
  line-height: 1.625;
}

/* Ênfases e Tags */
strong {
  font-weight: 700;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background-color: #e5e5e5; /* neutral-200 */
  padding: 0.2em 0.4em;
}

/* Artigos / Seções (Comportamento de Card Base) */
article {
  margin-bottom: 3rem;
}

/* Linktree Base Container */
/* Corner Figures Layout */
.tejo-corner-kite {
  position: fixed;
  top: -1px;
  left: -1px;
  width: 30.25vw;
  min-width: 11.375rem; /* ~182px */
  max-width: 21.1875rem; /* ~339px */
  z-index: var(--z-kite);
  pointer-events: none;
  user-select: none;
  line-height: 0;

  /* Animação de fade-out (subindo) baseada no scroll */
  animation: kite-fade-out linear both;
  animation-timeline: scroll();
  animation-range: 0 25vh;
}

@keyframes kite-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-150px); }
}

.tejo-corner-kite img {
  width: 100%;
  height: auto;
  display: block;
}

.tejo-corner-exu {
  position: fixed;
  bottom: -1px;
  right: -1px;
  width: 30vw;
  min-width: 17.5rem; /* ~280px */
  max-width: 28.125rem; /* ~450px */
  z-index: var(--z-exu);
  pointer-events: none;
  user-select: none;
  line-height: 0;

  /* Animação de fade-out baseada no scroll */
  animation: exu-fade-out linear both;
  animation-timeline: scroll();
  animation-range: 0 25vh;
}

@keyframes exu-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(150px); }
}

.tejo-corner-exu img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.2));
}

.tejo-main-logo {
  width: 100%;
  max-width: 320px;
  margin: 2rem auto 1.5rem auto; /* Reduced bottom margin to avoid gap stacking */
  display: block;
  user-select: none;
}

/* Hero Subtitle Refinement */
.tejo-linktree-container section > p:first-of-type {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 2.5rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* Main Layout Container */
.tejo-linktree-container {
  max-width: 37.5rem;
  margin: 2rem auto 0 auto;
  padding: 1rem 1.25rem 4rem 1.25rem;
  text-align: center;
  position: relative;
  background-color: transparent;
  border: none;
  box-shadow: none;
  z-index: var(--z-main);
}

.tejo-footer-credits {
  margin-bottom: 1.5rem;
  line-height: 1.625;
}

/* Utilities (Global) */
.tejo-no-wrap {
  white-space: nowrap;
}

.tejo-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Avatares / Logos */
.tejo-avatar {
  width: 100%;
  max-width: 20rem;
  height: auto;
  margin: 0 auto 1.5rem auto;
  display: block;
}

/* Utilitários - Logos e Ícones */

/* Estrutura Base de Formulários */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  background-color: var(--bg-color);
  font-family: var(--font-sans);
  margin-bottom: 1rem;
}

input:focus,
textarea:focus {
  outline: none;
  box-shadow: var(--shadow-hard);
}

/* Otimizações para Impressão */
@media print {
  body {
    background-color: transparent;
    color: #000;
  }

  figure img,
  img.tejo-grayscale {
    filter: none !important;
  }

  button,
  a.tejo-btn {
    display: none;
  }
}

/* Rodapé Global Simples (Estilo Portfólio Integrado) */
.tejo-footer {
  padding: 1.25rem 1rem;
  text-align: center;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-color, #171717);
  border-top: 2px solid var(--border-color);
  margin-top: 1.5rem;
  background: rgba(247, 244, 238, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.tejo-footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: var(--pk-max, 820px);
  margin: 0 auto;
}

.tejo-footer-logo {
  height: 6rem;
  width: auto;
  display: block;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.tejo-footer p {
  margin: 0;
  opacity: 0.8;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}

.tejo-footer-meta {
  color: var(--pk-muted, #666);
  margin-left: 0.5rem;
}

.tejo-lang-switcher {
  text-decoration: none;
  font-weight: 700;
  padding: 0.5rem;
  background: var(--bg-color, #fff);
  color: var(--text-color, #000);
  border: 2px solid var(--border-color, #000);
  box-shadow: 2px 2px 0 var(--border-color, #000);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.tejo-lang-switcher:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--border-color, #000);
}

.tejo-lang-switcher-container {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem;
  position: absolute;
  top: 0;
  right: 0;
  z-index: var(--z-lang);
}

@media (max-width: 480px) {
  .tejo-lang-switcher-container {
    position: static;
    text-align: center;
    padding: 1rem 0 0 0;
  }
}

/* Press Kit Lang Switcher Override */
.pk-nav .tejo-lang-switcher-container {
  position: relative;
  padding: 0;
  margin-right: 1rem;
}

@media (max-width: 480px) {
  .pk-nav .tejo-lang-switcher-container {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

.tejo-mt-3 { margin-top: 3rem; }
.tejo-mt-2 { margin-top: 2rem; }
.tejo-mb-2 { margin-bottom: 2rem; }

/* Trailer / Video Player */
.tejo-trailer-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.tejo-video-frame {
  margin: 0;
  line-height: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tejo-video-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-hard);
  background-color: #000;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.tejo-video-frame:hover iframe {
  transform: translate3d(-4px, -4px, 0);
  box-shadow: var(--shadow-hard-lg);
}

@media (max-width: 480px) {
  .tejo-trailer-container {
    margin-top: 2rem;
  }
}

@keyframes tejoPlayBtnAppear {
  0% { opacity: 0; transform: translate3d(0, 10px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}


/* Interactive Video Logo */
.tejo-video-logo-trigger {
  cursor: pointer;
  position: relative;
  width: 100%;
  max-width: 100%;
  z-index: var(--z-logo);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tejo-video-logo-trigger:hover {
  transform: scale(1.01);
}

.tejo-play-overlay {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background-color: var(--accent-color);
  color: var(--accent-text);
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0; /* Começa invisível */
  border: 2px solid var(--border-color);
  box-shadow: 4px 4px 0px var(--border-color);
  pointer-events: none;
  z-index: 5;
  
  /* Animação com delay de 2 segundos */
  animation: tejoPlayBtnAppear 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 2s;
  
  transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.tejo-video-logo-trigger:hover .tejo-play-overlay {
  background-color: var(--text-color);
  color: #fff;
  transform: translate3d(-2px, -2px, 0);
}

.tejo-video-logo-trigger.is-playing {
  cursor: default;
  transform: none !important;
  z-index: var(--z-trailer-active) !important;
}

.tejo-video-logo-trigger .tejo-video-frame,
.tejo-video-logo-trigger .tejo-video-frame iframe {
  border: none;
  box-shadow: none;
  background-color: transparent;
}

.tejo-video-logo-trigger .tejo-main-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Footer Social Icons */
.tejo-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.75rem;
  width: 100%;
}

.tejo-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.tejo-footer-social a:hover {
  transform: translateY(-2px);
  opacity: 0.5;
}

.tejo-footer-social img {
  width: 1.75rem;
  height: 1.75rem;
  /* Convert all SVG colors to solid black */
  filter: grayscale(100%) brightness(0);
}

/* ==========================================================================
   Pitch Deck Presentation (Scroll Snap)
   ========================================================================== */
html.tejo-deck-html, html.tejo-deck-html body {
  overflow: hidden;
}

.tejo-deck {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
}

.tejo-deck .tejo-slide {
  height: 100vh;
  width: 100vw;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
}

.tejo-deck .tejo-slide-content {
  max-width: 64rem; /* 1024px */
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.tejo-deck h1 {
  font-size: 4.5rem;
  margin-bottom: 1rem;
}

.tejo-deck h2 {
  font-size: 3.5rem;
  margin-bottom: 2rem;
}

.tejo-deck p {
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.tejo-deck .tejo-slide-hero img {
  max-height: 45vh;
  margin: 0 auto 2rem auto;
  object-fit: contain;
}

.tejo-deck figure {
  margin-bottom: 2rem;
}

.tejo-deck figure img {
  max-height: 45vh;
  object-fit: cover;
}

.tejo-deck .tejo-slide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tejo-deck-footer {
  position: absolute;
  bottom: 2rem;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
}


@media print {
  html.tejo-deck-html,
  html.tejo-deck-html body,
  .tejo-deck {
    height: auto !important;
    overflow: visible !important;
  }
  .tejo-deck-html body {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .tejo-deck .tejo-slide {
    height: 1080px !important;
    width: 1920px !important;
    page-break-after: always !important;
    page-break-inside: avoid !important;
    scroll-snap-align: none !important;
    position: relative !important;
    overflow: hidden !important;
  }
  .tejo-lang-switcher-container {
    display: none !important;
  }
  @page {
    size: 1920px 1080px;
    margin: 0;
  }
}

