/**
 * Block Styles
 * Styles for Gutenberg blocks and patterns
 */

/* =========================================================================
   CORE BUTTON BLOCK
   ========================================================================= */

.wp-block-button__link {
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-accent);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.wp-block-button__link:hover {
  transform: translateY(-2px);
}

/* =========================================================================
   CORE HEADING BLOCK STYLES
   ========================================================================= */

.is-style-fp-gold-accent {
  position: relative;
  display: inline-block;
}

.is-style-fp-gold-accent::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
}

.is-style-fp-underline {
  padding-bottom: var(--space-4);
  border-bottom: 3px solid var(--color-primary);
}

/* =========================================================================
   CORE GROUP BLOCK STYLES
   ========================================================================= */

.is-style-fp-card {
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.is-style-fp-card-gold {
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-gold);
}

.is-style-fp-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.is-style-fp-dark-section {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  padding: var(--section-padding) 0;
}

.is-style-fp-dark-section h1,
.is-style-fp-dark-section h2,
.is-style-fp-dark-section h3,
.is-style-fp-dark-section h4,
.is-style-fp-dark-section h5,
.is-style-fp-dark-section h6 {
  color: var(--color-white);
}

/* =========================================================================
   CORE COVER BLOCK STYLES
   ========================================================================= */

.wp-block-cover {
  min-height: 500px;
}

.is-style-fp-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.is-style-fp-hero .wp-block-cover__inner-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

.is-style-fp-parallax {
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .is-style-fp-parallax {
    background-attachment: scroll;
  }
}

/* =========================================================================
   CORE COLUMNS BLOCK STYLES
   ========================================================================= */

.is-style-fp-cards-grid > .wp-block-column {
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.is-style-fp-cards-grid > .wp-block-column:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* =========================================================================
   CORE IMAGE BLOCK STYLES
   ========================================================================= */

.is-style-fp-gold-border img {
  border: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
}

.is-style-fp-shadow img {
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-lg);
}

/* =========================================================================
   CORE LIST BLOCK STYLES
   ========================================================================= */

.is-style-fp-check-list {
  list-style: none;
  padding-left: 0;
}

.is-style-fp-check-list li {
  position: relative;
  padding-left: var(--space-8);
  margin-bottom: var(--space-3);
}

.is-style-fp-check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.is-style-fp-gold-bullets {
  list-style: none;
  padding-left: 0;
}

.is-style-fp-gold-bullets li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-2);
}

.is-style-fp-gold-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
}

/* =========================================================================
   CORE QUOTE BLOCK STYLES
   ========================================================================= */

.is-style-fp-testimonial {
  border-left: none;
  padding: var(--space-8);
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
}

.is-style-fp-testimonial::before {
  content: '"';
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  font-family: var(--font-heading);
  font-size: 100px;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.2;
}

.is-style-fp-testimonial p {
  font-size: var(--text-lg);
  font-style: italic;
  line-height: var(--line-height-relaxed);
}

.is-style-fp-testimonial cite {
  font-style: normal;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
}

/* =========================================================================
   CORE SEPARATOR STYLES
   ========================================================================= */

.is-style-fp-gold-line {
  border: none;
  height: 4px;
  background: var(--gradient-gold);
  width: 80px;
  margin: var(--space-6) auto;
  border-radius: var(--radius-full);
}

/* =========================================================================
   HERO SECTION PATTERN
   ========================================================================= */

.fp-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

.fp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
}

.fp-hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.fp-hero__label {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--gradient-gold);
  color: var(--color-secondary);
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.fp-hero__title {
  font-size: var(--text-7xl);
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

.fp-hero__subtitle {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
}

.fp-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* =========================================================================
   FAQ ACCORDION
   ========================================================================= */

.fp-faq {
  max-width: 800px;
  margin: 0 auto;
}

.fp-faq__item {
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.fp-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.fp-faq__question:hover {
  color: var(--color-primary);
}

.fp-faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  transition: transform var(--transition-fast);
}

.fp-faq__item.is-open .fp-faq__icon {
  transform: rotate(180deg);
}

.fp-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.fp-faq__item.is-open .fp-faq__answer {
  max-height: 500px;
}

.fp-faq__answer-content {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--color-text-light);
}

/* =========================================================================
   STATS COUNTER
   ========================================================================= */

.fp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  text-align: center;
}

.fp-stat {
  padding: var(--space-6);
}

.fp-stat__number {
  font-family: var(--font-heading);
  font-size: var(--text-6xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.fp-stat__number .suffix {
  font-size: 0.5em;
}

.fp-stat__label {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  color: var(--color-text-light);
}

/* =========================================================================
   URGENCY BANNER
   ========================================================================= */

.fp-urgency-banner {
  background: var(--gradient-gold);
  color: var(--color-secondary);
  padding: var(--space-3) var(--space-4);
  text-align: center;
  font-family: var(--font-accent);
  font-weight: var(--font-weight-semibold);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
}

.fp-urgency-banner__text {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
}

.fp-urgency-banner__countdown {
  display: inline-flex;
  gap: var(--space-2);
}

.fp-urgency-banner__time {
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  min-width: 40px;
  text-align: center;
}

.fp-urgency-banner__close {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-secondary);
  opacity: 0.7;
  cursor: pointer;
}

.fp-urgency-banner__close:hover {
  opacity: 1;
}

/* Adjust body when banner is visible */
body.has-urgency-banner {
  padding-top: 50px;
}

body.has-urgency-banner .site-header {
  top: 50px;
}

/* =========================================================================
   PARTNERS/LOGOS GRID
   ========================================================================= */

.fp-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
}

.fp-partners__logo {
  max-width: 150px;
  max-height: 60px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition-fast);
}

.fp-partners__logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* =========================================================================
   GUARANTEE ITEMS
   ========================================================================= */

.fp-guarantees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.fp-guarantee {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
}

.fp-guarantee__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
  color: var(--color-secondary);
}

.fp-guarantee__icon svg {
  width: 24px;
  height: 24px;
}

.fp-guarantee__title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-1);
}

.fp-guarantee__text {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

/* =========================================================================
   HOW IT WORKS / STEPS
   ========================================================================= */

.fp-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  counter-reset: step;
}

.fp-step {
  position: relative;
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.fp-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary);
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
}

.fp-step__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.fp-step__text {
  color: var(--color-text-light);
}

/* Arrow between steps (desktop) */
@media (min-width: 768px) {
  .fp-steps--with-arrows .fp-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 55px;
    right: -20%;
    width: 40%;
    height: 2px;
    background: var(--gradient-gold);
  }
}

/* =========================================================================
   PAGE HEADER (Banner para páginas internas)
   ========================================================================= */

.fp-page-header {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  overflow: hidden;
  margin-top: 0;
  /* Espaço para o header fixo */
  padding-top: 160px;
  padding-bottom: 60px;
}

/* Com imagem de fundo */
.fp-page-header--image {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.fp-page-header--image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 100%);
}

/* Conteúdo do page header */
.fp-page-header__content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: var(--space-8);
  max-width: 800px;
}

.fp-page-header__title {
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: var(--space-4);
}

.fp-page-header__subtitle {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-xl);
}

/* =========================================================================
   PAGE HEADER SLIDER (Banner com slider para páginas internas)
   ========================================================================= */

.fp-page-slider {
  position: relative;
  width: 100%;
  min-height: 350px;
  overflow: hidden;
  background: #1a1a1a;
}

.fp-page-slider .fp-slider__slide {
  min-height: 350px;
}

/* =========================================================================
   HERO SLIDER (Para Home e Landing Pages)
   ========================================================================= */

.fp-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-black-soft);
}

.fp-slider--hero {
  min-height: 100vh;
}

.fp-slider--medium {
  min-height: 600px;
}

.fp-slider--small {
  min-height: 400px;
}

.fp-slider--page-header {
  min-height: 350px;
}

.fp-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.fp-slider__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
  transform: scale(1.05);
}

.fp-slider__slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  transform: scale(1);
  z-index: 2;
}

.fp-slider__slide.prev,
.fp-slider__slide.next {
  z-index: 1;
}

/* Slide com imagem de fundo */
.fp-slider__slide--image {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-slider__slide--image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
}

/* Conteúdo do slide */
.fp-slider__content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: var(--space-8);
  text-align: center;
  color: var(--color-white);
}

.fp-slider__content h1,
.fp-slider__content h2,
.fp-slider__title {
  color: var(--color-white);
  margin-bottom: var(--space-4);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
}

.fp-slider__title span,
.fp-slider__content h1 span {
  color: var(--color-gold);
}

.fp-slider__content p,
.fp-slider__desc {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.fp-slider__label {
  display: inline-block;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Navegação */
.fp-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(212, 175, 55, 0.9);
  border: none;
  border-radius: 50%;
  color: var(--color-black);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 24px;
}

.fp-slider__nav:hover {
  background: var(--color-gold);
  transform: translateY(-50%) scale(1.1);
}

.fp-slider__prev {
  left: 20px;
}

.fp-slider__next {
  right: 20px;
}

/* Dots/Indicadores */
.fp-slider__dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.fp-slider__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.fp-slider__dot:hover {
  background: rgba(212, 175, 55, 0.5);
}

.fp-slider__dot.active {
  background: var(--color-gold);
  transform: scale(1.2);
}

/* Responsivo */
@media (max-width: 768px) {
  .fp-slider__nav {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .fp-slider__prev {
    left: 10px;
  }

  .fp-slider__next {
    right: 10px;
  }

  .fp-slider__content {
    padding: var(--space-6);
  }

  .fp-slider__content h1,
  .fp-slider__content h2 {
    font-size: var(--text-3xl);
  }

  .fp-slider__content p {
    font-size: var(--text-base);
  }

  .fp-slider--hero {
    min-height: 80vh;
  }
}
