/* ==========================================================================
   SOBRE (About) Page Styles — Proffunda
   Enterprise-grade corporate design inspired by Kiewit.com.
   Dramatic dark/light alternation, heavy visual weight.
   Depends on custom properties from style.css.
   Mobile-first. Breakpoints: 480px, 768px, 1024px.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. SOBRE-CONTEUDO — Wrapper for zig-zag content blocks
   Alternating dark / light backgrounds create Kiewit-style dramatic contrast
   -------------------------------------------------------------------------- */

.sobre-conteudo {
  padding: 0;
}

/* ---- Dark block background (first block) ---- */
.sobre-conteudo .bloco-info {
  background-color: #191919;
  padding: 3.5rem 5%;
}

/* ---- Light block background (reversed / second block) ---- */
.sobre-conteudo .bloco-info--reverse {
  background-color: var(--cor-branco);
  padding: 3.5rem 5%;
}


/* --------------------------------------------------------------------------
   2. BLOCO-INFO — Two-column zig-zag block (text / image)
   -------------------------------------------------------------------------- */

.bloco-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.bloco-info:last-child {
  margin-bottom: 0;
}

/* Subtle background texture for dark blocks */
.sobre-conteudo .bloco-info:not(.bloco-info--reverse)::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(54, 118, 48, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(54, 118, 48, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}


/* --- Text column -------------------------------------------------------- */

.bloco-info-text {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

/* --- Overline (green prefix line + label) --- */

.bloco-info-text .overline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-principal);
  font-size: var(--texto-overline, 0.75rem);
  font-weight: var(--peso-bold);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--cor-verde);
  margin-bottom: 0.75rem;
  position: relative;
  line-height: 1.4;
}

.bloco-info-text .overline::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--cor-verde, #367630);
  flex-shrink: 0;
}

/* --- Section title (serif, bold, dramatic) --- */

.bloco-info-text .section-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: var(--texto-h2);
  font-weight: var(--peso-bold);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

/* Dark bg: white headings */
.sobre-conteudo .bloco-info:not(.bloco-info--reverse) .bloco-info-text .section-title {
  color: var(--cor-branco);
}

/* Light bg: dark headings */
.sobre-conteudo .bloco-info--reverse .bloco-info-text .section-title {
  color: var(--cor-grafite);
}

/* --- Paragraph text --- */

.bloco-info-text p {
  font-family: var(--font-principal);
  font-size: var(--texto-body);
  font-weight: var(--peso-light);
  line-height: 1.85;
  margin: 0 0 1.15rem;
}

.bloco-info-text p:last-child {
  margin-bottom: 0;
}

/* Dark bg: light gray paragraphs */
.sobre-conteudo .bloco-info:not(.bloco-info--reverse) .bloco-info-text p {
  color: rgba(255, 255, 255, 0.68);
}

/* Light bg: dark paragraphs */
.sobre-conteudo .bloco-info--reverse .bloco-info-text p {
  color: var(--cor-cinza-escuro);
}


/* --- Image column ------------------------------------------------------- */

.bloco-info-image {
  flex: 1 1 45%;
  position: relative;
  min-height: 260px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 1;
}

.bloco-info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bloco-info:hover .bloco-info-image img {
  transform: scale(1.04);
}

/* Green accent line at bottom of image */
.bloco-info-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--cor-verde), rgba(74, 158, 66, 0.3), transparent);
  z-index: 2;
  border-radius: 0 0 10px 10px;
}

.bloco-info--reverse .bloco-info-image::after {
  background: linear-gradient(270deg, var(--cor-verde), rgba(74, 158, 66, 0.3), transparent);
}


/* --------------------------------------------------------------------------
   3. SOBRE-VALORES — Values / Pillars section
   Dark, dramatic like Kiewit's corporate sections
   -------------------------------------------------------------------------- */

.sobre-valores {
  background-color: #191919;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

/* Subtle radial pattern */
.sobre-valores::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(54, 118, 48, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(54, 118, 48, 0.04) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

/* Section header text on dark bg */
.sobre-valores .section-header {
  position: relative;
  z-index: 1;
}

.sobre-valores .section-header .overline {
  color: #4A9E42;
}

.sobre-valores .section-header .section-title {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--cor-branco);
}

/* --- Values Grid ------------------------------------------------------- */

.valores-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

/* --- Individual value card ---------------------------------------------- */

.valor-item {
  padding: 2.25rem 1.75rem 2.25rem 28px;
  background-color: #222222;
  border-radius: 8px;
  text-align: left;
  position: relative;
  transition:
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-left: 4px solid var(--cor-verde, #367630);
}

.valor-item:hover {
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.15),
    0 0 40px rgba(54, 118, 48, 0.06);
  transform: translateY(-6px);
  border-color: rgba(54, 118, 48, 0.15);
  border-left-color: var(--cor-verde, #367630);
}

/* Corporate numbered prefix */
.valor-number {
  display: block;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cor-verde, #367630);
  line-height: 1;
  margin-bottom: 16px;
}

/* White title (serif) */
.valor-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: var(--texto-h3);
  font-weight: var(--peso-bold);
  color: var(--cor-branco);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

/* Gray-light text */
.valor-text {
  font-family: var(--font-principal);
  font-size: var(--texto-body);
  font-weight: var(--peso-light);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
  margin: 0;
}


/* --------------------------------------------------------------------------
   4. SOBRE-METRICAS — Full-width dark green-tinted metrics bar
   -------------------------------------------------------------------------- */

.sobre-metricas {
  background-color: #1B3D2E;
  padding: 3.5rem 5%;
  position: relative;
  overflow: hidden;
}

/* Subtle background pattern with radial gradients */
.sobre-metricas::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(74, 158, 66, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 85% 50%, rgba(74, 158, 66, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 50% 0%, rgba(54, 118, 48, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Top border accent */
.sobre-metricas::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cor-verde), transparent);
  z-index: 1;
}

/* --- Metrics Grid ------------------------------------------------------ */

.metricas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* --- Individual metric ------------------------------------------------- */

.metrica-item {
  padding: 1.25rem 0.75rem;
  position: relative;
}

/* Vertical dividers between items (hidden by default, shown on desktop) */
.metrica-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 0;
  width: 1px;
  height: 80%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  display: none;
}

/* --- Enormous metric number --- */

.metrica-number {
  font-family: var(--font-principal);
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: var(--peso-extrabold);
  color: #4A9E42;
  line-height: 1.05;
  margin: 0 0 0.5rem;
  display: block;
  letter-spacing: -0.02em;
}

.metrica-suffix {
  font-family: var(--font-principal);
  font-weight: var(--peso-extrabold);
  color: #4A9E42;
}

/* --- Metric label --- */

.metrica-label {
  font-family: var(--font-principal);
  font-size: var(--texto-small, 0.85rem);
  font-weight: var(--peso-regular);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
}


/* --- Number count-up animation (scroll-triggered) ---------------------- */

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

@keyframes numberPop {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  60% {
    transform: translateY(-4px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.metrica-item.is-visible .metrica-number {
  animation: numberPop 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.metrica-item:nth-child(2).is-visible .metrica-number {
  animation-delay: 0.12s;
}

.metrica-item:nth-child(3).is-visible .metrica-number {
  animation-delay: 0.24s;
}

.metrica-item:nth-child(4).is-visible .metrica-number {
  animation-delay: 0.36s;
}

/* Fade-in for labels */
.metrica-item.is-visible .metrica-label {
  animation: fadeInUp 0.6s ease forwards;
}

.metrica-item:nth-child(2).is-visible .metrica-label {
  animation-delay: 0.18s;
}

.metrica-item:nth-child(3).is-visible .metrica-label {
  animation-delay: 0.3s;
}

.metrica-item:nth-child(4).is-visible .metrica-label {
  animation-delay: 0.42s;
}


/* ==========================================================================
   RESPONSIVE — 480px (Large phones / Small tablets)
   ========================================================================== */

@media (min-width: 480px) {

  /* Sobre conteudo blocks: slightly more padding */
  .sobre-conteudo .bloco-info,
  .sobre-conteudo .bloco-info--reverse {
    padding: 4rem 6%;
  }

  .bloco-info {
    gap: 2.5rem;
  }

  .bloco-info-image {
    min-height: 300px;
  }

  /* Values: 2-column on small tablets */
  .sobre-valores {
    padding: 4rem 0;
  }

  .valores-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Metrics: slightly larger numbers */
  .metrica-number {
    font-size: clamp(2.75rem, 5vw, 3.25rem);
  }

  .sobre-metricas {
    padding: 3.5rem 6%;
  }
}


/* ==========================================================================
   RESPONSIVE — 768px (Tablet portrait)
   ========================================================================== */

@media (min-width: 768px) {

  /* Content blocks: side-by-side layout */
  .sobre-conteudo .bloco-info,
  .sobre-conteudo .bloco-info--reverse {
    padding: 5rem 6%;
  }

  .bloco-info {
    flex-direction: row;
    align-items: stretch;
    gap: 3rem;
  }

  .bloco-info-text {
    padding: 2rem 0;
  }

  .bloco-info-image {
    min-height: 420px;
    border-radius: 10px;
    box-shadow:
      0 16px 48px rgba(0, 0, 0, 0.2),
      0 6px 16px rgba(0, 0, 0, 0.1);
  }

  /* Reversed block: image first, text second */
  .bloco-info--reverse {
    flex-direction: row-reverse;
  }

  /* Section title sizing bump */
  .bloco-info-text .section-title {
    font-size: calc(var(--texto-h2) * 1.05);
  }

  /* Values section spacing */
  .sobre-valores {
    padding: 5rem 0;
  }

  .valores-grid {
    gap: 2rem;
  }

  .valor-item {
    padding: 2.5rem 2rem 2.5rem 28px;
  }

  /* Metrics: 2x2 grid with more spacing */
  .sobre-metricas {
    padding: 4rem 6%;
  }

  .metricas-grid {
    gap: 3rem 2rem;
  }

  .metrica-number {
    font-size: clamp(3rem, 5vw, 3.75rem);
  }

  .metrica-label {
    font-size: 0.88rem;
    letter-spacing: 0.12em;
  }
}


/* ==========================================================================
   RESPONSIVE — 1024px (Desktop)
   ========================================================================== */

@media (min-width: 1024px) {

  /* Full-bleed dark/light blocks with generous padding */
  .sobre-conteudo {
    padding: 0;
  }

  .sobre-conteudo .bloco-info,
  .sobre-conteudo .bloco-info--reverse {
    padding: 6rem 8%;
  }

  .bloco-info {
    gap: 4rem;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
  }

  .bloco-info-text {
    padding: 3rem 0;
  }

  .bloco-info-text .section-title {
    font-size: calc(var(--texto-h2) * 1.15);
    margin-bottom: 1.75rem;
  }

  .bloco-info-text p {
    font-size: calc(var(--texto-body) * 1.02);
    line-height: 1.9;
  }

  .bloco-info-image {
    min-height: 500px;
    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.2),
      0 8px 24px rgba(0, 0, 0, 0.1);
  }

  /* Values grid — full 3 columns */
  .sobre-valores {
    padding: 6rem 0;
  }

  .valores-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .valor-item {
    padding: 2.75rem 2rem 2.75rem 28px;
  }

  /* Metrics — 4 in a row with dividers */
  .sobre-metricas {
    padding: 5rem 8%;
  }

  .metricas-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .metrica-item {
    padding: 1.5rem 2rem;
  }

  /* Show vertical dividers on desktop */
  .metrica-item:not(:last-child)::after {
    display: block;
  }

  .metrica-number {
    font-size: clamp(3.5rem, 5vw, 5rem);
    letter-spacing: -0.03em;
  }

  .metrica-label {
    font-size: 0.92rem;
    letter-spacing: 0.14em;
    margin-top: 0.25rem;
  }
}


/* ==========================================================================
   RESPONSIVE — 1280px+ (Large Desktop refinements)
   ========================================================================== */

@media (min-width: 1280px) {

  .sobre-conteudo .bloco-info,
  .sobre-conteudo .bloco-info--reverse {
    padding: 7rem 10%;
  }

  .bloco-info {
    gap: 5rem;
  }

  .bloco-info-text {
    padding: 3.5rem 0;
  }

  .bloco-info-image {
    min-height: 540px;
  }

  .sobre-metricas {
    padding: 5.5rem 10%;
  }

  .metrica-number {
    font-size: clamp(4rem, 5vw, 5rem);
  }
}


/* ==========================================================================
   REDUCED MOTION — Accessibility override
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

  .bloco-info-image img {
    transition: none;
  }

  .bloco-info:hover .bloco-info-image img {
    transform: none;
  }

  .valor-item {
    transition: none;
  }

  .valor-item:hover {
    transform: none;
  }

  .valor-item:hover .valor-number {
    transform: none;
  }

  .metrica-item.is-visible .metrica-number,
  .metrica-item.is-visible .metrica-label {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
