/* 
 * ExcelPro Templates - Main Stylesheet
 * Professional Excel Templates Website
 */

/* ============================================
   1. RESET & VARIABLES
   ============================================ */

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

:root {
    /* Colors */
    --navy: #1e3a8a;
    --navy-dark: #1e40af;
    --slate: #334155;
    --green: #059669;
    --gold: #f59e0b;
    --red: #dc2626;
    --light-gray: #f1f5f9;
    --medium-gray: #e2e8f0;
    --white: #ffffff;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 80px;
}

/* ============================================
   2. BASE STYLES
   ============================================ */

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
    color: var(--slate);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    background: var(--white);
}

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

h1 { font-size: 48px; margin-bottom: 24px; }
h2 { font-size: 36px; margin-bottom: 20px; }
h3 { font-size: 24px; margin-bottom: 16px; }
h4 { font-size: 20px; margin-bottom: 12px; }

p {
    margin-bottom: 16px;
    line-height: 1.7;
}

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

a:hover {
    color: var(--navy-dark);
}

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

/* ============================================
   3. LAYOUT
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 40px;
    color: var(--navy);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--slate);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   4. HEADER & NAVIGATION
   ============================================ */

.header {
    background: var(--white);
    border-bottom: 1px solid var(--medium-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--slate);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--navy);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--navy);
    cursor: pointer;
}

/* ============================================
   5. BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
}

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

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-success {
    background: var(--green);
    color: var(--white);
}

.btn-success:hover {
    background: #047857;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 18px;
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
}

/* ============================================
   6. HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--slate);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.trust-bar {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    padding: var(--spacing-lg) 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--slate);
    font-size: 15px;
}

.trust-item span {
    font-size: 20px;
}

/* ============================================
   7. GRID LAYOUTS
   ============================================ */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

/* ============================================
   8. CARDS
   ============================================ */

.card {
    background: var(--white);
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    border: 1px solid var(--medium-gray);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    margin-bottom: var(--spacing-sm);
}

.card-title {
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 8px;
}

.card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.card-body {
    margin-bottom: var(--spacing-sm);
}

.card-footer {
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--medium-gray);
}

/* Template Cards */
.template-card {
    position: relative;
}

.template-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--navy);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.template-card-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    margin: 12px 0;
}

.template-card-features {
    list-style: none;
    margin: 16px 0;
}

.template-card-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.template-card-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: bold;
}

/* ============================================
   9. COMPARISON TABLE
   ============================================ */

.comparison-section {
    background: var(--light-gray);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.comparison-column {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px;
}

.comparison-column.before {
    border-left: 4px solid var(--red);
}

.comparison-column.after {
    border-left: 4px solid var(--green);
}

.comparison-column h3 {
    margin-bottom: var(--spacing-sm);
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    font-size: 15px;
}

.comparison-list li:before {
    position: absolute;
    left: 0;
    font-size: 20px;
    font-weight: bold;
}

.comparison-column.before li:before {
    content: "❌";
}

.comparison-column.after li:before {
    content: "✅";
}

/* ============================================
   10. TESTIMONIALS
   ============================================ */

.testimonial-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--gold);
}

.testimonial-rating {
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 12px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: var(--slate);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--medium-gray);
}

.testimonial-author-info {
    flex: 1;
}

.testimonial-author-name {
    font-weight: 600;
    color: var(--navy);
    font-size: 15px;
}

.testimonial-author-role {
    font-size: 14px;
    color: var(--slate);
}

/* ============================================
   11. PRICING TABLES
   ============================================ */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: 12px;
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.3s;
}

.pricing-card.featured {
    border-color: var(--navy);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.pricing-title {
    font-size: 24px;
    color: var(--navy);
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--navy);
    margin: 16px 0;
}

.pricing-period {
    font-size: 16px;
    color: var(--slate);
    font-weight: normal;
}

.pricing-features {
    list-style: none;
    margin: 24px 0;
    text-align: left;
}

.pricing-features li {
    padding: 12px 0;
    padding-left: 28px;
    position: relative;
    color: var(--slate);
}

.pricing-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: bold;
    font-size: 18px;
}

/* ============================================
   12. FAQ
   ============================================ */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

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

.faq-answer {
    padding: 0 20px 20px;
    color: var(--slate);
    line-height: 1.7;
    display: none;
}

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

.faq-toggle {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s;
}

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

/* ============================================
   13. FOOTER
   ============================================ */

.footer {
    background: var(--navy);
    color: var(--white);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ============================================
   14. FORMS
   ============================================ */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--navy);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--navy);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   15. BREADCRUMB
   ============================================ */

.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-list li:after {
    content: "›";
    color: var(--slate);
}

.breadcrumb-list li:last-child:after {
    content: "";
}

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

/* ============================================
   16. BADGES & LABELS
   ============================================ */

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-new {
    background: var(--green);
    color: var(--white);
}

.badge-popular {
    background: var(--gold);
    color: var(--white);
}

.badge-premium {
    background: var(--navy);
    color: var(--white);
}

/* ============================================
   17. RESPONSIVE DESIGN
   ============================================ */

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-lg);
        gap: var(--spacing-sm);
        transition: left 0.3s;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-bar {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 20px; }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
}

/* ============================================
   18. UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.hidden { display: none; }
.visible { display: block; }
