:root {
  --brown-dark: #3a2c22;
  --brown: #6b4a30;
  --tan: #c9a06e;
  --cream: #ece0cb;
  --terracotta: #a8452e;
  --text: #2c2117;
  --text-light: #6b5c4d;
  --white: #fdfaf5;
  --max-width: 1160px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; zoom: 0.88; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(58,44,34,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo { height: 38px; width: auto; }

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brown);
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--terracotta); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--brown-dark);
}

/* Hero */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--brown-dark);
}

.hero-shapes {
  position: absolute;
  inset: 0;
  background-image: url("../img/fundo-capa.jpg");
  background-size: cover;
  background-position: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 24px;
}

.hero-logo {
  width: 160px;
  margin: 0 auto;
}

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--cream); }

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brown-dark);
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--terracotta);
  display: inline-block;
}

.sobre-text {
  max-width: none;
}

.sobre-text p {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 1.05rem;
}

/* Grids & cards */
.grid { display: grid; gap: 32px; }
.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(58,44,34,0.08);
  display: flex;
  flex-direction: column;
}

a.card-link {
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

a.card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(58,44,34,0.16);
}

.card-cta {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--terracotta);
}

.card-sm img { height: 220px; }
.card-sm .card-body { padding: 16px; }
.card-sm h3 { font-size: 1rem; }
.card-sm p { font-size: 0.85rem; margin-bottom: 8px; }

.section.alt .card { background: var(--white); }

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

.card-body { padding: 22px; }

.card h3 {
  font-size: 1.25rem;
  color: var(--brown-dark);
  margin-bottom: 4px;
}

.card .meta {
  font-size: 0.85rem;
  color: var(--terracotta);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.card p { font-size: 0.95rem; color: var(--text); margin-bottom: 12px; }

.card .credits {
  font-size: 0.88rem;
  color: var(--text-light);
}

.card .badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  background: var(--cream);
  color: var(--brown);
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
}

.card .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.card .badges .badge { margin-top: 0; }

.card-horizontal {
  flex-direction: row;
}

.card-horizontal img {
  width: 42%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.card-horizontal .card-body { flex: 1; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(58,44,34,0.1);
  transition: transform 0.25s;
}

.gallery img:hover { transform: scale(1.03); }

/* Footer */
.site-footer {
  background: var(--brown-dark);
  color: var(--cream);
  padding: 56px 0 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-logo {
  height: 100px;
  filter: brightness(0) invert(1);
}

.footer-info p { margin-bottom: 6px; font-size: 0.95rem; color: var(--cream); }
.footer-info a { text-decoration: underline; }

.copyright {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.8rem;
  color: rgba(236,224,203,0.6);
}

/* Responsive */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(58,44,34,0.1);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }

  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .card-horizontal { flex-direction: column; }
  .card-horizontal img { width: 100%; height: 260px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 1.6rem; }
}

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

/* Project detail pages */
.back-bar {
  background: var(--cream);
  border-bottom: 1px solid rgba(58,44,34,0.1);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brown);
}

.back-link:hover { color: var(--terracotta); }

.project-hero {
  background: var(--brown-dark);
  color: var(--cream);
  padding: 48px 0 40px;
}

.project-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--tan);
  font-weight: 700;
  margin-bottom: 10px;
}

.project-hero h1 {
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 8px;
}

.project-meta {
  color: var(--cream);
  opacity: 0.85;
  font-size: 1rem;
}

.project-body {
  padding: 56px 0 80px;
}

.project-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
}

.project-poster img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(58,44,34,0.18);
}

.project-content h2 {
  font-size: 1.3rem;
  color: var(--brown-dark);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--tan);
}

.project-content h2:first-child { margin-top: 0; }

.project-content p { margin-bottom: 14px; font-size: 1rem; color: var(--text); }

.info-list {
  list-style: none;
  font-size: 0.95rem;
  color: var(--text);
}

.info-list li { margin-bottom: 6px; padding-left: 0; }
.info-list strong { color: var(--brown-dark); }

.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-list li {
  background: var(--cream);
  color: var(--brown);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
}

.trailer-btn {
  display: inline-block;
  margin-top: 8px;
  background: var(--terracotta);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: 4px;
  transition: background 0.2s;
}

.trailer-btn:hover { background: var(--brown-dark); }

.video-embed {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(58,44,34,0.18);
  margin-top: 8px;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 780px) {
  .project-layout { grid-template-columns: 1fr; }
  .project-hero h1 { font-size: 1.6rem; }
}
