/* ============================================
   ECOMsimple — Custom Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent: #10b981;
    --accent-dark: #059669;
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --light-bg: #f8fafc;
    --text: #334155;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

/* --- Base --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

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

.fw-800 { font-weight: 800; }
.fw-600 { font-weight: 600; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--primary-dark);
}

/* --- Utility --- */
.text-accent { color: var(--accent) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-dark-custom { background-color: var(--dark) !important; }
.bg-light-custom { background-color: var(--light-bg) !important; }
.text-light-muted { color: var(--text-lighter) !important; }

.section-padding {
    padding: 80px 0;
}

.section-padding-sm {
    padding: 60px 0;
}

/* --- Buttons --- */
.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline-light {
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
}

/* --- Navigation --- */
.site-header .navbar {
    background: var(--dark) !important;
    padding: 12px 0;
}

.site-header .navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.site-header .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--white) !important;
    background: rgba(255,255,255,0.1);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.15) 0%, transparent 40%);
    pointer-events: none;
}
.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: var(--white);
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 50px;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
}

/* --- Problem/Solution Strip --- */
.problem-strip {
    background: var(--light-bg);
    padding: 50px 0;
}
.problem-card {
    text-align: center;
    padding: 24px 16px;
}
.problem-card .problem-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
}
.problem-card h2, .problem-card h3 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.problem-card p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.solution-banner {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 20px;
    font-weight: 700;
    font-size: 1.2rem;
}

/* --- Feature Cards --- */
.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    height: 100%;
}
a .feature-card {
    transition: all 0.3s ease;
}
a .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.feature-card .feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--white);
}
.feature-card .feature-icon.bg-blue { background: var(--primary); }
.feature-card .feature-icon.bg-green { background: var(--accent); }
.feature-card .feature-icon.bg-purple { background: #7c3aed; }
.feature-card .feature-icon.bg-orange { background: #f59e0b; }
.feature-card .feature-icon.bg-red { background: #ef4444; }
.feature-card .feature-icon.bg-teal { background: #14b8a6; }
.feature-card .feature-icon.bg-indigo { background: #6366f1; }
.feature-card .feature-icon.bg-pink { background: #ec4899; }

.feature-card h3, .feature-card h5 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 10px;
}
.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* --- Placeholder Screenshots --- */
.placeholder-screenshot {
    background: #e2e8f0;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.placeholder-label {
    text-align: center;
    color: var(--text-light);
    padding: 24px;
}
.placeholder-label i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
    color: #94a3b8;
}
.placeholder-label span {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}
.placeholder-label small {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* --- Screenshot Tabs / Carousel --- */
.screenshot-tabs .nav-link {
    color: var(--text-light);
    font-weight: 500;
    padding: 10px 20px;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    transition: all 0.2s;
}
.screenshot-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}
.screenshot-tabs .nav-link:hover:not(.active) {
    color: var(--text);
    border-bottom-color: var(--border);
}

/* --- How It Works --- */
.step-card {
    text-align: center;
    padding: 32px 20px;
}
.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.step-card h3, .step-card h4 {
    font-weight: 700;
    margin-bottom: 10px;
}
.step-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* --- Testimonials --- */
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    height: 100%;
}
.testimonial-card .stars {
    color: #f59e0b;
    margin-bottom: 16px;
}
.testimonial-card blockquote {
    font-style: italic;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.7;
}
.testimonial-card .author {
    font-weight: 600;
    color: var(--dark);
}
.testimonial-card .role {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* --- CTA Banner --- */
.cta-banner {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.cta-banner h2 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.cta-banner p {
    opacity: 0.85;
    font-size: 1.1rem;
    margin-bottom: 24px;
}

/* --- Features Page — Zigzag Layout --- */
.feature-detail-section {
    padding: 60px 0;
}
.feature-detail-section:nth-child(even) {
    background: var(--light-bg);
}
.feature-detail-section .feature-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 16px;
}
.feature-detail-section h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.feature-detail-section .feature-list {
    list-style: none;
    padding: 0;
}
.feature-detail-section .feature-list li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text);
}
.feature-detail-section .feature-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* --- Pricing --- */
.pricing-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
    position: relative;
}
a .pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}
.pricing-card.featured {
    border-color: var(--primary);
}
.pricing-card.featured .pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pricing-card h4 {
    font-weight: 700;
    margin-bottom: 8px;
}
.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}
.pricing-card .price small {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}
.pricing-card .pricing-features {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    text-align: left;
}
.pricing-card .pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    padding-left: 28px;
    position: relative;
    font-size: 0.95rem;
}
.pricing-card .pricing-features li:last-child {
    border-bottom: none;
}
.pricing-card .pricing-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
}
.pricing-card .pricing-features li.not-included {
    color: var(--text-lighter);
    text-decoration: line-through;
}
.pricing-card .pricing-features li.not-included::before {
    content: '\f00d';
    color: var(--text-lighter);
}

/* --- FAQ --- */
.faq-section .accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm) !important;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-section .accordion-button {
    font-weight: 600;
    color: var(--dark);
    background: var(--white);
    box-shadow: none;
}
.faq-section .accordion-button:not(.collapsed) {
    color: var(--primary);
    background: var(--light-bg);
}
.faq-section .accordion-body {
    color: var(--text-light);
    line-height: 1.7;
}

/* --- Forms --- */
.form-control,
.form-select {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

/* --- Page Headers --- */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0 40px;
    text-align: center;
}
.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.page-header p {
    opacity: 0.85;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Footer --- */
.site-footer {
    background: var(--dark);
    color: var(--text-lighter);
    padding: 60px 0 30px;
}
.site-footer a {
    color: var(--text-lighter);
    transition: color 0.2s;
}
.site-footer a:hover {
    color: var(--white);
}
.footer-links li {
    margin-bottom: 10px;
}

/* --- Skip to Content --- */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: #fff;
}
.skip-to-content:focus {
    left: 0;
    color: #fff;
}

/* --- Cookie Consent --- */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: var(--white);
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

/* --- About Page --- */
.about-values {
    background: var(--light-bg);
}
.value-card {
    text-align: center;
    padding: 32px 20px;
}
.value-card .value-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 16px;
}
.value-card h3 {
    font-weight: 700;
    margin-bottom: 10px;
}
.value-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* --- Thank You --- */
.thank-you-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

/* --- Legal Pages --- */
.legal-content h2 {
    font-size: 1.4rem;
    margin-top: 32px;
    margin-bottom: 12px;
}
.legal-content p,
.legal-content li {
    color: var(--text-light);
    line-height: 1.8;
}

/* --- 404 --- */
.error-404 {
    text-align: center;
    padding: 100px 0;
}
.error-404 h1 {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 16px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .section-padding {
        padding: 60px 0;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .form-card {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 40px 0;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .pricing-card {
        padding: 24px 20px;
    }
    .cta-banner h2 {
        font-size: 1.5rem;
    }
    .screenshot-tabs .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* --- Product Screenshots --- */
.product-shot {
    display: block;
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-shot:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}
.product-shot img {
    display: block;
    width: 100%;
    height: auto;
}
/* Detail shot on feature pages — cap height on near-square captures */
.product-shot.is-detail img {
    max-height: 480px;
    object-fit: cover;
    object-position: top;
}
/* Uniform gallery tiles — crop tall portrait shots from the top */
.product-shot.is-tile img {
    height: 240px;
    object-fit: cover;
    object-position: top;
}
/* Zoom affordance badge */
.product-shot .shot-zoom {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.product-shot:hover .shot-zoom {
    opacity: 1;
}
.shot-caption {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 12px;
    text-align: center;
}

/* Hero screenshot frame — sits on the dark gradient hero */
.hero-shot {
    display: block;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-shot:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 55px -12px rgba(0, 0, 0, 0.6);
}
.hero-shot img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: cover;
    object-position: top;
}
.hero-shot .shot-zoom {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.hero-shot:hover .shot-zoom {
    opacity: 1;
}

/* Showcase — featured shot slightly taller */
.showcase-featured .product-shot.is-detail img {
    max-height: 540px;
}

/* --- Integrations Grid --- */
.integration-logo {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.integration-logo i {
    font-size: 2rem;
    color: var(--primary);
}
.integration-logo span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

/* --- Contact Info Cards --- */
.contact-info-card {
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    height: 100%;
}
.contact-info-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}
.contact-info-card h3 {
    font-weight: 700;
    margin-bottom: 4px;
}
.contact-info-card a {
    color: var(--text);
    font-weight: 500;
}

/* --- Team placeholder --- */
.team-member {
    text-align: center;
}
.team-member .avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 2.5rem;
    color: var(--text-lighter);
}
.team-member h4 {
    font-weight: 700;
    margin-bottom: 4px;
}
.team-member p {
    color: var(--text-light);
    font-size: 0.9rem;
}
