:root {
    --primary-navy: #1A365D;
    --secondary-red: #E53E3E;
    --background-slate: #F8FAFC;
    --text-gray: #4A5568;
    --light-gray: #A0AEC0;
}

/* Typography */
h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    color: #FFFFFF;
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 700;
    color: var(--primary-navy);
}

p {
    font-size: clamp(1rem, 3vw, 1.125rem);
    color: var(--text-gray);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    min-height: 80px;
    background-color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-link {
    font-weight: 500;
    color: var(--primary-navy);
    margin: 0 15px;
}

.nav-link:hover {
    color: var(--secondary-red);
}

@media (max-width: 991.98px) {
    .navbar {
        padding: 15px 0;
    }
    .navbar-collapse {
        background: #fff;
        padding: 20px;
        border-top: 1px solid #eee;
        margin-top: 15px;
    }
    .nav-link {
        margin: 10px 0;
    }
}

/* Hero Section */
.hero-section {
    min-height: 600px;
    height: auto;
    background: linear-gradient(135deg, #1A365D 0%, #2A4365 100%);
    padding: 120px 0 150px;
    position: relative;
    overflow: hidden;
}

.hero-placeholder {
    width: 100%;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255,255,255,0.2);
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 100px 0 130px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 80px 0 120px;
        text-align: center;
    }
    .hero-text .d-flex {
        justify-content: center;
    }
    .hero-placeholder {
        height: 300px;
        margin-top: 40px;
    }
}

.hero-text p {
    color: var(--light-gray);
    margin-bottom: 40px;
}

.hero-image img {
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5));
    max-width: 100%;
}

/* Buttons */
.btn-custom-primary {
    background-color: var(--primary-navy);
    color: #FFFFFF;
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 600;
    border: none;
}

.btn-custom-danger {
    background-color: var(--secondary-red);
    color: #FFFFFF;
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(229, 62, 62, 0.39);
}

.btn-custom-danger:hover {
    background-color: #C53030;
    color: #FFFFFF;
}

.btn-hero {
    font-size: clamp(16px, 2vw, 18px);
    padding: clamp(12px, 2vw, 16px) clamp(24px, 3vw, 32px);
}

.custom-btn-outline {
    border-radius: 6px !important;
    padding: 16px 32px !important;
    font-weight: 600 !important;
}

/* Savings Calculator */
.calculator-wrapper {
    margin-top: -100px;
    position: relative;
    z-index: 10;
    padding: 0 15px;
}

@media (max-width: 767.98px) {
    .calculator-wrapper {
        margin-top: -80px;
    }
}

.calculator-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: clamp(20px, 5vw, 40px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    padding: clamp(15px, 3vw, 25px);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.step-card:hover, .step-card.active {
    border-color: var(--secondary-red);
    background-color: #FFF5F5;
}

/* Feature Grid */
.feature-section {
    padding: clamp(50px, 10vw, 100px) 0;
    background-color: #FFFFFF;
}

.feature-icon {
    font-size: clamp(2rem, 6vw, 2.5rem);
    color: var(--primary-navy);
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: var(--primary-navy);
    color: #FFFFFF;
    padding: clamp(40px, 8vw, 80px) 0 30px;
}

.footer-logo {
    display: block;
    max-height: 100px;
}

@media only screen and (max-width: 768px) {
    .footer-logo {
        margin: 0 auto;
    }

    .footer-desc {
        max-width: 420px;
        margin: 1rem auto 2rem;
    }

    .social-icons {
        justify-content: center;
    }
}

@media only screen and (max-width: 540px) {

    .footer-desc {
        max-width: 375px;
        margin: 1rem auto 2rem;
    }
}

.footer-link {
    color: #FFFFFF;
    text-decoration: none;
    opacity: 0.8;
}

.footer-link:hover {
    opacity: 1;
}

.footer-contents h5 {
    text-align: center;
}

.footer-contents ul, .footer-contents p {
    width: fit-content;
    margin: 1rem auto;
}

.xl-icon {
    text-decoration: none;
    font-size: x-large;
    line-height: 1;
}

/* Contact Page Utilities */
.contact-info-box {
    border-left: 5px solid #1A365D;
    background-color: #F8FAFC;
    border-radius: 0 12px 12px 0;
}

.custom-input {
    height: 48px;
    border-color: #E2E8F0;
}

.custom-textarea {
    border-color: #E2E8F0;
}

@media (max-width: 991.98px) {
    .contact-info-box {
        border-left: none;
        border-top: 5px solid #1A365D;
        border-radius: 0 0 12px 12px;
    }
}

/* Navbar Logo Responsive */
.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.brand-placeholder {
    width: 160px;
    height: 60px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #1A365D;
    border: 2px solid #1A365D;
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        max-height: 40px;
    }
    .brand-placeholder {
        width: 120px;
        height: 45px;
        font-size: 0.8rem;
    }
}

/* Utilities */
.text-navy { color: var(--primary-navy); }
.text-red { color: var(--secondary-red); }
.bg-slate { background-color: var(--background-slate); }
