/* ============================================
   REMITTANCE CONSULTANT — Design System
   Navy (#1E3A5F) + Teal (#00D4AA) + Orange (#FF6B35)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ─────────────────────────── */
:root {
    /* Brand Colors */
    --navy:        #1E3A5F;
    --navy-dark:   #152a45;
    --navy-light:  #2a4f7a;
    --teal:        #00D4AA;
    --teal-dark:   #00a888;
    --orange:      #FF6B35;
    --orange-dark: #e5551f;

    /* Neutrals */
    --bg:          #0B1220;
    --bg-card:     #111827;
    --bg-elevated: #1a2540;
    --border:      rgba(0, 212, 170, 0.12);
    --text:        #E8EDF5;
    --text-muted:  #8896aa;
    --text-dim:    #4a5568;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
    --space-4: 1rem;    --space-6: 1.5rem;   --space-8: 2rem;
    --space-10: 2.5rem; --space-12: 3rem;    --space-16: 4rem;
    --space-20: 5rem;

    /* Radius */
    --radius: 12px; --radius-sm: 8px; --radius-lg: 16px; --radius-xl: 24px;

    /* Transitions */
    --t: 0.3s ease;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Layout ────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-6); }

/* ── Header ────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 18, 32, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1.05rem; color: var(--text);
}
.logo-icon { flex-shrink: 0; }
.logo-text { color: var(--text); }
.logo-accent { color: var(--teal); }
.logo:hover .logo-accent { color: var(--orange); transition: color var(--t); }

.header-nav { display: flex; align-items: center; gap: var(--space-6); }
.nav-link {
    font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
    transition: color var(--t); padding: 4px 0;
    border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.active { color: var(--teal); border-bottom-color: var(--teal); }

/* ── Buttons ───────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 600; cursor: pointer;
    border: none; transition: all var(--t);
}
.btn-primary {
    background: var(--teal); color: var(--navy-dark);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-outline {
    background: transparent; color: var(--teal);
    border: 1.5px solid var(--teal);
}
.btn-outline:hover { background: rgba(0,212,170,0.08); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }

/* ── Hero (Homepage) ────────────────────────── */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,212,170,0.08) 0%, transparent 60%);
}
.hero-badge {
    display: inline-block;
    background: rgba(0,212,170,0.1);
    color: var(--teal);
    border: 1px solid rgba(0,212,170,0.2);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.hero h1 .highlight { color: var(--teal); }
.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
    display: flex; gap: 40px; justify-content: center;
    margin-top: 60px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number {
    display: block;
    font-size: 1.8rem; font-weight: 800; color: var(--teal);
}
.stat-label {
    display: block;
    font-size: 0.8rem; color: var(--text-muted); margin-top: 4px;
}

/* ── Hero (Blog) ────────────────────────────── */
.blog-hero {
    padding: 60px 0 50px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,212,170,0.06) 0%, transparent 60%);
    border-bottom: 1px solid var(--border);
}
.blog-hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800; margin-bottom: 16px;
}
.blog-hero > .container > p {
    color: var(--text-muted); max-width: 600px; margin: 0 auto;
    font-size: 1.05rem; line-height: 1.7;
}

/* ── Section Spacing ───────────────────────── */
.section { padding: 60px 0; }
.section-blog { padding: 60px 0; }

/* ── Provider Grid ──────────────────────────── */
.provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.provider-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all var(--t);
}
.provider-card:hover {
    border-color: rgba(0,212,170,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.provider-logo {
    font-size: 1.4rem; font-weight: 800;
    color: var(--teal); margin-bottom: 8px;
}
.provider-tagline {
    font-size: 0.85rem; color: var(--text-muted);
    margin-bottom: 16px; line-height: 1.5;
}
.provider-meta { display: flex; flex-direction: column; gap: 8px; }
.provider-meta-item { display: flex; justify-content: space-between; font-size: 0.82rem; }
.provider-meta-item span:first-child { color: var(--text-muted); }
.provider-meta-item span:last-child { color: var(--text); font-weight: 500; }
.provider-rating { color: var(--orange); font-weight: 700; }
.provider-btn { margin-top: 16px; width: 100%; justify-content: center; }

/* ── Blog Grid ─────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--t);
    display: flex; flex-direction: column;
}
.blog-card:hover {
    border-color: rgba(0,212,170,0.25);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.blog-card-image, .blog-card-image-placeholder {
    height: 200px; background: var(--bg-elevated);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    background-size: cover; background-position: center;
}
.blog-card-content { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta {
    display: flex; gap: 12px; align-items: center;
    font-size: 0.78rem; color: var(--text-muted);
    margin-bottom: 12px;
}
.blog-card-category {
    background: rgba(0,212,170,0.1);
    color: var(--teal); padding: 2px 10px;
    border-radius: 999px; font-weight: 600;
}
.blog-card h3 {
    font-size: 1.05rem; font-weight: 700;
    line-height: 1.4; margin-bottom: 10px;
    color: var(--text);
}
.blog-card h3 a { color: inherit; }
.blog-card h3 a:hover { color: var(--teal); transition: color var(--t); }
.blog-card-excerpt {
    font-size: 0.875rem; color: var(--text-muted);
    line-height: 1.6; flex: 1; margin-bottom: 16px;
}
.blog-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 16px; border-top: 1px solid var(--border);
}
.read-time { font-size: 0.78rem; color: var(--text-dim); }
.blog-read-more {
    font-size: 0.82rem; font-weight: 600; color: var(--teal);
    transition: color var(--t);
}
.blog-read-more:hover { color: var(--orange); }

/* ── Article ───────────────────────────────── */
.article-hero {
    padding: 50px 0 40px;
    border-bottom: 1px solid var(--border);
    background: radial-gradient(ellipse at 50% 0%, rgba(0,212,170,0.05) 0%, transparent 60%);
}
.article-meta {
    display: flex; gap: 16px; align-items: center;
    font-size: 0.82rem; color: var(--text-muted);
    margin-bottom: 20px; flex-wrap: wrap;
}
.article-category {
    background: rgba(0,212,170,0.12);
    color: var(--teal); padding: 4px 12px;
    border-radius: 999px; font-weight: 600;
}
.article-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800; line-height: 1.25;
    margin-bottom: 16px; max-width: 800px;
}
.hero-subtitle {
    font-size: 1.05rem; color: var(--text-muted);
    line-height: 1.7; max-width: 700px;
}
.article-content { padding: 40px 0 60px; }
.back-to-blog {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.875rem; font-weight: 500; color: var(--teal);
    margin-bottom: 28px; transition: color var(--t);
}
.back-to-blog:hover { color: var(--orange); }
.article-featured-image {
    width: 100%; height: 400px; border-radius: var(--radius-lg);
    background-size: cover; background-position: center;
    margin-bottom: 36px;
}
.article-body {
    max-width: 760px; margin: 0 auto;
    font-size: 1.05rem; line-height: 1.8; color: var(--text);
}
.article-body h2 {
    font-size: 1.6rem; font-weight: 700; margin: 2.5rem 0 1rem;
    color: var(--text);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}
.article-body h3 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol {
    margin: 1rem 0 1.5rem 1.5rem;
}
.article-body li { margin-bottom: 0.5rem; list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--orange); }
.article-body blockquote {
    border-left: 4px solid var(--teal);
    padding: 12px 20px; margin: 1.5rem 0;
    background: rgba(0,212,170,0.06);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic; color: var(--text-muted);
}
.article-body table {
    width: 100%; border-collapse: collapse;
    margin: 1.5rem 0; font-size: 0.9rem;
    overflow-x: auto; display: block;
}
.article-body th, .article-body td {
    padding: 10px 14px; border: 1px solid var(--border);
    text-align: left;
}
.article-body th { background: var(--bg-elevated); font-weight: 600; color: var(--teal); }
.article-body tr:hover td { background: rgba(0,212,170,0.03); }
.article-body img {
    border-radius: var(--radius); margin: 1.5rem auto;
    max-width: 100%;
}

/* ── Affiliate Disclosure ──────────────────── */
.affiliate-disclosure {
    max-width: 760px; margin: 2rem auto;
    background: rgba(0,212,170,0.06);
    border: 1px solid rgba(0,212,170,0.15);
    border-radius: var(--radius);
    padding: 14px 18px;
    font-size: 0.82rem; color: var(--text-muted);
    line-height: 1.6;
}

/* ── Tags & Share ─────────────────────────── */
.article-tags {
    max-width: 760px; margin: 1.5rem auto;
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.tags-label { font-size: 0.8rem; color: var(--text-muted); margin-right: 4px; }
.tag {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 4px 12px; border-radius: 999px;
    font-size: 0.78rem; font-weight: 500;
}
.article-share {
    max-width: 760px; margin: 1.5rem auto;
    display: flex; align-items: center; gap: 12px;
    font-size: 0.875rem; color: var(--text-muted);
}
.share-btn {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all var(--t);
}
.share-btn:hover { background: var(--teal); color: var(--navy-dark); border-color: var(--teal); }

/* ── CTA Section ───────────────────────────── */
.section-cta { padding: 60px 0; }
.cta-box {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    text-align: center;
}
.cta-box h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.cta-box p { color: var(--text-muted); margin-bottom: 28px; font-size: 1.05rem; }

/* ── Comparison Table ──────────────────────── */
.comparison-table-wrap { overflow-x: auto; margin-top: 32px; }
.comparison-table {
    width: 100%; border-collapse: collapse;
    font-size: 0.875rem;
}
.comparison-table th {
    background: var(--navy);
    color: var(--teal); font-weight: 700;
    padding: 14px 16px; text-align: left;
    border-bottom: 2px solid var(--teal);
}
.comparison-table td {
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.comparison-table tr:hover td { background: rgba(0,212,170,0.03); }
.comparison-table .highlight td { color: var(--teal); font-weight: 600; }

/* ── Section Headers ───────────────────────── */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800; margin-bottom: 12px;
}
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ── Guides Grid ───────────────────────────── */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 36px;
}
.guide-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--t);
}
.guide-card:hover {
    border-color: rgba(0,212,170,0.3);
    transform: translateY(-2px);
}
.guide-icon { font-size: 2rem; margin-bottom: 12px; }
.guide-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.guide-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ── Footer ───────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0 30px;
    text-align: center;
}
.footer-brand { margin-bottom: 16px; }
.footer .logo { justify-content: center; font-size: 1rem; }
.copyright { color: var(--text-dim); font-size: 0.82rem; margin-bottom: 8px; }
.footer-disclaimer { color: var(--text-dim); font-size: 0.75rem; max-width: 500px; margin: 0 auto; line-height: 1.6; }

/* ── 404 ──────────────────────────────────── */
.error-page {
    min-height: 70vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 40px 0;
}
.error-code { font-size: 8rem; font-weight: 800; color: var(--navy); line-height: 1; }
.error-code span { color: var(--teal); }
.error-page h2 { font-size: 1.5rem; margin: 16px 0 12px; }
.error-page p { color: var(--text-muted); margin-bottom: 28px; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 768px) {
    .header-nav .nav-link { display: none; }
    .hero { padding: 50px 0 40px; }
    .hero-stats { gap: 24px; }
    .blog-grid { grid-template-columns: 1fr; }
    .provider-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 36px 24px; }
    .article-featured-image { height: 240px; }
    .article-body { font-size: 1rem; }
}
