/* ==========================================================================
   Buriti Móveis Planejados - Master Architectural Luxury Style System
   Features: Outros Custom Room Field, Phone Mask, Luxury Chips, Webhook Lead
   ========================================================================== */

:root {
  /* Colors */
  --bg-onyx: #0b0909;
  --bg-dark-charcoal: #141110;
  --bg-warm-card: #1c1817;
  --bg-light-paper: #faf7f2;
  --bg-linen-accent: #f2ebe1;

  --burgundy-primary: #7a1217;
  --burgundy-glow: rgba(122, 18, 23, 0.45);
  --burgundy-bright: #a81c22;

  --gold-accent: #e2b887;
  --gold-light: #f5d9b5;
  --gold-dark: #b88d5c;

  --text-main: #2b2523;
  --text-muted: #6e645e;
  --text-white: #ffffff;

  --glass-border: rgba(226, 184, 135, 0.18);
  --glass-border-light: rgba(122, 18, 23, 0.12);
  --glass-blur: blur(18px);

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.35);
  --shadow-burgundy: 0 14px 34px rgba(122, 18, 23, 0.38);

  --font-sans: "Poppins", "Helvetica Neue", Helvetica, "Plus Jakarta Sans", sans-serif;
  --font-title: "Poppins", "Helvetica Neue", Helvetica, sans-serif;
  --font-serif: "Poppins", "Helvetica Neue", Helvetica, sans-serif;
}

/* Reset & Global Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background-color: var(--bg-onyx);
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-light-paper);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  width: 100%;
  overflow-x: clip;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  width: 100%;
  overflow-x: clip;
}

img, video {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

/* Official SVG Icons */
.official-wa-icon {
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
}

.official-ig-icon,
.official-fb-icon {
  display: inline-block;
  vertical-align: middle;
}

/* Typography System */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--bg-dark-charcoal);
  margin: 0 0 0.35em;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.4rem, 4.8vw, 4.2rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.85rem, 3.2vw, 3rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.55rem); font-weight: 600; line-height: 1.12; }

p { margin: 0 0 1em; color: var(--text-muted); }

.text-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-accent) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.margin-top-lg { margin-top: 36px; }

/* Top Exclusive Announcement Bar */
.top-bar {
  background: linear-gradient(90deg, var(--bg-onyx), var(--burgundy-primary), var(--bg-onyx));
  color: var(--text-white);
  padding: 8px 0;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  z-index: 50;
}

.top-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.top-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-live {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.top-cta-link a {
  color: var(--gold-accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 200ms;
}

.top-cta-link a:hover {
  color: var(--text-white);
}

/* Scroll Progress Line */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-accent), var(--burgundy-primary), var(--gold-accent));
  z-index: 100;
  box-shadow: 0 0 10px var(--gold-accent);
}

/* Header & Clean Unbroken Nav Bar */
.header {
  position: sticky;
  top: 0;
  z-index: 45;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border-light);
  transition: background 300ms ease, box-shadow 300ms ease, padding 300ms ease;
  transform: translateZ(0);
}

.header.is-scrolled {
  background: rgba(250, 247, 242, 0.98);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: transform 200ms ease;
}

.brand:hover img {
  transform: scale(1.03);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  flex-shrink: 1;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bg-dark-charcoal);
  white-space: nowrap;
  position: relative;
  padding: 6px 0;
  transition: color 200ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--burgundy-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-cta-btn {
  padding: 10px 20px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.mobile-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--bg-dark-charcoal);
  background: rgba(122, 18, 23, 0.08);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 200ms;
}

.mobile-toggle i {
  font-size: 1.2rem;
}

.mobile-toggle:hover {
  background: rgba(122, 18, 23, 0.15);
  color: var(--burgundy-primary);
}

/* Mobile Drawer Menu */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-dark-charcoal);
  color: var(--text-white);
  z-index: 90;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.6);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), visibility 300ms;
}

.mobile-drawer.active {
  transform: translateX(0);
  visibility: visible;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-head img { height: 32px; width: auto; }
.drawer-head button { color: var(--text-white); font-size: 1.5rem; padding: 4px; }

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
}

.d-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  padding: 12px 14px;
  border-radius: 8px;
  transition: all 200ms ease;
}

.d-link:hover, .d-link.highlight {
  background: rgba(226, 184, 135, 0.15);
  color: var(--gold-accent);
}

.drawer-foot {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.drawer-backdrop.active { opacity: 1; pointer-events: auto; }

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn.primary-gold {
  background: linear-gradient(135deg, var(--burgundy-primary), var(--burgundy-bright));
  color: var(--text-white);
  box-shadow: var(--shadow-burgundy);
}

.btn.primary-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(122, 18, 23, 0.5);
}

.btn.secondary-glass {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.btn.secondary-glass:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--gold-accent);
  color: var(--gold-accent);
}

.btn.glow {
  position: relative;
  overflow: hidden;
}

.btn.glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 600ms ease;
}

.btn.glow:hover::before {
  left: 100%;
}

.btn.full { width: 100%; }

/* Sections Global Structure */
.section {
  padding: clamp(60px, 8vw, 110px) 0;
  position: relative;
  z-index: 1;
}

.section-kicker {
  display: inline-block;
  color: var(--burgundy-bright);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}

.section-desc {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  max-width: 660px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--bg-onyx);
  color: var(--text-white);
  overflow: hidden;
  padding: clamp(90px, 11vh, 150px) 0 80px;
}

.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  transform: scale(1.03);
}

.hero-bg-item.active { opacity: 1; }

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, rgba(11, 9, 9, 0.95) 0%, rgba(11, 9, 9, 0.82) 50%, rgba(11, 9, 9, 0.35) 100%),
    linear-gradient(0deg, rgba(11, 9, 9, 0.9) 0%, transparent 60%);
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 3;
}

.hero-content { max-width: 760px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(226, 184, 135, 0.14);
  border: 1px solid var(--glass-border);
  color: var(--gold-accent);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero h1 { color: var(--text-white); margin-bottom: 18px; line-height: 1.05; letter-spacing: -0.03em; }

.hero-subtext {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  margin-bottom: 36px;
  max-width: 640px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.trust-item i {
  color: var(--gold-accent);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-item strong { display: block; font-size: 0.88rem; color: var(--text-white); }
.trust-item span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.65); }

/* Video Reels Showcase Section */
.video-showroom {
  background: var(--bg-dark-charcoal);
  color: var(--text-white);
}

.video-showroom h2 { color: var(--text-white); }
.video-showroom .section-desc { color: rgba(255, 255, 255, 0.75); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.video-card {
  background: var(--bg-warm-card);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform 300ms ease, border-color 300ms ease;
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-accent);
}

.video-wrapper {
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--bg-onyx);
  overflow: hidden;
}

.reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay-controls {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.btn-play-video {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold-accent);
  color: var(--bg-onyx);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  pointer-events: auto;
  box-shadow: 0 0 24px rgba(226, 184, 135, 0.6);
  transition: transform 200ms;
}

.btn-play-video:hover { transform: scale(1.15); }

.video-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  color: var(--gold-accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.video-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.video-card-body h3 { font-size: 1.1rem; color: var(--text-white); margin-bottom: 6px; }
.video-card-body p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 16px; }

.btn-lead-video {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-accent);
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 200ms;
}

.btn-lead-video:hover { color: var(--text-white); }

/* Video Player Lightbox Modal */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.video-modal.active { opacity: 1; pointer-events: auto; }

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-player { width: 100%; height: 100%; object-fit: cover; }

/* Proposal Builder Section */
.builder-section { background: var(--bg-light-paper); }

.builder-box {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr;
  gap: 32px;
  margin-top: 40px;
  background: var(--text-white);
  border-radius: 16px;
  padding: 36px;
  border: 1px solid var(--glass-border-light);
  box-shadow: var(--shadow-lg);
}

.builder-step h3 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--burgundy-primary);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 800;
}

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

.builder-card input { display: none; }
.builder-card { cursor: pointer; }

.b-box {
  padding: 16px 12px;
  border-radius: 10px;
  border: 1px solid rgba(122, 18, 23, 0.12);
  background: var(--bg-light-paper);
  text-align: center;
  transition: all 200ms;
}

.b-box i { color: var(--burgundy-primary); margin-bottom: 8px; }
.b-box strong { display: block; font-size: 0.88rem; color: var(--bg-dark-charcoal); }
.b-box span { font-size: 0.75rem; color: var(--text-muted); }

.builder-card input:checked + .b-box {
  border-color: var(--burgundy-primary);
  background: rgba(122, 18, 23, 0.06);
  box-shadow: 0 0 0 2px var(--burgundy-primary);
}

.builder-card input:checked + .b-box-other {
  border-color: var(--burgundy-primary);
  background: rgba(122, 18, 23, 0.08);
}

/* Step 2 Spacing & Divider */
.builder-step[data-step="2"],
.builder-step + .builder-step {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border-light);
}
.builder-other-input-wrap {
  display: none;
  margin-top: 16px;
  padding: 16px;
  background: rgba(122, 18, 23, 0.04);
  border: 1px solid rgba(122, 18, 23, 0.2);
  border-radius: 10px;
  animation: fadeIn 300ms ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.builder-other-input-wrap label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--burgundy-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.builder-other-input-wrap input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(122, 18, 23, 0.3);
  font: inherit;
  font-size: 0.9rem;
  background: var(--bg-light-paper);
  color: var(--bg-dark-charcoal);
  transition: border-color 200ms;
}

.builder-other-input-wrap input:focus {
  outline: none;
  border-color: var(--burgundy-primary);
  box-shadow: 0 0 0 3px rgba(122, 18, 23, 0.15);
}

.builder-radios {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.builder-radio-card input { display: none; }
.builder-radio-card { cursor: pointer; }

.b-radio-box {
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(122, 18, 23, 0.12);
  background: var(--bg-light-paper);
  transition: all 200ms;
}

.b-radio-box strong { font-size: 0.9rem; color: var(--bg-dark-charcoal); }
.b-radio-box p { margin: 4px 0 0; font-size: 0.8rem; color: var(--text-muted); }

.builder-radio-card input:checked + .b-radio-box {
  border-color: var(--burgundy-primary);
  background: rgba(122, 18, 23, 0.05);
  box-shadow: 0 0 0 2px var(--burgundy-primary);
}

/* Summary Card Luxury Layout */
.builder-summary-card {
  background: linear-gradient(145deg, #141110, #0b0909);
  color: var(--text-white);
  padding: 32px 28px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--gold-accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(226, 184, 135, 0.2);
}

.summary-item { margin-top: 14px; }
.summary-item .label {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.summary-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(226, 184, 135, 0.12);
  border: 1px solid rgba(226, 184, 135, 0.3);
  color: var(--gold-accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.summary-item strong {
  font-size: 0.96rem;
  color: var(--gold-light);
  display: block;
}

/* Contact Lead Inputs in Builder */
.builder-contact-inputs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0 22px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.b-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.b-input-group label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.b-input-group label i {
  font-size: 0.9rem;
  color: var(--gold-accent);
}

.input-with-icon {
  position: relative;
  width: 100%;
}

.input-with-icon input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(226, 184, 135, 0.3);
  background: #080707;
  color: #ffffff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 200ms ease;
}

.input-with-icon input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.input-with-icon input:focus {
  outline: none;
  border-color: var(--gold-accent);
  background: #000000;
  box-shadow: 0 0 0 3px rgba(226, 184, 135, 0.25);
}

.summary-perks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.summary-perks span { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.85); }
.summary-perks i { color: var(--gold-accent); }
.summary-note { font-size: 0.72rem; color: rgba(255, 255, 255, 0.5); text-align: center; margin-top: 10px; }

/* Chatbot Typebot Embedded Section */
.chatbot-section { background: var(--bg-linen-accent); }

.typebot-frame-holder {
  margin: 32px auto 0;
  max-width: 600px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(122, 18, 23, 0.15);
  background: var(--text-white);
}

.typebot-iframe {
  border: none;
  width: 100%;
  height: 580px;
  max-height: 70vh;
  display: block;
}

/* Real Portfolio Gallery Section */
.portfolio-section { background: var(--bg-light-paper); }

.portfolio-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 40px;
}

.tab-btn {
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--text-white);
  border: 1px solid var(--glass-border-light);
  color: var(--bg-dark-charcoal);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 200ms;
}

.tab-btn:hover, .tab-btn.active {
  background: var(--burgundy-primary);
  color: var(--text-white);
  border-color: var(--burgundy-primary);
}

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

.portfolio-card {
  position: relative;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.portfolio-card:hover img { transform: scale(1.08); }

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 9, 9, 0.92) 0%, rgba(11, 9, 9, 0.3) 60%, transparent 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--text-white);
}

.cat-tag { font-size: 0.75rem; color: var(--gold-accent); font-weight: 800; text-transform: uppercase; }
.card-overlay h3 { color: var(--text-white); font-size: 1.2rem; margin: 4px 0 10px; }
.btn-view { font-size: 0.8rem; color: rgba(255, 255, 255, 0.85); display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

/* Portfolio Modal Lightbox */
.portfolio-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: rgba(12, 10, 9, 0.94) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 999990 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease !important;
  overflow-y: auto !important;
}

.portfolio-modal.active { opacity: 1 !important; pointer-events: auto !important; }

.p-modal-content {
  position: relative !important;
  width: 100% !important;
  max-width: 900px !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7) !important;
  z-index: 999991 !important;
  margin: auto !important;
}

.p-modal-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: var(--burgundy-primary) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999995 !important;
  cursor: pointer !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  transition: transform 200ms !important;
}

.p-modal-close:hover {
  transform: scale(1.1) !important;
}

.p-modal-close i, .p-modal-close svg {
  color: #ffffff !important;
  font-size: 1.3rem !important;
}

.p-modal-body { display: grid; grid-template-columns: 1.2fr 1fr; }
.p-modal-img-container { height: 420px; background: var(--bg-onyx); }
.p-modal-img-container img { width: 100%; height: 100%; object-fit: cover; }

.p-modal-info { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.p-modal-tag { color: var(--burgundy-primary); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; }
.p-modal-info h3 { font-size: 1.5rem; margin: 6px 0 12px; }
.p-modal-info p { font-size: 0.9rem; margin-bottom: 20px; }

.p-modal-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.p-feat { font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }
.p-feat i { color: var(--burgundy-primary); }

/* Universal Dedicated Lead Capture Modal Popup */
.universal-lead-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: rgba(12, 10, 9, 0.94) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 1000000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease !important;
  overflow-y: auto !important;
}

.universal-lead-modal.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.u-modal-content {
  position: relative !important;
  width: 100% !important;
  max-width: 480px !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  padding: 32px 24px 24px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7) !important;
  border: 1px solid var(--glass-border-light) !important;
  transform: translateY(15px);
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 1000001 !important;
  margin: auto !important;
  max-height: 88vh !important;
  max-height: 88dvh !important;
  overflow-y: auto !important;
}

.universal-lead-modal.active .u-modal-content {
  transform: translateY(0) !important;
}

.u-modal-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: var(--burgundy-primary) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #ffffff !important;
  cursor: pointer !important;
  z-index: 1000005 !important;
  box-shadow: 0 4px 12px rgba(122, 18, 23, 0.35) !important;
  transition: transform 200ms !important;
}

.u-modal-close:hover {
  transform: scale(1.1) !important;
}

.u-modal-close i, .u-modal-close svg {
  color: #ffffff !important;
  font-size: 1.3rem !important;
}

.u-modal-close:hover {
  background: var(--burgundy-primary);
  color: var(--text-white);
  transform: scale(1.08);
}

.u-modal-header {
  margin-bottom: 24px;
}

.u-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(122, 18, 23, 0.1);
  color: var(--burgundy-primary);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.u-modal-header h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.u-modal-header p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--text-muted);
}

.u-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Interactive Before & After Slider */
.comparison-section { background: var(--bg-linen-accent); }

.ba-slider {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: 480px;
  margin: 40px auto 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border-light);
}

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

.ba-before {
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 3px solid var(--gold-accent);
}

.ba-before img { width: 960px; max-width: none; }

.ba-badge {
  position: absolute;
  bottom: 20px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  z-index: 5;
}

.ba-badge.before { left: 20px; background: rgba(0, 0, 0, 0.8); color: var(--text-white); }
.ba-badge.after { right: 20px; background: var(--gold-accent); color: var(--bg-onyx); }

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--gold-accent);
  z-index: 6;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ba-knob {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-accent);
  color: var(--bg-onyx);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 7;
  cursor: ew-resize;
}

/* Environments Section Grid */
.amb-section { background: var(--bg-light-paper); }

.amb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.amb-card {
  background: var(--text-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 300ms;
}

.amb-card:hover { transform: translateY(-6px); }

.amb-img { height: 200px; background-size: cover; background-position: center; }
.amb-info { padding: 24px; }
.amb-info span { font-size: 0.75rem; color: var(--burgundy-primary); font-weight: 800; text-transform: uppercase; }
.amb-info h3 { font-size: 1.2rem; margin: 4px 0 8px; }
.amb-info p { font-size: 0.85rem; margin-bottom: 16px; }

.amb-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--burgundy-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 7 Steps Process Timeline */
.process-section { background: var(--bg-linen-accent); }

.process-timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.proc-step {
  position: relative;
  background: var(--text-white);
  padding: 22px 14px;
  border-radius: 10px;
  border: 1px solid var(--glass-border-light);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), border-color 250ms ease,
    box-shadow 250ms ease;
}

.proc-step:hover {
  transform: translateY(-5px);
  border-color: var(--burgundy-primary);
  box-shadow: var(--shadow-md);
}

/* Ligação entre as etapas: preenche exatamente o gap do grid,
   com a seta apontando para a etapa seguinte. */
.proc-step::after {
  content: "";
  position: absolute;
  top: 45px;
  left: 100%;
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, rgba(122, 18, 23, 0.55), rgba(122, 18, 23, 0.18));
  z-index: 0;
}

.proc-step::before {
  content: "";
  position: absolute;
  top: 45px;
  left: calc(100% + 9px);
  width: 7px;
  height: 7px;
  border-top: 2px solid rgba(122, 18, 23, 0.45);
  border-right: 2px solid rgba(122, 18, 23, 0.45);
  transform: translate(-50%, -50%) rotate(45deg);
  z-index: 1;
}

.proc-step:last-child::after,
.proc-step:last-child::before {
  display: none;
}

/* Número vira selo circular, ancorado na linha do fluxo */
.proc-num {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-white);
  background: linear-gradient(135deg, var(--burgundy-primary), var(--burgundy-bright));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 4px 12px rgba(122, 18, 23, 0.28);
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.proc-step:hover .proc-num {
  transform: scale(1.08);
}

.proc-step h3 { font-size: 0.9rem; margin-bottom: 6px; }
.proc-step p { font-size: 0.75rem; margin: 0; line-height: 1.3; }

/* About Section */
.about-section { background: var(--bg-light-paper); }

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

.about-photo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-photo-card img { width: 100%; height: 480px; object-fit: cover; }

.photo-overlay-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 12px 20px;
  background: rgba(20, 17, 16, 0.88);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  color: var(--text-white);
  border: 1px solid var(--glass-border);
}

.photo-overlay-tag strong { display: block; color: var(--gold-accent); font-size: 0.95rem; }
.photo-overlay-tag span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.75); }

.about-quote {
  margin-top: 24px;
  padding: 20px 24px;
  border-left: 4px solid var(--burgundy-primary);
  background: rgba(122, 18, 23, 0.05);
  border-radius: 0 12px 12px 0;
}

.about-quote i { color: var(--burgundy-primary); font-size: 1.4rem; }
.about-quote p { font-style: italic; color: var(--bg-dark-charcoal); margin: 6px 0; font-size: 0.94rem; }
.about-quote strong { font-size: 0.88rem; color: var(--burgundy-primary); }

/* FAQ Accordion */
.faq-section { background: var(--bg-linen-accent); }

.faq-accordion {
  max-width: 860px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-accordion details {
  background: var(--text-white);
  border: 1px solid var(--glass-border-light);
  border-radius: 10px;
  padding: 18px 24px;
  box-shadow: var(--shadow-sm);
}

.faq-accordion summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion p { margin: 12px 0 0; font-size: 0.9rem; }

/* Contact Lead Form Section */
.contact-section { background: var(--bg-light-paper); }

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.direct-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.d-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--text-white);
  border-radius: 10px;
  border: 1px solid var(--glass-border-light);
}

.d-item i, .d-item svg { color: var(--burgundy-primary); font-size: 1.4rem; }
.d-item strong { display: block; font-size: 0.88rem; }
.d-item span { font-size: 0.82rem; color: var(--text-muted); }

.contact-form {
  background: var(--text-white);
  padding: 36px;
  border-radius: 16px;
  border: 1px solid var(--glass-border-light);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form h3 { font-size: 1.4rem; margin-bottom: 4px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-field label { font-size: 0.82rem; font-weight: 700; }
.form-field input, .form-field select {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(43, 37, 35, 0.2);
  font: inherit;
  font-size: 0.9rem;
  background: var(--bg-light-paper);
}

.form-field input:focus, .form-field select:focus {
  outline: none;
  border-color: var(--burgundy-primary);
  box-shadow: 0 0 0 3px rgba(122, 18, 23, 0.12);
}

.form-note { font-size: 0.75rem; color: var(--text-muted); text-align: center; }

/* Footer */
.footer {
  background: var(--bg-onyx);
  color: rgba(255, 255, 255, 0.7);
  /* A safe area do aparelho entra aqui, e não como padding do body:
     no body ela expunha o fundo claro abaixo do rodapé escuro. */
  padding: 48px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand img {
  height: 80px !important;
  max-width: 260px !important;
  width: auto !important;
  margin-bottom: 16px !important;
  object-fit: contain !important;
}
.footer-brand p { font-size: 0.84rem; max-width: 440px; margin: 0; }

/* CNPJ posicionado acima do endereço com tipografia elegante */
.footer-brand .footer-cnpj {
  margin-top: 12px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.03em;
  font-weight: 500;
}

/* Link de Endereço no Bloco de Localização */
.contact-map-link {
  color: var(--text-main);
  text-decoration: none;
  display: inline-block;
  font-size: 0.86rem;
  line-height: 1.45;
  transition: color 200ms ease;
  margin-top: 2px;
}

.contact-map-link:hover {
  color: var(--burgundy-primary);
  text-decoration: underline;
}

.footer-address i,
.footer-address svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold-accent);
}

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  transition: all 200ms ease;
}

.footer-social a:hover { background: var(--gold-accent); color: var(--bg-onyx); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}

.copy { margin: 0; }
.agency-credit-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

.criei-agency-logo {
  height: 16px !important;
  max-height: 16px !important;
  width: auto !important;
  object-fit: contain !important;
  display: inline-block !important;
  vertical-align: middle !important;
  transition: opacity 200ms ease, transform 200ms ease !important;
  filter: brightness(1.15) !important;
}

.agency-credit-wrap a:hover .criei-agency-logo {
  opacity: 0.85;
  transform: scale(1.04);
}

/* Floating Action Pill - circular, verde, texto revelado no hover */
.whatsapp-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 58px;
  padding: 0 17px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366 0%, #12a150 100%);
  color: var(--text-white);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  border: none;
  z-index: 50;
  overflow: hidden;
  animation: pillPulse 2.4s ease-out infinite;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Anel pulsante para chamar atenção (pausa no hover) */
@keyframes pillPulse {
  0% {
    box-shadow: 0 10px 26px rgba(18, 161, 80, 0.42), 0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  70% {
    box-shadow: 0 10px 26px rgba(18, 161, 80, 0.42), 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 10px 26px rgba(18, 161, 80, 0.42), 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-pill i,
.whatsapp-pill svg {
  color: var(--text-white);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* O texto continua no DOM (leitor de tela lê), só colapsado visualmente */
.whatsapp-pill .pill-text {
  max-width: 0;
  margin-left: 0;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  transition: max-width 320ms cubic-bezier(0.16, 1, 0.3, 1), margin-left 320ms
      cubic-bezier(0.16, 1, 0.3, 1), opacity 220ms ease;
}

.whatsapp-pill:hover .pill-text,
.whatsapp-pill:focus-visible .pill-text {
  max-width: 220px;
  margin-left: 10px;
  opacity: 1;
}

.whatsapp-pill:hover,
.whatsapp-pill:focus-visible {
  transform: translateY(-3px);
  animation-play-state: paused;
  box-shadow: 0 16px 34px rgba(18, 161, 80, 0.5);
}

/* Status "online" como selo no canto, não ocupa espaço no estado circular */
.online-dot {
  position: absolute;
  top: 11px;
  right: 13px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #eafff1;
  border: 2px solid #12a150;
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-pill {
    animation: none;
    box-shadow: 0 10px 26px rgba(18, 161, 80, 0.42);
  }
}

/* Toast Notifications */
.toast-area {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  border-radius: 8px;
  background: var(--bg-dark-charcoal);
  color: var(--text-white);
  font-size: 0.88rem;
  border-left: 4px solid var(--gold-accent);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.error {
  border-left-color: #ef4444;
}

/* RESPONSIVE MEDIA QUERIES & MOBILE WEB APP UI */
@media (max-width: 1080px) {
  .nav { display: none !important; }
  .mobile-toggle { display: inline-flex !important; }
  .header-cta-btn span { display: none; }
  .header-cta-btn { padding: 8px 12px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  /* Em 2 colunas, a última etapa de cada linha não aponta para nada */
  .proc-step:nth-child(2n)::after,
  .proc-step:nth-child(2n)::before { display: none; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .amb-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .builder-box, .p-modal-body, .about-grid, .contact-card { grid-template-columns: 1fr; }
  .builder-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero-trust-bar { grid-template-columns: 1fr; }
  .ba-slider { height: 340px; }
  .footer-inner, .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  /* Proporções dos Logos do Rodapé no Mobile */
  .footer-brand img {
    height: 60px !important;
    max-height: 60px !important;
    max-width: 200px !important;
    width: auto !important;
    margin: 0 auto 14px auto !important;
    display: block !important;
  }
  .criei-agency-logo {
    height: 11px !important;
    max-height: 11px !important;
    display: inline-block !important;
  }

  /* Prevent iOS Safari auto-zoom on input focus */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* Com viewport-fit=cover a página vai até a borda: em paisagem o
     recorte da tela pode cobrir o conteúdo se o container ignorar
     as safe areas laterais. */
  .container {
    padding-left: calc(14px + env(safe-area-inset-left, 0px)) !important;
    padding-right: calc(14px + env(safe-area-inset-right, 0px)) !important;
  }

  /* Pílula flutuante acima da barra de gestos do iPhone */
  .whatsapp-pill {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    height: 52px;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .whatsapp-pill i,
  .whatsapp-pill svg {
    width: 22px;
    height: 22px;
  }

  .online-dot {
    top: 9px;
    right: 11px;
  }

  /* Clean 1-Column Responsive Grids for Cards on Mobile */
  .amb-grid, .video-grid, .portfolio-grid, .builder-grid, .process-timeline {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .amb-card, .video-card, .portfolio-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Em 1 coluna o fluxo do "Como Funciona" vira vertical.
     Seletor mais específico de propósito, para vencer o
     :nth-child(2n) do bloco de 1080px. */
  .process-timeline .proc-step:not(:last-child)::after {
    display: block;
    top: 100%;
    left: 50%;
    width: 2px;
    height: 14px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(122, 18, 23, 0.55), rgba(122, 18, 23, 0.18));
  }

  .process-timeline .proc-step:not(:last-child)::before {
    display: block;
    top: calc(100% + 4px);
    left: 50%;
    transform: translate(-50%, 0) rotate(135deg);
  }

  .process-timeline .proc-step:last-child::after,
  .process-timeline .proc-step:last-child::before {
    display: none;
  }

  /* Horizontal Scrollable Filter Tabs Bar on Mobile */
  .portfolio-tabs {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
  }
  .portfolio-tabs::-webkit-scrollbar { display: none; }
  .tab-btn { flex: 0 0 auto; }

  /* Mobile Modal Overlays - Perfectly Centered, Fully Scrollable, Rock Solid */
  .universal-lead-modal, .portfolio-modal {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 100050 !important;
  }

  .u-modal-content, .p-modal-content {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 440px !important;
    margin: auto !important;
    border-radius: 20px !important;
    max-height: 85vh !important;
    max-height: 85dvh !important;
    overflow-y: auto !important;
    padding: 24px 16px 20px !important;
    transform: scale(0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7) !important;
    z-index: 100051 !important;
    transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .universal-lead-modal.active .u-modal-content,
  .portfolio-modal.active .p-modal-content {
    transform: scale(1) !important;
  }

  .u-modal-close, .p-modal-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 38px !important;
    height: 38px !important;
    z-index: 100055 !important;
    background: #f3ece6 !important;
    color: #7a1217 !important;
    border: 1px solid rgba(122, 18, 23, 0.2) !important;
  }

  /* Expand Builder Box to 100% width on Mobile */
  .builder-box {
    width: 100% !important;
    padding: 16px 12px !important;
    border-radius: 16px !important;
    gap: 16px !important;
    margin: 0 !important;
  }

  .builder-summary-card {
    width: 100% !important;
    padding: 20px 14px !important;
    border-radius: 14px !important;
    margin-top: 12px !important;
  }

  /* Compact Container & Section Paddings */

  .section {
    padding: 24px 0 !important;
  }

  .section-head {
    margin-bottom: 16px !important;
  }

  .section-head h2 {
    font-size: 1.4rem !important;
    margin-bottom: 6px !important;
  }

  .section-desc {
    font-size: 0.85rem !important;
    margin-bottom: 10px !important;
  }

  /* Compact Hero on Mobile */
  .hero {
    padding: 20px 0 16px !important;
  }

  .hero h1 {
    font-size: 1.75rem !important;
    margin-bottom: 10px !important;
  }

  .hero-subtitle {
    font-size: 0.88rem !important;
    margin-bottom: 16px !important;
  }

  .hero-trust-bar {
    gap: 10px !important;
    margin-top: 16px !important;
  }

  .hero-badge {
    padding: 4px 10px !important;
    font-size: 0.72rem !important;
    margin-bottom: 10px !important;
  }

  .room-card, .style-card {
    padding: 10px 12px !important;
    min-height: auto !important;
    border-radius: 10px !important;
  }

  .room-card-head {
    gap: 8px !important;
  }

  .room-card h3, .style-card h3 {
    font-size: 0.92rem !important;
  }

  .amb-info, .portfolio-info {
    padding: 12px !important;
  }

  .amb-card img, .portfolio-card img {
    height: 180px !important;
  }

  .contact-card {
    gap: 18px !important;
  }

  .contact-form {
    padding: 16px 14px !important;
    gap: 10px !important;
    border-radius: 12px !important;
  }

  .about-card {
    padding: 16px 14px !important;
  }

  .p-modal-info {
    padding: 14px 0 0 !important;
  }

  .top-bar { display: none; }
  .brand img { height: 32px; }
}

@media (max-width: 580px) {
  /* O texto já fica colapsado por padrão; a regra antiga escondia
     .online-dot junto, porque pegava qualquer span da pílula. */
  .whatsapp-pill .pill-text { display: none; }
}
