/* ======================================================
   Landing Page 共用元件樣式（10 頁共用模板）
   依附於 style.css 的設計系統（色彩、字級、按鈕、FAQ、表單）
   ====================================================== */

/* Header 共用首頁的 #mainNav（partials/header.php），樣式在 style.css */

/* -------------------- Hero -------------------- */
.lp-hero {
    background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy) 40%, var(--navy-mid) 70%, var(--blue) 100%);
    /* 上方多留空間給 fixed-top 的 #mainNav */
    padding: 130px 0 56px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.lp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 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='%23ffffff' 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;
}

.lp-hero .container-xl {
    position: relative;
}

.lp-hero-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.3;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.lp-hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
}

.lp-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.lp-cta-group .btn {
    flex: 1 1 auto;
    min-width: 160px;
    text-align: center;
    white-space: nowrap;
}

.btn-line {
    background: #06C755;
    color: var(--white) !important;
    border-radius: 100px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid #06C755;
    transition: var(--transition);
}

.btn-line:hover {
    background: #05a648;
    border-color: #05a648;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(6, 199, 85, 0.35);
}

/* Trust badges */
.trust-badges {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.trust-badges li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

.trust-badges .bi {
    color: #5BA4FF;
    font-size: 1rem;
}

/* Hero highlight card (desktop right column) */
.lp-hero-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.lp-hero-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 18px;
}

.lp-hero-card h3 {
    color: var(--white);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.lp-hero-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-hero-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

.lp-hero-card ul li .bi {
    color: #5BA4FF;
    margin-top: 3px;
    flex-shrink: 0;
}

/* 手機版 #hero 會整體置中（style.css），卡片內 icon 跟著置中、條列文字維持靠左 */
@media (max-width: 767px) {
    .lp-hero-card__icon {
        margin-left: auto;
        margin-right: auto;
    }

    .lp-hero-card ul li {
        text-align: left;
    }
}

/* -------------------- Generic LP Sections -------------------- */
.lp-section {
    padding: 64px 0;
}

@media (max-width: 767px) {
    .lp-section {
        padding: 44px 0;
    }
}

/* Pain point callout */
.lp-pain {
    background: var(--blue-pale);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
}

.lp-pain .section-title {
    margin-bottom: 12px;
}

.lp-pain p {
    margin-bottom: 0;
    font-size: 1.05rem;
    color: var(--gray-800);
    line-height: 1.85;
}

/* Plan grid */
.lp-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 767px) {
    .lp-plan-grid {
        grid-template-columns: 1fr;
    }
}

.lp-plan-item {
    display: flex;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.lp-plan-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--blue);
}

.lp-plan-item .icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--blue-pale);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.lp-plan-item h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 4px;
}

.lp-plan-item p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.7;
}

/* Core selling point banner */
.lp-highlight {
    margin-top: 24px;
    background: linear-gradient(135deg, var(--blue), var(--navy));
    color: var(--white);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.lp-highlight .bi {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Why-us cards */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

.why-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue);
}

.why-card .icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--blue-pale);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

.why-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
}

.why-card p {
    font-size: 0.88rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.7;
}

/* -------------------- Sticky bottom CTA bar (mobile) -------------------- */
.sticky-cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: flex;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
}

.sticky-cta {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 10px 4px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--navy) !important;
    min-height: 56px;
}

.sticky-cta + .sticky-cta {
    border-left: 1px solid var(--gray-200);
}

.sticky-cta .bi {
    font-size: 1.25rem;
}

.sticky-cta--form {
    background: var(--blue);
    color: var(--white) !important;
}

.sticky-cta--line {
    color: #06C755 !important;
}

/* Body padding so sticky bar doesn't cover content on mobile */
body.has-sticky-cta {
    padding-bottom: 60px;
}

/* Desktop: hide sticky bar, show floating actions instead */
@media (min-width: 992px) {
    .sticky-cta-bar {
        display: none;
    }

    body.has-sticky-cta {
        padding-bottom: 0;
    }
}

@media (max-width: 991px) {
    .floating-actions {
        display: none;
    }
}
