/* =========================================================
   ELO18 — V21
   Microinterações, sanfona mais leve e fita de cases na marca
   ========================================================= */

:root {
  --v21-ribbon-soft: #dce8e5;
  --v21-ribbon-line: rgba(44, 61, 81, .12);
  --v21-ribbon-ink: #2c3d51;
}

/* ---------------------------------------------------------------------
   01. HERO — acionadores com névoa viva em loop
   --------------------------------------------------------------------- */
@media (min-width: 901px) {
  .hero-quick-link {
    position: relative;
    isolation: isolate;
    width: 48px;
    max-width: none;
    overflow: visible;
    justify-content: flex-start;
    transition: width .42s var(--ease), border-color .32s, background .32s, transform .32s var(--ease), box-shadow .45s var(--ease);
    animation: v21-smoke-shadow 4.8s ease-in-out infinite;
  }

  .hero-quick-link::before,
  .hero-quick-link::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 999px;
  }

  .hero-quick-link::before {
    inset: -13px -17px;
    background:
      radial-gradient(circle at 28% 52%, rgba(72,169,166,.42), transparent 34%),
      radial-gradient(circle at 70% 38%, rgba(141,212,207,.22), transparent 39%),
      radial-gradient(circle at 48% 76%, rgba(216,92,50,.13), transparent 45%);
    filter: blur(13px);
    opacity: .58;
    transform: translate3d(-4px, 1px, 0) scale(.88);
    animation: v21-smoke-drift 5.6s ease-in-out infinite alternate;
  }

  .hero-quick-link::after {
    inset: -7px;
    border: 1px solid rgba(141,212,207,.12);
    box-shadow: inset 0 0 18px rgba(72,169,166,.11);
    opacity: .55;
    animation: v21-smoke-ring 3.8s ease-in-out infinite;
  }

  .hero-quick-link:nth-child(2),
  .hero-quick-link:nth-child(2)::before,
  .hero-quick-link:nth-child(2)::after {
    animation-delay: -2.15s;
  }

  .hero-quick-link:hover,
  .hero-quick-link:focus-visible {
    width: 245px;
    max-width: none;
    box-shadow: 0 0 32px rgba(72,169,166,.17), 0 16px 38px rgba(0,0,0,.24);
  }

  .hero-quick-link__icon,
  .hero-quick-link__text {
    position: relative;
    z-index: 2;
  }

  .hero-quick-link__text {
    box-sizing: border-box;
    max-width: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateX(8px);
    transition: max-width .42s var(--ease), padding .42s var(--ease), opacity .22s .08s, transform .32s .05s var(--ease);
  }

  .hero-quick-link:hover .hero-quick-link__text,
  .hero-quick-link:focus-visible .hero-quick-link__text {
    max-width: 190px;
    padding-left: .25rem;
    padding-right: 1rem;
    opacity: 1;
    transform: none;
  }
}

@keyframes v21-smoke-shadow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(72,169,166,0), 0 8px 24px rgba(0,0,0,.12);
  }
  45% {
    box-shadow: 0 0 24px 5px rgba(72,169,166,.14), 0 12px 30px rgba(0,0,0,.18);
  }
  70% {
    box-shadow: 0 0 15px 2px rgba(216,92,50,.08), 0 10px 28px rgba(0,0,0,.16);
  }
}

@keyframes v21-smoke-drift {
  0% {
    opacity: .38;
    transform: translate3d(-8px, 5px, 0) scale(.82) rotate(-4deg);
  }
  48% {
    opacity: .7;
    transform: translate3d(5px, -4px, 0) scale(1.08) rotate(5deg);
  }
  100% {
    opacity: .46;
    transform: translate3d(-1px, 2px, 0) scale(.94) rotate(-2deg);
  }
}

@keyframes v21-smoke-ring {
  0%, 100% { opacity: .24; transform: scale(.9); }
  50% { opacity: .7; transform: scale(1.08); }
}

/* ---------------------------------------------------------------------
   02. WHATSAPP — ícone sempre visível no estado fechado
   --------------------------------------------------------------------- */
@media (min-width: 721px) {
  .whatsapp-float {
    justify-content: flex-start;
  }

  .whatsapp-float svg {
    position: absolute;
    left: 0;
    top: 50%;
    width: 50px;
    height: 22px;
    padding-inline: 14px;
    box-sizing: border-box;
    flex: none;
    transform: translateY(-50%);
    color: #fff;
    fill: #fff !important;
    filter: drop-shadow(0 0 7px rgba(141,212,207,.42));
    opacity: 1;
  }

  .whatsapp-float span {
    margin-left: 50px;
  }
}

/* ---------------------------------------------------------------------
   03. METODOLOGIA — chamada maior, sanfona compacta e respirada
   --------------------------------------------------------------------- */
.method-accordion {
  margin-top: clamp(5rem, 9vh, 8rem);
  padding-top: clamp(3.4rem, 6vh, 5rem);
}

.method-accordion__head {
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
  gap: clamp(3.5rem, 8vw, 8rem);
  margin-bottom: clamp(4rem, 8vh, 7rem);
}

.method-accordion__head span {
  max-width: 8.5ch;
  font-size: clamp(4.6rem, 7.7vw, 8.4rem);
  line-height: .82;
  letter-spacing: -.055em;
}

.method-accordion__head p {
  max-width: 540px;
  margin-top: 1rem;
  font-size: clamp(.88rem, 1vw, 1rem);
  line-height: 1.8;
}

.method .pillars {
  display: grid;
  gap: .85rem;
  border-top: 0;
}

.method .pillar {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 2px;
  background: rgba(255,255,255,.015);
}

.method .pillar > button {
  min-height: 64px;
  padding-inline: clamp(1rem, 2.2vw, 1.75rem);
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  gap: clamp(.8rem, 1.6vw, 1.35rem);
}

.method .pillar-number {
  font-size: .58rem;
  letter-spacing: .18em;
}

.method .pillar-name {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.75vw, 1.95rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: .01em;
}

.method .pillar-arrow {
  font-size: .85rem;
}

.method .pillar-panel {
  min-height: clamp(370px, 47vh, 480px);
}

.method .pillar.is-active .pillar-panel {
  max-height: 580px;
}

.method .pillar-panel::after {
  background:
    linear-gradient(90deg, rgba(3,12,20,.97) 0%, rgba(3,12,20,.85) 44%, rgba(3,12,20,.27) 74%, rgba(3,12,20,.06) 100%),
    linear-gradient(180deg, rgba(3,12,20,.06), rgba(3,12,20,.26));
}

.method .pillar-copy {
  width: min(56%, 610px);
  padding: clamp(2.8rem, 5.5vh, 4.4rem) clamp(2rem, 5vw, 5rem);
}

.method .pillar-lead {
  max-width: 23ch;
  margin-bottom: clamp(1.6rem, 3vh, 2.35rem);
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 2vw, 2.15rem);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -.018em;
}

.method .pillar-copy > p:not(.pillar-lead):not(.business-impact) {
  max-width: 52ch;
  font-size: clamp(.82rem, .9vw, .94rem);
  line-height: 1.8;
}

.method .pillar-copy > p + p {
  margin-top: clamp(1.4rem, 2.8vh, 2.2rem);
}

.method .business-impact {
  max-width: 51ch;
  margin-top: clamp(2rem, 4vh, 3.2rem);
  padding-top: clamp(1.35rem, 2.6vh, 2rem);
  font-size: clamp(.78rem, .86vw, .9rem);
  line-height: 1.75;
}

.method .business-impact span {
  margin-bottom: .8rem;
}

/* ---------------------------------------------------------------------
   04. CASES — fita clara, suave e conectada à paleta ELO18
   --------------------------------------------------------------------- */
.projects.cases .case-ribbon-wrap {
  background:
    linear-gradient(90deg, rgba(72,169,166,.07), transparent 24%, transparent 76%, rgba(44,61,81,.045)),
    var(--v21-ribbon-soft) !important;
  border-top: 1px solid rgba(255,255,255,.58) !important;
  border-bottom: 1px solid var(--v21-ribbon-line) !important;
  box-shadow: 0 18px 46px rgba(3,12,20,.09) !important;
}

.projects.cases .case-tab + .case-tab {
  border-left-color: rgba(44,61,81,.09) !important;
}

.projects.cases .case-tab img {  
  opacity: .46;
}

.projects.cases .case-tab:hover img,
.projects.cases .case-tab:focus-visible img {
  filter: brightness(0) saturate(100%) invert(34%) sepia(28%) saturate(733%) hue-rotate(132deg) brightness(91%) contrast(89%) !important;
  opacity: .78;
}

.projects.cases .case-tab.is-active img {  
  opacity: 1;
}

.projects.cases .case-tab.is-active::after {
  background: var(--v21-ribbon-ink);
}

.projects.cases .case-tab:focus-visible {
  outline-color: rgba(44,61,81,.64);
}

/* ---------------------------------------------------------------------
   05. RESPONSIVIDADE
   --------------------------------------------------------------------- */
@media (max-width: 900px) {
  .method-accordion {
    margin-top: 4rem;
    padding-top: 3rem;
  }

  .method-accordion__head {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    margin-bottom: 3.5rem;
  }

  .method-accordion__head span {
    max-width: 9ch;
    font-size: clamp(3.7rem, 13vw, 6.2rem);
  }

  .method-accordion__head p {
    margin: 0;
  }

  .method .pillar > button {
    min-height: 60px;
  }

  .method .pillar-name {
    font-size: clamp(.98rem, 4.6vw, 1.35rem);
  }

  .method .pillar-panel {
    min-height: 500px;
  }

  .method .pillar-panel::after {
    background: linear-gradient(180deg, rgba(3,12,20,.14) 0%, rgba(3,12,20,.44) 38%, rgba(3,12,20,.94) 68%, rgba(3,12,20,.98) 100%);
  }

  .method .pillar-copy {
    width: 100%;
    min-height: inherit;
    justify-content: flex-end;
    padding: 3rem clamp(1.35rem, 6vw, 3rem);
  }

  .method .pillar-lead {
    max-width: 27ch;
    font-size: clamp(1.25rem, 5.6vw, 1.9rem);
  }

  .method .pillar-copy > p:not(.pillar-lead):not(.business-impact),
  .method .business-impact {
    max-width: 58ch;
  }
}

@media (max-width: 720px) {
  .whatsapp-float svg {
    position: static;
    width: 22px;
    height: 22px;
    padding: 0;
    flex: 0 0 22px;
    transform: none;
    margin-right: .7rem;
    filter: drop-shadow(0 0 6px rgba(141,212,207,.32));
  }

  .whatsapp-float span {
    margin-left: 0;
  }

  .method .pillars {
    gap: .65rem;
  }

  .method .pillar > button {
    grid-template-columns: 30px minmax(0, 1fr) 24px;
    padding-inline: 1rem;
  }

  .method .pillar-panel {
    min-height: 480px;
  }

  .projects.cases .case-ribbon {
    min-height: 130px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-quick-link,
  .hero-quick-link::before,
  .hero-quick-link::after {
    animation: none !important;
  }
}
