/* ============================================================
   HOMEPAGE — HostBillingPro Homepage Section Styles
   ============================================================ */

/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.hbp-hero {
    position: relative;
    background: linear-gradient(160deg, var(--hbp-primary) 0%, var(--hbp-bg-dark) 50%, #162033 100%);
    padding: 104px 0 88px;
    overflow: hidden;
    text-align: center;
    min-height: 560px;
    display: flex;
    align-items: center;
}

.hbp-hero__pattern,
.hbp-hero__dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hbp-hero__pattern {
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 30px 30px;
}

.hbp-hero__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
}

.hbp-hero__dots-svg {
    width: min(440px, 70vw);
    height: auto;
}

.hbp-hero__glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: hbpFloat 8s ease-in-out infinite;
}

.hbp-hero .hbp-container {
    position: relative;
    z-index: 2;
}

.hbp-hero__content {
    max-width: 860px;
    margin: 0 auto;
}

.hbp-hero__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.25rem);
    color: #fff;
    max-width: 800px;
    margin: 0 auto var(--hbp-space-3);
    line-height: 1.2;
    letter-spacing: 0;
}

.hbp-hero__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto var(--hbp-space-5);
    line-height: 1.7;
}

.hbp-hero__actions {
    display: flex;
    gap: var(--hbp-space-2);
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes hbpFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* ----------------------------------------
   Section Base
   ---------------------------------------- */
.hbp-section {
    padding: 72px 0;
}

.hbp-section--alt {
    background: var(--hbp-bg-alt);
}

/* ----------------------------------------
   Featured Reviews Section
   ---------------------------------------- */
.hbp-featured-reviews .hbp-grid {
    display: grid;
    gap: var(--hbp-space-4);
}

.hbp-featured-reviews .hbp-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: var(--hbp-space-4);
    overflow: visible;
}

.hbp-featured-reviews .hbp-card__rating {
    margin: var(--hbp-space-3) 0 var(--hbp-space-2);
    padding: 0;
    border-top: 0;
}

.hbp-featured-reviews .hbp-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--hbp-space-3);
}

.hbp-featured-reviews .hbp-card__title {
    margin-bottom: 0;
}

.hbp-featured-reviews .hbp-card__desc {
    margin-bottom: var(--hbp-space-3);
}

.hbp-featured-reviews .hbp-card__link {
    margin-top: auto;
}

.hbp-featured-reviews .hbp-card__rating-text {
    color: var(--hbp-text);
    font-weight: 600;
}

/* ----------------------------------------
   Comparisons Section
   ---------------------------------------- */
.hbp-comparisons .hbp-grid {
    display: grid;
    gap: var(--hbp-space-4);
}

.hbp-comparisons .hbp-card {
    border-top: 3px solid var(--hbp-purple);
}

.hbp-comparisons .hbp-vs-badge {
    position: absolute;
    top: var(--hbp-space-2);
    right: var(--hbp-space-2);
    z-index: 2;
}

/* ----------------------------------------
   Guides Section
   ---------------------------------------- */
.hbp-guides .hbp-grid {
    display: grid;
    gap: var(--hbp-space-4);
}

.hbp-guides .hbp-card {
    border-left: 3px solid var(--hbp-accent);
}

.hbp-guides .hbp-step-badge {
    margin-bottom: var(--hbp-space-2);
}

/* ----------------------------------------
   Recommended Tools Section
   ---------------------------------------- */
.hbp-tools .hbp-grid {
    display: grid;
    gap: var(--hbp-space-4);
}

.hbp-tools .hbp-card {
    text-align: center;
    padding: var(--hbp-space-4);
}

.hbp-tools .hbp-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--hbp-space-2);
    border-radius: 14px;
}

.hbp-tools .hbp-card__tagline {
    font-size: 0.8125rem;
    color: var(--hbp-text-light);
    font-weight: 500;
    margin-bottom: var(--hbp-space-1);
}

.hbp-tools .hbp-card__price {
    text-align: center;
}

/* ----------------------------------------
   Trust Section
   ---------------------------------------- */
.hbp-trust .hbp-grid {
    display: grid;
    gap: var(--hbp-space-4);
}

/* ----------------------------------------
   Latest Articles Section
   ---------------------------------------- */
.hbp-latest .hbp-grid {
    display: grid;
    gap: var(--hbp-space-4);
}

.hbp-latest .hbp-card__image {
    height: 200px;
}

.hbp-latest__more {
    text-align: center;
    margin-top: var(--hbp-space-5);
}

.hbp-latest .hbp-card__image-placeholder {
    height: 200px;
}

.hbp-latest .hbp-card__image-placeholder svg {
    opacity: 0.3;
}

/* ----------------------------------------
   Newsletter CTA Section
   ---------------------------------------- */
.hbp-newsletter-section {
    position: relative;
    background: linear-gradient(160deg, var(--hbp-primary) 0%, var(--hbp-bg-dark) 100%);
    padding: 88px 0;
    overflow: hidden;
    text-align: center;
}

.hbp-newsletter-section__pattern,
.hbp-newsletter-section__dots {
    position: absolute;
    pointer-events: none;
}

.hbp-newsletter-section__pattern {
    inset: 0;
    opacity: 0.4;
}

.hbp-newsletter-section__dots {
    opacity: 0.45;
}

.hbp-newsletter-section__dots--left {
    left: 8%;
    top: 16%;
}

.hbp-newsletter-section__dots--right {
    right: 8%;
    bottom: 12%;
}

.hbp-newsletter-section .hbp-container {
    position: relative;
    z-index: 2;
}

.hbp-newsletter-section__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--hbp-space-3);
    color: var(--hbp-secondary);
}

.hbp-newsletter-section__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: #fff;
    margin: 0 0 var(--hbp-space-2);
}

.hbp-newsletter-section__subtitle {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto var(--hbp-space-4);
    line-height: 1.6;
}

.hbp-newsletter-section .hbp-newsletter-form__group {
    margin: 0 auto;
}

.hbp-newsletter-section .hbp-newsletter-form__input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.hbp-newsletter-section .hbp-newsletter-form__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hbp-newsletter-section .hbp-newsletter-form__input:focus {
    border-color: var(--hbp-accent);
}

.hbp-newsletter-section__privacy {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: var(--hbp-space-2);
}

.hbp-newsletter-section__inner {
    max-width: 680px;
    margin: 0 auto;
}

/* ----------------------------------------
   Homepage main — remove GP default wrappers
   ---------------------------------------- */
.hbp-homepage-main {
    max-width: none;
    width: 100%;
    flex: 1 1 100%;
    min-width: 0;
    padding: 0;
    margin: 0;
}

/* Override GP container on homepage */
body.hbp-homepage #page,
body.hbp-homepage #content,
body.hbp-homepage .site-content,
body.hbp-homepage .inside-article,
body.hbp-homepage .entry-content {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
