/* ============ Roberto Jácome — Portefólio ============ */

:root {
  --bg: #faf7f2;
  --ink: #221d1a;
  --ink-soft: #5a524c;
  --stage: #16100e;          /* preto de palco */
  --stage-soft: #241a17;
  --curtain: #7a1f22;        /* vermelho cortina */
  --curtain-deep: #55090c;
  --gold: #c9a24b;
  --gold-soft: #e6cf95;
  --paper: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(20, 10, 8, .12);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-weight: 300;
}

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

/* ---------- Navegação ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(22, 16, 14, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 75, .25);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: .8rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  color: var(--gold-soft); text-decoration: none; letter-spacing: .05em;
}
.nav-logo span { color: var(--curtain); -webkit-text-stroke: .5px var(--gold-soft); }
.nav-links {
  display: flex; gap: 1.8rem; list-style: none;
}
.nav-links a {
  color: #eee6da; text-decoration: none; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .12em; font-weight: 400;
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-toggle {
  display: none; background: none; border: none; color: var(--gold-soft);
  font-size: 1.5rem; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(201,162,75,.18), transparent 60%),
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(122,31,34,.35), transparent 65%),
    var(--stage);
  color: #f4ecdf;
  overflow: hidden;
  text-align: center;
  padding: 6rem 1.2rem 4rem;
}
.hero-curtain {
  position: absolute; top: 0; bottom: 0; width: 18vw; max-width: 240px;
  background:
    repeating-linear-gradient(90deg,
      var(--curtain-deep) 0 18px,
      var(--curtain) 18px 42px,
      #8f2c2f 42px 52px,
      var(--curtain) 52px 70px);
  filter: brightness(.9);
  opacity: .85;
}
.hero-curtain-left  { left: 0;  border-right: 3px solid rgba(201,162,75,.5); transform: skewX(-1deg); box-shadow: 25px 0 60px rgba(0,0,0,.55); }
.hero-curtain-right { right: 0; border-left: 3px solid rgba(201,162,75,.5); transform: skewX(1deg);  box-shadow: -25px 0 60px rgba(0,0,0,.55); }

.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-kicker {
  text-transform: uppercase; letter-spacing: .35em; font-size: .8rem;
  color: var(--gold); margin-bottom: 1.2rem;
}
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.8rem, 9vw, 5.5rem); line-height: 1.05;
}
.hero-title em { font-style: italic; color: var(--gold-soft); }
.hero-sub {
  margin: 1.4rem auto 2.2rem; max-width: 32em;
  font-size: 1.05rem; color: #d8cdbd;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: var(--gold); font-size: 1.4rem; text-decoration: none; z-index: 2;
  animation: flutuar 2s ease-in-out infinite;
}
@keyframes flutuar { 50% { transform: translate(-50%, 8px); } }

/* ---------- Botões ---------- */
.btn {
  display: inline-block; padding: .8rem 1.8rem; border-radius: 999px;
  text-decoration: none; font-size: .85rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; transition: all .25s;
}
.btn-primary { background: var(--gold); color: var(--stage); }
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--gold); color: var(--gold); }
.btn-ghost:hover { background: rgba(201,162,75,.15); transform: translateY(-2px); }
.section:not(.section-dark) .btn-ghost { border-color: var(--curtain); color: var(--curtain); }
.section:not(.section-dark) .btn-ghost:hover { background: rgba(122,31,34,.08); }

/* ---------- Secções ---------- */
.section { padding: 5.5rem 1.2rem; }
.section-dark {
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(122,31,34,.25), transparent 60%),
    var(--stage);
  color: #efe7da;
}
.container { max-width: 1100px; margin: 0 auto; }
.center { text-align: center; }

.kicker {
  text-transform: uppercase; letter-spacing: .3em; font-size: .75rem;
  color: var(--curtain); font-weight: 600; margin-bottom: .6rem;
}
.kicker-gold { color: var(--gold); text-align: center; }

h2 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600; margin-bottom: 1.2rem; line-height: 1.2;
}
.subtitle-line {
  display: block; font-family: var(--font-body); font-size: .85rem;
  letter-spacing: .25em; text-transform: uppercase; color: var(--gold);
  margin-top: .5rem; font-weight: 400;
}
.lead { font-size: 1.05rem; max-width: 46em; margin: 0 auto 1rem; }
.section-dark .lead { color: #cfc3b2; }

/* ---------- Sobre ---------- */
.split {
  display: grid; grid-template-columns: 340px 1fr; gap: 3.5rem; align-items: center;
}
.portrait {
  position: relative; aspect-ratio: 3/4; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  border: 6px solid var(--paper); outline: 1px solid #e5ddd2;
  background: linear-gradient(160deg, var(--stage-soft), var(--curtain-deep));
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-fallback {
  display: none; position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center;
  font-size: 3.5rem; color: var(--gold-soft); gap: .8rem; text-align: center;
}
.portrait-fallback small { font-size: .75rem; font-family: var(--font-body); color: #b8a888; line-height: 1.5; }
.portrait.placeholder .portrait-fallback { display: flex; }

.prose p { margin-bottom: 1.1rem; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }
blockquote {
  margin-top: 1.6rem; padding: 1.2rem 1.6rem;
  border-left: 3px solid var(--gold);
  font-family: var(--font-display); font-style: italic; font-size: 1.15rem;
  background: #fff; border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow); color: var(--ink);
}
blockquote cite {
  display: block; margin-top: .6rem; font-family: var(--font-body);
  font-style: normal; font-size: .8rem; color: var(--ink-soft);
}

/* ---------- Timeline de peças ---------- */
.timeline { margin-top: 3.5rem; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 44px; top: 0; bottom: 0;
  width: 1px; background: linear-gradient(var(--gold), rgba(201,162,75,.1));
}
.play {
  display: grid; grid-template-columns: 90px 1fr; gap: 1.8rem;
  margin-bottom: 3rem; position: relative;
}
.play-year {
  font-family: var(--font-display); font-size: 1.25rem; color: var(--gold);
  text-align: center; padding-top: 1.4rem; position: relative; z-index: 1;
}
.play-year::after {
  content: ""; display: block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); margin: .5rem auto 0; box-shadow: 0 0 0 5px var(--stage), 0 0 12px var(--gold);
}
.play-body {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,162,75,.2);
  border-radius: var(--radius); padding: 1.6rem 1.8rem;
  transition: border-color .3s, transform .3s;
}
.play-body:hover { border-color: rgba(201,162,75,.55); transform: translateY(-3px); }
.play-body h3 {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 600;
  color: var(--gold-soft); margin-bottom: .3rem;
}
.badge {
  display: inline-block; vertical-align: middle; margin-left: .5rem;
  font-family: var(--font-body); font-size: .65rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--curtain); color: #f4e8d8;
  padding: .25rem .7rem; border-radius: 999px;
}
.play-meta {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--gold); margin-bottom: .9rem;
}
.play-body > p { color: #cfc3b2; font-size: .96rem; margin-bottom: .8rem; }
.play-cast { font-size: .85rem; color: #a5988a; font-style: italic; }

.video-wrap {
  margin-top: 1.2rem; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(201,162,75,.3);
}
.video-wrap iframe { width: 100%; height: 100%; border: 0; }

.footnote { font-size: .8rem; color: #8d8071; text-align: center; margin-top: 1rem; }
.footnote a { color: var(--gold); }

/* ---------- Cartões percurso ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.card {
  background: var(--paper); border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow); border-top: 3px solid var(--curtain);
}
.card h3 {
  font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 1rem; font-weight: 600;
}
.card ul { list-style: none; }
.card li {
  padding: .45rem 0; color: var(--ink-soft); font-size: .95rem;
  border-bottom: 1px dashed #e8e0d4;
}
.card li:last-child { border-bottom: none; }

/* ---------- Galeria ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem;
}
.gallery-item {
  aspect-ratio: 1; border-radius: 10px; overflow: hidden; position: relative;
  background: linear-gradient(150deg, var(--stage-soft), rgba(122,31,34,.4));
  border: 1px solid rgba(201,162,75,.2);
  display: flex; align-items: center; justify-content: center;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .ph {
  color: rgba(201,162,75,.5); font-size: 1.8rem; text-align: center;
}
.gallery-item .ph small { display: block; font-size: .65rem; margin-top: .4rem; color: #8d8071; }

/* ---------- Contacto ---------- */
.socials {
  display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem;
}
.social {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  background: var(--paper); border-radius: var(--radius);
  padding: 1.4rem 2.2rem; text-decoration: none;
  box-shadow: var(--shadow); font-weight: 500; transition: transform .25s;
  border-bottom: 3px solid var(--gold);
}
.social:hover { transform: translateY(-4px); }
.social-icon { font-size: 1.8rem; }
.social small { color: var(--ink-soft); font-weight: 300; }

/* ---------- Rodapé ---------- */
.footer {
  background: var(--stage); color: #a5988a; text-align: center;
  padding: 2.2rem 1.2rem; font-size: .85rem;
}
.footer a { color: var(--gold); text-decoration: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 2.2rem; }
  .portrait { max-width: 320px; margin: 0 auto; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 20px; }
  .play { grid-template-columns: 1fr; gap: .6rem; }
  .play-year { text-align: left; padding: 0 0 0 44px; }
  .play-year::after { display: none; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: rgba(22,16,14,.97);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 320px; border-bottom: 1px solid rgba(201,162,75,.25); }
  .nav-links li { text-align: center; }
  .nav-links a { display: block; padding: 1rem; }
  .hero-curtain { width: 10vw; }
}
