/* ==========================================================================
   PROFIT POINT INSTITUTE — Course Page Styles
   Extends css/style.css with course-specific components
   ========================================================================== */

/* =========================================================================
   Marquee Strip
   ========================================================================= */
.marquee-strip {
    overflow: hidden;
    padding: 13px 0;
    background: var(--yellow);
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: relative;
    z-index: 1;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 38s linear infinite;
    will-change: transform;
}

.marquee-strip:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0 1.25rem;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--black);
    white-space: nowrap;
    font-family: var(--font);
}

.marquee-sep {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: rgba(0,0,0,0.22);
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================================================
   Hero Trust Row
   ========================================================================= */
.hero-tag-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.trust-item {
    font-size: 13px;
    color: var(--gray-dark);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.trust-sep {
    color: var(--gray-mid);
    font-size: 13px;
}

/* =========================================================================
   Benefits Grid — 3 columns × 2 rows
   ========================================================================= */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 3.5rem;
}

.benefit-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2rem 2rem 2.25rem;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s, border-color 0.3s;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.07);
    border-color: rgba(255,210,0,0.25);
}

.benefit-icon {
    width: 46px;
    height: 46px;
    background: rgba(255,210,0,0.12);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}
.benefit-icon .lucide {
    width: 22px;
    height: 22px;
    stroke-width: 1.6;
}

/* ── Trust item icons (hero section) ── */
.trust-item .lucide {
    width: 13px;
    height: 13px;
    stroke-width: 2.25;
    vertical-align: -1px;
    opacity: 0.85;
}

/* ── Chip / badge icons ── */
.chip .lucide {
    width: 11px;
    height: 11px;
    stroke-width: 2.5;
    vertical-align: -1px;
}

/* ── Footer heart ── */
.footer-bottom .lucide {
    width: 13px;
    height: 13px;
    stroke-width: 0;
    fill: #f87171;
    vertical-align: -2px;
}

.benefit-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0;
}

.benefit-card p {
    font-size: 0.92rem;
    color: var(--gray-dark);
    line-height: 1.65;
    margin: 0;
    max-width: 100%;
    font-weight: 400;
}

/* =========================================================================
   Process Steps — 4 columns on charcoal
   ========================================================================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
    position: relative;
}

/* Connecting line */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 27px;
    left: calc(12.5% + 16px);
    right: calc(12.5% + 16px);
    height: 1px;
    background: linear-gradient(90deg, rgba(255,210,0,0.6), rgba(255,210,0,0.15));
    z-index: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--black);
    flex-shrink: 0;
    box-shadow: 0 0 0 6px rgba(255,210,0,0.12);
    font-family: var(--font);
}

.step-num.dim {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
    box-shadow: 0 0 0 6px rgba(255,255,255,0.04);
    font-size: 1.4rem;
}

.step-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 0;
}

.step-item p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.65;
    margin: 0;
    max-width: 100%;
    font-weight: 400;
}

/* =========================================================================
   Site Footer
   ========================================================================= */
.site-footer {
    background: var(--charcoal);
    padding: 4rem 0 2.5rem;
    color: rgba(255,255,255,0.45);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--pad);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-logo img {
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.65;
}

.footer-logo p {
    margin-top: 1.1rem;
    font-size: 13px;
    line-height: 1.75;
    max-width: 300px;
    color: rgba(255,255,255,0.4);
}

.footer-links-group {
    display: flex;
    gap: 3.5rem;
    flex-shrink: 0;
}

.footer-col h5 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    margin-bottom: 1.1rem;
    font-family: var(--font);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-col ul li a {
    font-size: 13.5px;
    color: rgba(255,255,255,0.55);
    transition: color 0.2s;
    font-family: var(--font);
}

.footer-col ul li a:hover {
    color: rgba(255,255,255,0.9);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    font-size: 12px;
    gap: 1rem;
    flex-wrap: wrap;
    font-family: var(--font);
}

/* =========================================================================
   Responsive — Course Page
   ========================================================================= */
@media (max-width: 900px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1.5rem;
    }
    .steps-grid::before { display: none; }
    .footer-top {
        flex-direction: column;
        gap: 2.5rem;
    }
    .footer-links-group {
        gap: 2rem;
        flex-wrap: wrap;
    }
    .hero-trust { gap: 0.5rem; }
}

/* =========================================================================
   Dark Cinematic Hero — for package/course pages
   ========================================================================= */
.hero-page-dark {
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
    max-height: 140vh;
}

/* Photo flows naturally — determines hero height */
.hero-page-photo {
    position: relative;
    width: 100%;
    z-index: 1;
    line-height: 0;
}

.hero-page-photo img {
    width: 100%;
    height: auto;
    display: block;
    will-change: transform;
}

/* No bottom gradient on hero — the section-overlap handles the transition */

/* Content — floats over the sky area of the image */
.hero-page-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    max-width: 780px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(100px, 12vh, 160px) clamp(1.5rem, 6vw, 3rem) 0;
    text-align: center;
}

.hero-page-content .hero-tag-row {
    justify-content: center;
}

.hero-page-content .t-hero {
    color: #fff;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.hero-page-content .t-sub {
    color: rgba(255,255,255,0.6);
    padding: 0 !important;
    max-width: 560px !important;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
    line-height: 1.65;
}

.hero-page-content .hero-actions {
    justify-content: center;
}

.hero-page-content .hero-trust {
    justify-content: center;
    color: rgba(255,255,255,0.5);
}

.hero-page-content .trust-item {
    color: rgba(255,255,255,0.5);
}

.hero-page-content .trust-sep {
    color: rgba(255,255,255,0.25);
}

.hero-page-content .chip {
    color: rgba(255,255,255,0.7) !important;
    border-color: rgba(255,255,255,0.15) !important;
    background: rgba(255,255,255,0.06) !important;
}

.hero-page-content .hero-badge {
    background: rgba(255,255,255,0.08) !important;
    color: rgba(255,255,255,0.6) !important;
    border-color: rgba(255,255,255,0.15) !important;
}

.hero-page-content .link-cta {
    color: rgba(255,255,255,0.7);
}

.hero-page-content .link-cta:hover {
    color: #fff;
}

/* Hero entrance animation via CSS */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-page-content .t-hero {
    animation: heroFadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.15s both;
}

.hero-page-content .t-sub {
    animation: heroFadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.35s both;
}

.hero-page-content .hero-actions {
    animation: heroFadeUp 0.85s cubic-bezier(0.16,1,0.3,1) 0.5s both;
}

/* Per-page backgrounds match the gradient bottom color */
.hero-page-dark.hero-warm {
    background: #0a0a0a;
}

.hero-page-dark.hero-silver {
    background: #3a3f4c;
}

.hero-page-dark.hero-platinum {
    background: #1a1a1f;
}

/* Hide marquee on dark hero pages — section overlaps hero directly */
.marquee-strip-dark {
    display: none;
}

/* Section that overlaps the hero bottom via gradient */
.section-overlap {
    position: relative;
    z-index: 3;
    margin-top: -25vh;
    padding-top: clamp(180px, 25vh, 280px) !important;
}

.section-overlap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: clamp(160px, 22vh, 260px);
    pointer-events: none;
}

/* Silver overlay gradient */
.section-overlap.overlap-silver {
    background: #4a5060 !important;
}
.section-overlap.overlap-silver::before {
    background: linear-gradient(to bottom, transparent, #4a5060);
}
.section-overlap.overlap-silver .t-editorial,
.section-overlap.overlap-silver .huge-num {
    color: #fff;
}
.section-overlap.overlap-silver .stat-label {
    color: rgba(255,255,255,0.55);
}
.section-overlap.overlap-silver .editorial-stats {
    border-top-color: rgba(255,255,255,0.12);
}

/* Gold / Finanțe overlay gradient (yellow) */
.section-overlap.overlap-warm {
    background: var(--yellow) !important;
}
.section-overlap.overlap-warm::before {
    background: linear-gradient(to bottom, transparent, var(--yellow));
}

/* Platinum overlay gradient (dark) */
.section-overlap.overlap-platinum {
    background: #1e1e24 !important;
}
.section-overlap.overlap-platinum::before {
    background: linear-gradient(to bottom, transparent, #1e1e24);
}
.section-overlap.overlap-platinum .t-editorial,
.section-overlap.overlap-platinum .huge-num {
    color: #fff;
}
.section-overlap.overlap-platinum .stat-label {
    color: rgba(255,255,255,0.55);
}
.section-overlap.overlap-platinum .editorial-stats {
    border-top-color: rgba(255,255,255,0.12);
}

@media (max-width: 600px) {
    .benefits-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .hero-tag-row { flex-direction: column; gap: 0.5rem; }
    .trust-sep { display: none; }
    .hero-trust { flex-direction: column; gap: 0.3rem; }
}
