/* ==========================================================================
   PORTFÓLIO ARQUITETA DÉBORA GOMES - ESTILOS PRINCIPAIS
   Design Editorial, Minimalista & Sofisticado de Arquitetura
   Suporte a Modo Claro & Modo Escuro (Dark Mode)
   ========================================================================== */

:root {
  /* Paleta de Cores - Modo Claro (Padrão) */
  --bg-main: #F6EEE1;
  --bg-surface: #FBF6EE;
  --bg-surface-elevated: #EFE3D2;
  --bg-dark: #3A1A10;
  --bg-dark-card: #4A2418;
  
  --text-primary: #3A1A10;
  --text-secondary: #6B4A3A;
  --text-muted: #9A8070;
  --text-light: #F6EEE1;
  --text-light-muted: #D9C6B2;

  --accent-gold: #8A4935;
  --accent-gold-hover: #6E3624;
  --accent-gold-light: #EBD9C8;
  --accent-sand: #D9C6B2;
  --accent-terracotta: #8A4935;
  
  --border-light: rgba(58, 26, 16, 0.10);
  --border-dark: rgba(246, 238, 225, 0.12);
  --border-accent: rgba(138, 73, 53, 0.35);

  --shadow-sm: 0 4px 12px rgba(58, 26, 16, 0.05);
  --shadow-md: 0 10px 30px rgba(58, 26, 16, 0.08);
  --shadow-lg: 0 20px 50px rgba(58, 26, 16, 0.12);
  --shadow-gold: 0 10px 25px rgba(138, 73, 53, 0.25);

  /* Tipografia */
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   MODO ESCURO (DARK MODE)
   ========================================================================== */
[data-theme="dark"] {
  --bg-main: #24120B;
  --bg-surface: #2E170E;
  --bg-surface-elevated: #3A1D12;
  --bg-dark: #1A0C07;
  --bg-dark-card: #2A140C;

  --text-primary: #F6EEE1;
  --text-secondary: #D9C6B2;
  --text-muted: #A88E7A;
  --text-light: #F6EEE1;
  --text-light-muted: #D9C6B2;

  --accent-gold: #C77B5C;
  --accent-gold-hover: #D99476;
  --accent-gold-light: rgba(199, 123, 92, 0.15);
  --accent-sand: #4A2A1C;
  
  --border-light: rgba(246, 238, 225, 0.10);
  --border-dark: rgba(246, 238, 225, 0.08);
  --border-accent: rgba(199, 123, 92, 0.4);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 10px 25px rgba(199, 123, 92, 0.2);
}

/* Reset Básico */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.35s ease, color 0.35s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

/* Utilitários de Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 7rem 0;
  position: relative;
  transition: background-color 0.35s ease;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

/* Tipografia Arquitetônica */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.section-tag::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--accent-gold);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.section-dark .section-title {
  color: var(--text-light);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  font-weight: 400;
  line-height: 1.7;
}

.section-dark .section-subtitle {
  color: var(--text-light-muted);
}

.section-header {
  margin-bottom: 4rem;
}

.section-header.text-center {
  text-align: center;
}

.section-header.text-center .section-tag::before {
  display: none;
}

.section-header.text-center .section-subtitle {
  margin: 0 auto;
}

/* ==========================================================================
   NAVBAR & HEADER
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(246, 238, 225, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

[data-theme="dark"] .navbar {
  background: rgba(36, 18, 11, 0.92);
  border-bottom-color: var(--border-light);
}

.navbar.scrolled {
  background: rgba(246, 238, 225, 0.98);
  box-shadow: var(--shadow-sm);
  padding: 0.2rem 0;
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(30, 15, 9, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.brand-logo-img {
  width: auto;
  height: 46px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

.brand-link:hover .brand-logo-img {
  transform: rotate(5deg) scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Delius', 'Patrick Hand', cursive;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.6rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.6vw, 2rem);
  list-style: none;
}

.nav-link {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  position: relative;
  padding: 0.4rem 0;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

/* Botão Alternador de Tema (Dark / Light Mode) */
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
  background: var(--accent-gold);
  color: #FFFFFF;
  border-color: var(--accent-gold);
  transform: rotate(20deg) scale(1.05);
}

[data-theme="dark"] .theme-toggle-btn {
  background: #3A1D12;
  color: #F6EEE1;
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background: var(--accent-gold);
  color: #24120B;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.82rem 1.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta-btn {
  padding: 0.72rem 1.35rem;
  font-size: 0.82rem;
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-main);
}

.btn-primary:hover {
  background-color: var(--accent-gold);
  color: #FFFFFF;
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-primary {
  background-color: var(--accent-gold);
  color: #24120B;
}

[data-theme="dark"] .btn-primary:hover {
  background-color: var(--accent-gold-hover);
  color: #FFFFFF;
}

.btn-accent {
  background-color: var(--accent-gold);
  color: #FFFFFF;
}

.btn-accent:hover {
  background-color: var(--accent-gold-hover);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--text-primary);
  color: var(--bg-main);
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

[data-theme="dark"] .btn-outline:hover {
  background-color: #FFFFFF;
  color: #24120B;
}

.btn-outline-gold {
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  background: transparent;
}

.btn-outline-gold:hover {
  background: var(--accent-gold);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
}

.btn-whatsapp:hover {
  background-color: #1EBE5D;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  font-size: 1.4rem;
  color: var(--text-primary);
  padding: 0.4rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5.5rem;
  padding-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(217, 198, 178, 0.45) 0%, transparent 60%),
              radial-gradient(circle at 90% 80%, rgba(138, 73, 53, 0.12) 0%, transparent 50%),
              var(--bg-main);
}

[data-theme="dark"] .hero {
  background: radial-gradient(circle at 10% 20%, rgba(199, 123, 92, 0.1) 0%, transparent 60%),
              radial-gradient(circle at 90% 80%, rgba(199, 123, 92, 0.06) 0%, transparent 50%),
              var(--bg-main);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-content {
  z-index: 2;
}

.hero-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .hero-pill {
  background: rgba(58, 29, 18, 0.85);
  border-color: var(--border-light);
  color: var(--text-secondary);
}

.hero-pill i {
  color: var(--accent-gold);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 3.05rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.1rem;
}

.hero-title span {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--accent-gold);
}

.hero-description {
  font-size: 0.98rem;
  line-height: 1.62;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 1.6rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.85rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border-light);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  font-weight: 500;
}

/* Imagem Hero com Composição Arquitetônica */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-arch-frame {
  position: relative;
  width: 100%;
  max-width: 370px;
  height: 460px;
  border-radius: 185px 185px 22px 22px;
  background: linear-gradient(180deg, #8A4935 0%, #5A2A1A 100%);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: visible;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .hero-arch-frame {
  background: linear-gradient(180deg, #5A2A1A 0%, #2E170E 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.hero-arch-frame::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 195px 195px 30px 30px;
  border: 1px dashed var(--accent-gold);
  pointer-events: none;
  opacity: 0.6;
}

.hero-portrait-img {
  width: 90%;
  max-height: 108%;
  object-fit: contain;
  position: absolute;
  bottom: 0;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
  z-index: 2;
  transition: transform 0.5s ease;
}

.hero-visual:hover .hero-portrait-img {
  transform: scale(1.02);
}

.hero-floating-card {
  position: absolute;
  bottom: 20px;
  left: -15px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: float 4s ease-in-out infinite;
}

[data-theme="dark"] .hero-floating-card {
  background: rgba(46, 23, 14, 0.95);
  border-color: var(--border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.hero-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-card-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

@media (max-height: 780px) and (min-width: 1025px) {
  .hero {
    padding-top: 4.8rem;
    padding-bottom: 1.5rem;
  }
  .hero-arch-frame {
    height: 390px;
    max-width: 320px;
    border-radius: 160px 160px 20px 20px;
  }
  .hero-arch-frame::before {
    border-radius: 170px 170px 28px 28px;
  }
  .hero-title {
    font-size: 2.35rem;
    margin-bottom: 0.85rem;
  }
  .hero-description {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.2rem;
  }
  .hero-badge-group {
    margin-bottom: 0.85rem;
  }
  .hero-cta-group {
    margin-bottom: 1.25rem;
  }
  .hero-stats {
    padding-top: 1rem;
    gap: 1.2rem;
  }
  .hero-stat-number {
    font-size: 1.55rem;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   SOBRE & TRAJETÓRIA
   ========================================================================== */
.about {
  background: var(--bg-surface);
  position: relative;
}

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

.about-image-wrapper {
  position: relative;
}

.about-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  background-color: var(--bg-dark);
}

.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-image-wrapper:hover .about-photo-img {
  transform: scale(1.04);
}

.about-badge-exp {
  position: absolute;
  bottom: 2rem;
  left: 1.5rem;
  top: auto;
  right: auto;
  background: var(--accent-gold);
  color: #FFFFFF;
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
  text-align: center;
  min-width: 175px;
  max-width: 195px;
  border: 3px solid var(--bg-surface);
  z-index: 4;
}

.about-badge-exp .num {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
  display: block;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-transform: uppercase;
}

.about-badge-exp .desc {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.pillar-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.pillar-item:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.pillar-icon {
  font-size: 1.4rem;
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.pillar-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.pillar-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

.competencies-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.competency-tag {
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   PORTFÓLIO & PROJETOS
   ========================================================================== */
.portfolio {
  background-color: var(--bg-main);
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

.filter-btn.active {
  background: var(--text-primary);
  color: var(--bg-main);
  border-color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .filter-btn.active {
  background: var(--accent-gold);
  color: #24120B;
  border-color: var(--accent-gold);
}

/* Grid de Projetos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem;
}

.project-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-gold);
}

.project-card.featured-full {
  grid-column: span 12;
}

.project-card.featured-half {
  grid-column: span 6;
}

.project-card.featured-third {
  grid-column: span 4;
}

.project-thumb-box {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-surface-elevated);
  aspect-ratio: 16/10;
}

.project-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-thumb-img {
  transform: scale(1.05);
}

.project-category-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(58, 26, 16, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  z-index: 2;
}

.project-overlay-action {
  position: absolute;
  inset: 0;
  background: rgba(58, 26, 16, 0.45);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 3;
}

.project-card:hover .project-overlay-action {
  opacity: 1;
}

.project-view-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  color: #24120B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transform: scale(0.8);
  transition: var(--transition);
}

.project-card:hover .project-view-btn {
  transform: scale(1);
}

.project-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.project-btn-detail {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project-btn-detail i {
  color: var(--accent-gold);
  transition: transform 0.3s ease;
}

.project-card:hover .project-btn-detail i {
  transform: translateX(4px);
}

/* ==========================================================================
   SLIDER INTERATIVO DE COMPARAÇÃO (AUTOCAD vs 3D RENDER)
   ========================================================================== */
.comparison-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.comparison-wrapper {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.comparison-slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 620px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  user-select: none;
  cursor: ew-resize;
  background-color: #111;
}

.comparison-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #FFFFFF;
}

.comparison-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid #FFFFFF;
}

.comparison-image-overlay .comparison-image {
  width: 100%;
  max-width: none;
}

.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #FFFFFF;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-handle-knob {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 3px solid #FFFFFF;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  font-size: 0.9rem;
  gap: 2px;
}

[data-theme="dark"] .comparison-handle-knob {
  background: var(--accent-gold);
  color: #24120B;
  border-color: #FFFFFF;
}

.comparison-label {
  position: absolute;
  bottom: 1.5rem;
  padding: 0.5rem 1.1rem;
  background: rgba(58, 26, 16, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  z-index: 6;
  pointer-events: none;
}

.comparison-label.left {
  left: 1.5rem;
}

.comparison-label.right {
  right: 1.5rem;
}

.comparison-modes {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.comparison-mode-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.comparison-mode-btn.active {
  background: var(--accent-gold);
  color: #24120B;
  border-color: var(--accent-gold);
}

/* ==========================================================================
   VISUALIZADOR DO PORTFÓLIO ORIGINAL (PÁGINAS DO PDF)
   ========================================================================== */
.pdf-viewer-section {
  background: var(--bg-surface-elevated);
}

.pdf-presentation-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.pdf-slide-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
  aspect-ratio: 16/9;
}

.pdf-slide-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.pdf-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdf-slide-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(58, 26, 16, 0.8);
  color: #FFFFFF;
  font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.pdf-download-banner {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.pdf-banner-content h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.pdf-banner-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   METODOLOGIA & DIFERENCIAIS
   ========================================================================== */
.workflow-section {
  background: var(--bg-dark);
  color: var(--text-light);
}

.workflow-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.workflow-card {
  background: var(--bg-dark-card);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-dark);
  position: relative;
  transition: var(--transition);
}

.workflow-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.workflow-step-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(199, 123, 92, 0.3);
  line-height: 1;
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

.workflow-card:hover .workflow-step-num {
  color: var(--accent-gold);
}

.workflow-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 0.85rem;
}

.workflow-desc {
  font-size: 0.88rem;
  color: var(--text-light-muted);
  line-height: 1.65;
}

/* ==========================================================================
   CONTATO & AGENDAMENTO
   ========================================================================== */
.contact {
  background: var(--bg-surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4.5rem;
}

.contact-info-card {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.contact-portrait-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.contact-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-gold);
  box-shadow: var(--shadow-md);
}

.contact-meta h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-meta p {
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.contact-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-item-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.contact-item-text label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.contact-item-text a,
.contact-item-text span {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-item-text a:hover {
  color: var(--accent-gold);
}

/* Formulário */
.contact-form-box {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.95rem 1.2rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  background: var(--bg-surface);
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(138, 73, 53, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-dark);
  color: var(--text-light-muted);
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--border-dark);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand h2 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-light-muted);
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-dark);
  font-size: 0.82rem;
}

/* ==========================================================================
   MODAL / LIGHTBOX
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 14, 13, 0.92);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  padding: 2rem;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  max-width: 1050px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-light);
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-primary);
  z-index: 10;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.modal-close-btn:hover {
  background: var(--accent-gold);
  color: #24120B;
}

.modal-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

.modal-image-side {
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-image-side img {
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.modal-content-side {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.modal-project-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.modal-project-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.modal-project-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.modal-specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.modal-specs-list li {
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
}

.modal-specs-list span.label {
  color: var(--text-muted);
}

.modal-specs-list span.val {
  font-weight: 600;
  color: var(--text-primary);
}

/* Botão Flutuante WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 62px;
  height: 62px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
  color: #FFFFFF;
}

.floating-whatsapp .tooltip {
  position: absolute;
  right: 75px;
  background: var(--text-primary);
  color: var(--bg-main);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.floating-whatsapp:hover .tooltip {
  opacity: 1;
}

/* Toast de Notificação */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-primary);
  color: var(--bg-main);
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-light);
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 1120px) {
  .nav-links {
    gap: 1.1rem;
  }
  
  .nav-link {
    font-size: 0.82rem;
  }
  
  .nav-cta-btn {
    padding: 0.65rem 1.1rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: auto;
    padding-top: 6.5rem;
    padding-bottom: 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .hero-arch-frame {
    height: 380px;
    max-width: 310px;
    border-radius: 155px 155px 20px 20px;
  }

  .hero-arch-frame::before {
    border-radius: 165px 165px 28px 28px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-badge-exp {
  position: absolute;
  bottom: 2rem;
  left: 1.5rem;
  top: auto;
  right: auto;
  background: var(--accent-gold);
  color: #FFFFFF;
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
  text-align: center;
  min-width: 175px;
  max-width: 195px;
  border: 3px solid var(--bg-surface);
  z-index: 4;
}

  .workflow-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pdf-presentation-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-card.featured-half,
  .project-card.featured-third {
    grid-column: span 6;
  }

  .modal-body {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
  }

  .modal-image-side {
    max-height: 400px;
  }
  
  .modal-image-side img {
    max-height: 360px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 5rem 0;
  }

  .project-card.featured-full,
  .project-card.featured-half,
  .project-card.featured-third {
    grid-column: span 12;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .workflow-steps-grid {
    grid-template-columns: 1fr;
  }

  .pdf-presentation-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pdf-download-banner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Logo no rodapé e crédito do desenvolvedor */
.footer-logo { height: 70px; width: auto; margin-bottom: 1rem; }
.footer-brand h2 { font-family: 'Delius', cursive; text-transform: none; letter-spacing: 0.01em; }
.dev-credit a { color: var(--accent-gold); font-weight: 600; }
.dev-credit a:hover { color: #FFFFFF; }
.dev-credit i { margin-right: 0.3rem; }

.form-select { padding-right: 2.2rem; text-overflow: ellipsis; font-size: 0.9rem; }
.form-select option { background: var(--bg-surface); color: var(--text-primary); }

/* ===== Correções mobile: evita rolagem lateral (faixa na direita) ===== */
html, body { max-width: 100%; overflow-x: hidden; }

@media (max-width: 600px) {
  .container { padding: 0 1.1rem; }
  .navbar-container { gap: 0.6rem; }
  .brand-link { gap: 0.55rem; min-width: 0; }
  .brand-logo-img { height: 38px; }
  .brand-name { font-size: 1.15rem; }
  .brand-subtitle { font-size: 0.5rem; letter-spacing: 0.22em; }
  .nav-actions { gap: 0.45rem; }
  .theme-toggle-btn { width: 36px; height: 36px; font-size: 0.95rem; }
  .nav-cta-btn { width: 36px; height: 36px; padding: 0; border-radius: 50%; }
  .nav-cta-btn span { display: none; }

  .hero {
    min-height: auto;
    padding-top: 5.5rem;
    padding-bottom: 2.5rem;
  }
  .hero-title { font-size: clamp(1.85rem, 8vw, 2.3rem); overflow-wrap: break-word; }
  .hero-arch-frame { height: 320px; max-width: 260px; border-radius: 130px 130px 16px 16px; }
  .hero-arch-frame::before { top: -8px; left: -8px; right: -8px; bottom: -8px; border-radius: 138px 138px 22px 22px; }
  .hero-floating-card { left: 0; padding: 0.65rem 0.9rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .hero-stat-number { font-size: 1.45rem; }
  .hero-cta-group .btn { flex: 1 1 100%; }

  .about-badge-exp {
  position: absolute;
  bottom: 2rem;
  left: 1.5rem;
  top: auto;
  right: auto;
  background: var(--accent-gold);
  color: #FFFFFF;
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
  text-align: center;
  min-width: 175px;
  max-width: 195px;
  border: 3px solid var(--bg-surface);
  z-index: 4;
}
  .about-pillars { grid-template-columns: 1fr; }
  .section-title { font-size: 1.9rem; overflow-wrap: break-word; }
  .project-body, .contact-info-card, .contact-form-box, .comparison-wrapper { padding: 1.5rem; }
  .comparison-modes { flex-direction: column; }
  .comparison-label { font-size: 0.65rem; padding: 0.35rem 0.7rem; bottom: 0.75rem; }
  .contact-item-text a, .contact-item-text span { font-size: 0.92rem; word-break: break-word; }
  .floating-whatsapp { width: 54px; height: 54px; bottom: 1.2rem; right: 1.2rem; font-size: 1.6rem; }
}

/* ===== Lista de especificações do modal (alinhada) ===== */
.modal-specs-list { gap: 0; padding: 0.4rem 1.25rem; }
.modal-specs-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}
.modal-specs-list li:last-child { border-bottom: none; }
.modal-specs-list span.label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.modal-specs-list span.val { font-size: 0.88rem; line-height: 1.45; }
.modal-specs-list:empty {
  display: none !important;
}

@media (max-width: 600px) {
  .modal-backdrop {
    padding: 0.75rem 0.5rem;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
  .modal-dialog {
    max-height: 94vh;
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .modal-body {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .modal-image-side {
    padding: 0.75rem;
    max-height: 250px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .modal-image-side img {
    max-height: 230px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
  }
  .modal-content-side {
    padding: 1.25rem 1rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .modal-project-title {
    font-size: 1.25rem;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .modal-project-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .modal-specs-list {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.85rem;
    margin-bottom: 1.25rem;
  }
  .modal-specs-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.5rem 0;
    word-break: break-word;
  }
  .modal-content-side .btn {
    white-space: normal !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.82rem !important;
    text-align: center;
    justify-content: center;
    line-height: 1.35;
    box-sizing: border-box;
    letter-spacing: 0.03em;
  }
}

/* ==========================================================================
   TRAVAMENTO ABSOLUTO DE LARGURA MOBILE (ZERO VAZAMENTO LATERAL)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

@media (max-width: 768px) {
  .container {
    padding: 0 1.2rem;
    max-width: 100%;
    min-width: 0;
  }
  .projects-grid {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    width: 100%;
  }
  .project-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .project-body {
    padding: 1.25rem;
    min-width: 0;
  }
  .project-meta-line {
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.72rem;
  }
  .contact-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1.75rem;
  }
  .contact-info-card,
  .contact-form-box {
    width: 100%;
    max-width: 100%;
    padding: 1.25rem;
    min-width: 0;
  }
  .comparison-wrapper {
    padding: 1.2rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .workflow-steps-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
  }
  .workflow-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 1.75rem 1.25rem;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .footer-top {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
  }
}
