/* ==========================================================================
   ABOUT US - MODERN DESIGN 2025
   Webmania® - Paleta oficial: #00695A, #F0FFEB, #021A1A
   ========================================================================== */

/* Custom Properties - Paleta Webmania */
:root {
  --wm-green-primary: #00695A;
  --wm-green-light: #F0FFEB;
  --wm-dark: #021A1A;
  --wm-green-soft: #E8F5E9;
  --wm-green-accent: #2CC295;
  --wm-text-dark: #1a1a1a;
  --wm-text-medium: #4a5568;
  --wm-text-light: #718096;
  --wm-white: #ffffff;
  --wm-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --wm-transition-slow: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

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

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

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

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes dash {
  to { stroke-dashoffset: 0; }
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(25px);
  transition: var(--wm-transition-slow);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ==========================================================================
   HERO SECTION - Cores Webmania
   ========================================================================== */
.about-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--wm-dark) 0%, var(--wm-green-primary) 100%);
  padding: 12rem 2rem 8rem;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 105, 90, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(44, 194, 149, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

/* Pattern decorativo */
.about-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Fade para branco na parte inferior */
.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, var(--wm-white) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  background: rgba(240, 255, 235, 0.1);
  border: 1px solid rgba(240, 255, 235, 0.2);
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--wm-green-light);
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--wm-white);
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-title span {
  color: var(--wm-green-accent);
}

.hero-subtitle {
  font-size: 1.8rem;
  color: rgba(240, 255, 235, 0.8);
  font-weight: 400;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: clamp(96px, 14vh, 180px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  animation: float-center 2.5s ease-in-out infinite;
  text-decoration: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
}

.hero-scroll span {
  font-size: 1.1rem;
  color: rgba(240, 255, 235, 0.5);
  letter-spacing: 0.1em;
}

.hero-scroll-line {
  position: relative;
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--wm-green-accent), transparent);
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(44, 194, 149, 0.9);
  border-bottom: 2px solid rgba(44, 194, 149, 0.9);
  transform: translateX(-50%) rotate(45deg);
}

.hero-scroll:focus-visible {
  outline: 2px solid rgba(44, 194, 149, 0.7);
  outline-offset: 4px;
}

/* ==========================================================================
   FOUNDERS SECTION
   ========================================================================== */
.founders-section {
  padding: 8rem 0;
  background: var(--wm-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.section-label {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wm-green-primary);
  margin-bottom: 1.2rem;
}

.section-title {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
  color: var(--wm-text-dark);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.section-desc {
  font-family: "Inter", sans-serif;
  font-size: 1.6rem;
  color: var(--wm-text-medium);
  line-height: 1.7;
}

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

.founder-card {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 20px;
  background: var(--wm-green-light);
  border: 1px solid rgba(0, 105, 90, 0.08);
  transition: var(--wm-transition);
}

.founder-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 105, 90, 0.12);
}

.founder-img {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 1.5rem;
}

.founder-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--wm-white);
  box-shadow: 0 8px 24px rgba(0, 105, 90, 0.15);
}

.founder-img::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid var(--wm-green-primary);
  border-radius: 50%;
  opacity: 0;
  transition: var(--wm-transition);
}

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

.founder-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wm-text-dark);
  margin-bottom: 0.4rem;
}

.founder-role {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--wm-green-primary);
  margin-bottom: 1.2rem;
}

.founder-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--wm-white);
  border-radius: 50%;
  border: 1px solid rgba(0, 105, 90, 0.15);
  transition: var(--wm-transition);
}

.founder-linkedin:hover {
  background: var(--wm-green-primary);
  border-color: var(--wm-green-primary);
}

.founder-linkedin:hover svg {
  fill: var(--wm-white);
}

.founder-linkedin svg {
  width: 18px;
  height: 18px;
  fill: var(--wm-green-primary);
  transition: var(--wm-transition);
}

/* ==========================================================================
   STORY SECTION
   ========================================================================== */
.story-section {
  padding: 8rem 0;
  background: var(--wm-green-light);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.story-content .section-label {
  margin-bottom: 1rem;
}

.story-content .section-title {
  margin-bottom: 2rem;
}

.story-text {
  font-family: "Inter", sans-serif;
  font-size: 1.6rem;
  color: var(--wm-text-medium);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.story-text strong {
  color: var(--wm-green-primary);
  font-weight: 600;
}

/* Ilustração moderna */
.story-visual {
  position: relative;
}

.story-illustration {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.story-illustration svg {
  width: 100%;
  height: auto;
}

.story-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--wm-white);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 105, 90, 0.15);
  text-align: center;
}

.story-badge-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--wm-green-primary);
  line-height: 1;
}

.story-badge-label {
  font-size: 1.3rem;
  color: var(--wm-text-medium);
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.stats-section {
  padding: 6rem 0;
  background: var(--wm-dark);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 0% 50%, rgba(0, 105, 90, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 100% 50%, rgba(44, 194, 149, 0.2) 0%, transparent 40%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--wm-transition);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-5px);
}

.stat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--wm-green-primary), var(--wm-green-accent));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--wm-white);
}

.stat-number {
  font-size: clamp(2.8rem, 4vw, 4rem);
  font-weight: 800;
  color: var(--wm-white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--wm-green-accent);
  margin-bottom: 0.8rem;
}

.stat-desc {
  font-family: "Inter", sans-serif;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

/* ==========================================================================
   GALLERY SECTION
   ========================================================================== */
.gallery-section {
  padding: 8rem 0;
  background: var(--wm-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 220px);
  grid-template-areas:
    "hero hero top top"
    "hero hero building book"
    "bottom-left bottom-left bottom-right bottom-right";
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item--hero { grid-area: hero; }
.gallery-item--top { grid-area: top; }
.gallery-item--building { grid-area: building; }
.gallery-item--book { grid-area: book; }
.gallery-item--bottom-left { grid-area: bottom-left; }
.gallery-item--bottom-right { grid-area: bottom-right; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item--hero img {
  object-position: left top;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item--quote {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--wm-green-primary), var(--wm-dark));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
}

.gallery-quote-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.gallery-quote-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--wm-white);
}

.gallery-quote-text {
  font-size: 1.6rem;
  color: var(--wm-white);
  line-height: 1.6;
  font-style: italic;
}

/* ==========================================================================
   TIMELINE SECTION - Simple Grid
   ========================================================================== */
.timeline-section {
  padding: 8rem 0;
  background: var(--wm-green-light);
  height: auto;
  max-height: none;
  margin-bottom: 0;
  overflow: visible;
}

.timeline-simple {
  max-width: 1200px;
  margin: 0 auto;
}

.timeline-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.timeline-row:last-child {
  margin-bottom: 0;
}

.timeline-card {
  background: var(--wm-white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 105, 90, 0.08);
  transition: var(--wm-transition);
  border-left: 4px solid var(--wm-green-primary);
}

.timeline-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 105, 90, 0.15);
}

.timeline-year {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--wm-white);
  background: var(--wm-green-primary);
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

.timeline-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wm-text-dark);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.timeline-desc {
  font-family: "Inter", sans-serif;
  font-size: 1.4rem;
  color: var(--wm-text-medium);
  line-height: 1.6;
  margin: 0;
}

/* Highlighted timeline cards */
.timeline-card--highlight {
  background: linear-gradient(135deg, var(--wm-green-primary), var(--wm-dark));
  border-left-color: var(--wm-green-accent);
}

.timeline-card--highlight .timeline-year {
  background: rgba(255, 255, 255, 0.2);
}

.timeline-card--highlight .timeline-title,
.timeline-card--highlight .timeline-desc {
  color: var(--wm-white);
}

.timeline-card--highlight:hover {
  box-shadow: 0 20px 50px rgba(0, 105, 90, 0.3);
}

/* ==========================================================================
   MVV SECTION (Mission, Vision, Values)
   ========================================================================== */
.mvv-section {
  padding: 8rem 0;
  background: var(--wm-white);
  position: relative;
  z-index: 2;
}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  align-items: stretch;
}

.mvv-card {
  padding: 3rem 2.5rem;
  border-radius: 20px;
  background: var(--wm-green-light);
  border: 1px solid rgba(0, 105, 90, 0.08);
  transition: var(--wm-transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mvv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--wm-green-primary), var(--wm-green-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.mvv-card:hover::before {
  transform: scaleX(1);
}

.mvv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 105, 90, 0.1);
}

.mvv-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  background: var(--wm-white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 105, 90, 0.1);
  transition: var(--wm-transition);
  flex-shrink: 0;
}

.mvv-card:hover .mvv-icon {
  background: var(--wm-green-primary);
}

.mvv-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--wm-green-primary);
  transition: var(--wm-transition);
}

.mvv-card:hover .mvv-icon svg {
  fill: var(--wm-white);
}

.mvv-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wm-green-primary);
  margin-bottom: 0.8rem;
}

.mvv-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wm-text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.mvv-desc {
  font-family: "Inter", sans-serif;
  font-size: 1.4rem;
  color: var(--wm-text-medium);
  line-height: 1.7;
  margin: 0;
  flex-grow: 1;
}

/* Overrides para CSS legado (about-us.css) */
#company-about-us-section,
#company-mission-section {
  padding-top: 8rem !important;
}

#company-view-section,
#company-values-section {
  padding-top: 3rem !important;
}

/* ==========================================================================
   VALUES SECTION
   ========================================================================== */
.values-section {
  padding: 8rem 0;
  background: var(--wm-dark);
  position: relative;
  overflow: hidden;
}

.values-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 70%, rgba(0, 105, 90, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(44, 194, 149, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.values-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
  position: relative;
  z-index: 1;
}

.values-header .section-label {
  color: var(--wm-green-accent);
}

.values-header .section-title {
  color: var(--wm-white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.value-card {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  transition: var(--wm-transition);
  position: relative;
}

.value-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-5px);
}

.value-number {
  position: absolute;
  top: -15px;
  left: 25px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--wm-green-primary), var(--wm-green-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wm-white);
  box-shadow: 0 8px 20px rgba(0, 105, 90, 0.4);
}

.value-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wm-white);
  margin: 1.5rem 0 1rem;
}

.value-text {
  font-family: "Inter", sans-serif;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.value-illustration {
  margin-top: 2rem;
  text-align: center;
}

.value-illustration svg {
  width: 100%;
  max-width: 120px;
  height: auto;
  opacity: 0.3;
  transition: var(--wm-transition);
}

.value-card:hover .value-illustration svg {
  opacity: 0.5;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 1024px) {
  .founders-grid,
  .stats-grid,
  .mvv-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .founders-grid .founder-card:last-child {
    grid-column: span 2;
    max-width: 350px;
    margin: 0 auto;
  }
  
  .story-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .story-visual {
    order: -1;
    max-width: 450px;
    margin: 0 auto;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 200px);
    grid-template-areas:
      "hero hero"
      "hero hero"
      "top top"
      "building book"
      "bottom-left bottom-left"
      "bottom-right bottom-right";
  }
}

@media (max-width: 768px) {
  .about-hero {
    min-height: 70vh;
    padding: 10rem 1.5rem 6rem;
  }
  
  .hero-subtitle {
    font-size: 1.6rem;
  }
  
  .hero-scroll {
    bottom: clamp(72px, 10vh, 120px);
  }
  
  .hero-fade {
    height: 100px;
  }
  
  .founders-section,
  .story-section,
  .gallery-section,
  .timeline-section,
  .mvv-section,
  .values-section {
    padding: 5rem 0;
  }

  #company-about-us-section,
  #company-mission-section {
    padding-top: 5rem !important;
  }
  
  .section-header {
    margin-bottom: 3rem;
  }
  
  .founders-grid,
  .stats-grid,
  .mvv-grid,
  .values-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .founders-grid .founder-card:last-child {
    grid-column: span 1;
    max-width: none;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 240px repeat(5, 180px);
    grid-template-areas:
      "hero"
      "top"
      "building"
      "book"
      "bottom-left"
      "bottom-right";
  }
  
  /* Timeline mobile */
  .timeline-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .timeline-card {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .about-hero {
    min-height: 60vh;
  }
  
  .hero-badge {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .founder-card,
  .mvv-card,
  .value-card,
  .stat-item,
  .timeline-card {
    padding: 2rem 1.5rem;
  }
  
  .timeline-title {
    font-size: 1.6rem;
  }
  
  .timeline-desc {
    font-size: 1.3rem;
  }
}

/* Hide old page elements */
.about-us-hero,
.about-us-intro,
.about-us-medium,
.about-us-cases,
.about-us-photos-mosaic,
.api-release,
.timeline-section:not(.timeline-section),
.consolidations,
.mission-intro,
.view,
.divider-icon-box,
.company-values,
.header-sections,
#divider-about-us,
.divider {
  display: none !important;
}
