/*
Theme Name: 4th Dimension Stages
Theme URI: https://4thdimensionstages.com
Author: 4th Dimension Stages
Author URI: https://4thdimensionstages.com
Description: Tema personalizado para a 4th Dimension Stages — cenografia, palcos, vídeo mapping e tendas para eventos.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: 4d-stages
Tags: dark, portfolio, one-page, events
*/

/* ─── TOKENS ──────────────────────────────────────────── */
:root {
  --bg:       #131313;
  --card:     #1a1a1a;
  --card2:    #212121;
  --red:      #E72025;
  --red-dark: #b51519;
  --gray:     #7B7B7B;
  --white:    #FFFFFF;
  --border:   rgba(231,32,37,.18);
}

/* ─── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ─── TYPOGRAPHY ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

/* ─── UTILITIES ───────────────────────────────────────── */
.red  { color: var(--red); }
.gray { color: var(--gray); }

.tag {
  display: inline-block;
  font-family: 'Cairo', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  padding: 13px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn:hover { background: var(--red-dark); transform: translateY(-2px); color: #fff; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--red);
  color: var(--red);
}
.btn-outline:hover { background: var(--red); color: #fff; }

.divider {
  width: 56px; height: 3px;
  background: var(--red);
  margin: 16px 0 28px;
}

.section-wrap {
  padding: 96px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

/* ─── NAVBAR ──────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(19,19,19,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
#site-header.scrolled { background: rgba(13,13,13,.98); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-logo svg { width: 38px; height: 38px; }
.logo-text {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: .95rem;
  letter-spacing: .04em;
  line-height: 1.15;
}
.logo-text .accent { color: var(--red); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color .2s;
}
.main-nav a:hover { color: var(--white); }
.main-nav .nav-cta {
  font-size: .78rem;
  padding: 10px 20px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
}

/* ─── HERO ────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(231,32,37,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231,32,37,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: gridMove 25s linear infinite;
  pointer-events: none;
}
@keyframes gridMove {
  0%   { background-position: 0 0; }
  100% { background-position: 56px 56px; }
}

.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--bg) 100%);
  pointer-events: none;
}

.hero-cube-bg {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: min(500px, 50vw);
  opacity: .08;
  pointer-events: none;
  animation: cubePulse 7s ease-in-out infinite;
}
@keyframes cubePulse {
  0%, 100% { opacity: .06; transform: translateY(-50%) scale(1); }
  50%       { opacity: .14; transform: translateY(-50%) scale(1.04); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-family: 'Cairo', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--red);
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 900;
  max-width: 720px;
  margin-bottom: 24px;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.hero-title .highlight { color: var(--red); }

.hero-sub {
  max-width: 520px;
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}
.stat-number {
  font-family: 'Cairo', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.stat-label {
  font-size: .72rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 4px;
}

/* ─── SERVICES ────────────────────────────────────────── */
#services { background: var(--card); }

.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.services-header p { color: var(--gray); line-height: 1.8; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.service-card {
  background: var(--card2);
  padding: 36px 28px;
  border-top: 2px solid transparent;
  transition: border-color .25s, background .2s;
}
.service-card:hover {
  border-color: var(--red);
  background: #252525;
}
.service-icon {
  width: 48px;
  height: 48px;
  color: var(--red);
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}
.service-card p {
  font-size: .85rem;
  color: var(--gray);
  line-height: 1.65;
}

/* ─── PORTFOLIO ───────────────────────────────────────── */
#portfolio { background: var(--bg); }

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tab {
  font-family: 'Cairo', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  color: var(--gray);
  cursor: pointer;
  transition: all .2s;
  background: transparent;
}
.filter-tab.active,
.filter-tab:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 240px;
  gap: 4px;
}
.p-item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.p-item:nth-child(2) { grid-column: span 5; }
.p-item:nth-child(3) { grid-column: span 5; }
.p-item:nth-child(4) { grid-column: span 4; }
.p-item:nth-child(5) { grid-column: span 4; }
.p-item:nth-child(6) { grid-column: span 4; }

.p-item {
  position: relative;
  overflow: hidden;
  background: var(--card2);
}

.p-item-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .5s;
}
.p-item:hover .p-item-img { transform: scale(1.06); }

/* Placeholder gradients when no image is set */
.p-item-img.placeholder-1 { background: radial-gradient(ellipse at 35% 60%, rgba(231,32,37,.45) 0%, #0d0505 70%); }
.p-item-img.placeholder-2 { background: radial-gradient(ellipse at center, rgba(231,32,37,.35) 0%, #0a0505 70%); }
.p-item-img.placeholder-3 { background: radial-gradient(ellipse at 60% 40%, rgba(231,32,37,.3) 0%, #05050f 70%); }
.p-item-img.placeholder-4 { background: linear-gradient(135deg, #0f0505 0%, #200a0a 100%); }
.p-item-img.placeholder-5 { background: linear-gradient(135deg, #050510 0%, #0a0a20 100%); }
.p-item-img.placeholder-6 { background: linear-gradient(135deg, #050f05 0%, #0a2010 100%); }

.p-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(19,19,19,.9) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity .3s;
}
.p-item:hover .p-item-overlay { opacity: 1; }

.p-category {
  font-family: 'Cairo', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 5px;
}
.p-title {
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.portfolio-footer {
  text-align: center;
  margin-top: 44px;
}

/* ─── INSTAGRAM STRIP ─────────────────────────────────── */
#instagram-section { background: var(--card); padding: 72px 0; overflow: hidden; }
.instagram-header {
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.insta-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: .82rem;
  transition: color .2s;
}
.insta-link:hover { color: var(--white); }
.insta-link svg { color: var(--red); }

.instagram-strip-wrap { overflow: hidden; }
.instagram-strip {
  display: flex;
  gap: 4px;
  animation: stripScroll 30s linear infinite;
  width: max-content;
}
.instagram-strip:hover { animation-play-state: paused; }
@keyframes stripScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.insta-post {
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background: var(--card2);
}
.insta-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.insta-post:hover img { transform: scale(1.08); }
.insta-post-placeholder {
  position: absolute;
  inset: 0;
}
.insta-post-hover {
  position: absolute;
  inset: 0;
  background: rgba(231,32,37,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity .3s;
}
.insta-post:hover .insta-post-hover { opacity: 1; }

/* ─── ABOUT ───────────────────────────────────────────── */
#about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-visual { position: relative; }
.about-image {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--card2);
  position: relative;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-image-placeholder {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 40% 50%, rgba(231,32,37,.3) 0%, #050505 65%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 130px;
  height: 130px;
  background: var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Cairo', sans-serif;
}
.about-badge-num {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
}
.about-badge-text {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
}

.about-content h2 { margin-bottom: 14px; }
.about-content p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 18px;
  font-size: .95rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0 36px;
}
.pillar {
  padding: 18px;
  background: var(--card2);
  border-left: 3px solid var(--red);
}
.pillar h4 {
  font-size: .85rem;
  margin-bottom: 4px;
}
.pillar p { font-size: .76rem; color: var(--gray); margin: 0; line-height: 1.5; }

/* ─── CLIENTS ─────────────────────────────────────────── */
#clients {
  background: var(--card);
  padding: 64px 24px;
  text-align: center;
}
.clients-label {
  font-family: 'Cairo', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 36px;
}
.clients-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}
.client-item {
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: .04em;
  color: rgba(255,255,255,.18);
  text-transform: uppercase;
  transition: color .2s;
}
.client-item:hover { color: rgba(255,255,255,.5); }

/* ─── PROCESS ─────────────────────────────────────────── */
#process { background: var(--bg); }
.process-intro { text-align: center; margin-bottom: 52px; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.process-step {
  background: var(--card2);
  padding: 36px 24px;
  position: relative;
}
.process-step::after {
  content: '';
  position: absolute;
  top: 36px; right: -1px;
  width: 2px; height: 28px;
  background: var(--red);
  opacity: .35;
}
.process-step:last-child::after { display: none; }
.step-number {
  font-family: 'Cairo', sans-serif;
  font-size: 3.2rem;
  font-weight: 900;
  color: rgba(231,32,37,.14);
  line-height: 1;
  margin-bottom: 16px;
}
.process-step h3 { font-size: .95rem; margin-bottom: 8px; }
.process-step p { font-size: .82rem; color: var(--gray); line-height: 1.6; }

/* ─── CONTACT ─────────────────────────────────────────── */
#contact { background: var(--card); position: relative; overflow: hidden; }
.contact-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231,32,37,.1) 0%, transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.contact-info h2 { margin-bottom: 12px; }
.contact-info p { color: var(--gray); line-height: 1.75; margin-bottom: 28px; font-size: .95rem; }

.contact-channels { display: flex; flex-direction: column; gap: 10px; }
.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--card2);
  border-left: 3px solid var(--border);
  transition: border-color .2s;
}
.channel:hover { border-color: var(--red); }
.channel-icon {
  width: 40px; height: 40px;
  background: rgba(231,32,37,.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}
.channel-label {
  font-family: 'Cairo', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
}
.channel-value {
  font-family: 'Cairo', sans-serif;
  font-size: .9rem;
  font-weight: 600;
}

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: 'Cairo', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--card2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 4px;
  color: var(--white);
  font-family: 'Open Sans', sans-serif;
  font-size: .88rem;
  padding: 12px 14px;
  outline: none;
  width: 100%;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group select option { background: #1a1a1a; }
.form-group textarea { min-height: 110px; resize: vertical; }

/* ─── WHATSAPP FLOAT ──────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 998;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.6);
}
.wa-float svg { width: 28px; height: 28px; fill: white; }

/* ─── FOOTER ──────────────────────────────────────────── */
#site-footer {
  background: #0d0d0d;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 56px 24px 28px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: var(--gray);
  font-size: .82rem;
  line-height: 1.7;
  margin: 14px 0 20px;
}
.footer-social { display: flex; gap: 8px; }
.social-link {
  width: 34px; height: 34px;
  background: var(--card2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cairo', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  color: var(--gray);
  transition: background .2s, color .2s;
}
.social-link:hover { background: var(--red); color: #fff; }

.footer-col h4 {
  font-family: 'Cairo', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col li {
  font-size: .82rem;
  color: var(--gray);
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-col li a { color: var(--gray); transition: color .2s; }
.footer-col li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .76rem;
  color: rgba(255,255,255,.22);
  flex-wrap: wrap;
  gap: 10px;
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-header { grid-template-columns: 1fr; gap: 20px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-auto-rows: 200px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-badge { right: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 72px;
    background: rgba(13,13,13,.98);
    padding: 48px 24px;
    gap: 28px;
    z-index: 998;
    align-items: flex-start;
  }
  .main-nav.open a { font-size: 1.2rem; }
  .menu-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 160px; }
  .p-item:nth-child(1) { grid-column: span 6; grid-row: span 1; }
  .p-item:nth-child(2) { grid-column: span 3; }
  .p-item:nth-child(3) { grid-column: span 3; }
  .p-item:nth-child(4) { grid-column: span 2; }
  .p-item:nth-child(5) { grid-column: span 2; }
  .p-item:nth-child(6) { grid-column: span 2; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .about-pillars { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section-wrap { padding: 64px 20px; }
  .hero-content { padding: 120px 20px 60px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
}
