/* Eric Vanier Website Clone - Main Stylesheet */
/* Matching ericvanier.com exact colors */

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

:root {
    /* Exact colors from ericvanier.com */
    --primary-blue: #3E92CC;
    --primary-blue-dark: #326B99;
    --accent-coral: #F45D48;
    --accent-green: #7FA850;
    --accent-gold: #FAB95B;
    --accent-purple: #836AF9;

    /* Background Colors - Light Theme (exact ericvanier.com colors) */
    --body-bg: #FFFFFF;
    --light-bg: #E9F4FB;
    --medium-bg: #C8DEEB;
    --white-bg: #FFFFFF;
    --card-bg: #FFFFFF;
    --footer-bg: #121417;

    /* Text Colors */
    --text-dark: #212529;
    --text-body: #495057;
    --text-muted: #6C757D;
    --text-white: #FFFFFF;

    /* Border Colors */
    --border-light: #E9ECEF;
    --border-medium: #DEE2E6;

    /* Button Colors */
    --btn-primary: #3E92CC;
    --btn-primary-hover: #326B99;
    --btn-secondary: #EFC050;
    --btn-secondary-hover: #C39E40;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Fira Code', 'Monaco', 'Consolas', monospace;

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 80px;
    --card-padding: 24px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--body-bg);
    color: var(--text-body);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

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

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

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

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--body-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
}

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

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

.logo img {
    height: 36px;
    width: auto;
}

.nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav a {
    color: var(--text-body);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-blue);
}

.nav-cta {
    background: var(--btn-primary);
    color: var(--text-white) !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--btn-primary-hover);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    background: var(--light-bg);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 2.75rem;
    line-height: 1.15;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 28px;
    color: var(--text-body);
    line-height: 1.7;
}

.trust-badges {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.trust-badge svg {
    color: var(--accent-green);
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(62, 146, 204, 0.3);
}

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

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

/* Section Styles */
.section {
    padding: var(--section-padding) 0;
    background: var(--body-bg);
}

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

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}

.section-header h2 {
    margin-bottom: 12px;
}

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

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--border-medium);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 22px;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.card p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 6px;
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
}

/* Process Steps */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 80px;
    right: 80px;
    height: 2px;
    background: var(--border-medium);
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(62, 146, 204, 0.25);
}

.process-step h3 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.process-step p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 28px;
    border: 1px solid var(--border-light);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-body);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.author-info h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.author-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.blog-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.blog-card-image {
    height: 180px;
    background: var(--light-bg);
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
}

.blog-card-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--primary-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card h3 a:hover {
    color: var(--primary-blue);
}

.blog-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.read-more:hover {
    gap: 8px;
    color: var(--btn-primary-hover);
}

/* Footer */
.footer {
    background: var(--footer-bg);
    padding: 50px 0 24px;
    color: var(--text-white);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

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

.footer-links li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Article Styles */
.article-hero {
    padding: 140px 0 60px;
    background: var(--light-bg);
}

.article-header {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--primary-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.article-excerpt {
    font-size: 1.15rem;
    color: var(--text-body);
    line-height: 1.7;
}

.article-content {
    max-width: 750px;
    margin: 0 auto;
    padding: 50px 20px;
    background: var(--body-bg);
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.article-content h3 {
    margin-top: 32px;
    margin-bottom: 14px;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.article-content p {
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-body);
}

.article-content ul, .article-content ol {
    margin: 18px 0 18px 20px;
    color: var(--text-body);
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-content strong {
    color: var(--text-dark);
}

/* Code Blocks */
.code-block {
    background: #282c34;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
}

.code-block pre {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    color: #abb2bf;
    margin: 0;
}

.code-keyword { color: #c678dd; }
.code-string { color: #98c379; }
.code-comment { color: #5c6370; }
.code-function { color: #61afef; }
.code-number { color: #d19a66; }

.article-content code:not(pre code) {
    background: var(--light-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--accent-coral);
}

/* Info Box */
.info-box {
    background: rgba(62, 146, 204, 0.08);
    border-left: 3px solid var(--primary-blue);
    padding: 18px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.info-box p {
    margin: 0;
    color: var(--text-dark);
    font-size: 15px;
}

/* Warning Box */
.warning-box {
    background: rgba(250, 185, 91, 0.1);
    border-left: 3px solid var(--accent-gold);
    padding: 18px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.warning-box p {
    margin: 0;
    color: var(--text-dark);
    font-size: 15px;
}

/* Table Styles */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.article-content th,
.article-content td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

.article-content th {
    background: var(--primary-blue);
    font-weight: 600;
    color: var(--text-white);
}

.article-content td {
    color: var(--text-body);
}

/* CTA Section */
.cta-section {
    background: var(--primary-blue);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 12px;
    color: var(--text-white);
    font-size: 1.75rem;
}

.cta-section p {
    font-size: 1.05rem;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn {
    background: var(--btn-secondary);
    color: var(--text-white);
}

.cta-section .btn:hover {
    background: var(--btn-secondary-hover);
    transform: translateY(-1px);
}

/* Related Articles */
.related-articles {
    padding: 60px 0;
    background: var(--section-light);
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content { order: 1; }
    .hero-image { order: 2; }
    .trust-badges { justify-content: center; }
    .hero-buttons { justify-content: center; }
    .stats-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid::before { display: none; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --section-padding: 50px; }
    .nav { display: none; }
    .mobile-menu-btn { display: block; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-number { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .trust-badges { flex-direction: column; align-items: center; }
    .stats-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
}
