/* Cherry Payment BNPL - Main Stylesheet */
/* Color Scheme: Cherry Red (#C41E3A), Professional Blue (#1E3A8A), Trust Gray (#4B5563) */

:root {
    --cherry-red: #C41E3A;
    --cherry-red-dark: #A01830;
    --trust-blue: #1E3A8A;
    --trust-blue-light: #3B82F6;
    --expert-gray: #4B5563;
    --light-bg: #F9FAFB;
    --white: #FFFFFF;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --border-color: #E5E7EB;
    --success-green: #10B981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

a {
    color: var(--trust-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--cherry-red);
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--trust-blue);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: var(--white);
    margin-left: 1.5rem;
}

.header-main {
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--cherry-red);
    border-bottom-color: var(--cherry-red);
}

/* Nav Apply Button */
.nav-apply-btn {
    background: linear-gradient(135deg, var(--cherry-red) 0%, #A01830 100%);
    color: var(--white) !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 0.5rem;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
    transition: all 0.3s ease !important;
}

.nav-apply-btn:hover {
    background: linear-gradient(135deg, #A01830 0%, #801020 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.4);
    color: var(--white) !important;
    border-bottom-color: transparent !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--trust-blue) 0%, var(--trust-blue-light) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.95);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--cherry-red);
    color: var(--white);
    border-color: var(--cherry-red);
}

.btn-primary:hover {
    background-color: var(--cherry-red-dark);
    border-color: var(--cherry-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--trust-blue);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--light-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Trust Badges */
.trust-badges {
    background-color: var(--light-bg);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.badge-item {
    padding: 1rem;
}

.badge-icon {
    font-size: 2.5rem;
    color: var(--cherry-red);
    margin-bottom: 0.5rem;
}

.badge-item h3 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.badge-item p {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Content Sections */
.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: var(--light-bg);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--cherry-red);
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* Expert Section */
.expert-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    border-left: 4px solid var(--cherry-red);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
}

.expert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--trust-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.expert-content h3 {
    color: var(--trust-blue);
    margin-bottom: 1rem;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 0.5rem;
    overflow: hidden;
}

.comparison-table thead {
    background-color: var(--trust-blue);
    color: var(--white);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    font-weight: 600;
}

.comparison-table tbody tr:hover {
    background-color: var(--light-bg);
}

.comparison-table .highlight {
    background-color: rgba(196, 30, 58, 0.05);
}

/* FAQ Section */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-dark);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--light-bg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    display: none;
}

.faq-answer.active {
    display: block;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--cherry-red);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* CTA Boxes */
.cta-box {
    background: linear-gradient(135deg, var(--cherry-red) 0%, var(--cherry-red-dark) 100%);
    color: var(--white);
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
    margin: 3rem 0;
}

.cta-box h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-box p {
    color: rgba(255,255,255,0.95);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    background-color: var(--light-bg);
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "›";
    color: var(--text-light);
}

.breadcrumb-list a {
    color: var(--trust-blue);
}

.breadcrumb-list .current {
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--cherry-red);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
}

.disclaimer {
    background-color: var(--light-bg);
    border-left: 4px solid var(--cherry-red);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.25rem;
}

.disclaimer h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.disclaimer p {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 1rem;
        z-index: 1000;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #E5E7EB;
    }
    
    nav ul li:last-child a {
        border-bottom: none;
    }
    
    /* Mobile Apply Button */
    .nav-apply-btn {
        margin-top: 0.5rem;
        text-align: center;
        display: block !important;
        border-radius: 0.5rem !important;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Fix comparison table on mobile - stack vertically */
    .comparison-table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .comparison-table thead {
        display: none;
    }
    
    .comparison-table tbody {
        display: block;
    }
    
    .comparison-table tr {
        display: block;
        margin-bottom: 1.5rem;
        background: var(--white);
        border: 1px solid var(--border-color);
        border-radius: 0.5rem;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    .comparison-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
        text-align: right;
    }
    
    .comparison-table td:last-child {
        border-bottom: none;
    }
    
    .comparison-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-dark);
        text-align: left;
        flex: 1;
        padding-right: 1rem;
    }
    
    .comparison-table td.highlight {
        background: linear-gradient(90deg, rgba(196, 30, 58, 0.08) 0%, rgba(196, 30, 58, 0.03) 100%);
        border-radius: 0.25rem;
        padding: 0.75rem 0.5rem;
    }
    
    /* Section spacing fix */
    .section {
        padding: 2.5rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* Card improvements on mobile */
    .card {
        padding: 1.5rem;
    }
    
    /* Expert section mobile fix */
    .expert-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .expert-content h3 {
        font-size: 1.25rem;
    }
    
    .expert-content p {
        font-size: 0.9375rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-cherry {
    color: var(--cherry-red);
}

.text-blue {
    color: var(--trust-blue);
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Lazy Loading Preparation */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Hero Banner Image Styles */
.hero picture img {
    display: block;
}

/* Responsive Hero Height */
@media (max-width: 768px) {
    /* Hero section mobile adjustments */
    section[style*="min-height: 500px"] {
        min-height: 400px !important;
    }
    
    section[style*="min-height: 500px"] h1 {
        font-size: 1.75rem !important;
        line-height: 1.25 !important;
    }
    
    section[style*="min-height: 500px"] p {
        font-size: 0.95rem !important;
    }
    
    /* Fix form section spacing */
    section[style*="padding: 3rem 0"] {
        padding: 2rem 0 !important;
    }
    
    /* Calculator widget mobile */
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Stats grid mobile */
    div[style*="grid-template-columns: repeat(3, 1fr)"] > div {
        padding: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    section[style*="min-height: 500px"] {
        min-height: 350px !important;
        padding: 2rem 0 !important;
    }
    
    section[style*="min-height: 500px"] h1 {
        font-size: 1.5rem !important;
    }
    
    section[style*="min-height: 500px"] p {
        font-size: 0.875rem !important;
    }
    
    /* Smaller cards on very small screens */
    .card {
        padding: 1.25rem;
    }
    
    .section-header h2 {
        font-size: 1.35rem;
    }
}
