@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ============================================================
   PureRed — Kelson Budin
   Dark / high-energy portfolio theme
   ============================================================ */

:root {
  --red: #FF003C;
  --red-hover: #E60036;
  --red-glow: rgba(255, 0, 60, 0.15);
  --red-glow-heavy: rgba(255, 0, 60, 0.45);
  --red-soft-bg: rgba(255, 0, 60, 0.08);

  --bg: #08080a;
  --bg-raised: #0e0e12;
  --bg-card: rgba(255, 255, 255, 0.045);
  --bg-glass: rgba(14, 14, 18, 0.72);

  --border: 1px solid rgba(255, 255, 255, 0.1);
  --border-strong: 1px solid rgba(255, 255, 255, 0.22);
  --border-red: 1px solid rgba(255, 60, 100, 0.5);

  --text: #ffffff;
  --text-muted: #a6a6ad;
  --text-dim: #6d6d75;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --font-title: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;

  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);

  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

/* Dotted texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 26px 26px;
  z-index: -2;
  pointer-events: none;
}

/* Breathing glows */
.bg-glow-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg-glow-1,
.bg-glow-2 {
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
}

.bg-glow-1 {
  top: -12%;
  left: -12%;
  background: radial-gradient(circle, rgba(255, 0, 60, 0.09) 0%, transparent 70%);
  animation: breathe 12s infinite ease-in-out;
}

.bg-glow-2 {
  bottom: -15%;
  right: -15%;
  background: radial-gradient(circle, rgba(255, 0, 60, 0.07) 0%, transparent 70%);
  animation: breathe 15s infinite ease-in-out alternate;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.highlight-red {
  color: var(--red);
  text-shadow: 0 0 28px var(--red-glow-heavy);
}

/* ============================================================
   Header
   ============================================================ */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.logo-dot {
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--red-glow-heavy);
  animation: pulse-dot 2.4s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

nav {
  margin-left: auto;
}

nav ul {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

nav a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.lang-switch {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  border: var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  transition: all 0.2s;
}

.lang-switch:hover {
  color: var(--text);
  border-color: var(--red);
}

.nav-cta {
  background: var(--red);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 18px var(--red-glow);
}

.nav-cta:hover {
  background: var(--red-hover);
  box-shadow: 0 0 26px var(--red-glow-heavy);
  transform: translateY(-1px);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  cursor: pointer;
}

.mobile-nav-toggle svg {
  width: 22px;
  height: 22px;
  fill: var(--text);
  display: block;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  margin-bottom: 1.4rem;
}

.kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red-glow-heavy);
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -1px;
  margin-bottom: 1.2rem;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  border-top: var(--border);
  padding-top: 1.4rem;
}

.hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-facts strong {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero-facts span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Showreel */
.showreel-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: var(--border-strong);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.showreel-container:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--red-glow);
}

.showreel-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showreel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5, 5, 6, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.4rem;
}

.play-badge {
  width: 58px;
  height: 58px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px var(--red-glow-heavy);
  transition: transform 0.25s;
}

.showreel-container:hover .play-badge { transform: scale(1.12); }

.play-badge svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  margin-left: 3px;
}

.showreel-details h3 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.showreel-details p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn-brutal {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-align: center;
  border: 2px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.8rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 8px 24px var(--red-glow);
}

.btn-brutal:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--red-glow-heavy);
}

.btn-brutal.btn-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.btn-brutal.btn-white:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.btn-block {
  display: block;
  width: 100%;
  margin-top: 0.8rem;
}

/* ============================================================
   Marquee
   ============================================================ */

.marquee-container {
  overflow: hidden;
  border-top: var(--border);
  border-bottom: var(--border);
  background: var(--bg-raised);
  padding: 0.85rem 0;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  animation: marquee 32s linear infinite;
}

.marquee-content span {
  color: var(--red);
  margin: 0 1.4rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   Sections (shared)
   ============================================================ */

section {
  padding: 4.5rem 0;
}

.section-header {
  margin-bottom: 2.6rem;
  max-width: 44rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--red);
  margin-bottom: 0.7rem;
}

.section-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 0.6rem;
}

.section-title span { color: var(--red); }

.section-header p { color: var(--text-muted); }

/* ============================================================
   Services
   ============================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.service-card:hover {
  border-color: rgba(255, 60, 100, 0.5);
  background: var(--red-soft-bg);
  transform: translateY(-4px);
}

.service-card:hover::after { transform: scaleX(1); }

.service-num {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--red);
  letter-spacing: 0.1em;
}

.service-card h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex-grow: 1;
}

.service-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.service-card ul li {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding-left: 1rem;
  position: relative;
}

.service-card ul li::before {
  content: '•';
  color: var(--red);
  position: absolute;
  left: 0;
}

.service-link {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.4rem;
}

/* ============================================================
   Portfolio grids and cards
   ============================================================ */

.featured-section {
  background: var(--bg-raised);
  border-top: var(--border);
  border-bottom: var(--border);
}

/* Masonry controlado por JS (app.js): os cards são distribuídos em
   colunas de altura balanceada, preenchendo da esquerda para a direita
   sem deixar buracos entre cards verticais e horizontais */
.portfolio-grid {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.masonry-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.project-card {
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s;
}

.project-card:hover {
  border-color: rgba(255, 60, 100, 0.55);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 30px var(--red-glow);
}

.card-image {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.card-horizontal .card-image { aspect-ratio: 16 / 9; }
.card-vertical .card-image { aspect-ratio: 9 / 16; }
.card-banner .card-image { aspect-ratio: 4 / 5; }

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s, opacity 0.3s;
}

.card-image:hover img { transform: scale(1.04); }

.preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-icon-badge {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  width: 34px;
  height: 34px;
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(8px);
  border: var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
  transition: all 0.2s;
}

.card-image:hover .video-icon-badge {
  background: var(--red);
  border-color: var(--red);
}

.featured-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px var(--red-glow-heavy);
  pointer-events: none;
}

.card-content {
  padding: 1rem 1.1rem;
  text-align: center;
}

.card-content h3 {
  font-family: var(--font-title);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
}

/* Category subsections */
.portfolio-subsection {
  margin-bottom: 3rem;
  scroll-margin-top: 90px;
}

.subsection-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
  padding-left: 0.9rem;
  border-left: 4px solid var(--red);
}

.filter-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.4rem;
}

.filter-btn {
  background: var(--bg-card);
  border: var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
}

.filter-btn:hover {
  color: #fff;
  border-color: var(--red);
  background: var(--red-soft-bg);
}

/* ============================================================
   About
   ============================================================ */

.about-section {
  background: var(--bg-raised);
  border-top: var(--border);
  border-bottom: var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.about-text h2 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.about-lead {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-cta { margin-top: 1.6rem; }

.skills-container {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}

.skills-category h4 {
  font-family: var(--font-title);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 0.8rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.05);
  border: var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
}

.skill-tag:hover {
  color: #fff;
  border-color: var(--red);
}

/* ============================================================
   Process
   ============================================================ */

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.process-step {
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  position: relative;
  transition: all 0.25s;
}

.process-step:hover {
  border-color: rgba(255, 60, 100, 0.5);
  transform: translateY(-3px);
}

.process-num {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 2rem;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red);
  margin-bottom: 0.7rem;
}

.process-step h3 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ============================================================
   Contact
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.contact-info > p { color: var(--text-muted); }

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}

.contact-detail-item h5 {
  font-family: var(--font-title);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 0.2rem;
}

.contact-detail-item p,
.contact-detail-item a {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-detail-item a:hover { color: var(--red); }

.contact-cta-card {
  background: var(--bg-card);
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  position: sticky;
  top: 90px;
}

.contact-cta-card h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.contact-cta-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}

/* ============================================================
   Footer
   ============================================================ */

footer {
  border-top: var(--border);
  background: var(--bg-raised);
  padding: 1.6rem 0;
}

.footer-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo { font-size: 1.2rem; }

.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-left: auto;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  border: var(--border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.8rem;
  transition: all 0.2s;
}

.admin-link:hover {
  color: var(--text);
  border-color: var(--red);
}

/* ============================================================
   Dialogs (lightbox + contact modal)
   ============================================================ */

dialog {
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  color: var(--text);
  padding: 0;
  max-width: min(920px, 94vw);
  width: 100%;
  box-shadow: var(--shadow-lg);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-bottom: var(--border);
}

.dialog-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dialog-close {
  background: rgba(255, 255, 255, 0.06);
  border: var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.dialog-close svg {
  width: 18px;
  height: 18px;
  fill: var(--text);
}

.dialog-close:hover {
  background: var(--red);
  border-color: var(--red);
}

.dialog-body {
  background: #000;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dialog-body iframe,
.dialog-body video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.dialog-body.is-vertical {
  aspect-ratio: unset;
  height: min(72vh, 680px);
}

.dialog-body.is-vertical iframe,
.dialog-body.is-vertical video {
  width: auto;
  aspect-ratio: 9 / 16;
  height: 100%;
  margin: 0 auto;
}

.dialog-body.is-image {
  aspect-ratio: unset;
  height: min(72vh, 680px);
}

.dialog-body.is-image img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.dialog-details {
  padding: 1.3rem 1.4rem 1.5rem;
}

.dialog-details > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.dialog-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  border-top: var(--border);
  padding-top: 1.1rem;
}

.dialog-meta-item h5 {
  font-family: var(--font-title);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 0.2rem;
}

.dialog-meta-item p {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Contact modal */
.contact-modal { max-width: 460px; }

.contact-modal-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.3rem 1.4rem 1.5rem;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.contact-option:hover {
  border-color: var(--red);
  background: var(--red-soft-bg);
  transform: translateY(-2px);
}

.contact-option-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 18px var(--red-glow);
}

.contact-option-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.contact-option-text {
  display: flex;
  flex-direction: column;
}

.contact-option-text strong {
  font-family: var(--font-title);
  font-size: 1rem;
  text-transform: uppercase;
}

.contact-option-text span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================================
   Empty state
   ============================================================ */

.empty-state {
  border: 3px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
}

.empty-state h3 {
  font-family: var(--font-title);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.empty-state p { color: var(--text-muted); }

.empty-state a {
  color: var(--red);
  font-weight: 700;
}

/* ============================================================
   Subpáginas (Valores / Projetos Especiais)
   ============================================================ */

.page-hero {
  padding: 3.6rem 0 1.2rem;
}

.page-hero .section-tag { margin-bottom: 0.5rem; }

.page-hero h1 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 0.8rem;
}

.page-hero h1 span { color: var(--red); }

.page-hero p {
  color: var(--text-muted);
  max-width: 40rem;
  font-size: 1.02rem;
}

/* ---- Tabela de valores ---- */

.pricing-section { padding: 2.4rem 0 4rem; }

.pricing-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-row {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 0.9fr;
  gap: 1.4rem;
  align-items: center;
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  transition: all 0.25s;
}

.pricing-row:hover {
  border-color: rgba(255, 60, 100, 0.5);
  transform: translateY(-2px);
}

.pricing-name h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 0.25rem;
}

.pricing-name span {
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 600;
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.pricing-value { text-align: right; }

.pricing-value .price-main {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  white-space: nowrap;
}

.pricing-value .price-unit {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.pricing-value .price-alt {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: var(--border);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.7rem;
  white-space: nowrap;
}

.pricing-notes {
  margin-top: 2rem;
  background: var(--red-soft-bg);
  border: var(--border-red);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
}

.pricing-notes h4 {
  font-family: var(--font-title);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.pricing-notes ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pricing-notes li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-left: 1.1rem;
  position: relative;
}

.pricing-notes li::before {
  content: '→';
  color: var(--red);
  position: absolute;
  left: 0;
}

.pricing-cta {
  margin-top: 2.4rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .pricing-row {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .pricing-value { text-align: left; }
}

/* ---- Quiz Projetos Especiais ---- */

.quiz-main {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 0 4rem;
}

.quiz-shell {
  width: min(680px, 92%);
}

.quiz-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 1.6rem;
}

.quiz-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 14px var(--red-glow-heavy);
  transition: width 0.35s ease;
}

.quiz-card {
  background: var(--bg-card);
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-lg);
  animation: quiz-in 0.3s ease;
}

@keyframes quiz-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-step-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.quiz-card h2 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.quiz-card .quiz-hint {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--font-body);
}

.quiz-option:hover {
  border-color: var(--red);
  background: var(--red-soft-bg);
  transform: translateY(-2px);
}

.quiz-option .opt-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.quiz-option .opt-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.quiz-option .opt-text strong {
  font-size: 1rem;
  font-weight: 700;
}

.quiz-option .opt-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Preço como pílula neutra: legível e sem "alerta de gasto" */
.quiz-option .opt-price {
  margin-left: auto;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.07);
  border: var(--border);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.quiz-option:hover .opt-price {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 640px) {
  .quiz-option {
    flex-wrap: wrap;
    padding: 0.9rem 1rem;
  }

  /* Preço desce para uma segunda linha, alinhado com o texto */
  .quiz-option .opt-price {
    flex-basis: 100%;
    margin-left: 2.4rem;
    margin-top: 0.1rem;
  }
}

.quiz-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.quiz-input-group input {
  background: rgba(255, 255, 255, 0.05);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 1.05rem;
  padding: 0.9rem 1.1rem;
  width: 100%;
}

.quiz-input-group input:focus {
  outline: none;
  border-color: var(--red);
}

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.6rem;
}

.quiz-back {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0;
  font-family: var(--font-body);
}

.quiz-back:hover { color: var(--text); }

/* Tela final */

.quiz-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red-soft-bg);
  border: var(--border-red);
  color: var(--red);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-pill);
  padding: 0.4rem 1rem;
  margin-bottom: 1rem;
}

.quiz-summary {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.3);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.3rem;
  margin: 1.2rem 0;
}

.quiz-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.quiz-summary-row .sum-label { color: var(--text-dim); }
.quiz-summary-row .sum-value {
  font-weight: 700;
  text-align: right;
}

.quiz-summary-row.sum-total {
  border-top: var(--border);
  padding-top: 0.7rem;
  margin-top: 0.3rem;
}

.quiz-summary-row.sum-total .sum-value {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--text);
}

.quiz-disclaimer {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1.4rem;
}

.quiz-final-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.quiz-restart {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 1rem;
  font-family: var(--font-body);
  text-decoration: underline;
}

.quiz-restart:hover { color: var(--text); }

/* ============================================================
   Scrollbar
   ============================================================ */

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .hero { padding: 3rem 0 2.5rem; }
  .hero-reel { order: -1; }
  .contact-cta-card { position: static; }
}

@media (max-width: 760px) {
  nav {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border-bottom: var(--border);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    margin-left: 0;
  }

  nav.mobile-active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.6rem 0;
  }

  nav a {
    display: block;
    padding: 0.85rem 1.4rem;
  }

  .nav-actions { margin-left: auto; }
  .nav-cta { display: none; }
  .mobile-nav-toggle { display: block; }

  section { padding: 3.2rem 0; }

  .hero-facts { gap: 1rem 1.6rem; }

  .portfolio-grid {
    gap: 0.9rem;
  }

  .masonry-col { gap: 0.9rem; }

  .card-content { padding: 0.75rem 0.6rem; }
  .card-content h3 { font-size: 0.78rem; }

  /* Áreas de foco compactas: 2x2, só número + título + link */
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }

  .service-card {
    padding: 1rem 0.9rem;
    gap: 0.4rem;
  }

  .service-card p,
  .service-card ul { display: none; }

  .service-card h3 { font-size: 0.95rem; }
  .service-link { font-size: 0.78rem; margin-top: 0.2rem; }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }

  .footer-copy { margin-left: 0; }
}
