/**
 * Component Styles
 * Theme: Pacto 25
 * Pills, Circular Masks, Bubbles, Slider Controls, Cards & Forms
 */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: var(--fs-btn);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
  transition: all var(--transition-normal);
}

.btn>* {
  position: relative;
  z-index: 2;
  transition: color 0.35s ease;
}

/* Dark Button: left-to-right wipe animation turning into red outline */
.btn--dark {
  background-color: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
  transition: border-color 0.4s cubic-bezier(0.25, 1, 0.4, 1),
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn--dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #FFFFFF;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .82s cubic-bezier(0.25, 1, 0.35, 1);
  z-index: 1;
}

.btn--dark:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--dark:hover>* {
  color: var(--color-primary);
}

.btn--dark:hover::before {
  transform: scaleX(1);
  transform-origin: left center;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.btn--white {
  background-color: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
}

.btn--white:hover {
  background-color: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn--lg {
  padding: 18px 36px;
  font-size: 18px;
}

/* Slider Controls (< and >) */
.slider-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: var(--space-lg);
}

.slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--color-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-btn * {
  pointer-events: none;
}

.slider-btn:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.slider-btn--white {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}

.slider-btn--white:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.slider-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

/* Circular Masks & Frames */
.circle-frame {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
}

.circle-frame__img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.circle-frame__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.circle-frame--ring-red {
  border: 8px solid var(--color-primary);
  box-shadow: 0 20px 50px rgba(212, 46, 18, 0.15);
}

.circle-frame--ring-thick {
  border-width: 14px;
}

/* Floating Decorative Shapes & Bubbles */
.decorative-dot {
  position: absolute;
  border-radius: 50%;
  background-color: var(--color-primary);
  pointer-events: none;
  z-index: 1;
}

.decorative-ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid var(--color-primary);
  pointer-events: none;
  z-index: 1;
}

.decorative-ring--white {
  border-color: rgba(255, 255, 255, 0.8);
}

.decorative-dot--white {
  background-color: #FFFFFF;
}

/* ==========================================================================
   Interactive 5-Bubble Cluster with Hover Effects (Soluções Globais)
   Matching Figma design media_1789137366200.png
   ========================================================================== */
.bubble-cluster {
  position: relative;
  width: 100%;
  max-width: clamp(400px, 44vw, 680px);
  aspect-ratio: 780 / 740;
  margin-left: auto;
  margin-right: auto;
  isolation: isolate;
}

/* Individual Bubble Base Styling */
.bubble-cluster__bubble {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  border: clamp(3px, 0.35vw, 6px) solid #FFFFFF;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.45s ease,
              border-color 0.3s ease;
  will-change: transform, box-shadow;
  outline: none;
}

.bubble-cluster__bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.4, 1);
  will-change: transform;
}

/* Interactive Hover Effect */
.bubble-cluster__bubble:hover,
.bubble-cluster__bubble:focus-visible {
  transform: scale(1.09);
  z-index: 15 !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.42),
              0 0 0 3px rgba(255, 255, 255, 0.85);
}

.bubble-cluster__bubble:hover img,
.bubble-cluster__bubble:focus-visible img {
  transform: scale(1.14);
}

/* Subtle focus dimming on other bubbles during hover */
.bubble-cluster:hover .bubble-cluster__bubble:not(:hover) {
  opacity: 0.92;
  filter: saturate(0.95);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

/* 1. Center Bubble: Meeting (Soluções Globais) */
.bubble-cluster__bubble--center {
  top: 22%;
  left: 21%;
  width: 63%;
  aspect-ratio: 1 / 1;
  z-index: 3;
}

/* 2. Top-Left Bubble: Pet / Animal */
.bubble-cluster__bubble--top-left {
  top: 3%;
  left: 1%;
  width: 33%;
  aspect-ratio: 1 / 1;
  z-index: 4;
}

/* 3. Top-Right Bubble: Businessman / Profissional */
.bubble-cluster__bubble--top-right {
  top: 25%;
  right: 1%;
  width: 31%;
  aspect-ratio: 1 / 1;
  z-index: 4;
}

/* 4. Bottom-Left Bubble: Couple / Família */
.bubble-cluster__bubble--bottom-left {
  bottom: 0%;
  left: 1%;
  width: 24%;
  aspect-ratio: 1 / 1;
  z-index: 4;
}

/* 5. Bottom-Right Bubble: Car / Viagem */
.bubble-cluster__bubble--bottom-right {
  bottom: 12%;
  right: 2%;
  width: 25%;
  aspect-ratio: 1 / 1;
  z-index: 4;
}

/* Floating White Rings with gentle organic float animation */
@keyframes floatRingTop {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(6deg);
  }
}

@keyframes floatRingBottom {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(7px) rotate(-8deg);
  }
}

.bubble-cluster__ring {
  position: absolute;
  border-radius: 50%;
  border: clamp(4px, 0.4vw, 6px) solid #FFFFFF;
  background-color: transparent;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.bubble-cluster__ring--top {
  top: 6%;
  left: 38%;
  width: 7.5%;
  aspect-ratio: 1 / 1;
  animation: floatRingTop 4.5s ease-in-out infinite;
}

.bubble-cluster__ring--bottom {
  bottom: 5%;
  right: 25%;
  width: 8%;
  aspect-ratio: 1 / 1;
  animation: floatRingBottom 5s ease-in-out infinite 1.5s;
}

/* ==========================================================================
   Testimonial Section - 8000x8000 Circle Curvature (Matching Figma)
   ========================================================================== */

.section-testimonials {
  position: relative;
  background-color: var(--color-white);
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
}

/* Floating Solid Red Dot at Top Center */
.testimonials-top-dot {
  width: 24px;
  height: 24px;
  background-color: var(--color-primary);
  border-radius: 50%;
  margin: 0 auto clamp(1.25rem, 2vw, 1.75rem);
}

.testimonials-header {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.testimonials-header .eyebrow {
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

.testimonials-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.18;
  color: #231F20;
  margin-bottom: var(--space-sm);
}

.testimonials-lead {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 0.95vw, 0.95rem);
  line-height: 1.6;
  color: #737373;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* 8000x8000 Ellipse Arc Curvature Stage */
.testimonials-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: clamp(0.5rem, 1.5vw, 1.5rem) 0;
}

.testimonials-arc-wrapper {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  height: clamp(440px, 33.07vw, 635px);
  clip-path: url(#testimonials-arc-clip);
  -webkit-clip-path: url(#testimonials-arc-clip);
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: clamp(14px, 1.56vw, 30px);
  margin: 0;
  width: max-content;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 0;
  will-change: transform;
}

/* Individual Red Testimonial Cards */
.testimonial-card {
  flex: 0 0 clamp(260px, 18.75vw, 360px);
  background-color: var(--color-primary);
  height: 100%;
  padding: clamp(60px, 5.5vw, 110px) clamp(18px, 1.8vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(212, 46, 18, 0.18);
  transition: filter 0.3s ease, background-color 0.3s ease;
  user-select: none;
  cursor: pointer;
}

.testimonial-card:hover {
  filter: brightness(1.06);
}

.testimonial-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #FFFFFF;
  overflow: hidden;
  margin-bottom: clamp(1rem, 1.6vw, 1.5rem);
  flex-shrink: 0;
  background-color: rgba(255, 255, 255, 0.15);
}

.testimonial-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-card__quote {
  font-family: var(--font-body);
  font-size: clamp(12px, 0.75vw, 13.5px);
  line-height: 1.55;
  color: var(--color-white);
  margin: 0 0 clamp(1rem, 1.6vw, 1.5rem) 0;
  font-style: normal;
  padding: 0;
}

.testimonial-card__footer {
  margin-top: 0;
}

.testimonial-card__author {
  font-family: var(--font-heading);
  font-size: clamp(13px, 0.85vw, 14.5px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-white);
  margin-bottom: 2px;
}

.testimonial-card__role {
  font-family: var(--font-body);
  font-size: clamp(11px, 0.7vw, 12px);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

/* Navigation Chevrons (< and >) */
.testimonials-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: clamp(1.5rem, 2.5vw, 2.5rem);
}

.testimonials-nav__btn {
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #231F20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.testimonials-nav__btn:hover {
  color: var(--color-primary);
  transform: scale(1.2);
}

.testimonials-nav__btn:active {
  transform: scale(0.95);
}

.testimonials-nav__btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Newsletter Form */
.newsletter-card {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: var(--space-md);
}

.newsletter-form__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

@media (min-width: 640px) {
  .newsletter-form__row {
    flex-direction: row;
    background-color: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 6px;
  }
}

.newsletter-form__input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
}

@media (max-width: 639px) {
  .newsletter-form__input {
    border: 1px solid var(--color-border);
  }
}

.newsletter-form__input:focus {
  outline: 2px solid var(--color-primary);
}

.newsletter-form__consent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--fs-body-xs);
  color: var(--color-text-muted);
  margin-top: 6px;
}

.newsletter-form__consent input[type="checkbox"] {
  accent-color: var(--color-primary);
}

/* Scroll To Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-dark);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-card);
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-red);
}