/* ==========================================================================
   RetailerBox Custom Theme Styles
   Modern B2B SaaS Aesthetic
   ========================================================================== */

/* --- Variables --- */
:root {
    --primary-color: #0F172A;
    --primary-light: #1E293B;
    --secondary-color: #2563EB;
    --secondary-hover: #1D4ED8;
    --accent-color: #10B981;
    --accent-hover: #059669;
    
    --bg-white: #FFFFFF;
    --bg-soft: #F8FAFC;
    --bg-dark: #0F172A;
    
    --text-main: #334155;
    --text-light: #64748B;
    --text-white: #F8FAFC;
    
    --border-color: #E2E8F0;
    
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(37, 99, 235, 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- Base --- */
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    line-height: 1.2;
    font-weight: 700;
    margin-top: 0;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-white { color: var(--text-white); }
.text-white h1, .text-white h2, .text-white h3, .text-white p { color: var(--text-white); }
.bg-soft { background-color: var(--bg-soft); }
.bg-dark { background-color: var(--bg-dark); }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}
.btn-primary:hover {
    background-color: var(--secondary-hover);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}
.btn-outline-light:hover {
    background-color: var(--text-white);
    color: var(--primary-color);
}
.btn-block {
    width: 100%;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    padding: 20px 0;
}
.site-header.scrolled {
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}
.main-nav a:hover {
    color: var(--secondary-color);
}

.header-cta .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* --- Section Formatting --- */
section {
    padding: 100px 0;
}
.section-header {
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
}
.section-header.text-center p {
    margin-left: auto;
    margin-right: auto;
}

/* --- Hero Section --- */
.hero-section {
    padding-top: 180px;
    padding-bottom: 120px;
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-white) 100%);
    overflow: hidden;
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    letter-spacing: -1px;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-highlights {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.hero-highlights li {
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    font-weight: 500;
}
.hero-highlights li::before {
    content: ''; /* handled by checkmark in HTML, or add background image here */
    color: var(--accent-color);
}

.hero-graphic {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-img {
    max-width: 120%;
    transform: translateX(10%);
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(var(--shadow-glass));
}

@keyframes float {
    0% { transform: translateY(0) translateX(10%); }
    50% { transform: translateY(-20px) translateX(10%); }
    100% { transform: translateY(0) translateX(10%); }
}

/* --- GEO Answer Section --- */
.geo-answer-summary {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.answer-panel {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--secondary-color);
}
.answer-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: var(--transition);
}
.service-card:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: var(--bg-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--secondary-color);
    font-size: 24px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* --- Why Us Section --- */
.why-container {
    display: flex;
    align-items: center;
    gap: 60px;
}
.why-content {
    flex: 1;
}
.why-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}
.why-content p {
    font-size: 1.1rem;
    color: #94A3B8;
    margin-bottom: 20px;
}
.why-benefits {
    flex: 1;
    background: var(--primary-light);
    padding: 40px;
    border-radius: 12px;
}
.why-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.why-benefits li {
    font-weight: 500;
    font-size: 1rem;
}

/* --- Process Section --- */
.process-section {
    background-color: var(--bg-soft);
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.process-step {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 25px auto;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}
.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}
.process-step p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- About Section --- */
.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}
.about-section p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* --- GEO Entity Cloud --- */
.geo-entities {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.entity-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.entity-tag {
    background-color: var(--bg-soft);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.entity-tag:hover {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    border-color: var(--secondary-color);
}

/* --- FAQ Section --- */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
.faq-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.faq-card h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}
.faq-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: 80px 0;
}
.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.cta-section .btn-primary {
    background-color: var(--accent-color);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}
.cta-section .btn-primary:hover {
    background-color: var(--accent-hover);
}

/* --- Contact Section --- */
.contact-container {
    display: flex;
    gap: 60px;
}
.contact-info {
    flex: 1;
}
.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}
.info-block {
    margin-bottom: 25px;
    font-size: 1.1rem;
}
.info-block strong {
    color: var(--primary-color);
    display: inline-block;
    margin-bottom: 5px;
}

.contact-form-wrapper {
    flex: 1;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-row {
    display: flex;
    gap: 20px;
}
.form-group {
    margin-bottom: 20px;
    flex: 1;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    box-sizing: border-box;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-messages {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 6px;
    display: none;
}
.form-messages.success {
    display: block;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.form-messages.error {
    display: block;
    background-color: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* --- Trusted By Section --- */
.trusted-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}
.trusted-section h2 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.trusted-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.trust-badge {
    background: var(--bg-soft);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
}

/* --- Problems We Solve Section --- */
.problems-section {
    background: var(--bg-dark);
    color: var(--text-white);
}
.problems-section .section-header h2 {
    color: var(--text-white);
}
.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.problem-card {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
}
.problem-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

/* --- Stats Bar Section --- */
.stats-section {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    padding: 60px 0;
    color: white;
}
.stats-bar {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}
.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 10px;
}
.stat-label {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.8);
}

/* --- Partnerships Section --- */
.partnerships-section {
    padding: 100px 0;
    background: var(--bg-white);
}
.partnership-container {
    display: flex;
    justify-content: center;
}
.partnership-content {
    background: var(--bg-soft);
    padding: 60px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    max-width: 800px;
    width: 100%;
}
.partnership-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
.partnership-list li {
    padding: 10px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}
.partnership-list li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 15px;
}
.partnership-list li:last-child {
    border-bottom: none;
}

.mt-15 { margin-top: 15px; }

/* --- Footer --- */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 80px 0 30px;
}
.footer-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 60px;
}
.footer-col {
    flex: 1;
}
.brand-col .footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}
.brand-col .tagline {
    color: var(--text-light);
}
.footer-col h4 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col a {
    color: var(--text-light);
}
.footer-col a:hover {
    color: var(--bg-white);
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* --- Animations --- */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-item.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-graphic {
        margin-top: 40px;
    }
    .floating-img {
        max-width: 100%;
        transform: translateX(0);
        animation: none;
    }
    .hero-ctas {
        justify-content: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-container, .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        padding: 20px;
        box-shadow: var(--shadow-md);
        display: none;
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .header-cta .btn {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-highlights {
        grid-template-columns: 1fr;
    }
    .services-grid, .process-steps, .faq-grid {
        grid-template-columns: 1fr;
    }
    .problems-grid {
        grid-template-columns: 1fr;
    }
    .stats-bar {
        flex-direction: column;
        gap: 40px;
    }
    .why-benefits ul {
        grid-template-columns: 1fr;
    }
    .cta-buttons {
        flex-direction: column;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
}
