/* 
 * styles.css - Dedic Online Landing Page
 * Premium design system with fluid typography, responsive layout, glassmorphism elements,
 * and high-performance smooth animations.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;700&family=Oswald:wght@500;700&display=swap');

/* --- DESIGN SYSTEM TOKENS --- */
:root {
  /* Brand Palette */
  --color-primary: #387b83;
  --color-primary-rgb: 56, 123, 131;
  --color-primary-hover: #51a8b1;
  --color-primary-hover-rgb: 81, 168, 177;
  --color-accent-navy: #4b507b;
  --color-accent-navy-rgb: 75, 80, 123;
  
  /* Neutral Palette */
  --color-text-dark: #1e293b; /* slate-800 */
  --color-text-light: #64748b; /* slate-500 */
  --color-text-muted: #94a3b8; /* slate-400 */
  --color-bg-white: #ffffff;
  --color-bg-soft: #f8fafc; /* slate-50 */
  --color-bg-card: #ffffff;
  --color-border-light: #e2e8f0; /* slate-200 */
  
  /* Status Colors */
  --color-success: #10b981;
  --color-error: #ef4444;

  /* Typography */
  --font-headings: 'Oswald', 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 7.5rem) 1.5rem;

  /* Shadow System (Premium Multilayer) */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-premium: 0 20px 40px -15px rgba(56, 123, 131, 0.12), 0 15px 25px -10px rgba(75, 80, 123, 0.06);
  --shadow-active: 0 20px 30px -10px rgba(56, 123, 131, 0.25);

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

/* --- RESET & BASE STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-accent-navy);
  background-color: var(--color-bg-soft);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 50px;
  height: 4px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

p {
  color: var(--color-accent-navy);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  margin-bottom: 1.5rem;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 400;
  color: var(--color-accent-navy);
  line-height: 1.7;
}

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

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

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

/* --- LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: var(--section-padding);
}

.grid {
  display: grid;
  gap: 2rem;
}

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.flex {
  display: flex;
  gap: 1rem;
}

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

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

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

.bg-green-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, #153a3e 100%);
  color: var(--color-bg-white);
}

.bg-green-gradient h2, 
.bg-green-gradient h3,
.bg-green-gradient p {
  color: var(--color-bg-white);
}

.bg-green-gradient .stat-number {
  color: #c7f3f7;
}

.bg-green-gradient .stat-label {
  color: rgba(255, 255, 255, 0.9);
}

/* --- PREMIUM UI COMPONENTS --- */

/* Header and Branding */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
}

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

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

.logo-fallback {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.logo-fallback span {
  color: var(--color-accent-navy);
}

/* Primary Button (CTA) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--color-primary);
  color: var(--color-bg-white) !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.1rem 2.5rem;
  border-radius: 50px;
  border: none;
  box-shadow: 0 10px 20px -5px rgba(56, 123, 131, 0.35);
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary) 100%);
  opacity: 0;
  z-index: -1;
  transition: var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-active);
}

.btn-primary:hover::before {
  opacity: 1;
}

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

/* VSL Video Container */
.vsl-container {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  background-color: #000;
  aspect-ratio: 16 / 9;
}

#vsl-player {
  width: 100%;
  height: 100%;
  border: none;
}

.vsl-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

.vsl-container:hover .vsl-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.vsl-play-center {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(13, 27, 42, 0.85);
  border: 2px solid var(--color-primary);
  color: var(--color-bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.vsl-play-center svg {
  margin-left: 4px;
}

.vsl-overlay:hover .vsl-play-center {
  transform: scale(1.1);
  background: var(--color-primary);
  color: var(--color-bg-white);
}

.vsl-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 4;
  background: linear-gradient(to top, rgba(13, 27, 42, 0.95) 0%, rgba(13, 27, 42, 0.4) 100%);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.8rem 1.25rem;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
}

.vsl-container:hover .vsl-controls,
.vsl-container.show-controls .vsl-controls {
  transform: translateY(0);
  opacity: 1;
}

.vsl-control-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.vsl-control-btn:hover {
  color: var(--color-bg-white);
  background-color: rgba(255, 255, 255, 0.1);
}

.vsl-progress-container {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  transition: height 0.1s ease;
}

.vsl-progress-container:hover {
  height: 8px;
}

.vsl-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--color-primary);
  border-radius: 3px;
  position: relative;
}

.vsl-progress-bar::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-bg-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.1s ease;
}

.vsl-progress-container:hover .vsl-progress-bar::after {
  transform: translateY(-50%) scale(1);
}

.vsl-time {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  min-width: 80px;
  text-align: center;
}

.vsl-speed-container {
  position: relative;
}

.vsl-speed-btn {
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-headings);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 4px 8px;
  min-width: 50px;
  color: rgba(255, 255, 255, 0.85);
}

.vsl-speed-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: rgba(13, 27, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  min-width: 80px;
  backdrop-filter: blur(8px);
  z-index: 5;
}

.vsl-speed-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.vsl-speed-menu button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.vsl-speed-menu button:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
}

/* Video Placeholder Style (when no video URL is provided) */
.video-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  background: linear-gradient(135deg, rgba(75, 80, 123, 0.9) 0%, rgba(30, 30, 45, 0.95) 100%);
  color: var(--color-bg-white);
  padding: 2rem;
  text-align: center;
}

.video-placeholder-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--color-primary-hover);
  animation: pulse 2s infinite ease-in-out;
}

/* Premium Card System */
.card {
  background-color: var(--color-bg-card);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--color-border-light);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -20px rgba(56, 123, 131, 0.15);
  border-color: rgba(56, 123, 131, 0.2);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background-color: rgba(56, 123, 131, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-fast);
}

.card:hover .card-icon {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
}

/* Form Highlight Card */
.card-highlight {
  border: 2px solid var(--color-primary-hover);
  position: relative;
  background-color: var(--color-bg-white);
}

.card-highlight::before {
  content: 'INVESTIMENTO SEGURO';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary-hover);
  color: var(--color-bg-white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 4px 16px;
  border-radius: 30px;
}

/* Big Numbers (Stats) */
.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-family: var(--font-headings);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-accent-navy);
}

/* Comparison Table (Responsive) */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--color-border-light);
  background-color: var(--color-bg-white);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.comparison-table th,
.comparison-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

.comparison-table th {
  background-color: var(--color-bg-soft);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-accent-navy);
  text-transform: uppercase;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--color-text-dark);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.col-youtube {
  background-color: rgba(239, 68, 68, 0.02);
  color: var(--color-text-light);
}

.col-dedic {
  background-color: rgba(56, 123, 131, 0.03);
  font-weight: 500;
}

.comparison-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge-negative {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
}

.badge-positive {
  background-color: rgba(56, 123, 131, 0.1);
  color: var(--color-primary);
}

/* Accordion (FAQ) */
.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--color-bg-white);
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(56, 123, 131, 0.15);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-accent-navy);
  cursor: pointer;
  transition: var(--transition-fast);
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--color-primary);
  transition: transform var(--transition-normal) ease;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) cubic-bezier(0, 1, 0, 1);
  padding: 0 1.5rem;
}

.faq-content p {
  padding-bottom: 1.25rem;
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Active State Accordion */
.faq-item.active {
  border-color: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-primary-hover);
}

.faq-item.active .faq-content {
  max-height: 1000px; /* high value for smooth auto height animation */
  transition: max-height var(--transition-slow) cubic-bezier(1, 0, 1, 0);
}

/* Premium Form Elements */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent-navy);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--color-bg-soft);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  color: var(--color-text-dark);
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-bg-white);
  box-shadow: 0 0 0 3px rgba(56, 123, 131, 0.1);
}

.form-error-msg {
  color: var(--color-error);
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.25rem;
  display: none;
}

/* Placeholders Styles */
.img-placeholder-fernando {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-bg-soft) 0%, var(--color-border-light) 100%);
  border: 2px dashed var(--color-text-muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--color-text-light);
  padding: 2rem;
  text-align: center;
}

.img-placeholder-fernando-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

/* --- ANIMATIONS (Reveal on Scroll) --- */
.js-active .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.js-active .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.js-active .reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.js-active .reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.js-active .reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.js-active .reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

/* --- INDIVIDUAL SECTIONS --- */

/* Hero Section */
.hero {
  padding: 10rem 1.5rem 6rem;
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-white);
}

/* Diagonal Background decoration */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-color: var(--color-bg-soft);
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 1;
}

@media (max-width: 991px) {
  .hero::before {
    display: none;
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(56, 123, 131, 0.08);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(56, 123, 131, 0.15);
}

.hero-subtitle {
  margin-bottom: 2rem;
}

/* Pain / Custo da Ignorancia Section */
.pain-points-grid {
  margin-top: 3rem;
}

.pain-header {
  max-width: 700px;
  margin: 0 auto 4rem;
}

/* Anchor Conversion CTA */
.cta-anchor-section {
  padding: 5rem 1.5rem;
}

.cta-anchor-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Steps (Como Funciona) */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
  margin-top: 4rem;
}

.steps-line {
  position: absolute;
  top: 0;
  left: 30px;
  width: 4px;
  height: 100%;
  background-color: var(--color-border-light);
  z-index: 1;
}

.step-card {
  display: flex;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.step-number {
  min-width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--color-bg-white);
  border: 4px solid var(--color-primary);
  color: var(--color-primary);
  font-family: var(--font-headings);
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.step-card:hover .step-number {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
}

.step-info {
  background-color: var(--color-bg-white);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  width: 100%;
}

@media (min-width: 768px) {
  .steps-container {
    flex-direction: row;
    justify-content: space-between;
    gap: 1.5rem;
  }
  
  .steps-line {
    top: 32px;
    left: 0;
    width: 100%;
    height: 4px;
  }
  
  .step-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
  }

  .step-info {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
}

/* About Author */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.about-bullets {
  list-style: none;
  margin-top: 1.5rem;
}

.about-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.about-bullet-icon {
  color: var(--color-success);
  font-size: 1.25rem;
  margin-top: 0.15rem;
}

/* Footer Section */
footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--color-border-light);
  background-color: var(--color-bg-white);
}

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

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-logo {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --- GALERIA DE OBRAS (Portfolio Section) --- */
.gallery-section {
  background-color: var(--color-bg-soft);
  position: relative;
}

.gallery-grid {
  margin-top: 3rem;
}

.gallery-card {
  background-color: var(--color-bg-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--color-border-light);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -20px rgba(56, 123, 131, 0.15);
  border-color: rgba(56, 123, 131, 0.2);
}

.gallery-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--color-border-light);
  overflow: hidden;
}

.img-placeholder-gallery {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(56, 123, 131, 0.05) 0%, rgba(75, 80, 123, 0.08) 100%);
  color: var(--color-primary);
  transition: transform var(--transition-slow);
}

.gallery-card:hover .img-placeholder-gallery,
.gallery-card:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-img,
.about-img {
  transition: transform var(--transition-slow);
}

.about-img-wrapper:hover .about-img {
  transform: scale(1.03);
}

.placeholder-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-light);
}

.gallery-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.gallery-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-info h3 {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  color: var(--color-accent-navy);
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

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

.gallery-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--color-border-light);
  padding-top: 0.75rem;
  margin-top: auto;
}

.gallery-meta span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.gallery-meta span strong {
  color: var(--color-text-light);
}

/* --- ADICIONAL: CURSOR E OVERLAY DE ZOOM NA GALERIA --- */
.gallery-img-wrapper {
  cursor: pointer;
}

.gallery-img-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(56, 123, 131, 0.4); /* tom verde da marca com opacidade */
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 1;
}

.gallery-card:hover .gallery-img-wrapper::after {
  opacity: 1;
}

.gallery-img-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.gallery-card:hover .gallery-img-zoom-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* --- LIGHTBOX (Popup Galeria Premium) --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.85); /* Fundo escuro premium */
  backdrop-filter: blur(12px); /* Desfoque de vidro */
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.lightbox-content {
  position: relative;
  max-width: 850px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img-wrapper-el {
  position: relative;
  width: 100%;
  height: 50vh; /* Mantém a imagem em tamanho ótimo */
  background-color: #0b0f19;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-img-wrapper-el img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* Exibe a imagem completa sem cortar */
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

.lightbox-img-wrapper-el img.loaded {
  opacity: 1;
}

/* Spinner de carregamento */
.lightbox-loader {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(56, 123, 131, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: lightbox-spin 0.8s linear infinite;
  display: block;
}

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

.lightbox-caption {
  padding: 2rem;
  background-color: var(--color-bg-white);
}

.lightbox-tag {
  display: inline-block;
  background-color: rgba(56, 123, 131, 0.1);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.lightbox-caption h3 {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.lightbox-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.lightbox-meta {
  display: flex;
  gap: 2rem;
  border-top: 1px solid var(--color-border-light);
  padding-top: 1rem;
}

.lightbox-meta span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.lightbox-meta span strong {
  color: var(--color-text-light);
}

/* Botões de navegação */
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-bg-white);
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
  transition: transform var(--transition-fast), color var(--transition-fast);
  opacity: 0.8;
}

.lightbox-close:hover {
  transform: scale(1.1);
  color: var(--color-primary-hover);
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-bg-white);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.lightbox-nav:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

/* Trava scroll ao abrir lightbox */
body.lightbox-open {
  overflow: hidden;
}

/* Responsividade do Lightbox */
@media (max-width: 768px) {
  .lightbox-content {
    width: 95%;
    max-height: 95vh;
  }
  
  .lightbox-img-wrapper-el {
    height: 35vh;
  }
  
  .lightbox-caption {
    padding: 1.25rem;
  }
  
  .lightbox-caption h3 {
    font-size: 1.25rem;
  }
  
  .lightbox-desc {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.5;
  }
  
  .lightbox-meta {
    gap: 1rem;
    padding-top: 0.75rem;
  }
  
  .lightbox-nav {
    width: 44px;
    height: 44px;
  }
  
  .lightbox-prev {
    left: 0.5rem;
  }
  
  .lightbox-next {
    right: 0.5rem;
  }
  
  .lightbox-close {
    top: 0.5rem;
    right: 0.7rem;
    font-size: 2.5rem;
  }
}

