/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    --primary-red: #dc2626;
    --primary-red-hover: #b91c1c;
    --dark-gray: #1f2937;
    --medium-gray: #6b7280;
    --light-gray: #f3f4f6;
    --border-gray: #e5e7eb;
    --white: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-red);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

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

.nav-cta {
    background: var(--primary-red);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--primary-red-hover);
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--dark-gray);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    padding: 4rem 0 5rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-left h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ============================================
   CALCULATOR CARD
   ============================================ */
.calculator-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-gray);
}

.calculator-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    text-align: center;
}

.calculator-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amount-display {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    border: 2px solid var(--border-gray);
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--medium-gray);
}

.amount-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
}

/* ============================================
   SLIDER
   ============================================ */
.slider-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.loan-slider {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
    background: linear-gradient(to right, var(--primary-red) 0%, var(--primary-red) 0%, var(--border-gray) 0%, var(--border-gray) 100%);
    cursor: pointer;
}

.loan-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-red);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.loan-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-lg);
}

.loan-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-red);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.loan-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-lg);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0 4px;
}

.repeated-loan-label {
    color: var(--medium-gray);
    font-size: 0.8rem;
}

.repeated-loan-info {
    text-align: center;
    font-size: 0.85rem;
    color: var(--medium-gray);
    font-style: italic;
    margin-top: 0.25rem;
}

/* ============================================
   SETTLEMENT AMOUNT
   ============================================ */
.settlement-container {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--primary-red);
}

.settlement-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.settlement-amount {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.settlement-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
}

/* ============================================
   CONTENT SECTION
   ============================================ */
.content-section {
    padding: 5rem 0;
    background: var(--white);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
}

.content-text h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.content-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.feature-list {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-list li {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================
   BENEFITS SECTION
   ============================================ */
.benefits-section {
    padding: 5rem 0;
    background: var(--light-gray);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.15rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

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

.benefit-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-gray);
}

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

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.cta-center {
    text-align: center;
}

/* ============================================
   ARTICLE SECTION
   ============================================ */
.article-section {
    padding: 2rem 0;
    background: var(--white);
}

.article-placeholder {
    max-width: 800px;
    margin: 0 auto;
}

.article-placeholder h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    text-align: center;
}

.article-content {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.5rem;
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */
.final-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-hover) 100%);
}

.cta-box {
    text-align: center;
    color: var(--white);
}

.cta-box h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-box .btn-primary {
    background: var(--white);
    color: var(--primary-red);
}

.cta-box .btn-primary:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1.5rem 0;
}

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

.footer-column h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-disclaimer {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-left h1 {
        font-size: 2.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-left h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .calculator-card {
        padding: 1.75rem;
    }
    
    .amount-value {
        font-size: 2rem;
    }
    
    .settlement-value {
        font-size: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .content-text h2 {
        font-size: 1.75rem;
    }
    
    .cta-box h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-left h1 {
        font-size: 1.75rem;
    }
    
    .calculator-title {
        font-size: 1.35rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
}