/**
 * Why Choose Borboleta Travel Section
 * Fundo Âmbar Dourado com relevo topográfico, 4 cards brancos de diferenciais e barra de parceiros
 *
 * @package Borboleta_Travel
 */

/* ==========================================================================
   Seção Principal
   ========================================================================== */
.why-choose-section {
    position: relative;
    background: linear-gradient(145deg, #DE9E35 0%, #D4932B 50%, #C98822 100%);
    padding: var(--bt-space-24) 0;
    overflow: hidden;
}

/* ==========================================================================
   Textura Topográfica (Cartografia Andina)
   ========================================================================== */
.why-choose-topography {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image: url("data:image/svg+xml,%3Csvg width='1200' height='800' viewBox='0 0 1200 800' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-100 150 C 200 50, 400 250, 700 120 C 1000 -10, 1150 200, 1300 150' stroke='white' stroke-width='1.8' fill='none'/%3E%3Cpath d='M-100 220 C 180 120, 380 320, 680 190 C 980 60, 1130 270, 1300 220' stroke='white' stroke-width='1.4' fill='none'/%3E%3Cpath d='M-100 290 C 160 190, 360 390, 660 260 C 960 130, 1110 340, 1300 290' stroke='white' stroke-width='1.8' fill='none'/%3E%3Cpath d='M-100 360 C 140 260, 340 460, 640 330 C 940 200, 1090 410, 1300 360' stroke='white' stroke-width='1.2' fill='none'/%3E%3Cpath d='M-100 430 C 120 330, 320 530, 620 400 C 920 270, 1070 480, 1300 430' stroke='white' stroke-width='1.8' fill='none'/%3E%3Cpath d='M-100 500 C 100 400, 300 600, 600 470 C 900 340, 1050 550, 1300 500' stroke='white' stroke-width='1.4' fill='none'/%3E%3Cpath d='M-100 570 C 80 470, 280 670, 580 540 C 880 410, 1030 620, 1300 570' stroke='white' stroke-width='1.8' fill='none'/%3E%3Cpath d='M-100 640 C 60 540, 260 740, 560 610 C 860 480, 1010 690, 1300 640' stroke='white' stroke-width='1.2' fill='none'/%3E%3Ccircle cx='380' cy='320' r='140' stroke='white' stroke-width='1.5' fill='none' stroke-dasharray='4 4'/%3E%3Ccircle cx='380' cy='320' r='90' stroke='white' stroke-width='1.2' fill='none'/%3E%3Ccircle cx='380' cy='320' r='45' stroke='white' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='960' cy='480' r='160' stroke='white' stroke-width='1.5' fill='none' stroke-dasharray='4 4'/%3E%3Ccircle cx='960' cy='480' r='110' stroke='white' stroke-width='1.2' fill='none'/%3E%3Ccircle cx='960' cy='480' r='60' stroke='white' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* ==========================================================================
   Cabeçalho
   ========================================================================== */
.why-choose-header {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: var(--bt-space-12);
}

.why-choose-title {
    font-family: var(--bt-font-family-heading);
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    font-weight: 700;
    color: var(--bt-color-white);
    line-height: var(--bt-line-height-tight);
    margin: 0 0 var(--bt-space-3);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.why-choose-subtitle {
    font-family: var(--bt-font-family-body);
    font-size: var(--bt-fs-base);
    color: rgba(255, 255, 255, 0.92);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--bt-line-height-base);
}

/* ==========================================================================
   Grid de 4 Cards
   ========================================================================== */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--bt-space-6);
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Card Individual
   ========================================================================== */
.why-card {
    background-color: var(--bt-color-white);
    border-radius: 22px;
    padding: var(--bt-space-10) var(--bt-space-6) var(--bt-space-8);
    text-align: center;
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition:
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s ease;
    position: relative;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Ícone dentro do Card */
.why-card-icon-wrap {
    width: 76px;
    height: 76px;
    background-color: #FDF5E8;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--bt-space-6);
    transition:
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.3s ease;
    flex-shrink: 0;
}

.why-card:hover .why-card-icon-wrap {
    transform: scale(1.08) rotate(3deg);
    background-color: #FCEFD8;
}

.why-card-icon {
    width: 42px;
    height: 42px;
    display: block;
}

/* Título do Card */
.why-card-title {
    font-family: var(--bt-font-family-ui);
    font-size: var(--bt-fs-lg);
    font-weight: 700;
    color: var(--bt-color-charcoal);
    margin: 0 0 var(--bt-space-3);
    line-height: 1.3;
}

/* Descrição do Card */
.why-card-desc {
    font-family: var(--bt-font-family-body);
    font-size: var(--bt-fs-sm);
    color: var(--bt-color-gray-600);
    line-height: 1.6;
    margin: 0;
    max-width: 250px;
}

/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 1100px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--bt-space-5);
    }
}

@media (max-width: 640px) {
    .why-choose-section {
        padding: var(--bt-space-16) 0 var(--bt-space-14);
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
        gap: var(--bt-space-4);
    }

    /* Celulares: card horizontal (ícone à esquerda) para reduzir a altura da seção */
    .why-card {
        display: grid;
        grid-template-columns: 60px 1fr;
        column-gap: var(--bt-space-4);
        align-items: start;
        text-align: left;
        padding: var(--bt-space-5);
        border-radius: 18px;
    }

    .why-card:hover {
        transform: none;
    }

    .why-card-icon-wrap {
        grid-row: span 2;
        width: 60px;
        height: 60px;
        border-radius: 14px;
        margin-bottom: 0;
    }

    .why-card-icon {
        width: 34px;
        height: 34px;
    }

    .why-card-title {
        font-size: var(--bt-fs-md);
        margin-bottom: var(--bt-space-1);
    }

    .why-card-desc {
        max-width: none;
    }
}
