/* ============================================================
   ART PLANOS STANDS — style.css
   Estilo Cinematográfico / Adventure Premium adaptado
   ============================================================ */

:root {
    --bg-dark: #07090b;
    --bg-card: #0e1215;
    --bg-section-alt: #050708;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.68);
    --accent: #62c5e8; /* Azul da logo */
    --accent-dark: #3a4d61;
    --accent-warm: #d7b47d;

    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;

    --z-base: 1;
    --z-header: 100;
    --z-overlay: 10;
}

/* ─── RESET ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth; /* Reativado pois não temos mais o GSAP scrub */
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s ease;
}

img, video {
    display: block;
    max-width: 100%;
}

/* ─── TYPOGRAPHY STANDARDS ─── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

p, li, div.text-block {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

span {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

strong, b {
    font-weight: 600;
    color: var(--text-main);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ─── HEADER ─── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: var(--z-header);
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
    display: flex;
    align-items: center;
}

.header.scrolled {
    background-color: rgba(7, 9, 11, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 90px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    background-color: #ffffff;
    border-radius: 50%;
    overflow: hidden;
}

.logo-img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    transform: scale(1.8); /* Zoom reduzido para a imagem ficar menor dentro do círculo */
}

.nav-desktop {
    display: none;
    gap: 3rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-main);
}

.nav-link:hover {
    color: var(--accent);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    transition: color 0.3s;
}
.search-btn:hover { color: var(--accent); }

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
}
.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--text-main);
    width: 100%;
    transition: 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    height: calc(100vh - 90px);
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 99;
}
.mobile-menu.active {
    transform: translateX(0);
}
.nav-mobile {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}
.nav-link-mobile {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ─── INDICADOR LATERAL ─── */
.side-indicator {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 50;
}
.indicator-dot {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.indicator-dot::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 2px;
    background: var(--accent);
    margin-left: 10px;
    transition: width 0.3s ease;
}
.indicator-dot.active {
    color: var(--text-main);
}
.indicator-dot.active::after {
    width: 20px;
}

/* ─── HERO SECTION ─── */
.section-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-gradient-top {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 30%;
    background: linear-gradient(to bottom, var(--bg-dark), transparent);
    opacity: 0.8;
}

.hero-gradient-bottom {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 40%;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-text-box {
    max-width: 800px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.76);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-eyebrow::before {
    content: '';
    width: 46px;
    height: 1px;
    background: var(--accent);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 300;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.8;
}

/* ─── INFO BLOCKS ─── */
.section-info {
    padding: 2rem 0 6rem;
    background: var(--bg-dark);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.info-card {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(98, 197, 232, 0.45);
}

.info-icon {
    color: var(--accent);
    margin-bottom: 1rem;
}

.info-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.info-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.info-link {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
}
.info-link::after {
    content: '→';
    margin-left: 8px;
    color: var(--accent);
    transition: transform 0.3s;
}
.info-link:hover::after {
    transform: translateX(5px);
}

/* ─── PROJETOS EM DESTAQUE ─── */
.section-projetos {
    background: var(--bg-section-alt);
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title-center {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-subtitle-center {
    color: var(--text-muted);
}

.projetos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.projeto-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.card-image-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.placeholder-img,
.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0.28) 56%, rgba(0,0,0,0.08)),
        linear-gradient(135deg, rgba(98,197,232,0.16), transparent 45%);
    opacity: 0.86;
    transition: opacity 0.4s ease;
}

.projeto-card:hover .placeholder-img,
.projeto-card:hover .project-img {
    transform: scale(1.05);
}

.projeto-card:hover .card-overlay {
    opacity: 0.5;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2rem;
    z-index: 2;
}

.card-kicker {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.card-title {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 1.5vw, 1.45rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ─── DISCOVER SECTION ─── */
.section-discover {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.discover-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.placeholder-bg,
.discover-image-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.discover-image-bg {
    background-image: url('public/videos/ezgif-frame-250.jpg');
    transform: scale(1.02);
}

.discover-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5,7,8,0.96) 0%, rgba(5,7,8,0.74) 38%, rgba(5,7,8,0.18) 100%),
        linear-gradient(to top, rgba(5,7,8,0.98), rgba(5,7,8,0.08) 44%, rgba(5,7,8,0.5));
}

.discover-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.discover-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.discover-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 400px;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.play-btn:hover .play-icon {
    background: var(--text-main);
    color: var(--bg-dark);
}

.play-btn:hover {
    color: var(--accent);
}

.discover-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Miniaturas */
.thumbnails-wrapper {
    position: relative;
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    width: 100%;
    scrollbar-width: thin; /* Firefox */
}
.thumbnails-wrapper::-webkit-scrollbar {
    height: 4px;
}
.thumbnails-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.thumb-card {
    position: relative;
    width: 148px;
    height: 92px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.thumb-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}
.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── CONTATO & MAPA ─── */
.section-contato {
    padding: 8rem 0;
    background: var(--bg-dark);
}

.contato-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.contato-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.contato-desc {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contato-lista {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contato-lista li {
    font-size: 1.1rem;
    line-height: 1.6;
}

.contato-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.contato-map {
    height: 400px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

/* ─── FOOTER ─── */
.footer {
    padding: 3rem 0;
    background: var(--bg-section-alt);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.1em;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}
.footer-links a:hover { color: var(--accent); }

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}


/* ─── ANIMAÇÕES (INTERSECTION OBSERVER) ─── */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


/* ─── ACCESSIBILITY & UTILS ─── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.mt-4 {
    margin-top: 1rem;
}

/* ─── FOLD TEXT COMPONENT ─── */
.fold-text {
  display: inline-block;
  color: var(--fold-text-color, currentColor);
  line-height: 0.95;
  letter-spacing: -0.04em;
  white-space: pre-wrap;
  user-select: text;
}

.fold-text-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fold-text-visual {
  display: inline;
}

.fold-text-line {
  display: block;
}

.fold-text-whitespace {
  display: inline;
}

.fold-text-segment {
  display: inline-block;
  line-height: inherit;
  perspective: var(--fold-perspective, 700px);
  transform-style: preserve-3d;
  vertical-align: baseline;
}

.fold-text-segment[data-fold-split='line'] {
  display: block;
}

.fold-text-piece {
  position: relative;
  display: inline-block;
  color: inherit;
  line-height: inherit;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.fold-text-piece::after {
  content: '';
  position: absolute;
  inset: -0.08em -0.02em;
  pointer-events: none;
  opacity: var(--fold-crease, 0);
  mix-blend-mode: multiply;
  border-radius: 0.08em;
}

.fold-text-piece[data-fold-hinge='top']::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.22) 42%, rgba(255, 255, 255, 0.26) 100%);
}

.fold-text-piece[data-fold-hinge='bottom']::after {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.22) 42%, rgba(255, 255, 255, 0.26) 100%);
}

.fold-text-piece[data-fold-hinge='left']::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.22) 42%, rgba(255, 255, 255, 0.26) 100%);
}

.fold-text-piece[data-fold-hinge='right']::after {
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.22) 42%, rgba(255, 255, 255, 0.26) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .fold-text-piece {
    transform: none !important;
  }
  .fold-text-piece::after {
    opacity: 0 !important;
  }
}

/* ─── RESPONSIVIDADE ─── */
@media (min-width: 992px) {
    .nav-desktop { display: flex; }
    .menu-toggle { display: none; }
    
    .side-indicator { display: flex; }

    .info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    .info-card {
        border-bottom: none;
        border-right: 1px solid rgba(255,255,255,0.1);
        padding-right: 2rem;
    }
    .info-card:last-child {
        border-right: none;
    }

    .projetos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .card-image-wrapper {
        height: 500px;
    }

    .contato-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contato-map {
        height: 100%;
        min-height: 500px;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .thumbnails-wrapper {
        position: absolute;
        bottom: 3rem;
        left: 2rem;
        margin-top: 0;
        overflow-x: visible;
        width: auto;
    }
}
