/* ==========================================================================
   S&E MONT. - ENGENHARIA INDUSTRIAL DE ALTA PERFORMANCE
   Design System & Master Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Reset & Variables (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors - Industrial Precision Palette */
  --bg-primary: #0a0d12;
  --bg-secondary: #11151d;
  --bg-tertiary: #181e29;
  --bg-card: #131822;
  --bg-card-hover: #1c2331;
  --bg-card-glass: rgba(19, 24, 34, 0.85);
  
  /* Industrial Accent Colors - Amber / Safety Gold / Metallic */
  --accent-primary: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-dark: #d97706;
  --accent-glow: rgba(245, 158, 11, 0.28);
  --accent-subtle: rgba(245, 158, 11, 0.12);
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  --accent-gradient-hover: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);

  /* Secondary Industrial Hue (Electric Arc / Steel Blue) */
  --steel-blue: #3b82f6;
  --steel-blue-glow: rgba(59, 130, 246, 0.25);
  
  /* Typography & Foreground */
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-accent: rgba(245, 158, 11, 0.35);
  --border-accent-solid: #f59e0b;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px var(--accent-glow);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);

  /* Typography */
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', monospace;

  /* Layout & Spacing */
  --container-max: 1280px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Technical Grid Mesh */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: -1;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

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

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

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   2. Typography & Headings
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.text-mono {
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   3. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7.5rem);
  position: relative;
}

.section--darker {
  background-color: var(--bg-secondary);
}

.section--alt {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem) auto;
}

.section-header--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-primary);
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.section-header--left .section-desc {
  margin-left: 0;
}

/* --------------------------------------------------------------------------
   4. Buttons & CTAs
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #0b0d12;
  font-weight: 700;
  box-shadow: 0 4px 18px var(--accent-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  box-shadow: 0 6px 26px rgba(245, 158, 11, 0.45);
  transform: translateY(-2px);
  color: #000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

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

.btn-outline-accent:hover {
  background: var(--accent-subtle);
  border-color: var(--accent-primary);
  color: var(--accent-hover);
}

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #20ba5a;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.05rem 2.25rem;
  font-size: 1.05rem;
}

.btn-icon-right svg {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon-right svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   5. Top Header & Navigation Bar
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-normal);
  background: rgba(10, 13, 18, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(10, 13, 18, 0.94);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  height: 72px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 1010;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: transform var(--transition-fast);
}

.brand-logo:hover img {
  transform: scale(1.04);
}

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

.brand-logo-text .title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  line-height: 1.1;
}

.brand-logo-text .subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  text-transform: uppercase;
}

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.header-phone:hover {
  color: var(--accent-primary);
}

.header-phone svg {
  color: var(--accent-primary);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  z-index: 1010;
  padding: 0;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #ffffff;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 5rem;
  overflow: hidden;
  background: radial-gradient(circle at 75% 30%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 20% 70%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
              var(--bg-primary);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(10, 13, 18, 0.95) 0%, rgba(10, 13, 18, 0.85) 45%, rgba(10, 13, 18, 0.7) 100%),
    url('../images/montagem-mecanica.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: contrast(1.1) brightness(0.85);
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 95%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-primary);
  animation: pulse-dot 2s infinite ease-in-out;
}

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

.hero-badge-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-title {
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

/* Indicators Trust Bar */
.hero-indicators {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  max-width: 760px;
}

.indicator-card {
  display: flex;
  flex-direction: column;
}

.indicator-number {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.indicator-number .highlight {
  color: var(--accent-primary);
}

.indicator-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   7. Strategic Value Proposition Section (Sobre Teaser)
   -------------------------------------------------------------------------- */
.value-proposition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.value-prop-visual {
  position: relative;
}

.value-image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.value-image-container img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.value-image-container:hover img {
  transform: scale(1.03);
}

.value-badge-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(10, 13, 18, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.value-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.value-badge-text h4 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.value-badge-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.value-prop-content h2 {
  margin-bottom: 1.25rem;
}

.value-prop-content .lead-text {
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.value-prop-content p {
  margin-bottom: 1.5rem;
}

.value-checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.checklist-item svg {
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   8. Differentiators Section
   -------------------------------------------------------------------------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.diff-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.diff-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: background var(--transition-normal);
}

.diff-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.diff-card:hover::before {
  background: var(--accent-gradient);
}

.diff-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
}

.diff-card:hover .diff-icon {
  background: var(--accent-subtle);
  border-color: var(--border-accent);
  transform: scale(1.05);
}

.diff-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.diff-card p {
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. Services Section (Cards Premium)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.service-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.8), var(--shadow-glow);
}

.service-image-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.service-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-image-wrapper img {
  transform: scale(1.08);
}

.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(19, 24, 34, 0.95) 100%);
}

.service-num-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.65rem;
  background: rgba(10, 13, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.service-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
  color: #ffffff;
}

.service-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.spec-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

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

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
  transition: gap var(--transition-fast);
}

.service-link:hover {
  color: var(--accent-hover);
  gap: 0.65rem;
}

/* --------------------------------------------------------------------------
   10. Obras / Portfolio Section
   -------------------------------------------------------------------------- */
.portfolio-notice {
  background: rgba(245, 158, 11, 0.06);
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-notice-icon {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.portfolio-notice p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Filter Controls */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: #fff;
  border-color: var(--border-medium);
}

.filter-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #0b0d12;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--accent-glow);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.project-media {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.project-status-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.65rem;
  background: rgba(10, 13, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-primary);
  font-weight: 600;
  text-transform: uppercase;
}

.project-category-tag {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  padding: 0.25rem 0.65rem;
  background: rgba(10, 13, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #ffffff;
}

.project-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.project-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-meta-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-item .label {
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 0.65rem;
}

.meta-item .value {
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   11. Quote / Orçamento Form Section
   -------------------------------------------------------------------------- */
.quote-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4rem;
  align-items: flex-start;
}

.quote-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.quote-info-panel h2 {
  margin-bottom: 1rem;
}

.quote-info-panel p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.contact-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.contact-info-item p,
.contact-info-item a {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.contact-info-item a:hover {
  color: var(--accent-primary);
}

/* Quote Form Container */
.quote-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.quote-form-card::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.form-header {
  margin-bottom: 2rem;
}

.form-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-header p {
  font-size: 0.925rem;
  color: var(--text-muted);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label .required {
  color: var(--accent-primary);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: rgba(10, 13, 18, 0.7);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(10, 13, 18, 0.95);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-control::placeholder {
  color: var(--text-dim);
}

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

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select.form-control option {
  background-color: var(--bg-secondary);
  color: #ffffff;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-note svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.form-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-alert {
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: none;
}

.form-alert.success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #07090d;
  border-top: 1px solid var(--border-subtle);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.25fr 1.5fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-title {
  font-size: 1rem;
  font-family: var(--font-heading);
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-primary);
  transform: translateX(4px);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-contact-item svg {
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   13. Floating WhatsApp & Quick Conversion Widget
   -------------------------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal);
}

.whatsapp-btn-pulse {
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  position: relative;
  transition: all var(--transition-normal);
}

.whatsapp-btn-pulse:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
}

.whatsapp-btn-pulse::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulse-ring 2.5s infinite ease-out;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 0.825rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-fast);
}

.floating-whatsapp:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile Quick Bar at bottom */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 13, 18, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  z-index: 980;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   14. Lightbox Modal & Feedback Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  max-width: 650px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(20px) scale(0.97);
  transition: all var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* --------------------------------------------------------------------------
   15. Internal Pages Subheader (Hero Banner for Sobre, Serviços, etc.)
   -------------------------------------------------------------------------- */
.page-banner {
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 4rem;
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
              var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-primary);
}

.breadcrumb-separator {
  color: var(--border-medium);
}

.page-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 1rem;
}

.page-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
}

/* Detailed Service Item for servicos.html */
.service-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.service-detail-row:last-child {
  border-bottom: none;
}

.service-detail-row.reverse {
  direction: rtl;
}

.service-detail-row.reverse > * {
  direction: ltr;
}

.service-detail-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.service-detail-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-detail-media:hover img {
  transform: scale(1.04);
}

.service-detail-info h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.service-detail-info .scope-highlight {
  font-size: 1.1rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.service-detail-info p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.detail-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.detail-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.detail-feature-item svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   16. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .diff-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

@media (max-width: 900px) {
  .value-proposition-grid,
  .quote-layout,
  .service-detail-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .service-detail-row.reverse {
    direction: ltr;
  }

  .value-image-container img,
  .service-detail-media img {
    height: 340px;
  }

  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(10, 13, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2.5rem 2rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    z-index: 1005;
    border-top: 1px solid var(--border-subtle);
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
  }

  .nav-link {
    font-size: 1.25rem;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .header-actions {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 1.25rem;
    padding-top: 1rem;
  }

  .header-phone {
    justify-content: center;
    font-size: 1rem;
  }

  .hero-indicators {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .mobile-bottom-bar {
    display: flex;
  }

  .floating-whatsapp {
    bottom: 5.5rem;
    right: 1.25rem;
  }
}

@media (max-width: 640px) {
  .services-grid,
  .portfolio-grid,
  .diff-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .detail-features {
    grid-template-columns: 1fr;
  }
}
