/* Partida Studio — site institucional */
:root {
  --bg: #070707;
  --bg-elev: #101010;
  --ink: #f3eee4;
  --muted: #9a9488;
  --gold: #c6a35a;
  --gold-bright: #e4c98a;
  --line: rgba(198, 163, 90, 0.22);
  --line-soft: rgba(255, 255, 255, 0.06);
  --font-display: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.6rem 0.9rem;
  background: var(--gold);
  color: #111;
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— Nav —— */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1.1rem, 3vw, 2.2rem);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 0.35s var(--ease), border-color 0.35s, backdrop-filter 0.35s;
}

.site-nav.is-scrolled,
body.is-subpage .site-nav {
  background: rgba(7, 7, 7, 0.88);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.brand-mark {
  width: 28px;
  height: 28px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-links a {
  color: rgba(243, 238, 228, 0.72);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold-bright);
  text-decoration: none;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.55rem 1.25rem;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  text-decoration: none;
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #14110c;
}

.btn-primary:hover {
  background: var(--gold-bright);
  color: #14110c;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Hero (intro da marca Partida) —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: calc(var(--nav-h) + 2.4rem) 0 4rem;
  background: #050505;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video.is-portrait {
  display: none;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.12) 0%, rgba(7, 7, 7, 0.18) 48%, rgba(7, 7, 7, 0.78) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: none;
  width: 100%;
  margin: 0;
  transform: none;
  display: flex;
  justify-content: center;
}

.hero-copy .btn-row {
  margin: 0;
}

.section-intro {
  max-width: 36rem;
  margin: -0.4rem 0 2.2rem;
  font-size: 1.05rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none !important;
  }

  .hero-stage {
    background:
      radial-gradient(ellipse 70% 55% at 78% 28%, rgba(198, 163, 90, 0.14), transparent 62%),
      #070707;
  }
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.4rem, 10vw, 8.2rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
}

.hero h1 span {
  display: block;
  font-style: italic;
  color: var(--gold-bright);
}

.hero-lead {
  max-width: 34rem;
  margin: 1.5rem 0 2rem;
  color: rgba(243, 238, 228, 0.82);
  font-size: 1.12rem;
}

/* —— Sections —— */
.section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--line-soft);
}

.section h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.lead {
  margin: 0 0 1.1rem;
  font-size: 1.2rem;
  color: var(--ink);
}

.muted {
  color: var(--muted);
}

.facts {
  display: grid;
  gap: 1.15rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}

.facts dt {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0.25rem 0 0;
}

/* —— Work —— */
.work-card {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.work-visual {
  position: relative;
  min-height: 0;
  overflow: visible;
  background: #080808;
  line-height: 0;
}

.work-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.work-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.2rem 2.1rem 2.4rem;
  max-width: 40rem;
}

.work-body h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 500;
}

.work-body p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

/* —— Contact —— */
.contact-intro {
  max-width: 36rem;
  margin-bottom: 1.8rem;
}

.contact-intro h2 {
  margin: 0 0 0.7rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.contact-card {
  padding: 1.4rem 1.35rem;
  border: 1px solid var(--line-soft);
  background: rgba(16, 16, 16, 0.65);
}

.contact-card span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-card a,
.contact-card p {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
}

.contact-card a:hover {
  color: var(--gold-bright);
}

.social-block {
  margin-top: 2.6rem;
  padding: 1.8rem 1.6rem 1.7rem;
  border: 1px solid rgba(198, 163, 90, 0.42);
  background:
    linear-gradient(135deg, rgba(198, 163, 90, 0.1), rgba(16, 16, 16, 0.2) 42%, rgba(7, 7, 7, 0.85));
}

.social-block .eyebrow {
  margin-bottom: 1.1rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.35rem 1.2rem;
  border: 1px solid rgba(198, 163, 90, 0.35);
  background: rgba(7, 7, 7, 0.72);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.social-card:hover {
  border-color: var(--gold-bright);
  background: rgba(20, 18, 12, 0.92);
  transform: translateY(-2px);
}

.social-card span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.social-card strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

/* —— Legal / 404 —— */
.page-main {
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
}

.legal-header h1,
.error-card h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 500;
}

.legal-meta {
  margin: 0.2rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-section {
  margin-top: 2rem;
  max-width: 46rem;
}

.legal-section h2 {
  font-size: 1.45rem;
}

.legal-section ul {
  padding-left: 1.15rem;
}

.error-card {
  width: min(36rem, 100%);
  margin: 8vh auto 0;
  text-align: center;
  padding: 2.6rem 1.6rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}

.error-code {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 10vw, 5.4rem);
  color: var(--gold);
  line-height: 0.9;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 2rem 0 2.4rem;
}

.footer-inner {
  display: grid;
  gap: 0.85rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-legal,
.footer-links {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--gold-bright);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-panel {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    padding: 0.75rem 1.1rem 1.1rem;
    background: rgba(7, 7, 7, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav-panel.is-open {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .split,
  .work-card,
  .contact-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: end;
    padding-bottom: 3rem;
  }

  .hero-copy {
    max-width: none;
    margin: 0;
    transform: none;
  }

  .hero-video.is-landscape {
    display: none;
  }

  .hero-video.is-portrait {
    display: block;
  }
}

@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .hero-video.is-portrait {
    display: none !important;
  }
}
