/* =====================================================================
   FRONTPAGE — landing page bersamaselamanya.com
   Semua selector di-scope di bawah .wi-fp agar tidak menabrak style
   halaman undangan / Elementor lain. Font: Lora, Nunito, Dancing
   Script, Poppins (handle wi-fp-google-fonts, dependency file ini).
   ===================================================================== */

.wi-fp {
    --sage: #8F9779;
    --sage-light: #C5CDA4;
    --sage-dark: #6B7258;
    --cream: #FAF7F2;
    --earth: #5C4A3D;
    --text-body: #4A4A4A;
    --white: #FFFFFF;

    font-family: 'Nunito', sans-serif;
    color: var(--text-body);
    line-height: 1.7;
    cursor: url('images/frontpage/flower-cursor.svg') 16 16, auto;
}

.wi-fp *, .wi-fp *::before, .wi-fp *::after { box-sizing: border-box; }
.wi-fp h1, .wi-fp h2, .wi-fp h3, .wi-fp h4, .wi-fp h5, .wi-fp h6 {
    font-family: 'Lora', serif;
    color: var(--earth);
    margin: 0;
}
.wi-fp p, .wi-fp ul { margin: 0; padding: 0; }
.wi-fp a { text-decoration: none; color: inherit; }
.wi-fp a, .wi-fp button, .wi-fp .wi-fp-btn, .wi-fp .card-stack {
    cursor: url('images/frontpage/flower-cursor.svg') 16 16, pointer !important;
}

.wi-fp .wi-fp-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.wi-fp .wi-fp-btn {
    display: inline-block;
    padding: 14px 36px;
    background-color: var(--sage);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(143, 151, 121, 0.3);
    border: none;
}
.wi-fp .wi-fp-btn:hover {
    background-color: var(--sage-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(143, 151, 121, 0.4);
}

@keyframes wiFpMorph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

/* ---------------- Navbar ---------------- */
.wi-fp .wi-fp-nav {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}
.wi-fp .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(92, 74, 61, 0.05);
}
.wi-fp .logo {
    font-family: 'Dancing Script', cursive;
    font-size: 28px;
    font-weight: 700;
    color: var(--sage-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.wi-fp .nav-links { display: flex; gap: 30px; align-items: center; }
.wi-fp .nav-links a { font-weight: 500; transition: color 0.3s; }
.wi-fp .nav-links a:hover { color: var(--sage); }
.wi-fp .nav-links .wi-fp-btn { padding: 10px 24px; }

/* ---------------- Hero ---------------- */
.wi-fp.wi-fp-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--cream);
    padding-top: 100px;
}
.wi-fp.wi-fp-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background-color: var(--sage-light);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.3;
    z-index: 0;
    animation: wiFpMorph 8s ease-in-out infinite;
}
.wi-fp .hero-inner {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}
.wi-fp .hero-content { flex: 1.2; padding-right: 40px; }
.wi-fp .hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--sage-light);
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}
.wi-fp .hero-content h1 { font-size: 56px; line-height: 1.15; margin-bottom: 24px; }
.wi-fp .hero-content h1 em { color: var(--sage); font-style: italic; }
.wi-fp .hero-content p { font-size: 18px; margin-bottom: 40px; color: var(--text-body); }
.wi-fp .hero-img-container { flex: 1; position: relative; }
.wi-fp .hero-img-container img {
    width: 100%;
    border-radius: 200px 200px 20px 20px;
    box-shadow: 0 20px 50px rgba(92, 74, 61, 0.15);
    display: block;
}

/* ---------------- Galeri Tema ---------------- */
.wi-fp.wi-fp-gallery {
    padding: 100px 0;
    background-color: var(--cream);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.wi-fp.wi-fp-gallery::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -150px;
    width: 500px;
    height: 500px;
    background-color: rgba(143, 151, 121, 0.15);
    border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%;
    z-index: 0;
    animation: wiFpMorph 9s ease-in-out infinite alternate;
}
.wi-fp.wi-fp-gallery .wi-fp-container { position: relative; z-index: 1; }
.wi-fp .gal-subtitle {
    color: #d18a80;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    font-family: 'Nunito', sans-serif;
}
.wi-fp.wi-fp-gallery h2 {
    font-size: 54px;
    color: var(--earth);
    margin-bottom: 25px;
    font-weight: 500;
    font-family: 'Dancing Script', cursive;
    line-height: 1.1;
}
.wi-fp.wi-fp-gallery .gal-desc {
    color: var(--earth);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    opacity: 0.8;
}
.wi-fp .cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 50px;
    padding: 0 20px;
}
.wi-fp .card-stack {
    position: relative;
    height: 420px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 5px solid var(--white);
    background-color: var(--white);
    color: inherit;
    text-decoration: none;
}
.wi-fp .card-stack:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border-color: var(--sage-light);
}
.wi-fp .card-content { flex: 1; padding: 0; overflow: hidden; position: relative; }
.wi-fp .card-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.wi-fp .card-stack:hover .card-content img { transform: scale(1.05); }
.wi-fp .card-footer {
    background-color: var(--white);
    padding: 18px 20px;
    color: var(--earth);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-family: 'Nunito', sans-serif;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.wi-fp .card-footer .f-left {
    text-align: left;
    min-width: 0;
}
.wi-fp .card-footer .f-right {
    text-align: right;
    min-width: 0;
}
.wi-fp .f-title { font-weight: 700; font-size: 14px; line-height: 1.4; color: var(--earth); }
.wi-fp .f-desc { font-size: 13px; opacity: 0.7; line-height: 1.4; color: var(--earth); }
.wi-fp .f-price {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 3px;
    line-height: 1.3;
}
.wi-fp .f-price-orig {
    font-size: 11px;
    text-decoration: line-through;
    opacity: 0.55;
    color: var(--earth);
}
.wi-fp .f-price-current {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--sage-dark);
    letter-spacing: 0.2px;
}

/* ---------------- Fitur ---------------- */
.wi-fp.wi-fp-features {
    padding: 120px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}
.wi-fp.wi-fp-features::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -200px;
    width: 600px;
    height: 600px;
    background-color: rgba(209, 138, 128, 0.1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
    animation: wiFpMorph 12s ease-in-out infinite alternate-reverse;
}
.wi-fp.wi-fp-features .wi-fp-container { position: relative; z-index: 1; }
.wi-fp .section-heading { margin-bottom: 60px; text-align: center; }
.wi-fp .section-heading h2 { font-size: 40px; margin-bottom: 16px; }
.wi-fp .feature-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}
.wi-fp .feature-block:last-child { margin-bottom: 0; }
.wi-fp .feature-block.reverse { flex-direction: row-reverse; }
.wi-fp .feature-visual { flex: 1; position: relative; }
.wi-fp .feature-visual::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--sage-light);
    border-radius: 20px;
    top: 20px;
    left: -20px;
    z-index: 0;
}
.wi-fp .feature-block.reverse .feature-visual::before { left: 20px; }
.wi-fp .feature-visual img {
    width: 100%;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(92, 74, 61, 0.1);
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.wi-fp .feature-text { flex: 1; }
.wi-fp .feature-icon-small {
    width: 50px;
    height: 50px;
    background-color: var(--sage);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.wi-fp .feature-text h3 { font-size: 32px; margin-bottom: 16px; }
.wi-fp .feature-text p { font-size: 17px; margin-bottom: 24px; }
.wi-fp .feature-list { list-style: none; }
.wi-fp .feature-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.wi-fp .feature-list li svg {
    color: var(--sage);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ---------------- Testimoni ---------------- */
.wi-fp.wi-fp-testimonials {
    padding: 100px 0 140px;
    background-color: var(--sage-dark);
    color: var(--white);
    text-align: center;
    font-family: 'Nunito', sans-serif;
    overflow: hidden;
}
.wi-fp.wi-fp-testimonials h2 {
    color: var(--white);
    font-family: 'Lora', serif;
    font-size: 36px;
    margin-bottom: 10px;
}
.wi-fp.wi-fp-testimonials p.sub { color: var(--sage-light); margin-bottom: 60px; }
.wi-fp .testi-stack {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    height: 300px;
}
.wi-fp .t-card {
    background-color: var(--white);
    color: var(--text-body);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    margin-left: -50%;
    transition: all 0.5s ease;
    opacity: 0;
    z-index: 1;
    transform: translateY(20px) scale(0.95);
}
.wi-fp .t-card.active { opacity: 1; z-index: 3; transform: translateY(0) scale(1); }
.wi-fp .t-card.prev {
    opacity: 1;
    z-index: 2;
    transform: translateY(-20px) scale(0.95);
    background-color: rgba(255, 255, 255, 0.8);
}
.wi-fp .t-card.prev-prev {
    opacity: 1;
    z-index: 1;
    transform: translateY(-40px) scale(0.9);
    background-color: rgba(255, 255, 255, 0.5);
}
.wi-fp .t-content {
    font-size: 20px;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.8;
    color: var(--text-body);
}
.wi-fp .t-author h4 {
    font-size: 18px;
    color: var(--earth);
    margin-bottom: 4px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}
.wi-fp .t-author span { color: #718096; font-size: 14px; }

/* ---------------- CTA ---------------- */
.wi-fp.wi-fp-cta {
    padding: 120px 0;
    text-align: center;
    background-color: var(--cream);
    position: relative;
    z-index: 10;
    margin-top: -60px;
    border-radius: 40px 40px 0 0;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.05);
}
.wi-fp.wi-fp-cta h2 {
    font-size: 42px;
    margin-bottom: 24px;
    font-family: 'Lora', serif;
    color: var(--earth);
}
.wi-fp.wi-fp-cta p {
    font-size: 18px;
    color: var(--text-body);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------------- Footer ---------------- */
.wi-fp.wi-fp-footer {
    padding: 40px 0;
    text-align: center;
    background-color: var(--white);
    font-family: 'Nunito', sans-serif;
    border-top: 1px solid var(--sage-light);
}
.wi-fp .footer-logo {
    font-size: 32px;
    color: var(--earth);
    margin-bottom: 20px;
    display: inline-block;
    font-family: 'Lora', serif;
    font-weight: 700;
    font-style: italic;
}
.wi-fp .footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.wi-fp .footer-links a {
    color: var(--text-body);
    font-size: 14px;
    transition: color 0.3s;
    font-weight: 600;
}
.wi-fp .footer-links a:hover { color: var(--sage); }
.wi-fp .copyright { color: #a0aec0; font-size: 13px; }

/* ---------------- Animasi glide-in ---------------- */
.wi-fp .glide-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.wi-fp .glide-in.visible { opacity: 1; transform: translateY(0); }

/* ---------------- Responsive ---------------- */
@media (max-width: 992px) {
    .wi-fp .hero-inner { flex-direction: column; text-align: center; }
    .wi-fp .hero-content { padding-right: 0; }
    .wi-fp .cards-container { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .wi-fp .feature-block, .wi-fp .feature-block.reverse { flex-direction: column; }
    .wi-fp .feature-visual::before { display: none; }
}
@media (max-width: 768px) {
    .wi-fp .nav-links { display: none; }
    .wi-fp .hero-content h1 { font-size: 40px; }
    .wi-fp .cards-container { grid-template-columns: 1fr; gap: 24px; padding: 0 10px; }
    .wi-fp .card-stack { height: 400px; }
    .wi-fp .card-footer { padding: 16px 18px; }
    .wi-fp .t-card { padding: 30px; }
    .wi-fp .t-content { font-size: 16px; }
    .wi-fp .nav-inner {display: block; justify-self: center;}
}
@media (max-width: 480px) {
    .wi-fp .card-stack { height: 380px; }
    .wi-fp .card-footer { padding: 14px 16px; gap: 8px; }
    .wi-fp .f-title { font-size: 13.5px; }
    .wi-fp .f-desc { font-size: 12.5px; }
    .wi-fp .f-price-current { font-size: 12.5px; }
    .wi-fp .f-price-orig { font-size: 10.5px; }
}
