/* style.css - Clean Premium Theme for J Ferraz Consultoria (Full Multi-Page CSS) */

/* --- Fonts --- */

/* --- Design Tokens --- */
:root {
  /* Colors */
  --bg-color-clean: #FAF9F6;      /* Premium Off-white/Alabaster */
  --bg-color-pure: #FFFFFF;       /* Pure White */
  --brand-forest-green: #1C332E;  /* J Ferraz Forest Green */
  --brand-gold: #C5A059;          /* J Ferraz Gold/Bronze Accent */
  --brand-gold-hover: #A3803D;    /* Darker Gold for hover state */
  --text-dark: #1C332E;           /* Greenish dark text */
  --text-body: #3A4F4A;           /* Softer dark green-gray for body text */
  --text-light: #FAF9F6;          /* Off-white light text */
  --border-light: rgba(28, 51, 46, 0.1);
  --border-gold: rgba(197, 160, 89, 0.3);
  
  /* Fonts */
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Speeds */
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background-color: var(--bg-color-clean);
  color: var(--text-body);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color-clean);
}
::-webkit-scrollbar-thumb {
  background: var(--brand-forest-green);
  border-radius: 3px;
}

/* --- Page Transition Overlay --- */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--brand-forest-green);
  z-index: 10001;
  pointer-events: none;
  transform: translateY(0);
  transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

body.loaded .page-transition-overlay {
  transform: translateY(-100%);
}

/* --- Preloader --- */
#preloader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-color-clean);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: clip-path 1.2s cubic-bezier(0.85, 0, 0.15, 1);
}

.preloader-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preloader-dot-container {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: var(--brand-forest-green);
  border-radius: 50%;
  transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
}

.preloader-initials {
  position: absolute;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--bg-color-clean);
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.preloader-counter {
  position: fixed;
  top: 3vw;
  right: 3vw;
  font-family: var(--font-sans);
  font-size: 8vw;
  font-weight: 200;
  color: var(--brand-forest-green);
  line-height: 0.8;
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* --- Header / Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 99;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-20px);
}

body.not-index header {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  background-color: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
}

.header-logo {
  pointer-events: auto;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-badge {
  height: 72px;
  background-color: var(--brand-forest-green);
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(28, 51, 46, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(197, 160, 89, 0.35);
  transition: transform 0.3s ease;
}

.logo-badge:hover {
  transform: translateY(-2px);
}

.logo-badge img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.nav-links {
  pointer-events: auto;
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--brand-gold);
  transition: width var(--transition-fast);
}

.nav-links a:hover {
  color: var(--brand-gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  pointer-events: auto;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bg-color-clean);
  background-color: var(--brand-forest-green);
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  text-decoration: none;
  border: 1px solid var(--brand-forest-green);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(28, 51, 46, 0.1);
}

.nav-cta:hover {
  background-color: transparent;
  color: var(--brand-forest-green);
  box-shadow: 0 4px 20px rgba(28, 51, 46, 0.15);
}

/* Mobile Toggle Base styles */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 100;
  pointer-events: auto;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--brand-forest-green);
  transition: all 0.3s cubic-bezier(0.77, 0.2, 0.05, 1.0);
  transform-origin: left center;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(-1px, -1px);
  background-color: var(--brand-gold);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(-1px, 1px);
  background-color: var(--brand-gold);
}

.nav-mobile-cta {
  display: none;
}

/* --- Custom Cursor --- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background-color: var(--brand-forest-green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(28, 51, 46, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

/* Interactive Cursor States */
.cursor-hover-letters {
  width: 80px;
  height: 80px;
  background-color: rgba(28, 51, 46, 0.05);
  border-color: var(--brand-gold);
}

.cursor-hover-cta {
  width: 120px;
  height: 120px;
  background-color: rgba(197, 160, 89, 0.1);
  border-color: var(--brand-gold);
  border-style: dashed;
}

/* --- Global Content Sections --- */
section.content-section {
  padding: 8rem 8% 7rem 8%;
  position: relative;
  width: 100%;
}

section.dark-section {
  background-color: var(--brand-forest-green);
  color: var(--text-light);
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-gold);
  margin-bottom: 1.5rem;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 2rem;
  max-width: 800px;
}

.dark-section .section-title {
  color: var(--bg-color-clean);
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--brand-gold);
  margin-bottom: 2rem;
  max-width: 800px;
}

.section-description {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 800px;
}

/* --- Hero Frame 1 & 2 (Home page Scroll Scene) --- */
.hero-scroll-wrapper {
  position: relative;
  width: 100%;
}

.hero-pin-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-color-clean);
}

.ambient-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(197, 160, 89, 0.03) 0%, rgba(28, 51, 46, 0.01) 70%, transparent 100%);
  z-index: 1;
  pointer-events: none;
  transition: background var(--transition-smooth);
}

.hero-frame-letters {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  opacity: 0;
  transform: scale(0.95);
}

.letters-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5vw;
  user-select: none;
}

.masked-char {
  font-family: var(--font-serif);
  font-size: 20vw;
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-clip: text;
  -webkit-background-clip: text;
  cursor: pointer;
  display: inline-block;
  transform-origin: center center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dimension-meta-box {
  margin-top: 3vh;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.dimension-label {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--brand-gold);
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.dimension-description {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-body);
  max-width: 600px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.scroll-indicator span {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dark);
}

.scroll-line-container {
  width: 1px;
  height: 45px;
  background-color: rgba(28, 51, 46, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-line-fill {
  width: 100%;
  height: 50%;
  background-color: var(--brand-gold);
  position: absolute;
  top: 0;
  left: 0;
  animation: scrollLineAnimation 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-bg-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--bg-color-clean);
  opacity: 0;
  z-index: 7;
  transition: background-color 0.8s ease;
}

.hero-frame-reveal {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  padding: 0 8%;
}

.reveal-content-box {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.reveal-icon {
  width: 60px;
  height: auto;
  opacity: 0;
  transform: translateY(20px);
}

.reveal-heading {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(50px);
}

.reveal-heading span.highlight {
  color: var(--brand-gold);
  display: block;
  font-style: italic;
  font-weight: 500;
  margin-top: 0.5rem;
}

.cta-button-container {
  opacity: 0;
  transform: translateY(30px);
  display: flex;
  gap: 1.5rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bg-color-clean);
  background-color: var(--brand-forest-green);
  padding: 1.15rem 2.4rem;
  border-radius: 40px;
  text-decoration: none;
  border: 1.5px solid var(--brand-gold);
  box-shadow: 0 8px 25px rgba(28, 51, 46, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.cta-button:hover {
  background-color: var(--brand-gold) !important;
  color: var(--brand-forest-green) !important;
  border-color: var(--brand-gold) !important;
  box-shadow: 0 12px 35px rgba(197, 160, 89, 0.35);
  transform: translateY(-3px);
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--bg-color-clean);
  border: 1.5px solid var(--brand-gold);
  box-shadow: none;
}

.cta-button.secondary:hover {
  background-color: var(--brand-gold) !important;
  color: var(--brand-forest-green) !important;
  border-color: var(--brand-gold) !important;
  box-shadow: 0 12px 35px rgba(197, 160, 89, 0.35);
  transform: translateY(-3px);
}

.cta-button svg {
  margin-left: 0.8rem;
  transition: transform 0.3s ease;
  fill: currentColor;
}

.cta-button:hover svg {
  transform: translateX(5px);
}

/* --- Section 2: O Problema --- */
.problem-grid {
  display: grid;
  grid-cols: 1;
  gap: 3rem;
  margin-top: 3rem;
}

.problem-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.problem-tag {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  background-color: rgba(250, 249, 246, 0.05);
  border: 1px solid rgba(250, 249, 246, 0.1);
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  color: var(--brand-gold);
  transition: all var(--transition-fast);
}

.problem-tag:hover {
  background-color: var(--brand-gold);
  color: var(--brand-forest-green);
  transform: translateY(-2px);
}

/* --- Section 5: Cards (O que Entregamos) --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.premium-card {
  background-color: var(--bg-color-pure);
  border: 1px solid var(--border-light);
  padding: 3rem 2.5rem;
  border-radius: 8px;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--brand-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(28, 51, 46, 0.06);
  border-color: var(--brand-gold);
}

.premium-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(197, 160, 89, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gold);
  font-size: 1.2rem;
  font-weight: bold;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.card-description {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-body);
}

/* --- Section 6: Áreas de atuação (Minimal Grid) --- */
.services-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-summary-item {
  border-left: 2px solid var(--brand-gold);
  padding: 1rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: padding-left var(--transition-fast);
}

.service-summary-item:hover {
  padding-left: 2rem;
  color: var(--brand-gold);
}

/* --- Section 7: Resultados & Cases Preview --- */
.cases-cta-box {
  background-color: var(--bg-color-pure);
  border: 1px solid var(--border-light);
  padding: 4rem;
  border-radius: 12px;
  text-align: center;
  max-width: 900px;
  margin: 3rem auto 0 auto;
  box-shadow: 0 10px 30px rgba(28, 51, 46, 0.02);
  border-top: 4px solid var(--brand-forest-green);
}

/* --- Partner Bios (Sobre Nós) --- */
.partners-container {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  margin-top: 4rem;
}

.partner-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  background-color: var(--bg-color-pure);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 4rem 3%;
  box-shadow: 0 10px 35px rgba(28, 51, 46, 0.02);
  align-items: center;
}

@media (min-width: 992px) {
  .partner-card {
    grid-template-columns: 1fr 3fr;
  }
  .partner-card.reverse {
    grid-template-columns: 3fr 1fr;
  }
  .partner-card.reverse .partner-photo-box {
    order: 2;
  }
}

.partner-photo-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 2/3;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-gold);
  background-color: #e5e5e0;
  align-self: center;
  justify-self: center;
}

.partner-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.partner-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-forest-green);
  color: var(--brand-gold);
  text-align: center;
  padding: 2rem;
}

.partner-photo-placeholder svg {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.partner-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.partner-name {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.partner-role {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-gold);
  margin-top: -1rem;
}

.partner-quote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--brand-forest-green);
  border-left: 3px solid var(--brand-gold);
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.partner-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.partner-details-list li {
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  padding-left: 1.5rem;
}

.partner-details-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-gold);
  font-weight: bold;
}

/* --- Method Diagram & Hotspots (Método page) --- */
.method-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

@media (min-width: 992px) {
  .method-intro-grid {
    grid-template-columns: 1fr 1.15fr;
  }
}

.diagram-wrapper {
  background-color: var(--bg-color-pure);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(28, 51, 46, 0.03);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.diagram-image {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.diagram-image:hover {
  transform: scale(1.02);
}

/* --- 5 Dimensions Interactive Tabs --- */
.tabs-container {
  margin-top: 5rem;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 3rem;
  gap: 1rem;
}

.tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 2rem;
  color: var(--text-body);
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brand-forest-green);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.tab-btn.active {
  color: var(--brand-forest-green);
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  animation: fadeIn 0.6s ease forwards;
}

@media (min-width: 768px) {
  .tab-content.active {
    grid-template-columns: 1.2fr 1.8fr;
  }
}

.tab-content-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.tab-content-image {
  background-color: var(--bg-color-pure);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 8px 30px rgba(28, 51, 46, 0.03);
}

.tab-content-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- The 5 Steps (Método page Journey) --- */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
}

.step-card {
  background-color: var(--bg-color-pure);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  box-shadow: 0 5px 20px rgba(28, 51, 46, 0.01);
  transition: all var(--transition-fast);
}

.step-card:hover {
  border-color: var(--brand-gold);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 200;
  color: var(--brand-gold);
  line-height: 1;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

.step-desc {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- FAQ & Services Accordion Styles --- */
.accordions-container {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.accordion-item {
  background-color: var(--bg-color-pure);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.accordion-item:hover {
  border-color: var(--brand-gold);
}

.accordion-header {
  width: 100%;
  padding: 1.8rem 2.5rem;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  gap: 1.5rem;
}

.accordion-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gold);
  transition: transform 0.4s ease;
  font-size: 1.5rem;
  line-height: 1;
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-content {
  padding: 0 2.5rem 2rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.7;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

/* Specific styling for the 11 services */
.service-lead {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--brand-forest-green);
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  border-left: 3px solid var(--brand-gold);
  padding-left: 1.2rem;
}

.service-detailed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

@media (min-width: 992px) {
  .service-detailed-grid {
    grid-template-columns: 1.15fr 1fr 0.85fr;
  }
}

.service-detail-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.service-detail-title {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-gold);
  margin-bottom: 0.1rem;
}

.service-detail-text {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

.service-bullets, .service-checklists, .service-results {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-bullets li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.5;
}

.service-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brand-gold);
  font-weight: bold;
}

.service-checklists li {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.5;
}

.service-results li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.5;
}

.service-results li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--brand-forest-green);
  font-weight: bold;
}

/* Dimensions Badges */
.dimensions-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dim-badge {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  background-color: transparent;
  color: var(--text-body);
  border: 1px solid var(--border-light);
  opacity: 0.35;
}

.dim-badge.dim-active {
  background-color: var(--brand-forest-green);
  color: var(--text-light);
  border-color: var(--brand-forest-green);
  opacity: 1;
}

/* CTA button inside accordion */
.service-cta-btn {
  display: inline-block;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85rem 1.2rem;
  background-color: var(--brand-forest-green);
  color: var(--text-light);
  border: 1px solid var(--brand-forest-green);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 4px 15px rgba(28, 51, 46, 0.08);
}

.service-cta-btn:hover {
  background-color: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.15);
}

/* --- Case Grid (Cases Page) --- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.case-card {
  background-color: var(--bg-color-pure);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 20px rgba(28, 51, 46, 0.01);
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-gold);
  box-shadow: 0 15px 40px rgba(28, 51, 46, 0.06);
}

.case-thumbnail {
  aspect-ratio: 16/9;
  background-color: var(--brand-forest-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gold);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  padding: 1.5rem;
}

.case-card-body {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.case-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.case-tag {
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: rgba(197, 160, 89, 0.1);
  color: var(--brand-gold-hover);
  padding: 0.4rem 1rem;
  border-radius: 20px;
}

.case-brief {
  font-size: 0.9rem;
  line-height: 1.6;
}

.case-action-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brand-forest-green);
  letter-spacing: 0.05em;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition-fast);
}

.case-card:hover .case-action-link {
  color: var(--brand-gold);
}

/* Case overlay details modal */
.case-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(28, 51, 46, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 5%;
}

.case-modal-box {
  background-color: var(--bg-color-clean);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: 12px;
  overflow-y: auto;
  border: 1px solid var(--border-gold);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  scrollbar-color: #C87A38 rgba(28, 51, 46, 0.25);
  scrollbar-width: thin;
}

/* Custom Orange Scrollbar for Case Modal */
.case-modal-box::-webkit-scrollbar {
  width: 8px;
}
.case-modal-box::-webkit-scrollbar-track {
  background: rgba(28, 51, 46, 0.25);
  border-radius: 4px;
}
.case-modal-box::-webkit-scrollbar-thumb {
  background: #C87A38;
  border-radius: 4px;
}
.case-modal-box::-webkit-scrollbar-thumb:hover {
  background: #E29B4D;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.case-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background-color: var(--brand-forest-green);
  border: 1px solid var(--border-gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 5;
}

.case-modal-close:hover {
  transform: rotate(90deg);
  background-color: var(--brand-gold);
}

.case-modal-header {
  background-color: var(--brand-forest-green);
  padding: 4rem 3rem 3rem 3rem;
  color: var(--text-light);
  border-bottom: 3px solid #C87A38;
}

.case-modal-body {
  padding: 3rem;
}

.case-step-section {
  margin-bottom: 2.5rem;
}

.case-step-section:last-child {
  margin-bottom: 0;
}

.case-step-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.case-step-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
}

/* --- Contato Grid & Form --- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

@media (min-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr 1.5fr;
  }
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background-color: var(--brand-forest-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gold);
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid var(--border-gold);
}

.contact-info-text strong {
  display: block;
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--brand-gold-hover);
  margin-bottom: 0.4rem;
}

.contact-info-text p, .contact-info-text a {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-dark);
  text-decoration: none;
  line-height: 1.5;
}

.contact-info-text a:hover {
  color: var(--brand-gold);
}

.contact-form-card {
  background-color: var(--bg-color-pure);
  border: 1px solid var(--border-light);
  padding: 4rem 3.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(28, 51, 46, 0.02);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
}

@media (min-width: 768px) {
  .form-grid.two-cols {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-forest-green);
  margin-bottom: 0.6rem;
}

.form-control {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 1rem 1.2rem;
  border-radius: 6px;
  background-color: var(--bg-color-clean);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--brand-gold);
  background-color: var(--bg-color-pure);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.1);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-submit-btn {
  width: 100%;
  margin-top: 1rem;
  cursor: pointer;
}

.form-success-message {
  display: none;
  background-color: rgba(46, 125, 50, 0.1);
  border: 1px solid rgba(46, 125, 50, 0.2);
  color: #2e7d32;
  padding: 1.5rem;
  border-radius: 6px;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 500;
  margin-top: 1.5rem;
}

/* --- Footer --- */
footer {
  background-color: var(--brand-forest-green);
  color: var(--text-light);
  padding: 5rem 8% 3rem 8%;
  border-top: 2px solid var(--brand-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-column.brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  height: 60px;
  align-self: flex-start;
  background-color: rgba(250, 249, 246, 0.05);
  border: 1px solid rgba(250, 249, 246, 0.1);
  padding: 6px 12px;
  border-radius: 4px;
}

.footer-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.footer-slogan {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--brand-gold);
  border-left: 2px solid var(--brand-gold);
  padding-left: 1rem;
}

.footer-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brand-gold);
  letter-spacing: 0.1em;
  margin-bottom: 1.8rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(250, 249, 246, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand-gold);
}

.footer-contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(250, 249, 246, 0.7);
}

.footer-bottom {
  border-top: 1px solid rgba(250, 249, 246, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(250, 249, 246, 0.5);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* --- Mobile / Tablet Adaptations --- */
@media (max-width: 768px) {
  section.content-section {
    padding: 5rem 5% 4rem 5%;
  }
  .section-title,
  .reveal-heading,
  h1, h2 {
    font-size: clamp(1.4rem, 5.2vw, 1.75rem) !important;
    line-height: 1.28 !important;
    word-wrap: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }
  .cta-button-container {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  .cta-button {
    width: 100%;
  }
  .partner-card, .contact-form-card, .cases-cta-box {
    padding: 2.5rem 1.5rem;
  }
  .tab-buttons {
    justify-content: center;
  }
  .tab-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
  }
  .accordion-header {
    padding: 1.5rem 1.5rem;
  }
  .accordion-title {
    font-size: 1.1rem;
  }
  .accordion-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }

  /* Mobile navigation drawer styles */
  .menu-toggle {
    display: flex;
  }

  .nav-cta {
    display: none !important;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-color-pure);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2rem;
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    z-index: 98;
    border-left: 1px solid var(--border-light);
    pointer-events: auto;
  }

  nav.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
  }

  .nav-links a {
    font-size: 1.2rem;
    color: var(--text-dark);
  }

  .nav-mobile-cta {
    display: block;
    margin-top: 3rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bg-color-clean);
    background-color: var(--brand-forest-green);
    padding: 1rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    border: 1px solid var(--brand-forest-green);
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 15px rgba(28, 51, 46, 0.1);
    pointer-events: auto;
  }

  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(28, 51, 46, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 97;
  }

  .nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Preloader Bypass on Mobile (PageSpeed Optimization) */
  #preloader {
    display: none !important;
  }

  header {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .logo-badge {
    height: 56px;
    padding: 2px 6px;
  }

  .hero-frame-letters {
    opacity: 1 !important;
    scale: 1 !important;
  }
}

/* ==========================================================================
   SOBRE NÓS - NARRATIVA VISUAL & ESTRUTURA EXPANDIDA
   ========================================================================== */

/* Timeline Histórica (João Alberto) */
.historical-timeline {
  position: relative;
  max-width: 960px;
  margin: 3rem auto 0 auto;
  padding-left: 2.5rem;
  border-left: 2px solid rgba(197, 160, 89, 0.35);
}

.timeline-phase {
  position: relative;
  margin-bottom: 3.5rem;
  padding-left: 2rem;
}

.timeline-phase:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -3.35rem;
  top: 0.15rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--brand-forest-green);
  border: 2px solid var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gold);
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(197, 160, 89, 0.25);
}

.timeline-number {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--brand-gold);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  display: block;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--brand-forest-green);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.timeline-desc {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 0.8rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.timeline-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.85rem;
  background-color: rgba(28, 51, 46, 0.04);
  border: 1px solid rgba(28, 51, 46, 0.12);
  border-radius: 20px;
  color: var(--brand-forest-green);
  font-weight: 600;
}

.timeline-callout {
  margin-top: 1rem;
  padding: 1.2rem 1.6rem;
  background-color: rgba(197, 160, 89, 0.08);
  border-left: 3px solid var(--brand-gold);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Sistema de 3 Capítulos Contemporâneos (Danilo Rezende) */
.chapters-grid {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  max-width: 1000px;
  margin: 3rem auto 0 auto;
}

.chapter-card {
  background-color: var(--bg-color-pure);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 3.5rem 3rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.chapter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(28, 51, 46, 0.08);
  border-color: rgba(197, 160, 89, 0.4);
}

.chapter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--brand-gold), var(--brand-forest-green));
}

.chapter-header {
  margin-bottom: 1.8rem;
}

.chapter-num {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--brand-gold);
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.3rem;
}

.chapter-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--brand-forest-green);
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.chapter-subtitle {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--brand-gold);
  font-weight: 600;
  margin-top: 0.2rem;
}

.chapter-body {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 2rem;
}

.chapter-subheading {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--brand-forest-green);
  margin: 1.8rem 0 1rem 0;
  font-weight: 700;
}

.chapter-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.8rem;
  padding: 0;
}

.chapter-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-dark);
}

.chapter-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--brand-gold);
  font-weight: bold;
}

.chapter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}

.chapter-chip {
  display: inline-block;
  padding: 0.45rem 1rem;
  background-color: rgba(28, 51, 46, 0.04);
  border: 1px solid rgba(28, 51, 46, 0.12);
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-forest-green);
}

.chapter-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.chapter-project-box {
  background-color: var(--bg-color-clean);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.3rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.chapter-project-box:hover {
  transform: translateY(-2px);
  border-color: var(--brand-gold);
}

.chapter-project-box strong {
  display: block;
  font-family: var(--font-serif);
  color: var(--brand-forest-green);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.chapter-project-box span {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-body);
  display: block;
}

.chapter-result-box {
  background-color: rgba(28, 51, 46, 0.03);
  border: 1px solid rgba(28, 51, 46, 0.12);
  border-radius: 8px;
  padding: 1.4rem 1.8rem;
  margin-bottom: 1.8rem;
}

.chapter-result-box strong {
  font-family: var(--font-serif);
  color: var(--brand-forest-green);
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.chapter-result-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.chapter-result-pill {
  background-color: var(--brand-forest-green);
  color: var(--bg-color-clean);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.chapter-takeaway {
  padding: 1.3rem 1.8rem;
  background-color: rgba(197, 160, 89, 0.08);
  border-left: 3px solid var(--brand-gold);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--brand-forest-green);
  font-weight: 500;
}

/* Convergência das Trajetórias */
.convergence-card {
  background: linear-gradient(135deg, var(--brand-forest-green) 0%, #12221e 100%);
  color: var(--bg-color-clean);
  padding: 4.5rem 3.5rem;
  border-radius: 12px;
  border: 1px solid rgba(197, 160, 89, 0.3);
  box-shadow: 0 20px 50px rgba(18, 34, 30, 0.3);
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}

.convergence-card::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.convergence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 2.5rem 0;
  align-items: stretch;
}

.convergence-col {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 8px;
  padding: 2.2rem 2rem;
}

.convergence-col h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--brand-gold);
  margin-bottom: 1rem;
}

.convergence-col p {
  font-size: 1rem;
  line-height: 1.65;
  opacity: 0.92;
}

.convergence-highlight {
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid var(--brand-gold);
  border-radius: 8px;
  padding: 2rem 2.2rem;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--bg-color-clean);
  margin-top: 2rem;
}

/* Da Experiência ao Método - QA Grid */
.method-qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0 2.5rem 0;
}

.method-qa-card {
  background: var(--bg-color-pure);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2.2rem 1.6rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.method-qa-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-gold);
}

.method-qa-dimension {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--brand-forest-green);
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: block;
}

.method-qa-question {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-dark);
  font-style: italic;
}

/* Filosofia (3 Pilares) */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.philosophy-card {
  background-color: var(--bg-color-pure);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.philosophy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--brand-gold);
}

.philosophy-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--brand-forest-green);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.philosophy-card p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-body);
}

/* Valores Estendidos */
.values-grid-extended {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.value-card {
  background-color: var(--bg-color-pure);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2rem 1.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.value-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-gold);
}

.value-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--brand-forest-green);
  margin-bottom: 0.6rem;
}

.value-card p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-body);
}

/* --- Closing Section (Dark Forest Theme) --- */
.closing-section {
  background: linear-gradient(180deg, var(--brand-forest-green) 0%, #12221e 100%);
  color: var(--bg-color-clean);
  padding: 6.5rem 5% 6rem 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-gold);
}

.closing-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: radial-gradient(circle, var(--brand-gold) 0%, transparent 80%);
}

.closing-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.closing-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  line-height: 1.25;
  color: var(--bg-color-clean);
  margin-bottom: 1.8rem;
}

.closing-description {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(250, 249, 246, 0.9);
  max-width: 780px;
  margin: 0 auto 1.2rem auto;
}

.closing-highlight-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 600;
  color: var(--brand-gold);
  margin-bottom: 2.5rem;
}

/* Dual CTA */
.closing-cta-dual {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* Primary Button in Closing Section */
.closing-section .cta-button:not(.secondary) {
  background-color: var(--brand-gold);
  color: var(--brand-forest-green);
  border: 1.5px solid var(--brand-gold);
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.15rem 2.2rem;
  border-radius: 40px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.closing-section .cta-button:not(.secondary):hover {
  background-color: var(--bg-color-clean);
  color: var(--brand-forest-green);
  border-color: var(--bg-color-clean);
  box-shadow: 0 12px 35px rgba(250, 249, 246, 0.25);
  transform: translateY(-3px);
}

/* Secondary Button in Closing Section */
.closing-section .cta-button.secondary {
  background-color: transparent;
  color: var(--bg-color-clean);
  border: 1.5px solid var(--brand-gold);
  font-weight: 600;
  box-shadow: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.15rem 2.2rem;
  border-radius: 40px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.closing-section .cta-button.secondary:hover {
  background-color: var(--brand-gold);
  color: var(--brand-forest-green);
  border-color: var(--brand-gold);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.3);
  transform: translateY(-3px);
}

/* Responsividade Mobile para Novos Componentes */
@media (max-width: 768px) {
  h1, h2, h3, .section-title, .reveal-heading, .closing-title, .chapter-title {
    word-break: normal !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
    hyphens: none !important;
  }
  .historical-timeline {
    padding-left: 1.5rem;
  }
  .timeline-phase {
    padding-left: 1rem;
    margin-bottom: 2.5rem;
  }
  .timeline-marker {
    left: -2.35rem;
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }
  .chapter-card {
    padding: 2.2rem 1.6rem;
  }
  .chapter-title {
    font-size: 1.55rem;
  }
  .convergence-card {
    padding: 2.5rem 1.6rem;
  }
  .convergence-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .convergence-highlight {
    font-size: 1.15rem;
    padding: 1.5rem 1.2rem;
  }
  .closing-cta-dual {
    flex-direction: column;
    width: 100%;
  }
  .closing-cta-dual .cta-button {
    width: 100%;
    text-align: center;
  }
}


/* --- Creative WhatsApp Contact Card --- */
.contact-whatsapp-card {
  background-color: var(--bg-color-pure);
  border: 1px solid var(--border-light);
  padding: 4rem 3.5rem;
  border-radius: 16px;
  box-shadow: 0 15px 45px rgba(28, 51, 46, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  position: relative;
  overflow: hidden;
}

.contact-whatsapp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #25D366 0%, #128C7E 50%, var(--brand-gold) 100%);
}

.online-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: rgba(37, 211, 102, 0.1);
  color: #1a7a3e;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(37, 211, 102, 0.2);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-card-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--brand-forest-green);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.whatsapp-card-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-body);
}

.whatsapp-direct-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #1C332E 0%, #254b42 100%);
  color: var(--text-light) !important;
  text-decoration: none;
  padding: 1.4rem 1.8rem;
  border-radius: 12px;
  border: 1px solid var(--border-gold);
  box-shadow: 0 10px 25px rgba(28, 51, 46, 0.15);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 1.2rem;
}

.whatsapp-direct-btn:hover {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-color: #25D366;
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn-icon {
  width: 48px;
  height: 48px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.whatsapp-direct-btn:hover .whatsapp-btn-icon {
  background-color: #FFFFFF;
  color: #128C7E;
  transform: scale(1.1);
}

.whatsapp-btn-text {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.whatsapp-btn-headline {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.whatsapp-btn-subline {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 0.2rem;
}

.whatsapp-btn-arrow {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.whatsapp-direct-btn:hover .whatsapp-btn-arrow {
  transform: translateX(5px);
}

.whatsapp-card-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

@media (min-width: 600px) {
  .whatsapp-card-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
}

.feature-icon {
  font-size: 1.1rem;
}


/* --- Mobile Performance & Instant FCP --- */
@media (max-width: 768px) {
  #preloader {
    display: none !important;
  }
  header {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  .custom-cursor, .custom-cursor-follower {
    display: none !important;
  }
}
