/* ==========================================================================
   homepage.css — Homepage-specific styles
   one-bnb.fr — Vacation rental platform — Warm Mediterranean
   ========================================================================== */

/* ── Hero enhancements ── */
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFCF7' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1.25rem;
    background-color: rgba(255, 252, 247, 0.1);
    border: 1px solid rgba(255, 252, 247, 0.15);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: rgba(255, 252, 247, 0.9);
    letter-spacing: 0.03em;
    margin-bottom: var(--space-8);
    backdrop-filter: blur(4px);
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background-color: var(--color-sage);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-entrance-1 {
    animation: heroFadeUp 0.8s ease-out both;
}

.hero-entrance-2 {
    animation: heroFadeUp 0.8s ease-out 0.15s both;
}

.hero-entrance-3 {
    animation: heroFadeUp 0.8s ease-out 0.3s both;
}

.hero-entrance-4 {
    animation: heroFadeUp 0.8s ease-out 0.5s both;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Section header with link ── */
.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
}

.section-header-row .section-title {
    margin-bottom: var(--space-2);
}

.section-header-row .section-subtitle {
    margin-bottom: 0;
}

.section-header-link {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    transition: color var(--transition-fast), gap var(--transition-fast);
    flex-shrink: 0;
    padding-bottom: var(--space-2);
}

.section-header-link:hover {
    color: var(--color-primary-dark);
    gap: var(--space-2);
    text-decoration: none;
}

.section-header-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.section-header-link:hover svg {
    transform: translateX(2px);
}

/* ── Step icons ── */
.step-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-sand-light) 0%, var(--color-sand) 100%);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    color: var(--color-terracotta);
    transition: transform var(--transition), box-shadow var(--transition);
}

.step:hover .step-icon {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px -4px rgba(194, 112, 78, 0.2);
}

.step-icon svg {
    width: 28px;
    height: 28px;
}

.section-intro {
    max-width: 560px;
    margin: 0 auto var(--space-12);
    text-align: center;
    font-size: var(--font-size-base);
    color: var(--color-gray-500);
    line-height: var(--line-height-relaxed);
}

/* ── Trust / USP section ── */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.trust-item {
    text-align: center;
    padding: var(--space-10) var(--space-6);
    border-radius: var(--radius-xl);
    background-color: var(--color-linen);
    border: 1px solid var(--color-sand);
    transition: box-shadow var(--transition), transform var(--transition);
}

.trust-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.trust-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-5);
}

.trust-icon svg {
    width: 28px;
    height: 28px;
}

.trust-icon--commission {
    background-color: var(--color-secondary-50);
    color: var(--color-secondary);
}

.trust-icon--secure {
    background-color: var(--color-primary-50);
    color: var(--color-terracotta);
}

.trust-icon--support {
    background-color: var(--color-accent-50);
    color: var(--color-azure);
}

.trust-number {
    font-family: var(--font-family-display);
    font-size: var(--font-size-4xl);
    font-weight: 400;
    color: var(--color-secondary);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.trust-title {
    font-family: var(--font-family-display);
    font-size: var(--font-size-xl);
    font-weight: 400;
    color: var(--color-gray-900);
    margin-bottom: var(--space-3);
}

.trust-desc {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
    line-height: var(--line-height-relaxed);
    max-width: 300px;
    margin: 0 auto;
}

/* ── CTA enhancements ── */
.cta-tagline {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: rgba(255, 252, 247, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-4);
    position: relative;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header-link {
        padding-bottom: 0;
    }

    .hero-badge {
        font-size: var(--font-size-xs);
        margin-bottom: var(--space-6);
    }
}
