/* Design System - Default Dark */
:root {
    --primary: #f8fafc;
    --primary-light: #e2e8f0;
    --accent: #f59e0b;
    --accent-hover: #fbbf24;
    --success: #059669;
    --bg-page: #020617;
    --bg-card: #0f172a;
    --bg-header: rgba(15, 23, 42, 0.9);
    --bg-input: #1e293b;
    --bg-hero: #0f172a;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-hero: #f8fafc;
    --text-hero-muted: #94a3b8;
    --bg-footer: #010409;
    --text-footer: #f1f5f9;
    --text-footer-muted: #64748b;
    --border: #334155;
    --border-hero: rgba(255, 255, 255, 0.1);
    --radius-lg: 24px;
    --radius-md: 12px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-serif: 'Playfair Display', serif;
    --transition: 0.3s ease;
}

[data-theme="light"] {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #b45309;
    --accent-hover: #92400e;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.8);
    --bg-input: #f8fafc;
    --bg-hero: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-hero: #0f172a;
    --text-hero-muted: #64748b;
    --bg-footer: #0f172a;
    --text-footer: #ffffff;
    --text-footer-muted: #94a3b8;
    --border: #e2e8f0;
    --border-hero: rgba(15, 23, 42, 0.1);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}


/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition), color var(--transition);
}


.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container { padding: 0 32px; }
}

/* Header */
.header {
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav { display: flex; gap: 32px; }
.nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav a:hover, .nav a.active { color: var(--primary); }

/* Integrated Hero Section */
.hero {
    position: relative;
    padding: 100px 0;
    background: var(--bg-hero);
    overflow: hidden;
    color: var(--text-hero);
    transition: background-color var(--transition), color var(--transition);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(180, 83, 9, 0.1), transparent 40%),
                radial-gradient(circle at 20% 80%, var(--border-hero), transparent 60%);
    opacity: 0.6;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 40px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-hero-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-hero);
}

.trust-badge {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trust-badge-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
}

.trust-badge-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-hero-muted);
}

.hero-sidebar-posts {
    margin-top: 40px;
}

.hero-sidebar-posts h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-hero-muted);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.mini-blog-card {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-hero);
    text-decoration: none;
    transition: all 0.2s;
    color: var(--text-hero);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.mini-blog-card:hover {
    background: var(--bg-hover, var(--bg-page));
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.mini-blog-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.mini-blog-title {
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    line-height: 1.4;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 8px;
}

.calculator-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--text-main);
    transition: all var(--transition);
}

[data-theme="dark"] .calculator-card {
    box-shadow: 0 30px 40px -10px rgba(0, 0, 0, 0.8);
}

.form-step {
    display: none;
    animation: fadeInStep 0.4s ease-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-full { grid-column: 1 / -1; }

.btn-group {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    margin-top: 32px;
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-main);
    padding: 16px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
}

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

.form-row { margin-bottom: 32px; }

.form-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Custom Radio Groups */
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.radio-item {
    position: relative;
    cursor: pointer;
}

.radio-item input {
    position: absolute;
    opacity: 0;
}

.radio-item span {
    display: block;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    color: var(--text-main);
}

.radio-item input:checked + span {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 4px 6px -1px rgba(180, 83, 9, 0.2);
}

/* Custom Inputs */
.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-main);
    transition: all 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(180, 83, 9, 0.05);
}

/* Premium Range Slider */
.range-container {
    padding: 12px 0;
}

.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 10px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.range-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 12px;
}

.range-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    margin-top: 8px;
    text-align: center;
}

/* Button */
.btn-calculate {
    width: 100%;
    padding: 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.4);
}

.btn-calculate:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(180, 83, 9, 0.5);
}

.btn-calculate svg {
    transition: transform 0.3s;
}

.btn-calculate:hover svg {
    transform: translateX(4px);
}

.btn-calculate:active { transform: translateY(0); }

/* Success Alert */
.alert-success {
    background: var(--success);
    color: white;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    border: none;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 500;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Section */
.section { padding-top: 80px; padding-bottom: 80px; }
.section-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.blog-card-content { padding: 24px; }
.blog-card-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-page);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 12px;
}
.blog-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
    text-decoration: none;
    color: var(--text-main);
}
.blog-card-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Sidebar Layout */
.layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
}

.widget {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.widget-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer */
.footer {
    background: var(--bg-footer);
    color: var(--text-footer);
    padding: 80px 0 40px;
    transition: background-color var(--transition);
}

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

.footer h4 { color: var(--text-footer); margin-bottom: 24px; font-weight: 700; }
.footer p { color: var(--text-footer-muted); font-size: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-footer-muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-footer); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-footer-muted);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero { padding: 60px 0; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-content h1 { font-size: 40px; }
    .hero-content p { margin: 0 auto 40px; }
    .nav { 
        display: none; 
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        padding: 24px;
        flex-direction: column;
        gap: 20px;
        z-index: 1000;
        box-shadow: var(--shadow);
    }
    .nav.mobile-open { display: flex; }
    .mobile-menu-btn { display: block; }
    .trust-badges { justify-content: center; }
    .layout-sidebar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 768px) {
    .calculator-card { padding: 32px 20px; }
    .calculator-title { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Pagination */
.pagination { margin-top: 40px; }
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.page-link:hover {
    background: var(--bg-page);
    border-color: var(--primary);
    color: var(--primary);
}

.page-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Page Hero */
.page-hero {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.6));
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero-title {
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin: 0;
}

@media (max-width: 768px) {
    .page-hero { height: 280px; }
    .page-hero-title { font-size: 32px; }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 2px 5px 20px rgba(0,0,0,0.3);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}
