:root {
  --black: #000000;
  --deep: #050505;
  --panel: #111111;
  --border: #1a1a1a;
  --red: #c8102e;
  --white: #f0ede8;
  --grey: #8a8a8a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Rajdhani', sans-serif;
  background: var(--black);
  color: var(--white);
  cursor: none;
}

a, button, input, textarea, select, .nav-cta, .btn-primary, .btn-secondary, .filter-button, .gallery-card {
  cursor: none !important;
}

/* ─── CURSOR ─── */
.cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  background-image: url("../assets/ponteiro.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform .1s, opacity .2s;
}
.cursor.clickable {
  background-image: url("../assets/ponteiroclicavel.png");
}
.cursor-ring {
  display: none;
}

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(200,16,46,.14), transparent 26%),
              radial-gradient(circle at 80% 10%, rgba(255,255,255,.08), transparent 18%);
  pointer-events: none;
  z-index: -1;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  gap: 2rem;
  background: rgba(0, 0, 0, .76);
  border-bottom: 1px solid rgba(200,16,46,.2);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.6rem;
  letter-spacing: .18em;
}

.nav-logo span { color: var(--red); }

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--grey);
  transition: color .2s ease;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  font-family: 'Oswald', sans-serif;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  padding: .7rem 1.3rem;
  background: var(--red);
  color: var(--white);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

main {
  padding: 8rem 3rem 4rem;
  max-width: 1320px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0 3rem;
}

.hero--gallery { min-height: calc(100vh - 7rem); }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-family: 'Oswald', sans-serif;
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(3.8rem, 6vw, 6.8rem);
  line-height: .95;
  color: var(--white);
}

.hero-title .red { color: var(--red); }
.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(240,237,232,.4);
}

.hero-subtitle {
  max-width: 520px;
  margin-top: 1.8rem;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--grey);
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 2rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-family: 'Oswald', sans-serif;
  font-size: .85rem;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.btn-secondary {
  background: rgba(255,255,255,.05);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.1);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.hero-visual {
  display: grid;
  gap: 1.5rem;
}

.hero-card {
  position: relative;
  min-height: 280px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  overflow: hidden;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(200,16,46,.05);
}

.hero--gallery .hero-card--photo {
  min-height: 360px;
}

.hero-card-media {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.hero-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 45%);
  pointer-events: none;
}

.hero-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: .5rem 1rem;
  background: rgba(0,0,0,.6);
  border: 1px solid rgba(200,16,46,.4);
  font-family: 'Oswald', sans-serif;
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  z-index: 2;
}

.hero-card-preview {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,16,46,.15), rgba(255,255,255,.05));
}

.gallery-card-images {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

.gallery-card-images img,
.hero-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-card--video .hero-card-preview {
  background: radial-gradient(circle at center, rgba(255,255,255,.1), transparent 35%),
              linear-gradient(135deg, rgba(200,16,46,.18), rgba(30,30,30,.8));
}

.hero-card--photo .hero-card-preview {
  background: radial-gradient(circle at top left, rgba(255,255,255,.2), transparent 24%),
              linear-gradient(150deg, rgba(255,255,255,.06), rgba(20,20,20,.95));
}

.filters-section {
  margin-top: 4rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-bottom: 2rem;
}

.section-tag {
  font-family: 'Oswald', sans-serif;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--red);
}

.section-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 1;
}

.filter-group {
  margin-top: 1.5rem;
}

.filter-title {
  font-size: .95rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: .8rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.filter-button {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: .82rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .85rem 1.4rem;
  cursor: pointer;
  transition: all .25s ease;
}

.filter-button.active,
.filter-button:hover {
  background: rgba(200,16,46,.95);
  border-color: var(--red);
}

.gallery-section {
  padding: 4rem 0 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  min-height: 360px;
  position: relative;
  overflow: hidden;
  align-self: start;
}

.carousel-visual {
  position: relative;
  min-height: 260px;
}

.carousel-slides {
  display: flex;
  width: 100%;
  transition: transform .35s ease;
}

.carousel-slide {
  min-width: 100%;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.52);
  color: var(--white);
  font-size: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

.carousel-control:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.06);
  background: rgba(200,16,46,.85);
}

.carousel-control:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

.media-preview {
  position: relative;
  min-height: 240px;
  overflow: hidden;
}

.gallery-card-images {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

.media-preview img,
.media-preview video,
.gallery-card-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

  .gallery-card-body {
    padding: 1.4rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    flex: 1 0 auto;
}

.media-preview--video {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(200,16,46,.16), rgba(0,0,0,.8));
}

.video-placeholder {
  text-align: center;
  color: var(--white);
}

.video-placeholder span {
  display: inline-flex;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.video-placeholder p {
  color: var(--grey);
  font-size: .95rem;
  max-width: 150px;
  margin: 0 auto;
}

.gallery-card-body {
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.gallery-label {
  font-family: 'Oswald', sans-serif;
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--red);
}

.gallery-card h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0;
  color: var(--white);
}

/* ─── NAV RIGHT ─── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(255,255,255,.14);
  padding: 8px;
  cursor: pointer;
  z-index: 200;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  transition: transform .3s ease, opacity .3s ease, width .3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── NAV OVERLAY ─── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 98;
  opacity: 0;
  transition: opacity .3s ease;
}
.nav-overlay.active {
  opacity: 1;
}

.nav-cta-mobile { display: none; }

/* ─── TABLET ─── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hero--gallery { min-height: auto; padding: 3rem 0 2rem; }
  .hero-card--photo { min-height: 300px; }
  .hero-card-media { min-height: 300px; }
}

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-cta-desktop { display: none; }
  .hamburger { display: flex; }
  .nav-overlay { display: block; pointer-events: none; }
  .nav-overlay.active { pointer-events: all; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100dvh;
    background: rgba(8,8,8,.97);
    border-left: 1px solid rgba(200,16,46,.25);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 6rem 2.5rem 3rem;
    gap: 0;
    z-index: 99;
    transition: right .35s cubic-bezier(.4,0,.2,1);
    backdrop-filter: blur(20px);
  }

  .nav-links.open { right: 0; }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  .nav-links a {
    display: block;
    padding: 1.1rem 0;
    font-size: 1rem;
    letter-spacing: .2em;
    color: var(--white);
    transition: color .2s, padding-left .2s;
  }

  .nav-links a:hover { color: var(--red); padding-left: .4rem; }

  .nav-cta-mobile { display: block; border-bottom: none !important; margin-top: 1.5rem; }
  .nav-cta-mobile .nav-cta {
    display: inline-flex;
    padding: .85rem 1.8rem;
  }

  main { padding: 5rem 1.2rem 3rem; }

  .hero { gap: 2rem; padding: 2rem 0; }
  .hero-title { font-size: clamp(3rem, 12vw, 4.5rem); }
  .hero--gallery { min-height: auto; }
  .hero-card--photo,
  .hero-card-media { min-height: 240px; }

  .hero-actions { gap: .8rem; }
  .btn-primary, .btn-secondary { padding: .85rem 1.5rem; font-size: .8rem; }

  .section-title { font-size: clamp(2rem, 8vw, 3rem); }

  .filter-buttons { gap: .6rem; }
  .filter-button { padding: .7rem 1.1rem; font-size: .78rem; }

  .gallery-grid { grid-template-columns: 1fr; gap: 1.2rem; }

  .gallery-card { min-height: auto; border-radius: 16px; }
  .media-preview,
  .gallery-card-images { min-height: 220px; }
}

/* ─── SMALL MOBILE ─── */
@media (max-width: 420px) {
  .nav { padding: .9rem 1rem; }
  main { padding: 4.5rem 1rem 2rem; }
  .hero-title { font-size: clamp(2.8rem, 14vw, 3.8rem); }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .filter-button { padding: .6rem .9rem; font-size: .75rem; }
}
