@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=JetBrains+Mono:wght@500&family=Work+Sans:wght@400&display=swap');

:root {
  /* Colors from DESIGN.md */
  --surface: #f9faf2;
  --surface-dim: #d9dbd3;
  --surface-bright: #f9faf2;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f3f4ed;
  --surface-container: #edefe7;
  --surface-container-high: #e7e9e1;
  --surface-container-highest: #e2e3dc;
  
  --on-surface: #191c18;
  --on-surface-variant: #42493e;
  
  --inverse-surface: #2e312c;
  --inverse-on-surface: #f0f1ea;
  
  --primary: #154212;
  --on-primary: #ffffff;
  --primary-container: #2d5a27;
  --on-primary-container: #9dd090;
  
  --secondary: #7f5700;
  --on-secondary: #ffffff;
  --secondary-container: #fdb733;
  --on-secondary-container: #6d4a00;
  
  --tertiary: #701900;
  --on-tertiary: #ffffff;
  --tertiary-container: #982602;
  --on-tertiary-container: #ffb09a;

  /* Deduced/Extracted Colors based on image */
  --header-bg: #c1411e;
  --leaf-green-bg: #769b52;
  --teal-bg: #035a6f;
  --accent-pink: #d93d5f;
  --teal-text: #055f74;

  /* Typography */
  --font-headline: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --font-label: 'JetBrains Mono', monospace;

  /* Spacing */
  --spacing-base: 8px;
  --section-gap-desktop: 120px;
  --section-gap-mobile: 64px;
  
  /* Radii */
  --radius-sm: 0.125rem;
  --radius-DEFAULT: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--surface);
  color: var(--on-surface);
  -webkit-font-smoothing: antialiased;
}

/* Typography Classes */
.headline-xl { font-family: var(--font-headline); font-size: 80px; font-weight: 800; line-height: 88px; letter-spacing: -0.04em; }
.headline-lg { font-family: var(--font-headline); font-size: 48px; font-weight: 700; line-height: 52px; letter-spacing: -0.02em; }
.headline-md { font-family: var(--font-headline); font-size: 32px; font-weight: 800; line-height: 38px; }
.label-caps { font-family: var(--font-label); font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: 0.08em; text-transform: uppercase; }

/* Layout */
.container {
  max-width: 1000px; /* narrowed to match proportion */
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header */
.site-header {
  background-color: var(--header-bg);
  padding: 32px 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  height: 60px;
  width: auto;
}

.mobile-menu-toggle {
  display: none;
}

.mobile-menu-btn {
  display: none;
  cursor: pointer;
  color: white;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 0.8;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-links a {
  color: white;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

.social-links a:hover {
  opacity: 0.8;
}

.social-links svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: var(--secondary-container); /* Fallback */
  background-image: url('assets/grafico_base.png');
  background-size: cover;
  background-position: center;
  min-height: calc(100vh - 124px);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   Lightbox Gallery
   ========================================================================== */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.lightbox-close:hover {
  color: #bbb;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 30px;
  padding: 15px 20px;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 4px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(0,0,0,0.8);
}

.hero-card {
  background-color: var(--surface);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: none;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.hero-logo {
  width: 100%;
  max-width: 580px;
  height: auto;
  margin: 0 auto 32px auto;
  display: block;
}

.hero-date {
  color: var(--primary-container);
  font-weight: 800;
  font-family: var(--font-headline);
  margin-bottom: 12px;
  font-size: 36px;
}

.hero-location {
  color: var(--on-surface);
  font-weight: 500;
  font-size: 24px;
}

/* Common Section Styles */
.section-pad {
  padding: 80px 0;
}

/* News & Movies Sections */
.news-section, .movies-section {
  background-color: var(--surface);
}

.section-title {
  color: var(--teal-text);
  margin-bottom: 40px;
}

.cards-grid {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.news-card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  flex: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-card.border-pink { border-left: 8px solid var(--accent-pink); }
.news-card.border-yellow { border-left: 8px solid var(--secondary-container); }
.news-card.border-green { border-left: 8px solid var(--leaf-green-bg); }

.news-date {
  color: var(--on-surface-variant);
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 600;
}

.news-title {
  color: var(--teal-text);
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.news-excerpt {
  color: var(--on-surface);
  font-size: 16px;
  line-height: 1.5;
  flex-grow: 1;
}

.news-link {
  color: var(--header-bg);
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s;
  margin-top: auto;
}

.news-link:hover {
  opacity: 0.8;
}

.empty-card {
  background-color: white;
  border-radius: var(--radius-lg);
  flex: 1;
  height: 220px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.plus-icon {
  color: var(--primary-container);
  font-size: 48px;
  font-weight: bold;
  cursor: pointer;
  padding: 0 16px;
  font-family: var(--font-headline);
  display: flex;
  align-items: center;
}

/* Instagram Grid */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: center;
}
@media (max-width: 768px) {
  .ig-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-ig-grid {
    grid-template-columns: repeat(2, 1fr) auto;
  }
}
@media (max-width: 576px) {
  .ig-grid {
    grid-template-columns: 1fr;
  }
  .home-ig-grid {
    grid-template-columns: 1fr;
  }
}
.home-ig-grid {
  grid-template-columns: repeat(3, 1fr) auto;
}

.ig-post {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  background-color: white;
}
.ig-post img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.ig-post:hover {
  transform: scale(1.03);
}

.ig-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
}
.ig-post:hover .ig-overlay {
  opacity: 1;
}

/* SVG Titles Masking */
.svg-title {
  display: inline-block;
  background-color: var(--teal-text);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-position: left center;
  height: 60px;
}
.svg-title.white {
  background-color: white;
}
.svg-title.center {
  -webkit-mask-position: center;
  mask-position: center;
}
.svg-filmes {
  -webkit-mask-image: url('assets/filmes.svg');
  mask-image: url('assets/filmes.svg');
  width: 180px;
}
.svg-noticias {
  -webkit-mask-image: url('assets/noticias.svg');
  mask-image: url('assets/noticias.svg');
  width: 316px;
}
.svg-festival {
  -webkit-mask-image: url('assets/o_festival.svg');
  mask-image: url('assets/o_festival.svg');
  width: 376px;
}
.svg-parceiros {
  -webkit-mask-image: url('assets/parceiros.svg');
  mask-image: url('assets/parceiros.svg');
  width: 332px;
}

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

/* O Festival Section */
.festival-section {
  background-color: var(--leaf-green-bg);
  text-align: center;
  color: white;
  padding: 100px 0;
}

.festival-section .section-title {
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.festival-title-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  transition: opacity 0.2s;
}

.festival-title-link:hover {
  opacity: 0.8;
}

.festival-description {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 20px;
  line-height: 1.6;
}

.festival-icon {
  font-style: italic;
  font-size: 40px;
}

/* Parceiros Section */
.partners-section {
  background-color: var(--teal-bg);
  text-align: center;
  color: white;
  padding: 100px 0;
}

.partners-section .section-title {
  color: white;
  margin-bottom: 32px;
}
.partners-section .section-title span {
  font-style: italic;
}

/* Buttons */
.cta-button {
  background-color: var(--accent-pink);
  color: white;
  border: none;
  padding: 16px 40px;
  border-radius: 40px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 800;
  /* Organic brutalism style: shadow if we want, currently flat in print but we can add minor fx */
  transition: opacity 0.2s;
}

.cta-button:hover {
  opacity: 0.9;
}

.btn-programacao {
  display: block;
  width: fit-content;
  margin: 0 auto;
  transition: transform 0.2s, opacity 0.2s;
}
.btn-programacao img {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
}
.btn-programacao:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Footer */
.site-footer {
  background-color: var(--header-bg);
  padding: 80px 0;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 64px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: white;
}

.footer-brand-logo {
  max-width: 250px;
  width: 100%;
}

.footer-brand-text {
  font-weight: 700;
  font-family: var(--font-headline);
  font-size: 16px;
}

.footer-title {
  color: var(--secondary-container); /* Yellow pop */
  font-family: var(--font-headline);
  font-size: 20px;
  margin-bottom: 24px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: white;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
}

.contact-list a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-list a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  transition: background-color 0.2s;
}

.social-circle:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.social-circle svg {
  width: 24px;
  height: 24px;
}

.footer-fiscal {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 32px;
  font-size: 14px;
  color: white;
  opacity: 0.8;
}

/* Festival Gallery */
.festival-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.festival-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
  object-fit: cover;
  aspect-ratio: 1/1;
}
.festival-img:hover {
  transform: scale(1.03);
}

/* Movies Internal Page */
.festival-page-main {
  display: flex;
  flex-direction: column;
}

.festival-page-section {
  background-color: var(--leaf-green-bg);
  min-height: calc(100vh - 124px - 190px); /* Discounting header and footer heights roughly */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 0;
}

.festival-page-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.festival-history-section {
  background-color: white;
}

/* Movies Categories Section */
.movies-categories-section {
  background-color: var(--surface-container);
}

.movies-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.more-icon-link {
  color: var(--teal-text);
  font-size: 48px;
  font-weight: 800;
  text-decoration: none;
  font-family: var(--font-headline);
  transition: transform 0.2s, opacity 0.2s;
  display: flex;
  align-items: center;
  padding-left: 16px;
}
.more-icon-link:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.movie-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.movie-category-card:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.movie-category-card .category-name {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 600;
  color: var(--teal-text);
  margin-bottom: 24px;
}

.movie-category-card img {
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

/* Filmes Page */
.filmes-list-section {
  background-color: var(--surface-container);
}

.movies-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.movie-item {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
}

.movie-poster-placeholder {
  width: 200px;
  height: 200px;
  background-color: white;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  color: var(--on-surface-variant);
  font-weight: 500;
  font-family: var(--font-body);
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.movie-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.movie-title {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--on-surface);
}

.movie-meta {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--on-surface);
}

.movie-synopsis {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--on-surface-variant);
  line-height: 1.5;
}

/* =========================================
   RESPONSIVO (Mobile 9:16)
   ========================================= */
@media (max-width: 768px) {
  .headline-xl { font-size: 48px; line-height: 52px; }
  .headline-lg { font-size: 36px; line-height: 40px; }
  .headline-md { font-size: 28px; line-height: 32px; }
  .section-pad { padding: 64px 0; }

  /* Header */
  .site-header {
    padding: 16px 0;
  }
  .site-header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
  }
  .logo-link {
    display: flex;
    align-items: center;
  }
  .header-logo {
    max-width: 140px;
    height: auto;
  }
  .mobile-menu-btn {
    display: block;
  }
  .header-right {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  .mobile-menu-toggle:checked ~ .header-right {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-size: 16px;
  }
  .social-links {
    justify-content: center;
  }

  /* Hero */
  .hero-section {
    min-height: 480px;
    background-size: 200%;
    background-position: top center;
  }
  .hero-card {
    padding: 24px 16px;
    margin: 20px auto;
    width: 80%;
    max-width: 260px;
  }
  .hero-date {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 8px;
  }
  .hero-location {
    font-size: 12px;
  }
  .hero-logo {
    max-width: 100%;
    width: 220px;
    margin-bottom: 16px;
  }

  /* News Section */
  .cards-grid {
    flex-direction: column;
    gap: 24px;
  }
  .home-ig-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ig-grid .plus-icon {
    width: 60px;
    height: 60px;
    margin: 16px auto;
  }

  /* Filmes Section */
  .movies-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }
  .more-icon-link {
    grid-column: span 2;
    justify-content: center;
    padding-left: 0;
  }
  .movie-category-card .category-name {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .movie-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .movie-poster-placeholder {
    width: 100%;
    max-width: 240px;
    height: 240px;
    margin: 0 auto;
  }

  .news-card {
    width: 100%;
    padding: 24px 20px;
  }
  .plus-icon {
    transform: none;
    margin: 16px auto;
  }
  .svg-title {
    height: 40px;
  }
  .svg-filmes { width: 120px; }
  .svg-noticias { width: 210px; }
  .svg-festival { width: 250px; }
  .svg-parceiros { width: 220px; }

  /* Festival Section */
  .festival-description {
    font-size: 16px;
    line-height: 28px;
  }
  .festival-title-link .headline-lg {
    font-size: 32px;
  }
  .cta-button {
    font-size: 16px;
    padding: 16px 24px;
    width: 100%;
    max-width: 300px;
  }

  /* Footer */
  .site-footer {
    padding: 48px 0 24px 0;
  }
  .footer-columns {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
  }
  .footer-col {
    width: 100%;
    min-width: 100%;
    align-items: center;
    text-align: center;
  }
  .contact-list {
    align-items: center;
  }
  .footer-socials {
    justify-content: center;
  }
  .brand-col {
    align-items: center;
  }
}

/* ==========================================================================
   Filmes Banner
   ========================================================================== */

.filmes-banner-section {
  background-color: var(--accent-pink);
  padding: 60px 20px 80px;
  color: white;
}

.filmes-banner-text {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 40px;
}

.filmes-themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.theme-item {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.theme-item h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.theme-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px; /* caso tenha alguma borda nativa a cortar */
}

@media (max-width: 900px) {
  .filmes-themes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .filmes-themes-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Parceiros / Partners
   ========================================================================== */

.partners-section {
  padding: 0;
}

.partners-header, .parceiros-page-top {
  background-color: var(--teal-bg);
  padding: 80px 20px;
  text-align: center;
}

.partners-content {
  background-color: #e6e6e6; /* Cinza claro */
  padding: 80px 20px;
  text-align: center;
}

.partners-block {
  margin-bottom: 60px;
}
.partners-block:last-child {
  margin-bottom: 0;
}

.partners-subtitle {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 30px;
}

.partners-logo {
  max-width: 350px;
  width: 100%;
  height: auto;
}

.partners-logo-full {
  max-width: 800px;
  width: 100%;
  height: auto;
}

.parceiros-cotas-placeholder {
  min-height: 50px;
}

.parceiros-donate {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donate-btn {
  display: inline-block;
  background-color: var(--accent-pink);
  border-radius: 50px;
  padding: 15px 40px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.donate-btn:hover {
  background-color: #c92a4f;
  transform: scale(1.05);
}

.donate-btn img {
  height: 24px;
  width: auto;
  display: block;
}
