/* ============================================
   A FORJA — Página Institucional
   Premium Editorial Design
   ============================================ */

/* ---------- Active nav link ---------- */
.header__link--active {
  color: var(--accent) !important;
}
.header__link--active::after {
  width: 100% !important;
}

/* =============================================
   HERO INSTITUCIONAL
   ============================================= */
.af-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: visible;
  z-index: 2;
}

.af-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(140, 106, 59, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(140, 106, 59, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.af-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  padding-top: 160px;
  padding-bottom: 0;
  min-height: calc(100vh - 160px);
}

.af-hero__content {
  max-width: 700px;
  padding-bottom: 80px;
}

.af-hero__visual {
  position: relative;
  animation: fadeInUp 1.2s var(--ease) 0.5s both;
  align-self: end;
  height: 85vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.af-hero__img {
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
  mask-image:
    radial-gradient(ellipse 60% 55% at 50% 40%, black 30%, transparent 70%),
    linear-gradient(to bottom, black 50%, transparent 95%);
  -webkit-mask-image:
    radial-gradient(ellipse 60% 55% at 50% 40%, black 30%, transparent 70%),
    linear-gradient(to bottom, black 50%, transparent 95%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

.af-hero__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
  animation: fadeInUp 0.9s var(--ease) 0.2s both;
}

.af-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--text-primary);
  margin-bottom: 36px;
  animation: fadeInUp 0.9s var(--ease) 0.4s both;
}

.af-hero__subtitle {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 48px;
  animation: fadeInUp 0.9s var(--ease) 0.6s both;
}

.af-hero__line {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto;
  animation: fadeInUp 0.9s var(--ease) 0.8s both;
  box-shadow: 0 0 16px rgba(140, 106, 59, 0.3);
}

.af-hero__scroll {
  position: absolute;
  bottom: 40px;
  left: var(--container-px);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
  animation: fadeInUp 0.9s var(--ease) 1.2s both;
}

.af-hero__scroll-text {
  font-family: var(--font-heading);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =============================================
   SECTION COMMON (A Forja)
   ============================================= */
.af-section {
  padding: var(--section-py) 0;
  position: relative;
  z-index: 2;
}

.af-section--dark {
  background: var(--black);
}

.af-section--surface {
  background: var(--black-soft);
}

.af-section--cta {
  background: var(--black);
  text-align: center;
  overflow: hidden;
}

.af-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.af-section__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 72px;
}

.af-section__number {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--accent);
  opacity: 0.5;
}

.af-section__label {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =============================================
   SOBRE
   ============================================= */
.af-sobre__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 64px;
}

.af-sobre__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.af-sobre__col p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.9;
  margin-bottom: 24px;
  font-weight: 300;
}

.af-sobre__col p:last-child {
  margin-bottom: 0;
}

.af-sobre__destaque {
  font-family: var(--font-heading);
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
  color: var(--text-primary) !important;
  padding-left: 32px;
  border-left: 2px solid var(--accent);
}

/* =============================================
   MISSÃO & VISÃO
   ============================================= */
.af-mv {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.af-mv__card {
  padding: 56px;
  background: var(--black-card);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  transition: border-color 0.5s ease, background 0.5s ease;
}

.af-mv__card:hover {
  border-color: var(--border-accent);
  background: var(--surface);
}

.af-mv__icon {
  color: var(--accent);
  margin-bottom: 28px;
}

.af-mv__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.af-mv__text {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--text-secondary);
  font-weight: 300;
}

.af-mv__divider {
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.af-mv__divider::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

/* =============================================
   VALORES
   ============================================= */
.af-valores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}

.af-valor {
  background: var(--black);
  padding: 44px 36px;
  transition: all 0.4s var(--ease);
  position: relative;
}

.af-valor:hover {
  background: var(--black-card);
}

.af-valor__num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.af-valor__text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
  transition: color 0.4s ease;
}

.af-valor:hover .af-valor__text {
  color: var(--text-primary);
}

.af-valor::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 36px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.5s var(--ease);
  box-shadow: 0 0 8px rgba(140, 106, 59, 0.3);
}

.af-valor:hover::after {
  width: 40px;
}

/* =============================================
   EDITORIAL IMAGE
   ============================================= */
.af-editorial {
  position: relative;
  z-index: 2;
  padding: 20px 0;
  overflow: hidden;
}

.af-editorial__wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
  position: relative;
}

.af-editorial__wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(140, 106, 59, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.af-editorial__img {
  max-height: 400px;
  width: auto;
  filter: brightness(0.9) contrast(1.05);
  transition: filter 0.6s ease, transform 0.6s ease;
}

.af-editorial__img:hover {
  filter: brightness(1) contrast(1.1);
  transform: scale(1.02);
}

/* =============================================
   MANIFESTO
   ============================================= */
.af-manifesto {
  max-width: 720px;
  margin: 0 auto;
}

.af-manifesto__lead {
  margin-bottom: 64px;
}

.af-manifesto__lead p {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.af-manifesto__body {
  padding-left: 40px;
  border-left: 1px solid var(--border-subtle);
}

.af-manifesto__stanza {
  margin-bottom: 40px;
}

.af-manifesto__stanza p {
  font-size: 1.0625rem;
  line-height: 2.1;
  color: var(--text-muted);
  font-weight: 300;
}

.af-manifesto__stanza--accent p {
  color: var(--text-secondary);
  font-weight: 400;
}

.af-manifesto__quote {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
  margin: 52px 0;
  padding: 0;
  border: none;
  text-shadow: 0 0 40px rgba(140, 106, 59, 0.2);
}

.af-manifesto__signature {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}

.af-manifesto__brand {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.af-manifesto__slogan {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-muted);
}

/* =============================================
   AXIOMAS
   ============================================= */
.af-axiomas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.af-axioma {
  padding: 40px 36px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  transition: background 0.4s var(--ease);
}

.af-axioma:nth-child(3n) {
  border-right: none;
}

.af-axioma:nth-last-child(-n+3) {
  border-bottom: none;
}

.af-axioma:hover {
  background: var(--black-card);
}

.af-axioma__marker {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(140, 106, 59, 0.4);
  transition: box-shadow 0.4s ease;
}

.af-axioma:hover .af-axioma__marker {
  box-shadow: 0 0 18px rgba(140, 106, 59, 0.7);
}

.af-axioma p {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
  transition: color 0.4s ease;
}

.af-axioma:hover p {
  color: var(--text-primary);
}

/* =============================================
   CTA
   ============================================= */
.af-cta__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 50% 80%, rgba(140, 106, 59, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.af-cta {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.af-cta__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}

.af-cta__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.af-cta__subtitle {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 48px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .af-hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .af-hero__visual {
    max-width: 500px;
    margin: 0 auto;
    height: 50vh;
  }

  .af-sobre__content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .af-mv {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .af-mv__divider {
    width: auto;
    height: auto;
    padding: 0;
  }

  .af-mv__divider::after {
    width: 40px;
    margin: 0 auto;
  }

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

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

  .af-axioma:nth-child(3n) {
    border-right: 1px solid var(--border-subtle);
  }

  .af-axioma:nth-child(2n) {
    border-right: none;
  }

  .af-axioma:nth-last-child(-n+3) {
    border-bottom: 1px solid var(--border-subtle);
  }

  .af-axioma:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .af-hero__title {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .af-hero__scroll { display: none; }

  .af-sobre__destaque {
    padding-left: 24px;
  }

  .af-mv__card {
    padding: 40px 32px;
  }

  .af-valores {
    grid-template-columns: 1fr;
  }

  .af-valor {
    padding: 32px 28px;
  }

  .af-axiomas {
    grid-template-columns: 1fr;
  }

  .af-axioma {
    border-right: none !important;
  }

  .af-axioma:nth-last-child(-n+3) {
    border-bottom: 1px solid var(--border-subtle) !important;
  }

  .af-axioma:last-child {
    border-bottom: none !important;
  }

  .af-manifesto__body {
    padding-left: 24px;
  }

  .af-editorial__img {
    max-height: 280px;
  }
}

@media (max-width: 480px) {
  .af-valor { padding: 24px 20px; }
  .af-axioma { padding: 28px 20px; }
  .af-mv__card { padding: 32px 24px; }
}
