/*
Theme Name: eBay Solutionz Landing
Theme URI: https://example.com
Author: Custom Build
Author URI: https://example.com
Description: Pixel-perfect single landing page theme for the "eBay Solutionz" book sales page, replicating the supplied design with hero, feature checklist, comparison, and CTA sections. Includes an editable front page and Buy Now link via Customizer.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: ebay-solutionz
*/

/* =========================================================
   RESET
========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1a2340;
    background: #f4f7fc;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 40px;
}

/* =========================================================
   COLOR TOKENS
========================================================= */
:root {
    --navy: #14213d;
    --blue-primary: #1449c4;
    --blue-deep: #0f2e8f;
    --blue-panel: #123fae;
    --text-dark: #1a2340;
    --text-muted: #5b6478;
    --bg-soft: #eef2fb;
    --white: #ffffff;
    --red-x: #e14b4b;
    --check-blue: #1449c4;
    --border-soft: #e3e8f3;
}

/* =========================================================
   HEADER
========================================================= */
.site-header {
    background: #fff;
    padding: 22px 0;
    position: relative;
    z-index: 20;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-logo {
    display: flex;
    align-items: center;
}
.site-logo img {
    height: 62px;
    width: auto;
    border-radius: 50%;
}
.site-logo .logo-fallback {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 1px solid #dfe4ee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    text-align: center;
    line-height: 1.1;
}
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 34px;
}
.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
}
.main-nav .current-menu-item a,
.main-nav a.active {
    color: var(--blue-primary);
    font-weight: 600;
}
.btn-buy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-primary);
    color: #fff !important;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 22px;
    border-radius: 8px;
    transition: background .2s ease;
    white-space: nowrap;
}
.btn-buy:hover { background: var(--blue-deep); }

/* =========================================================
   HERO
========================================================= */
.hero {
    position: relative;
    overflow: hidden;
    padding: 70px 0 60px;
}
.hero-bg-blob {
    position: absolute;
    top: -60px;
    right: -120px;
    width: 780px;
    height: 780px;
    background: radial-gradient(circle at 30% 30%, #cfe0ff 0%, #dbe8ff 55%, rgba(219,232,255,0) 75%);
    border-radius: 50%;
    z-index: 0;
}
.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}
.hero-title {
    font-size: 52px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.hero-title .brand-ebay {
    display: block;
    font-size: 60px;
    font-weight: 800;
}
.hero-title .brand-ebay span:nth-child(1) { color: #e53238; }
.hero-title .brand-ebay span:nth-child(2) { color: #0064d2; }
.hero-title .brand-ebay span:nth-child(3) { color: #f5af02; }
.hero-title .brand-ebay span:nth-child(4) { color: #86b817; }
.hero-title .brand-script {
    display: block;
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-weight: 400;
    font-size: 58px;
    color: var(--text-dark);
    margin-top: -6px;
}
.hero-subtitle {
    margin-top: 22px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.28;
    color: var(--text-dark);
}
.hero-desc {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 480px;
}
.hero-cta {
    margin-top: 28px;
}
.hero-badges {
    margin-top: 40px;
    display: flex;
    gap: 34px;
}
.hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}
.hero-badge .icon-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid #c7d3ee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-primary);
    flex-shrink: 0;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 460px;
}
.hero-visual .pedestal {
    position: absolute;
    bottom: 10px;
    width: 320px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 18px 40px rgba(20,73,196,0.18), inset 0 0 0 1px #e7ecf7;
}
.hero-visual .pedestal::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -8px;
    height: 10px;
    background: linear-gradient(90deg, transparent, #7fa6ff, transparent);
    border-radius: 50%;
    opacity: .5;
}
.hero-visual .book-cover-img {
    position: relative;
    z-index: 2;
    width: 260px;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(15,46,143,0.28);
}
.hero-seal {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 10px 24px rgba(15,46,143,0.2);
}

/* =========================================================
   FAMILIAR / PAIN POINTS SECTION
========================================================= */
.section-familiar {
    padding: 10px 0 50px;
}
.familiar-card {
    background: #fff;
    border-radius: 22px;
    padding: 46px 50px 40px;
    box-shadow: 0 20px 50px rgba(20,45,120,0.06);
}
.familiar-title {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 34px;
}
.familiar-title .accent { color: var(--blue-primary); }
.familiar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 34px;
}
.familiar-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--border-soft);
}
.familiar-item .x-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--red-x);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin-top: 2px;
}
.familiar-item p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-dark);
}
.familiar-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 16px;
    color: var(--text-dark);
}
.familiar-footer a { color: var(--blue-primary); font-weight: 700; }

/* =========================================================
   WHY DIFFERENT (BLUE PANEL)
========================================================= */
.section-why {
    padding: 20px 0 50px;
}
.why-panel {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-deep));
    border-radius: 22px;
    padding: 50px 55px;
    color: #fff;
    display: grid;
    grid-template-columns: 1.1fr 0.15fr 1fr;
    gap: 30px;
    align-items: center;
}
.why-panel h2 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 18px;
}
.why-panel h2 .accent { color: #a9c4ff; }
.why-left p {
    font-size: 15px;
    line-height: 1.6;
    color: #dbe6ff;
    margin-bottom: 12px;
}
.why-icon-mid {
    display: flex;
    justify-content: center;
}
.why-icon-mid .circle {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
}
.why-icon-mid svg { width: 32px; height: 32px; }
.why-list {
    display: grid;
    gap: 14px;
}
.why-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
}
.why-list .check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    color: var(--blue-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

/* =========================================================
   WHO / WHAT TWO-COLUMN
========================================================= */
.section-split {
    padding: 10px 0 50px;
}
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}
.split-card {
    background: #fff;
    border-radius: 20px;
    padding: 38px 40px;
    box-shadow: 0 16px 40px rgba(20,45,120,0.06);
}
.split-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 24px;
}
.split-card h3 .accent { color: var(--blue-primary); }
.split-list {
    display: grid;
    gap: 18px;
}
.split-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15.5px;
    font-weight: 500;
}
.split-list .icon {
    width: 22px;
    height: 22px;
    color: var(--blue-primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.split-visual {
    margin-top: 26px;
    display: flex;
    justify-content: flex-end;
}
.split-visual .circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1.5px solid #d7e0f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-primary);
}

/* =========================================================
   CTA BAND
========================================================= */
.section-cta {
    padding: 10px 0 40px;
}
.cta-band {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 36px 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.cta-left h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}
.cta-left h2 .accent { color: var(--blue-primary); }
.cta-left p {
    color: var(--text-muted);
    font-size: 14.5px;
    max-width: 480px;
}
.cta-mid { display: flex; flex-direction: column; gap: 8px; }
.cta-right {
    display: flex;
    gap: 26px;
}
.cta-icon-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}
.cta-icon-item svg { width: 18px; height: 18px; color: var(--blue-primary); }

/* =========================================================
   BOTTOM FEATURE STRIP
========================================================= */
.section-feature-strip {
    padding: 0 0 30px;
}
.feature-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}
.feature-strip-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.feature-strip-item .icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #d7e0f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-primary);
    flex-shrink: 0;
}
.feature-strip-item h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}
.feature-strip-item p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =========================================================
   FOOTER BAR
========================================================= */
.site-footer-bar {
    background: var(--navy);
    color: #fff;
    text-align: center;
    padding: 18px 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* =========================================================
   RESPONSIVE (COMPLETELY FIXED FOR MOBILE OVERFLOW)
========================================================= */
@media (max-width: 960px) {
    .hero .container { 
        grid-template-columns: 1fr; 
        text-align: center;
    }
    .hero-desc {
        margin: 18px auto 0;
    }
    .hero-visual { 
        margin-top: 40px; 
    }
    .familiar-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .split-grid { 
        grid-template-columns: 1fr; 
    }
    .why-panel { 
        grid-template-columns: 1fr; 
        text-align: left; 
    }
    .why-icon-mid { 
        display: none; 
    }
    .feature-strip { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .main-nav { 
        display: none; 
    }
}

@media (max-width: 768px) {
    /* 1. HERO BADGES FIX (Jo cutoff ho rahe the) */
    .hero-badges {
        flex-direction: column; /* Row ki jagah auto column ban jayega */
        align-items: center;
        gap: 16px;
        margin-top: 30px;
    }
    .hero-badge {
        width: 100%;
        max-width: 280px;
        justify-content: flex-start;
    }

    /* 2. CTA BAND FIX (Stop Guessing wala box) */
    .cta-band {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        padding: 30px 20px;
        gap: 24px;
    }
    .cta-left h2, .cta-left p {
        max-width: 100%;
    }
    
    /* CTA ke andar ke icons ko column mein set karne ke liye */
    .cta-right {
        flex-direction: column !important;
        align-items: center !important;
        gap: 14px !important;
        width: 100%;
    }
    .cta-icon-item {
        justify-content: center;
        width: 100%;
    }

    /* 3. BOOK COVER & PEDESTAL OVERRIDE (Additional CSS ke fixed width ko todne ke liye) */
    .hero-visual .book-cover-img {
        width: 100% !important;
        max-width: 240px !important; /* Mobile ke hisab se safe size */
        height: auto !important;
        margin: 0 auto;
    }
    .hero-visual .pedestal {
        width: 280px !important;
        left: 50% !important;
        transform: translateX(-50%) !important; /* Mobile par perfect center alignment */
    }
    .hero-seal {
        width: 90px;
        height: 90px;
        top: 0;
        right: 15%;
    }
}

@media (max-width: 600px) {
    .container { 
        padding: 0 20px; 
    }
    .hero-title { 
        font-size: 36px; 
    }
    .hero-title .brand-ebay { 
        font-size: 44px; 
    }
    .hero-title .brand-script { 
        font-size: 40px; 
    }
    .hero-subtitle { 
        font-size: 20px; 
    }
    
    .familiar-grid, .feature-strip { 
        grid-template-columns: 1fr !important; 
    }
    .why-panel, .familiar-card, .split-card { 
        padding: 30px 20px; 
    }
}