/* ═══════════════════════════════════════════════════════════════════
   WeddingFlow – Landing Page Styles
   $10M ARR SaaS aesthetic. Elegant, spacious, premium.
   Phase 9: Complete UI/UX Polish
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --wl-bg: #FDFBF7;
    --wl-card: #FFFFFF;
    --wl-border: #E8E2D8;
    --wl-primary: #9B7B4D;
    --wl-primary-hover: #876A40;
    --wl-primary-light: #F5F0E8;
    --wl-text: #2C2420;
    --wl-text-sec: #6B6058;
    --wl-text-muted: #B5ADA5;
    --wl-radius: 16px;
    --wl-radius-sm: 10px;
    --wl-shadow: 0 2px 8px rgba(44,36,32,.05), 0 8px 24px rgba(44,36,32,.04);
    --wl-shadow-lg: 0 8px 32px rgba(44,36,32,.10);
    --wl-font-h: 'Playfair Display', Georgia, serif;
    --wl-font-b: 'Inter', -apple-system, sans-serif;
    --wl-ease: cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ────────────────────────────────────────────────── */
.wfl { font-family: var(--wl-font-b); color: var(--wl-text); -webkit-font-smoothing: antialiased; line-height: 1.6; }
.wfl *, .wfl *::before, .wfl *::after { box-sizing: border-box; margin: 0; padding: 0; }
.wfl-container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.wfl img { max-width: 100%; height: auto; display: block; }

/* ── WordPress Theme Breakout (Twenty Twenty-Five) ───────────────── */
/* Force every ancestor container to allow full width */
:where(.wp-site-blocks, .is-layout-constrained, .is-layout-flow,
       .entry-content, .wp-block-post-content, .wp-block-group,
       .wp-block-template-part, main, article, .type-page) :is(#wfl-landing),
:where(.wp-site-blocks, .is-layout-constrained, .is-layout-flow,
       .entry-content, .wp-block-post-content, .wp-block-group,
       .wp-block-template-part, main, article, .type-page):has(#wfl-landing) {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
#wfl-landing {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    overflow-x: hidden !important;
    padding: 0 !important;
}
/* Also target parent of #wfl-landing directly */
#wfl-landing,
.entry-content .wfl,
.wp-block-post-content .wfl {
    max-width: none !important;
}
.entry-content > .wfl > *,
.wp-block-post-content > .wfl > * {
    max-width: none !important;
}
/* Override any WP page title (the "Home" text above our landing) */
body:has(#wfl-landing) .wp-block-post-title,
body:has(#wfl-landing) .entry-title,
body:has(#wfl-landing) h1.wp-block-post-title {
    display: none !important;
}

/* ── Scroll Animations ───────────────────────────────────────────── */
.wfl-animate {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s var(--wl-ease), transform .7s var(--wl-ease);
}
.wfl-animate--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Section Utilities ───────────────────────────────────────────── */
.wfl-section-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--wl-primary);
    margin-bottom: 14px;
}
.wfl-section-title {
    font-family: var(--wl-font-h);
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.18;
    margin-bottom: 16px;
}
.wfl-section-sub {
    font-size: 1.05rem;
    color: var(--wl-text-sec);
    line-height: 1.65;
    max-width: 540px;
    margin-bottom: 56px;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.wfl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px;
    border: none; border-radius: var(--wl-radius-sm);
    font-family: var(--wl-font-b); font-size: .9rem; font-weight: 600;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: all .25s var(--wl-ease);
}
.wfl-btn--primary { background: var(--wl-primary); color: #fff; }
.wfl-btn--primary:hover { background: var(--wl-primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(155,123,77,.35); }
.wfl-btn--ghost { background: transparent; color: var(--wl-text); border: 1.5px solid var(--wl-border); }
.wfl-btn--ghost:hover { border-color: var(--wl-primary); color: var(--wl-primary); background: var(--wl-primary-light); }
.wfl-btn--gold { background: linear-gradient(135deg,#B8943F 0%,#D4AF5A 50%,#B8943F 100%); color: #fff; border: none; }
.wfl-btn--gold:hover { box-shadow: 0 6px 20px rgba(184,148,63,.4); transform: translateY(-2px); }
.wfl-btn--lg { padding: 16px 36px; font-size: .95rem; border-radius: 12px; }
.wfl-btn--block { width: 100%; }

/* ═══ HERO ═══════════════════════════════════════════════════════ */
.wfl-hero {
    position: relative;
    background: var(--wl-bg);
    padding: 80px 0 100px;
    overflow: hidden;
}
.wfl-hero__bg-orn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 320px;
    color: var(--wl-primary);
    opacity: .025;
    pointer-events: none;
    animation: wfl-rotate 80s linear infinite;
}
@keyframes wfl-rotate { to { transform: translate(-50%, -50%) rotate(360deg); } }

.wfl-hero__grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 60px !important;
    align-items: center !important;
    position: relative;
    z-index: 1;
}
.wfl-hero__content { text-align: left !important; }
.wfl-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--wl-primary-light);
    color: var(--wl-primary);
    font-size: .75rem;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: .03em;
    margin-bottom: 28px;
}
.wfl-hero__badge svg { stroke: var(--wl-primary); }
.wfl-hero__title {
    font-family: var(--wl-font-h);
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}
.wfl-hero__title em { font-style: italic; color: var(--wl-primary); }
.wfl-hero__sub {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--wl-text-sec);
    max-width: 480px;
    margin-bottom: 36px;
}
.wfl-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero Social Proof */
.wfl-hero__proof {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--wl-border);
}
.wfl-hero__avatars { display: flex; }
.wfl-hero__avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2.5px solid var(--wl-bg);
    object-fit: cover;
    margin-left: -10px;
}
.wfl-hero__avatar:first-child { margin-left: 0; }
.wfl-hero__proof-text {
    font-size: .82rem;
    color: var(--wl-text-sec);
}
.wfl-hero__proof-text strong {
    color: var(--wl-text);
    font-weight: 700;
}

/* Hero Visual */
.wfl-hero__visual { position: relative; }
.wfl-hero__img-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(44,36,32,.12), 0 2px 8px rgba(44,36,32,.06);
}
.wfl-hero__img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}
.wfl-hero__img-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 10px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--wl-text);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    animation: wfl-pulse 2.5s ease-in-out infinite;
}
@keyframes wfl-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
    50% { box-shadow: 0 4px 24px rgba(155,123,77,.2); }
}

/* ═══ SOCIAL PROOF BAR ═══════════════════════════════════════════ */
.wfl-social-proof {
    padding: 36px 0;
    background: #fff;
    border-top: 1px solid var(--wl-border);
    border-bottom: 1px solid var(--wl-border);
}
.wfl-social-proof__inner {
    display: flex !important;
    align-items: center !important;
    gap: 40px !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}
.wfl-social-proof__label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--wl-text-muted);
    white-space: nowrap;
}
.wfl-social-proof__logos {
    display: flex !important;
    align-items: center !important;
    gap: 40px !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
}
.wfl-social-proof__logo {
    font-family: var(--wl-font-h);
    font-size: 1rem;
    font-weight: 600;
    color: var(--wl-text-muted);
    letter-spacing: .02em;
    opacity: .55;
    transition: opacity .3s ease;
}
.wfl-social-proof__logo:hover { opacity: .85; }

/* ═══ FEATURES ═══════════════════════════════════════════════════ */
.wfl-features { padding: 120px 0; background: #fff; }
.wfl-features__header { text-align: center; }
.wfl-features__header .wfl-section-sub { margin-left: auto; margin-right: auto; }
.wfl-features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.wfl-feature-card {
    border: 1px solid var(--wl-border);
    border-radius: var(--wl-radius);
    background: var(--wl-card);
    overflow: hidden;
    transition: transform .35s var(--wl-ease), box-shadow .35s var(--wl-ease);
}
.wfl-feature-card:hover { transform: translateY(-6px); box-shadow: var(--wl-shadow-lg); }

.wfl-feature-card__img-wrap { overflow: hidden; height: 180px; }
.wfl-feature-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--wl-ease);
}
.wfl-feature-card:hover .wfl-feature-card__img { transform: scale(1.06); }

.wfl-feature-card__body { padding: 28px 24px 32px; }
.wfl-feature-card__icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: var(--wl-primary-light);
    color: var(--wl-primary);
    border-radius: 12px;
    margin-bottom: 18px;
}
.wfl-feature-card__title {
    font-family: var(--wl-font-h);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.wfl-feature-card__desc { font-size: .88rem; color: var(--wl-text-sec); line-height: 1.65; }

/* ═══ STEPS ══════════════════════════════════════════════════════ */
.wfl-steps { padding: 120px 0; background: var(--wl-bg); }
.wfl-steps__header { text-align: center; }
.wfl-steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.wfl-step { position: relative; }
.wfl-step h3 { font-family: var(--wl-font-h); font-size: 1.15rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.wfl-step p { font-size: .88rem; color: var(--wl-text-sec); line-height: 1.65; max-width: 280px; margin: 0 auto; }
.wfl-step__num {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: var(--wl-primary);
    color: #fff;
    font-weight: 700; font-size: 1.1rem;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(155,123,77,.25);
}

/* ═══ PRICING ════════════════════════════════════════════════════ */
.wfl-pricing { padding: 120px 0; background: #fff; }
.wfl-pricing__header { text-align: center; }
.wfl-pricing__header .wfl-section-sub { margin-left: auto; margin-right: auto; }
.wfl-pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }

.wfl-price-card {
    position: relative;
    border: 1px solid var(--wl-border);
    border-radius: var(--wl-radius);
    padding: 40px 28px 36px;
    background: var(--wl-card);
    text-align: left;
    transition: transform .35s var(--wl-ease), box-shadow .35s var(--wl-ease);
}
.wfl-price-card:hover { transform: translateY(-6px); box-shadow: var(--wl-shadow-lg); }

/* Featured (Most Popular) */
.wfl-price-card--featured {
    border-color: var(--wl-primary);
    border-width: 2px;
    box-shadow: 0 8px 40px rgba(155,123,77,.12);
    transform: scale(1.05);
    z-index: 2;
}
.wfl-price-card--featured:hover { transform: scale(1.05) translateY(-6px); }
.wfl-price-card__ribbon {
    position: absolute;
    top: -1px; left: 50%; transform: translateX(-50%);
    background: var(--wl-primary);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 6px 20px;
    border-radius: 0 0 10px 10px;
}

/* Pro accent */
.wfl-price-card--pro {
    border-color: #D4AF5A;
    background: linear-gradient(180deg, #FFFDF7 0%, #FFFFFF 100%);
}
.wfl-price-card__pro-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: #B8943F;
    background: linear-gradient(135deg, #FFF8E7, #FFF3D4);
    padding: 5px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.wfl-price-card__head { margin-bottom: 28px; }
.wfl-price-card__name {
    font-family: var(--wl-font-h);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.wfl-price-card__amount { font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.wfl-price-card__currency { font-size: 1.5rem; vertical-align: super; font-weight: 600; margin-right: 2px; }
.wfl-price-card__period { font-size: .9rem; font-weight: 500; color: var(--wl-text-sec); margin-left: 2px; }
.wfl-price-card__tagline { font-size: .82rem; color: var(--wl-text-sec); margin-top: 8px; }

.wfl-price-card__features {
    list-style: none;
    margin-bottom: 32px;
    display: flex; flex-direction: column; gap: 12px;
}
.wfl-price-card__features li {
    font-size: .88rem;
    color: var(--wl-text);
    padding-left: 26px;
    position: relative;
    line-height: 1.5;
}
.wfl-price-card__features li::before {
    content: '✓';
    position: absolute; left: 0;
    color: var(--wl-primary);
    font-weight: 700;
    font-size: .85rem;
}
.wfl-price-card__disabled {
    color: var(--wl-text-muted) !important;
    text-decoration: line-through;
}
.wfl-price-card__disabled::before { content: '—' !important; color: var(--wl-text-muted) !important; }

/* ═══ CTA BANNER ═════════════════════════════════════════════════ */
.wfl-cta {
    padding: 100px 0;
    background: var(--wl-bg);
    text-align: center;
}
.wfl-cta__ornament {
    display: block;
    font-size: 2rem;
    color: var(--wl-primary);
    opacity: .4;
    margin-bottom: 20px;
}
.wfl-cta__title {
    font-family: var(--wl-font-h);
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}
.wfl-cta__sub {
    font-size: 1.05rem;
    color: var(--wl-text-sec);
    margin-bottom: 36px;
    line-height: 1.7;
}

/* ═══ FOOTER ═════════════════════════════════════════════════════ */
.wfl-footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--wl-border);
    text-align: center;
}
.wfl-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.wfl-footer__brand {
    font-family: var(--wl-font-h);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--wl-primary);
}
.wfl-footer__links {
    display: flex;
    gap: 24px;
}
.wfl-footer__links a {
    font-size: .82rem;
    color: var(--wl-text-sec);
    text-decoration: none;
    transition: color .2s ease;
}
.wfl-footer__links a:hover { color: var(--wl-primary); }
.wfl-footer__copy { font-size: .75rem; color: var(--wl-text-muted); }

/* ═══ RESPONSIVE ═════════════════════════════════════════════════ */
@media (max-width: 960px) {
    .wfl-hero__grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
    .wfl-hero__content { order: 1; }
    .wfl-hero__visual { order: 2; max-width: 480px; margin: 0 auto; }
    .wfl-hero__sub { margin-left: auto; margin-right: auto; }
    .wfl-hero__cta { justify-content: center; }
    .wfl-hero__proof { justify-content: center; }
    .wfl-hero__img { height: 360px; }
    .wfl-features__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .wfl-social-proof__inner { flex-direction: column; gap: 16px; text-align: center; }
    .wfl-social-proof__logos { justify-content: center; }
}
@media (max-width: 768px) {
    .wfl-hero { padding: 56px 0 64px; }
    .wfl-hero__title { font-size: 2.4rem; }
    .wfl-hero__sub { font-size: .95rem; }
    .wfl-section-title { font-size: 1.8rem; }
    .wfl-features, .wfl-steps, .wfl-pricing { padding: 80px 0; }
    .wfl-steps__grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .wfl-pricing__grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .wfl-price-card--featured { transform: scale(1); }
    .wfl-price-card--featured:hover { transform: translateY(-6px); }
}
@media (max-width: 480px) {
    .wfl-hero__title { font-size: 2rem; }
    .wfl-hero__cta { flex-direction: column; align-items: stretch; }
    .wfl-btn--lg { width: 100%; justify-content: center; }
    .wfl-footer__links { flex-direction: column; gap: 12px; }
}
