/**
 * EZ Golf Academy - Homepage Sections
 *
 * All classes prefixed hp- to avoid legacy collisions.
 * Loaded only on the front page.
 *
 * @package EZGolfAcademy
 * @since   1.1.0
 */

/* =========================================
   0. Shared tokens
   ========================================= */

.homepage {
    background: var(--ez-surface);
}

.hp-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 28px;
}

.hp-text-center {
    text-align: center;
}

/* =========================================
   PAGE CANVAS — reduce "one big blue slab"
   ========================================= */
.home .site-main,
.page-template-page-home .site-main {
    background: #F6F8FB;
}

/* Give every section a clean light background by default */
.hp-section {
    background: transparent;
    padding: 70px 0;
}

@media (max-width: 768px) {
    .hp-section {
        padding: 60px 0;
    }
}

/* Keep hero dark; everything after hero reads light */
#hero.hp-hero,
#hero.ez-hero {
    background: #0E2A47 !important;
}

/* Give key sections a white panel feel */
.hp-founder,
.hp-testimonials,
.hp-method,
.hp-programs,
.hp-performance,
.hp-cta {
    background: #FFFFFF;
    border-radius: 22px;
    margin: 18px auto;
    max-width: 1200px;
    padding-left: 22px;
    padding-right: 22px;
}

@media (max-width: 768px) {
    .hp-founder,
    .hp-testimonials,
    .hp-method,
    .hp-programs,
    .hp-performance,
    .hp-cta {
        border-radius: 16px;
        margin: 12px 12px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Section title */
.hp-section-title {
    font-family: var(--ez-font-display, 'DM Sans', sans-serif);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--ez-navy);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}

@media (max-width: 768px) {
    .hp-section-title {
        font-size: 1.75rem;
    }
}

/* =========================================
   Buttons
   ========================================= */

.hp-btn {
    display: inline-block;
    font-family: var(--ez-font-display, 'DM Sans', sans-serif);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 9999px;
    padding: 14px 32px;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
}

.hp-btn--gold {
    background: var(--ez-gold-primary, #FFC72C);
    color: var(--ez-navy);
    box-shadow: 0 4px 14px rgba(255, 199, 44, 0.25);
}

.hp-btn--gold:hover,
.hp-btn--gold:focus-visible {
    background: var(--ez-gold-dark, #E6B325);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 199, 44, 0.35);
    color: var(--ez-navy);
    outline: none;
}

.hp-btn--outline {
    background: transparent;
    color: var(--ez-navy-primary, #0B1F3A);
    border: 2px solid var(--ez-gold-primary, #FFC72C);
}

.hp-btn--outline:hover,
.hp-btn--outline:focus-visible {
    background: var(--ez-gold-primary, #FFC72C);
    color: var(--ez-navy-primary, #0B1F3A);
    border-color: var(--ez-gold-dark, #E6B325);
    outline: none;
}

.hp-btn--navy {
    background: var(--ez-navy);
    color: var(--ez-text-inverse);
    border: 2px solid var(--ez-navy);
}

.hp-btn--navy:hover,
.hp-btn--navy:focus-visible {
    background: var(--ez-navy-header);
    border-color: var(--ez-navy-header);
    color: var(--ez-text-inverse);
    outline: none;
}

.hp-btn--sm {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.hp-btn--lg {
    padding: 18px 44px;
    font-size: 1.1rem;
}

/* Wing-inspired animation (was inline ezgolf_wing_hover_effects) */
.program-card:hover {
    animation: wing-lift 0.5s ease-out;
}

@keyframes wing-lift {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(-10px) rotate(0deg); }
}

/* wing-pulse removed — brand.css translateY(-2px) is the standard hover */

/* =========================================
   1. Hero — glass panel + mobile image fallback
   (main styles in brand.css)
   ========================================= */

/* Subtle navy fade at hero bottom (avoid light/washed banding) */
#hero.hp-hero,
#hero.ez-hero {
    position: relative;
}

#hero.hp-hero::after,
#hero.ez-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(10, 26, 46, 0), rgba(10, 26, 46, 0.55));
}

@media (max-width: 768px) {
    .ez-hero {
        background: #0E2A47 !important;
    }

    .hp-hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .hp-hero__actions .hp-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* =========================================
   2. Founder
   ========================================= */

.hp-founder {
    background: var(--ez-surface);
}

.hp-founder__grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: center;
}

.hp-founder__photo {
    display: flex;
}

.hp-founder__role {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ez-gold-primary, #FFC72C);
    margin: 0 0 20px;
}

.hp-founder__copy p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ez-text-muted);
    margin: 0 0 16px;
}

.hp-founder__copy .hp-btn {
    margin-top: 8px;
}

@media (max-width: 768px) {
    .hp-founder__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* =========================================
   3. Testimonials
   ========================================= */

.hp-testimonials {
    background: var(--ez-white);
}

.hp-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.hp-testimonial-card {
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid var(--ezgolf-card-border) !important;
    border-radius: var(--ezgolf-card-radius) !important;
    padding: 32px 28px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.hp-testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.09);
}

.hp-testimonial-card__quote {
    font-size: 1rem;
    line-height: 1.7;
    color: #0D1B2A;
    font-style: italic;
    margin: 0 0 20px;
}

.hp-testimonial-card__footer {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hp-testimonial-card__name {
    font-style: normal;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ez-navy);
}

.hp-testimonial-card__cat {
    font-size: 0.85rem;
    color: var(--ez-text-muted);
}

@media (max-width: 768px) {
    .hp-testimonials__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* =========================================
   CARDS — consistent premium look
   ========================================= */
.hp-method-card,
.hp-program-card,
.program-card {
    border: 2px solid var(--ezgolf-card-border) !important;
    border-radius: var(--ezgolf-card-radius) !important;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.hp-method-card:hover,
.hp-program-card:hover,
.program-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.09);
}

/* =========================================
   4. EZGolf Method
   ========================================= */

.hp-method {
    background: var(--ez-white);
}

.hp-method__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.hp-method-card {
    text-align: center;
    padding: 36px 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid var(--ezgolf-card-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.hp-method-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.09);
}

.hp-method-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 18px;
    color: var(--ez-navy);
}

.hp-method-card__icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hp-method-card__title {
    font-family: var(--ez-font-display, 'DM Sans', sans-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ez-navy);
    margin: 0 0 12px;
}

.hp-method-card__desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--ez-text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .hp-method__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* =========================================
   5. Programs Preview
   ========================================= */

.hp-programs {
    background: var(--ez-surface);
}

.hp-programs__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
}

.hp-programs__grid > .hp-program-card {
    flex: 0 1 calc(33.333% - 16px);
    min-width: 0;
}

.hp-program-card {
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid var(--ezgolf-card-border) !important;
    border-radius: var(--ezgolf-card-radius) !important;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.hp-program-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.09);
}

.hp-program-card__title {
    font-family: var(--ez-font-display, 'DM Sans', sans-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ez-navy);
    margin: 0 0 10px;
}

.hp-program-card__desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--ez-text-muted);
    margin: 0 0 20px;
    flex: 1;
}

.hp-program-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hp-program-card .hp-btn {
    align-self: flex-start;
}

@media (max-width: 1023px) {
    .hp-programs__grid > .hp-program-card {
        flex-basis: calc(50% - 12px);
    }
}

@media (max-width: 699px) {
    .hp-programs__grid > .hp-program-card {
        flex-basis: 100%;
    }
}

/* =========================================
   6. How It Works
   ========================================= */

.hp-how {
    background: var(--ez-white);
}

.hp-how__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 36px;
}

.hp-how__step {
    background: var(--ez-soft);
    border: 2px solid var(--ezgolf-card-border) !important;
    border-radius: 14px;
    padding: 32px 26px;
    text-align: center;
}

.hp-how__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ez-navy);
    color: var(--ez-white);
    font-family: var(--ez-font-display, 'DM Sans', sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.hp-how__title {
    font-family: var(--ez-font-display, 'DM Sans', sans-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ez-navy);
    margin: 0 0 4px;
}

.hp-how__who {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ez-gold);
    margin: 0 0 12px;
}

.hp-how__desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--ez-text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .hp-how__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* =========================================
   7. Performance Teaser
   ========================================= */

.hp-performance {
    background: var(--ez-white);
}

.hp-performance__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: center;
}

.hp-performance__copy p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ez-text-muted);
    margin: 0 0 24px;
}

@media (max-width: 768px) {
    .hp-performance__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* =========================================
   8. Final CTA
   ========================================= */

.hp-cta {
    background: var(--ez-white);
    color: #0D1B2A;
    text-align: center;
    padding: 80px 0;
}

.hp-cta__title {
    font-family: var(--ez-font-display, 'DM Sans', sans-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--ez-navy);
    margin: 0 0 28px;
}

@media (max-width: 768px) {
    .hp-cta__title {
        font-size: 1.6rem;
    }
}

/* =========================================
   Coach photos & placeholder fallback
   ========================================= */

.ez-coach-photo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* Fallback placeholder (shown when no image is available) */
.hp-placeholder-img {
    background: var(--ez-soft);
    color: var(--ez-text-muted);
    border-radius: 14px;
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    padding: 20px;
}

/* =========================================
   Accessibility focus rings
   ========================================= */

.hp-btn:focus-visible {
    outline: 2px solid var(--ez-gold);
    outline-offset: 3px;
}

/* Print */
@media print {
    .hp-hero,
    .hp-cta {
        background: var(--ez-surface) !important;
        color: #000000 !important;
    }
}

/* ===================================
   HERO — CENTER PREMIUM
=================================== */

.ez-hero {
    position: relative;
    overflow: hidden;
    min-height: 92vh;
    background: #0B1F3A;
}

@media (min-width: 1024px) {
    .ez-hero { min-height: 100vh; }
}

.ez-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.ez-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(11,31,58,.68), rgba(11,31,58,.34));
    pointer-events: none;
}

.ez-hero-content {
    position: relative;
    z-index: 3;
    width: min(1100px, 92vw);
    margin: 0 auto;
    padding: 128px 0 110px;
    text-align: center;
    color: #fff;
}

.ez-hero-title {
    font-size: clamp(36px, 4vw, 60px);
    line-height: 1.04;
    letter-spacing: -0.02em;
    font-weight: 900;
    margin: 0 0 14px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ez-hero-subtitle {
    max-width: 820px;
    margin: 0 auto 26px;
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.6;
    color: rgba(255,255,255,.88);
}

.ez-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.ez-hero-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 0 12px;
}

.ez-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,199,44,.32);
    color: rgba(255,255,255,.92);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .02em;
    backdrop-filter: blur(6px);
}

.ez-hero-trust {
    margin: 10px 0 0;
    font-size: 13px;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(255,255,255,.78);
}

@media (max-width: 768px) {
    .ez-hero {
        min-height: 72vh;
    }

    .ez-hero-content {
        padding: 80px 0 60px;
    }

    .ez-hero-title {
        font-size: clamp(26px, 7vw, 36px);
        line-height: 1.1;
        margin-bottom: 10px;
    }

    .ez-hero-subtitle {
        font-size: 15px;
        line-height: 1.55;
        margin-bottom: 20px;
    }

    .ez-hero-actions {
        gap: 10px;
        margin-bottom: 14px;
    }

    .ez-hero-actions .hp-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .ez-hero-badges {
        gap: 6px;
    }

    .ez-hero-badge {
        padding: 5px 10px;
        font-size: 11px;
    }

    .ez-hero-trust {
        font-size: 11px;
    }

    .ez-hero__video {
        object-position: center 30%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ez-hero__video { display: none; }
}

/* ===================================
   PROGRAMS — "Start Here" badge
=================================== */

.hp-program-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #0B1F3A;
    background: rgba(255,199,44,.22);
    border: 1px solid rgba(255,199,44,.55);
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

/* ===================================
   RESULTS STRIP
=================================== */

.hp-results__grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.hp-result-card {
    background: #fff;
    border: 1px solid rgba(255, 199, 44, 0.25);
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.hp-result-card__big {
    font-weight: 900;
    font-size: 18px;
    color: #0B1F3A;
    margin-bottom: 6px;
}

.hp-result-card__small {
    color: rgba(11,31,58,.72);
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .hp-results__grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===================================
   TESTIMONIAL POLISH
=================================== */

.hp-testimonial-card {
    border: 1px solid rgba(255, 199, 44, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.hp-testimonial-card__quote {
    font-size: 15px;
    line-height: 1.7;
}

/* ===================================
   FINAL CTA
=================================== */

.hp-cta__title {
    margin-bottom: 10px;
}

.hp-cta__subtitle {
    margin: 0 auto 18px;
    max-width: 720px;
    color: rgba(11,31,58,.72);
    line-height: 1.6;
}

.hp-cta__local {
    margin: 10px auto 18px;
    max-width: 760px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(11, 31, 58, .72);
}

.hp-cta__local a {
    font-weight: 900;
    color: #0E2A47;
    text-decoration: none;
}

.hp-cta__local a:hover {
    text-decoration: underline;
    color: var(--ez-gold-primary, #FFC72C);
}
