/* ========================================
   IMÓBILIÁRIA MARQUES - DESIGN SYSTEM
   ======================================== */

:root {
  /* Colors - Refined Palette */
  --color-forest: #0f2d1f;
  --color-forest-light: #153d2a;
  --color-emerald: #1a5c38;
  --color-emerald-light: #227847;
  --color-sage: #e8f4ed;
  --color-sage-light: #f0f7f3;
  --color-cream: #faf9f6;
  --color-white: #ffffff;
  --color-ink: #1a1a2e;
  --color-ink-light: #3d3d5c;
  --color-muted: #6b6b8a;
  --color-muted-light: #a0a0b8;
  --color-border: #e8e6e1;
  --color-border-light: #f0efe9;
  --color-gold: #c9a84c;
  --color-gold-light: #dcc576;
  --color-error: #c0392b;
  --color-success: #1a7a3a;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4.5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-padding: 1.5rem;
  --header-height: 80px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.08);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.1);
  --shadow-inner: inset 0 2px 4px rgba(0,0,0,0.03);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Z-Index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal: 400;
  --z-toast: 500;
}

/* ========================================
   RESET & BASE
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-ink);
  background-color: var(--color-white);
  font-weight: 400;
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 2px solid var(--color-emerald);
  outline-offset: 3px;
}

::selection {
  background: var(--color-emerald);
  color: var(--color-white);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 2vw, var(--text-2xl)); }
h4 { font-size: var(--text-lg); }

p {
  color: var(--color-ink-light);
  max-width: 65ch;
}

.section-tag {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-emerald);
  margin-bottom: var(--space-3);
  position: relative;
  padding-left: var(--space-4);
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 2px;
  background: var(--color-emerald);
}

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

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: 55ch;
  margin-top: var(--space-3);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn--md {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn--primary {
  background: var(--color-forest);
  color: var(--color-white);
  border: 2px solid var(--color-forest);
}

.btn--primary:hover {
  background: var(--color-emerald);
  border-color: var(--color-emerald);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--color-forest);
  border: 2px solid var(--color-forest);
}

.btn--outline:hover {
  background: var(--color-forest);
  color: var(--color-white);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-forest);
  border: 2px solid var(--color-white);
}

.btn--white:hover {
  background: var(--color-sage-light);
}

.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn--outline-white:hover {
  background: var(--color-white);
  color: var(--color-forest);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .btn-loader {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   HEADER
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-light);
  z-index: var(--z-fixed);
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-emerald) 100%);
  border-radius: var(--radius-md);
  position: relative;
}

.logo-mark::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-white);
  border-radius: 3px;
}

.logo-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--color-white);
  border-radius: 1px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-forest);
  letter-spacing: -0.02em;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--color-forest);
  background: var(--color-sage-light);
}

.nav-cta {
  background: var(--color-forest);
  color: var(--color-white) !important;
  padding: var(--space-2) var(--space-5);
  margin-left: var(--space-2);
}

.nav-cta:hover {
  background: var(--color-emerald);
  color: var(--color-white) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.menu-toggle:hover {
  background: var(--color-sage-light);
}

.menu-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-forest);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   CAPTAÇÃO SECTION
   ======================================== */

.captacao {
  position: relative;
  padding: calc(var(--header-height) + var(--space-20)) 0 var(--space-20);
  overflow: hidden;
}

.captacao-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--color-forest) 0%, var(--color-emerald) 50%, #0d4025 100%);
  z-index: -2;
}

.captacao-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.captacao-inner {
  max-width: 720px;
  margin: 0 auto;
}

.captacao-content {
  text-align: center;
  padding-right: 0;
}

.captacao-badge {
  margin-left: auto;
  margin-right: auto;
}

.captacao-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.captacao-trust {
  justify-content: center;
}

.captacao-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gold-light);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.captacao-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
}

.captacao-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
  max-width: 480px;
}

.captacao-form {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-xl);
  position: relative;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.form-field {
  display: flex;
  flex-direction: column;
}

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

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: var(--space-1);
}

.form-input {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-family: inherit;
  color: var(--color-ink);
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input::placeholder {
  color: var(--color-muted-light);
}

.form-input:hover {
  border-color: var(--color-muted-light);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-emerald);
  box-shadow: 0 0 0 4px rgba(26, 92, 56, 0.1);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: var(--color-error);
}

.form-consent {
  margin-bottom: var(--space-4);
}

.form-checkbox-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-muted);
  cursor: pointer;
  line-height: 1.5;
}

.form-checkbox-label::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  transition: all var(--transition-fast);
  margin-top: 1px;
}

.form-checkbox-input:checked + .form-checkbox-label::before {
  background: var(--color-emerald);
  border-color: var(--color-emerald);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;
}

.form-checkbox-input:focus-visible + .form-checkbox-label::before {
  outline: 2px solid var(--color-emerald);
  outline-offset: 2px;
}

.privacy-link {
  color: var(--color-emerald);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-link:hover {
  color: var(--color-forest);
}

.captacao-form .btn--lg {
  width: 100%;
  margin-bottom: var(--space-3);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
}

.form-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--color-sage);
  color: var(--color-success);
  border-radius: var(--radius-md);
  font-weight: 500;
  animation: slideUp 0.4s ease;
}

.success-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-success);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.captacao-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.trust-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
}

/* Captacao Image Placeholder */
.captacao-image {
  position: relative;
}

.image-placeholder {
  position: relative;
  aspect-ratio: 4/3;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  text-align: center;
  overflow: hidden;
}

.image-placeholder--large {
  aspect-ratio: 7/5;
}

.image-placeholder--tall {
  aspect-ratio: 5/7;
}

.placeholder-icon {
  width: 64px;
  height: 64px;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: var(--space-4);
}

.placeholder-text {
  font-size: var(--text-lg);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-1);
}

.placeholder-hint {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.3);
}

.image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
  border-radius: var(--radius-xl);
  opacity: 0.15;
  transform: rotate(-3deg);
}

.image-accent--green {
  background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-emerald-light) 100%);
  top: -20px;
  left: -20px;
  bottom: auto;
  right: auto;
  opacity: 0.1;
}

.image-accent--light {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
  bottom: -20px;
  left: -20px;
  right: auto;
  opacity: 0.1;
}

.experience-badge {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 140px;
}

.experience-number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-forest);
  line-height: 1;
}

.experience-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-weight: 500;
  margin-top: var(--space-1);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 45, 31, 0.92) 0%, rgba(26, 92, 56, 0.85) 50%, rgba(15, 45, 31, 0.9) 100%);
  z-index: -1;
}

.hero-inner {
  width: 100%;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-12) 0;
}

.hero-badge {
  display: inline-block;
  padding: var(--space-2) var(--space-5);
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gold-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.03em;
}

.hero-description {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto var(--space-10);
  font-weight: 300;
}

.hero-cta {
  border-color: var(--color-white);
  color: var(--color-white);
}

.hero-cta:hover {
  background: var(--color-white);
  color: var(--color-forest);
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll svg {
  width: 24px;
  height: 24px;
}

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

/* ========================================
   PORTFOLIO SECTION (substitui História)
   ======================================== */

.section {
  padding: var(--space-24) 0;
}

.portfolio {
  background: var(--color-cream);
}

.portfolio-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: stretch;
}

.portfolio-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 500px;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

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

.portfolio-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 45, 31, 0.3) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.portfolio-image:hover::after {
  opacity: 1;
}

.image-accent--gold {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
  border-radius: var(--radius-xl);
  opacity: 0.15;
  transform: rotate(-3deg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-10px); }
}

.portfolio-badge {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 160px;
}

.badge-number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-forest);
  line-height: 1;
}

.badge-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-weight: 500;
  margin-top: var(--space-1);
  line-height: 1.4;
}

.portfolio-content {
  padding-top: var(--space-4);
}

.portfolio-text {
  margin-top: var(--space-6);
}

.portfolio-text p {
  margin-bottom: var(--space-4);
  font-size: var(--text-lg);
  color: var(--color-ink-light);
  max-width: none;
}

.portfolio-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.portfolio-highlights li {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}

.portfolio-highlights li:hover {
  border-color: var(--color-emerald);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.portfolio-cta {
  margin-top: var(--space-8);
  width: 100%;
  max-width: 100%;
}

.highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-sage);
  border-radius: var(--radius-md);
  color: var(--color-emerald);
  margin-bottom: var(--space-2);
  flex-shrink: 0;
}

.highlight-icon svg {
  width: 24px;
  height: 24px;
}

/* ========================================
   ESPECIALIDADES SECTION
   ======================================== */

.especialidades {
  background: var(--color-white);
}

.section-header {
  margin-bottom: var(--space-12);
}

.section-header--center {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header--center .section-tag::before {
  left: 50%;
  transform: translateX(-50%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.service-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.service-card:hover {
  border-color: var(--color-emerald);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.service-card--featured {
  border-color: var(--color-emerald);
  box-shadow: var(--shadow-lg);
}

.service-card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-emerald) 0%, var(--color-gold) 100%);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.service-badge {
  position: absolute;
  top: -12px;
  left: var(--space-6);
  background: var(--color-forest);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-sage);
  border-radius: var(--radius-lg);
  color: var(--color-emerald);
  margin-bottom: var(--space-5);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-title {
  font-size: var(--text-xl);
  color: var(--color-forest);
  margin-bottom: var(--space-3);
}

.service-description {
  font-size: var(--text-base);
  color: var(--color-muted);
  margin-bottom: var(--space-5);
  max-width: none;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-ink-light);
}

.service-features svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-emerald);
  margin-top: 2px;
}

/* ========================================
   COMPROMISSO SECTION
   ======================================== */

.compromisso {
  background: var(--color-cream);
}

.compromisso-inner {
  max-width: 800px;
  margin: 0 auto;
}

.compromisso-content {
  text-align: center;
  padding-top: 0;
}

.compromisso .section-header {
  margin-left: auto;
  margin-right: auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-10);
  text-align: left;
}

.value-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.value-card:hover {
  border-color: var(--color-emerald);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.value-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-sage);
  border-radius: var(--radius-md);
  color: var(--color-emerald);
  margin-bottom: var(--space-4);
}

.value-icon svg {
  width: 24px;
  height: 24px;
}

.value-title {
  font-size: var(--text-lg);
  color: var(--color-forest);
  margin-bottom: var(--space-2);
}

.value-description {
  font-size: var(--text-sm);
  color: var(--color-muted);
  max-width: none;
}

.compromisso-image {
  position: relative;
}

.compromisso-image .image-placeholder {
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
  background: var(--color-forest);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.02)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.cta-inner {
  position: relative;
  z-index: 1;
  padding: var(--space-20) 0;
  text-align: center;
}

.cta-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--color-ink);
  color: var(--color-white);
  padding: var(--space-20) 0 var(--space-8);
}

.footer-inner {
  padding-bottom: var(--space-12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-10);
  margin-bottom: var(--space-16);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.footer-logo .logo-mark {
  background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-gold) 100%);
}

.footer-logo .logo-text {
  color: var(--color-white);
}

.footer-logo .logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
  max-width: none;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--color-emerald);
  border-color: var(--color-emerald);
  color: var(--color-white);
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-gold-light);
  padding-left: var(--space-2);
}

.footer-address p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-1);
  max-width: none;
}

.address-detail {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4) !important;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.copyright {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--color-gold-light);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .captacao-inner {
    max-width: 100%;
  }

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

  .captacao-trust {
    flex-direction: column;
    gap: var(--space-4);
  }

  .trust-divider {
    width: 40px;
    height: 1px;
  }

  .portfolio-inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .portfolio-image {
    order: -1;
    min-height: 400px;
  }

  .portfolio-img {
    min-height: 400px;
  }

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

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

  .service-card--featured {
    grid-column: 1 / -1;
  }

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

  .compromisso-inner {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: var(--space-8);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --container-padding: 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: var(--space-6);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: var(--space-1);
    width: 100%;
  }

  .nav-link {
    padding: var(--space-3) var(--space-4);
    width: 100%;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .captacao {
    padding: calc(var(--header-height) + var(--space-12)) 0 var(--space-12);
  }

  .captacao-form {
    padding: var(--space-6);
  }

  .captacao-form .btn--lg {
    padding: var(--space-3) var(--space-6);
  }

  .hero {
    min-height: 60vh;
  }

  .section {
    padding: var(--space-16) 0;
  }

  .portfolio-highlights {
    grid-template-columns: 1fr;
  }

  .portfolio-image {
    min-height: 300px;
  }

  .portfolio-img {
    min-height: 300px;
  }

  .highlight-icon {
    width: 40px;
    height: 40px;
  }

  .highlight-icon svg {
    width: 20px;
    height: 20px;
  }

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

  .service-card--featured {
    grid-column: auto;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    border-bottom: none;
    padding-bottom: 0;
  }

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

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .captacao-title {
    font-size: var(--text-3xl);
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  .highlight-icon {
    width: 36px;
    height: 36px;
  }

  .highlight-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }
.delay-4 { animation-delay: 400ms; }
.delay-5 { animation-delay: 500ms; }
.delay-6 { animation-delay: 600ms; }

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .header, .captacao, .hero, .cta-section, .footer {
    display: none;
  }

  .section {
    page-break-inside: avoid;
  }
}