/*
Theme Name: Fipay Theme
Version: 1.5
*/

:root {
    --primary-color: #2563eb; 
    --secondary-color: #1e293b; 
    --text-color: #334155;
    --heading-color: #0f172a;
    --bg-color: #ffffff;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-color);
    margin: 0; padding: 0;
    line-height: 1.7; background: #fcfcfc;
}

h1, h2, h3 { color: var(--heading-color); font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- HEADER (Centered Layout) --- */
header { background: #fff; border-bottom: 1px solid var(--border-color); padding: 1.2rem 0; position: sticky; top: 0; z-index: 100; }

.header-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* This creates the perfect center */
    align-items: center;
}

.logo { justify-self: start; font-size: 1.75rem; font-weight: 900; color: var(--heading-color); }

.main-menu { justify-self: center; display: flex; gap: 32px; }
.main-menu a { font-weight: 600; font-size: 0.95rem; color: var(--text-color); transition: color 0.2s; }
.main-menu a:hover { color: var(--primary-color); }

.header-actions { justify-self: end; }

/* --- HERO SECTION --- */
.hero-section { background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); padding: 5rem 0 7rem; border-bottom: 1px solid var(--border-color); overflow: hidden; }
.hero-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }

.hero-text h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-text p { font-size: 1.2rem; color: #64748b; margin-bottom: 2.5rem; }
.badge { display: inline-block; background: #dbeafe; color: var(--primary-color); font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; margin-bottom: 1rem; }
.hero-proof { margin-top: 30px; display: flex; align-items: center; gap: 12px; font-size: 0.9rem; }
.stars { color: #fbbf24; letter-spacing: 2px; }

/* HERO IMAGE & FLOAT BADGE */
.hero-image-wrapper { position: relative; }
.hero-image-wrapper img {
    width: 80%; border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    margin: 0 auto; display: block;
}
.floating-badge {
    position: absolute; bottom: 20px; right: 10px;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    padding: 15px 20px; border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex; align-items: center; gap: 12px;
    border: 1px solid #f0f0f0;
    animation: float 4s ease-in-out infinite;
}
.floating-badge strong { display: block; color: var(--heading-color); font-size: 0.95rem; }
.floating-badge small { display: block; color: #64748b; font-size: 0.8rem; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }

/* BUTTONS */
.hero-btns { display: flex; gap: 16px; }
.btn-primary, .btn-secondary { padding: 14px 28px; border-radius: 8px; font-weight: 600; transition: transform 0.2s; }
.btn-primary { background: var(--primary-color); color: white; box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2); }
.btn-secondary { background: #fff; color: var(--secondary-color); border: 1px solid var(--border-color); }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-2px); }

/* TRUST & FEATURES */
.trust-bar { padding: 3rem 0; text-align: center; border-bottom: 1px solid var(--border-color); background: #fdfdfd; }
.trust-bar p { font-size: 0.75rem; font-weight: 700; color: #94a3b8; letter-spacing: 1px; margin-bottom: 1.5rem; }
.logos { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; font-weight: 800; color: #cbd5e1; font-size: 1.5rem; }

.features-bar { padding: 4rem 0; border-bottom: 1px solid var(--border-color); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature-item .icon-box { width: 50px; height: 50px; background: #eff6ff; color: var(--primary-color); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 1rem; }

/* PRODUCT GRID */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title { font-size: 2.2rem; margin-bottom: 0.5rem; }
.section-subtitle { color: #64748b; font-size: 1.1rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.product-card { background: white; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; transition: all 0.2s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f1f5f9; }
.product-info { padding: 24px; text-align: center; }
.product-info h3 { font-size: 1rem; margin-bottom: 5px; }
.price { font-size: 1.25rem; font-weight: 700; color: var(--heading-color); }
.btn-small { display: inline-block; background: var(--secondary-color); color: white; padding: 8px 20px; border-radius: 6px; font-size: 0.9rem; margin-top: 10px; }

/* TESTIMONIALS */
.testimonials-section { padding: 5rem 0; background: #f8fafc; border-top: 1px solid var(--border-color); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 3rem; }
.testimonial-card { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.testimonial-card p { font-size: 1rem; margin: 1rem 0; color: #475569; }
.user { display: flex; align-items: center; gap: 12px; margin-top: 1.5rem; }
.user img { width: 40px; height: 40px; border-radius: 50%; }

/* FAQ */
.faq-section { padding: 5rem 0; background: white; }
.faq-grid { max-width: 800px; margin: 3rem auto 0; display: flex; flex-direction: column; gap: 20px; }
.faq-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 0; overflow: hidden; transition: all 0.2s; }
.faq-box[open] { border-color: var(--primary-color); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1); }
.faq-box summary { padding: 20px 24px; font-weight: 600; cursor: pointer; list-style: none; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; }
.faq-box summary::-webkit-details-marker { display: none; }
.faq-box summary:after { content: '+'; font-size: 1.5rem; font-weight: 300; transition: transform 0.2s; }
.faq-box[open] summary:after { transform: rotate(45deg); }
.faq-box p { margin: 0; padding: 0 24px 24px 24px; color: #64748b; line-height: 1.6; border-top: 1px solid transparent; }
.faq-box[open] p { border-top-color: #f1f5f9; padding-top: 20px; }

/* CTA */
.cta-section { background: var(--heading-color); color: white; padding: 5rem 0; text-align: center; }
.cta-section h2 { color: white; margin-bottom: 1rem; }
.cta-section p { color: #94a3b8; font-size: 1.2rem; margin-bottom: 2rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-grid { grid-template-columns: 1fr auto; gap: 15px; }
    .main-menu { display: none; /* Mobile menu hidden for now */ }
    .hero-split { grid-template-columns: 1fr; text-align: center; }
    .hero-image img { width: 60%; margin-top: 40px; }
    .floating-badge { right: 50%; transform: translateX(50%); bottom: 0; width: 200px; justify-content: center; }
    .features-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .logos { flex-direction: column; gap: 20px; }
}

/* --- ABOUT PAGE STYLES --- */
.about-hero { text-align: center; padding: 5rem 0 3rem; }
.about-hero h1 { font-size: 4rem; margin-top: 1rem; margin-bottom: 1.5rem; line-height: 1; }
.about-hero p { max-width: 700px; margin: 0 auto; color: #64748b; font-size: 1.25rem; }
.badge-pill { background: #e0f2fe; color: var(--primary-color); padding: 8px 16px; border-radius: 30px; font-weight: 600; font-size: 0.9rem; }

/* Stats */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); padding: 4rem 0; text-align: center; gap: 30px; }
.stat-icon { font-size: 1.5rem; margin-bottom: 1rem; color: #64748b; }
.stats-bar h3 { font-size: 2.5rem; margin-bottom: 0.5rem; }

/* Mission Vision */
.mission-vision { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 4rem 0; }
.mv-icon { width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; margin-bottom: 1.5rem; }
.mv-icon.blue { background: var(--primary-color); }
.mv-icon.dark { background: var(--secondary-color); }

/* Values */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.value-card { background: white; border: 1px solid #f1f5f9; padding: 2rem; border-radius: 16px; transition: transform 0.2s; }
.value-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -5px rgba(0,0,0,0.05); }
.v-icon { width: 50px; height: 50px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; margin-bottom: 1.5rem; }
.v-icon.blue { background: #0ea5e9; }
.v-icon.pink { background: #ec4899; }
.v-icon.blue-dark { background: #3b82f6; }
.v-icon.orange { background: #eab308; }

/* Timeline */
.timeline-section { padding: 5rem 0; }
.timeline { position: relative; max-width: 1000px; margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 2px; background-color: var(--primary-color); top: 0; bottom: 0; left: 50%; margin-left: -1px; }
.timeline-item { padding: 10px 40px; position: relative; background-color: inherit; width: 50%; box-sizing: border-box; }
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; }
.timeline-item::after { content: ''; position: absolute; width: 16px; height: 16px; right: -8px; background-color: white; border: 4px solid var(--primary-color); top: 20px; border-radius: 50%; z-index: 1; }
.timeline-item.right::after { left: -8px; }
.timeline-content { padding: 20px 30px; background-color: white; position: relative; border-radius: 12px; border: 1px solid #e2e8f0; }
.timeline-content h3 { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 0.5rem; }

@media (max-width: 768px) {
    .stats-bar, .mission-vision, .values-grid { grid-template-columns: 1fr; }
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item.left { text-align: left; }
    .timeline-item.right { left: 0; }
    .timeline-item::after { left: 23px; }
}

/* --- CUSTOM CTA BOX --- */
.cta-box {
    background: #0f172a; /* Dark Slate */
    border-radius: 20px;
    padding: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.3);
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern to make it pop */
.cta-box::before {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background: radial-gradient(circle at top right, #334155, transparent 40%);
    opacity: 0.4; pointer-events: none;
}

.cta-content { max-width: 500px; position: relative; z-index: 2; }
.cta-content h2 { color: white; margin-bottom: 1rem; font-size: 2.2rem; }
.cta-content p { color: #94a3b8; font-size: 1.1rem; }

.cta-actions { display: flex; gap: 16px; position: relative; z-index: 2; }

/* Custom Outline Button for Dark Background */
.btn-outline {
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.05); }

/* Make it stack on mobile */
@media (max-width: 768px) {
    .cta-box { flex-direction: column; text-align: center; padding: 3rem 1.5rem; gap: 30px; }
    .cta-actions { flex-direction: column; width: 100%; }
    .cta-actions a { display: block; text-align: center; }
}

/* --- DARK MODE VALUES --- */
.values-section.dark-mode {
    background: var(--heading-color); /* Dark Slate */
    padding: 6rem 0;
    margin: 4rem 0;
}

.value-card.dark-card {
    background: rgba(255, 255, 255, 0.05); /* Subtle Glass Effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}
.value-card.dark-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* HIDE OLD HEADER/TITLE ON CHECKOUT */
.woocommerce-checkout header, 
.wcf-header {
    display: none !important;
}

/* HIDE BILLING HOST FIELDS IF ANY REMAIN */
#billing_country_field, 
#billing_address_1_field {
    display: none !important;
}

/* FIX BUTTON COLORS (Make them Blue) */
.woocommerce-checkout button.button,
.woocommerce-checkout .wcf-btn-small {
    background-color: #2563eb !important;
    color: white !important;
    border-radius: 5px;
}
.woocommerce-checkout button.button:hover {
    background-color: #1d4ed8 !important;
}