/* ============================================================
   UMA PONTE SOBRE O RIO DAS ALMAS
   Stylesheet — Editorial Contemporâneo / Mobile-first
   ============================================================ */

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Palette */
  --color-black: #1a1a1a;
  --color-white: #fafaf8;
  --color-gray-100: #f5f4f1;
  --color-gray-200: #e8e6e1;
  --color-gray-300: #d4d1ca;
  --color-gray-400: #a8a49c;
  --color-gray-500: #7a756c;
  --color-gray-600: #5c5750;
  --color-gray-700: #3d3a35;
  --color-accent: #8b6f47;
  --color-accent-light: #a6885c;
  --color-accent-dark: #6e5636;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-black);
  background-color: var(--color-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ---- Section defaults ---- */
.section {
  padding: var(--space-2xl) 0;
}

.section__tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--color-black);
  line-height: 1.2;
  margin-bottom: var(--space-xl);
}

/* ---- Reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: relative;
  width: 100%;
  z-index: 100;
  padding: var(--space-md) 0;
  background: rgba(26, 26, 26, 0.95);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.header.is-scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header__logo {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-white);
  text-align: left;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-black);
  background-image: var(--hero-background-image);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 74% center;
  overflow: hidden;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0.48) 34%, rgba(10, 10, 10, 0.18) 60%, rgba(10, 10, 10, 0.32) 100%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.18) 0%, rgba(10, 10, 10, 0.52) 100%);
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0.12) 0%,
    rgba(26, 26, 26, 0.45) 100%
  );
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--color-white);
  padding: clamp(4.5rem, 12vh, 7rem) 0 var(--space-2xl);
}

.hero__layout {
  width: 100%;
  max-width: 720px;
}

.hero__copy {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.hero__tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: var(--space-md);
  opacity: 0;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  animation: fadeUp 1s var(--ease-out-expo) 0.3s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-lg);
  opacity: 0;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.42);
  animation: fadeUp 1s var(--ease-out-expo) 0.5s forwards;
}

.hero__description {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-gray-300);
  max-width: 32rem;
  margin: 0 auto;
  opacity: 0;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.32);
  animation: fadeUp 1s var(--ease-out-expo) 0.7s forwards;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.5s forwards;
}

.hero__scroll-indicator span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-accent-light), transparent);
  animation: scrollPulse 2s var(--ease-out) infinite;
}

/* ============================================================
   ROTEIRISTAS
   ============================================================ */
.roteiristas {
  position: relative;
  z-index: 0;
  background: var(--color-white);
}

.roteiristas__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.card-roteirista {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: var(--space-lg);
  background: var(--color-gray-100);
  border-radius: 12px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.card-roteirista:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.card-roteirista__photo {
  width: min(100%, 280px);
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: var(--space-md);
  flex-shrink: 0;
}

.card-roteirista__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-roteirista__photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-400);
}

.card-roteirista__photo-placeholder svg {
  width: 40px;
  height: 40px;
}

.card-roteirista__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.card-roteirista__role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.card-roteirista__bio {
  font-size: 0.95rem;
  color: var(--color-gray-600);
  line-height: 1.7;
  max-width: none;
  white-space: pre-line;
}

.card-feed--link {
  display: grid;
  height: 100%;
}

.card-feed--link:focus-visible {
  outline: 3px solid var(--color-accent-dark);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(110, 86, 54, 0.18);
}

/* ============================================================
   SOBRE O PROJETO
   ============================================================ */
.sobre {
  background: var(--color-gray-100);
}

.sobre__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.sobre__block {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-gray-200);
}

.sobre__block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sobre__block h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-black);
}

.sobre__block p {
  font-size: 0.95rem;
  color: var(--color-gray-600);
  line-height: 1.8;
}

/* ============================================================
   FEED DE ATIVIDADES
   ============================================================ */
.feed {
  background: var(--color-white);
}

.feed__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.card-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--color-gray-100);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.card-feed:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.card-feed__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-feed__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.card-feed:hover .card-feed__image img {
  transform: scale(1.04);
}

.card-feed__image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-400);
}

.card-feed__image-placeholder svg {
  width: 32px;
  height: 32px;
}

.card-feed__content {
  padding: var(--space-md);
}

.card-feed__date {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.card-feed__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-xs);
}

.card-feed__summary {
  font-size: 0.88rem;
  color: var(--color-gray-600);
  line-height: 1.7;
}

/* ============================================================
   APOIOS
   ============================================================ */
.apoios {
  background: var(--color-gray-100);
}

.apoios__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.apoio-item {
  flex: 1 1 calc(25% - var(--space-md));
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background: var(--color-white);
  border-radius: 12px;
  transition: transform 0.3s var(--ease-out);
}

.apoio-item:hover {
  transform: translateY(-2px);
}

.apoio-item__image {
  width: 100%;
  max-width: 220px;
  max-height: 100px;
  object-fit: contain;
  margin-bottom: var(--space-sm);
}

.apoio-item__placeholder {
  width: 100%;
  max-width: 140px;
  height: 80px;
  background: var(--color-gray-200);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  color: var(--color-gray-400);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.apoio-item__name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-gray-600);
}

/* ============================================================
   AGRADECIMENTOS
   ============================================================ */
.agradecimentos {
  background: var(--color-black);
  color: var(--color-white);
}

.agradecimentos .section__tag {
  color: var(--color-accent-light);
}

.agradecimentos .section__title {
  color: var(--color-white);
}

.agradecimentos__content {
  max-width: 680px;
}

.agradecimentos__content p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--color-gray-400);
  margin-bottom: var(--space-md);
}

.agradecimentos__content p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-black);
  border-top: 1px solid var(--color-gray-700);
  padding: var(--space-lg) 0;
  color: var(--color-gray-500);
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer__project-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gray-300);
  margin-bottom: 0.25rem;
}

.footer__year {
  font-size: 0.78rem;
  color: var(--color-gray-500);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__email {
  font-size: 0.82rem;
  color: var(--color-gray-400);
  transition: color 0.3s var(--ease-out);
}

.footer__email:hover {
  color: var(--color-accent-light);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-gray-700);
  color: var(--color-gray-500);
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.footer__social-link:hover {
  color: var(--color-accent-light);
  border-color: var(--color-accent-light);
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
  50% {
    opacity: 0.4;
    transform: scaleY(0.6);
    transform-origin: top;
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

/* ============================================================
   RESPONSIVE — Tablet (≥ 640px)
   ============================================================ */
@media (min-width: 640px) {
  .hero {
    background-position: 70% center;
  }

  .card-roteirista {
    flex-direction: row;
    align-items: center;
    gap: var(--space-lg);
  }

  .card-roteirista--reverse {
    flex-direction: row-reverse;
  }

  .feed__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer__contact {
    align-items: flex-end;
    text-align: right;
  }
}

/* ============================================================
   RESPONSIVE — Desktop (≥ 960px)
   ============================================================ */
@media (min-width: 960px) {
  .section {
    padding: var(--space-3xl) 0;
  }

  .hero {
    background-position: 64% center;
  }

  .hero__content {
    padding: clamp(5rem, 14vh, 8rem) 0;
  }

  .hero__layout {
    max-width: 760px;
  }

  .hero__copy {
    max-width: 44rem;
  }

  .hero__description {
    max-width: 34rem;
  }

  .sobre__layout {
    grid-template-columns: 280px 1fr;
    gap: var(--space-xl);
  }

  .sobre__left {
    position: sticky;
    top: 120px;
    align-self: start;
  }

  .card-roteirista__photo {
    margin-bottom: 0;
    width: min(36vw, 320px);
  }

  .card-feed {
    grid-template-columns: 260px 1fr;
  }

  .card-feed__image {
    aspect-ratio: 1;
  }

  .card-feed__content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ============================================================
   RESPONSIVE — Large (≥ 1200px)
   ============================================================ */
@media (min-width: 1200px) {
  .container {
    padding: 0 var(--space-lg);
  }

  .hero {
    background-position: center center;
  }

  .hero__title {
    letter-spacing: -0.02em;
  }
}

/* ---- Selection ---- */
::selection {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ---- Scrollbar (Webkit) ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-black);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gray-700);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-600);
}

/* ============================================================
   BTN & CTA ROTEIRO
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border: 1px solid var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.btn--secondary {
  background: transparent;
  color: var(--color-black);
  border: 1px solid var(--color-black);
}

.btn--secondary:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.cta-roteiro {
  background: var(--color-gray-100);
}

.cta-roteiro__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.cta-roteiro__image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  max-width: 400px;
  margin: 0 auto;
}

.cta-roteiro__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.cta-roteiro__content {
  text-align: left;
}

.cta-roteiro__description {
  font-size: 1.05rem;
  color: var(--color-gray-600);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.cta-roteiro__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (min-width: 640px) {
  .cta-roteiro__actions {
    flex-direction: row;
  }
}

@media (min-width: 960px) {
  .cta-roteiro__layout {
    grid-template-columns: 4fr 5fr;
    gap: var(--space-2xl);
  }
}

/* ============================================================
   SOUNDTRACK CONTROLS
   ============================================================ */
.soundtrack-control {
  position: fixed;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.soundtrack-control__btn {
  background: rgba(26, 26, 26, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.soundtrack-control__btn:hover {
  background: rgba(26, 26, 26, 0.8);
  transform: scale(1.05);
}

.soundtrack-control__btn svg {
  color: var(--color-gray-200);
}

/* ============================================================
   LGPD BANNER
   ============================================================ */
.lgpd-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-white);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.6s var(--ease-out-expo);
  border-top: 1px solid var(--color-gray-700);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

.lgpd-banner.is-visible {
  transform: translateY(0);
}

.lgpd-banner__text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-gray-300);
  text-align: center;
  max-width: 800px;
}

.lgpd-banner__text a {
  color: var(--color-accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 768px) {
  .lgpd-banner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .lgpd-banner__text {
    text-align: left;
  }
  .lgpd-banner .btn {
    padding: 0.6rem 1.4rem;
    white-space: nowrap;
  }
}
