/* Raptor FSE homepage - custom rules not expressible via theme.json alone. */

.raptor-hero {
    position: relative;
    display: flex;
    min-height: 660px;
    align-items: center;
    overflow: hidden;
    background: #0a0a0a;
    padding: 0;
}

.raptor-hero-background {
    position: absolute;
    inset: 0;
}

.raptor-hero-art {
    position: absolute;
    bottom: 0;
    height: 42%;
    width: auto;
    object-fit: contain;
    object-position: bottom;
    opacity: 0.6;
}

.raptor-hero-art-left {
    left: 0;
}

.raptor-hero-art-right {
    right: 0;
}

.raptor-hero-overlay-x {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.2), rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.2));
}

.raptor-hero-overlay-y {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #0a0a0a, transparent 60%, rgba(10, 10, 10, 0.4));
}

.raptor-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 48rem;
    margin: 0 auto;
    padding: 7rem 1.5rem 5rem;
    color: #fff;
    text-align: center;
}

.raptor-hero-title {
    margin: 1.5rem 0 0;
    padding-top: 1.5rem;
    font-family: Montserrat, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    color: #fff;
}

.raptor-hero-title-accent {
    color: #ea580c;
}

.raptor-hero-lead {
    margin: 1.5rem auto 0;
    max-width: 36rem;
    font-size: 1.125rem;
    line-height: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.raptor-hero-cta-wrap {
    margin-top: 2.25rem;
}

.raptor-hero-cta .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 9999px;
    background: #ea580c;
    padding: 0.875rem 1.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #fff;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.raptor-hero-cta .wp-block-button__link:hover {
    background: #c2410c;
    transform: scale(1.02);
}

.raptor-hero-trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem;
    gap: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

.raptor-hero-trust-item {
    display: flex;
    width: 100%;
    max-width: 20rem;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    white-space: nowrap;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.375rem 1rem;
}

.raptor-hero-stars {
    color: #facc15;
}

@media (min-width: 640px) {
    .raptor-hero-art {
        height: 55%;
        opacity: 0.7;
    }

    .raptor-hero-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 768px) {
    .raptor-hero {
        min-height: 720px;
    }

    .raptor-hero-art {
        height: 75%;
    }

    .raptor-hero-content {
        padding: 8rem 3rem 6rem;
    }

    .raptor-hero-title {
        font-size: 4.5rem;
    }

    .raptor-hero-lead {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}

/* Article grid (Query Loop) */

.raptor-articles-section {
    padding: 3.5rem 0;
    border-top: 1px solid #f5f5f5;
}

.raptor-articles-heading {
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 2.25rem;
    color: #0a0a0a;
    margin-bottom: 1.5rem;
}

.raptor-articles-grid.wp-block-post-template {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 768px) {
    .raptor-articles-grid.wp-block-post-template {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .raptor-articles-grid.wp-block-post-template {
        grid-template-columns: repeat(3, 1fr);
    }
}

.raptor-articles-grid > li {
    display: block;
}

.raptor-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 1rem;
    background: #f5f5f5;
}

.raptor-card-media img {
    height: 16rem;
    width: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    display: block;
}

.raptor-card-media:hover img {
    transform: scale(1.05);
}

.raptor-badge-category.wp-block-post-terms {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    border-radius: 9999px;
    background: linear-gradient(90deg, #ea580c, #dc2626);
    padding: 0.25rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #fff;
}

.raptor-badge-category.wp-block-post-terms a {
    color: #fff;
}

.raptor-badge-reading-time {
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 9999px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
}

.raptor-card-title {
    margin-top: 1rem;
    font-family: Montserrat, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0a0a0a;
}

.raptor-card-title a {
    color: inherit;
}

.raptor-card-title a:hover {
    color: #ea580c;
}

.raptor-card-excerpt {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.75rem;
    color: #737373;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Coaching CTA section */

.raptor-coaching-section {
    padding: 3.5rem 0;
}

.raptor-coaching-card {
    overflow: hidden;
    border-radius: 2rem;
    background: linear-gradient(to bottom right, #f97316, #dc2626);
    color: #fff;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.28);
    align-items: stretch;
}

.raptor-coaching-text {
    flex: 1 1 320px;
    padding: 2.5rem;
}

.raptor-coaching-title {
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    line-height: 1.15;
    font-size: 2.25rem;
    color: #fff;
}

.raptor-coaching-lead {
    margin-top: 1.5rem;
    max-width: 28rem;
    font-size: 1.125rem;
    line-height: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.raptor-coaching-cta .wp-block-button__link {
    margin-top: 2.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 9999px;
    background: #fff;
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #171717;
}

.raptor-coaching-cta .wp-block-button__link:hover {
    background: #f5f5f5;
}

.raptor-coaching-image {
    flex: 1 1 320px;
    min-height: 360px;
    margin: 0;
}

.raptor-coaching-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .raptor-coaching-text {
        padding: 4rem 5rem;
    }

    .raptor-coaching-title {
        font-size: 3rem;
    }

    .raptor-coaching-image {
        min-height: 420px;
    }
}

/* Guide promo section */

.raptor-guide-section {
    padding: 3.5rem 0;
    border-top: 1px solid #f5f5f5;
}

.raptor-guide-heading {
    margin: 0 auto 3.5rem;
    text-align: center;
}

.raptor-guide-title {
    font-family: Montserrat, sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    font-size: 2.25rem;
    color: #0a0a0a;
}

.raptor-guide-subtitle {
    margin-top: 0.5rem;
    font-family: Montserrat, sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 1.875rem;
    color: #525252;
}

.raptor-guide-lead {
    margin: 2rem auto 0;
    max-width: 42rem;
    font-size: 1.125rem;
    line-height: 2rem;
    color: #404040;
}

.raptor-guide-card {
    margin: 0 auto;
    text-align: center;
}

.raptor-guide-cover {
    overflow: hidden;
    border-radius: 1rem;
    background: #fafafa;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.raptor-guide-cover img {
    height: auto;
    width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.raptor-guide-cover:hover img {
    transform: scale(1.05);
}

.raptor-guide-card-title {
    margin-top: 1.5rem;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #0a0a0a;
}

.raptor-guide-card-text {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.75rem;
    color: #525252;
}

.raptor-guide-price {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.raptor-guide-price-now {
    font-size: 1.125rem;
    font-weight: 900;
    color: #0a0a0a;
}

.raptor-guide-price-old {
    font-size: 0.875rem;
    font-weight: 600;
    color: #525252;
    text-decoration: line-through;
}

.raptor-guide-link {
    margin-top: 1rem;
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #c2410c;
}

.raptor-guide-link:hover {
    color: #9a3412;
}

@media (min-width: 768px) {
    .raptor-guide-title,
    .raptor-guide-subtitle {
        font-size: 3rem;
    }
}
