/* 
 * Freedom Residential Lending - Central Styling System
 * Color System: Dark Slate Blue (#1A365D) and Champagne Gold (#D4AF37)
 */

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

:root {
    --primary: #0E3A2F;
    --primary-light: #185244;
    --primary-dark: #07211A;
    --accent: #C59B27;
    --accent-light: rgba(197, 155, 39, 0.15);
    --accent-hover: #B28B20;
    
    --bg-body: #FAF9F6;
    --bg-card: #FFFFFF;
    --bg-alt: #F4F2EC;
    
    --text-main: #1A2823;
    --text-muted: #5C6B66;
    --text-dim: #92A19C;
    --text-light: #FFFFFF;
    
    --success: #38A169;
    --error: #E53E3E;
    
    --border: #E2E8F0;
    --border-hover: #CBD5E0;
    
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Merriweather', serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
}

p {
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-padding {
    padding: 6rem 0;
}

.bg-alt-section {
    background-color: var(--bg-alt);
}

/* Header & Nav */
.site-header {
    background-color: var(--bg-card);
    border-bottom: 2px solid var(--accent);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
}

.logo-text span {
    color: var(--accent);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.75rem;
    cursor: pointer;
}

/* Button UI */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
}

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

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

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Split Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(14, 58, 47, 0.95) 0%, rgba(7, 33, 26, 0.9) 100%), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
    color: var(--text-light);
    padding: 8rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-features {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.hero-features li {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
}

.hero-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 900;
    font-size: 1.2rem;
}

.hero-form-box {
    background: var(--bg-card);
    color: var(--text-main);
    padding: 3rem 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    border-top: 6px solid var(--accent);
    max-width: 450px;
    margin-left: auto;
}

.hero-form-box h3 {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.hero-form-box p {
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.soft-pull-disclosure {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1.25rem;
    line-height: 1.4;
}

/* Trust Banner */
.trust-banner {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
}

.trust-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.trust-item {
    text-align: center;
}

.trust-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.trust-item p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Loan Catalog Grid */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.section-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

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

.loan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.loan-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.loan-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.loan-card p {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
    line-height: 1.7;
}

.loan-card .btn-link {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.loan-card .btn-link:hover {
    color: var(--primary);
}

/* Process Timeline (How It Works) */
.timeline-flex {
    display: flex;
    gap: 2.5rem;
    justify-content: space-between;
}

.timeline-step {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 3.5rem 2rem;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

.timeline-step:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent);
}

.timeline-num {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
}

.timeline-step h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.timeline-step p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

/* Services Catalog Page Detailed Rows */
.service-row {
    display: flex;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 4rem;
    border-left: 6px solid var(--accent);
}

.service-row:nth-child(even) {
    flex-direction: row-reverse;
    border-left: none;
    border-right: 6px solid var(--accent);
}

.service-content-col {
    flex: 1.2;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-content-col h2 {
    font-size: 2.2rem;
    margin-bottom: 1.25rem;
}

.service-content-col p {
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.features-list li {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
}

.features-list li::before {
    content: '•';
    color: var(--accent);
    font-size: 1.5rem;
    line-height: 1;
}

.service-img-col {
    flex: 0.8;
    background-size: cover;
    background-position: center;
    min-height: 350px;
}

/* Wizard / Get Started Flow */
.wizard-box {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border-top: 6px solid var(--primary);
    width: 100%;
    max-width: 620px;
    margin: 4rem auto;
    padding: 3rem;
    position: relative;
}

.progress-header {
    margin-bottom: 2.5rem;
}

.progress-line-bg {
    height: 6px;
    background-color: var(--bg-alt);
    border-radius: 3px;
    overflow: hidden;
}

.progress-line-fill {
    height: 100%;
    background-color: var(--accent);
    width: 25%;
    transition: var(--transition);
}

.wizard-step-node {
    display: none;
}

.wizard-step-node.active {
    display: block;
    animation: slideUp 0.4s ease-out;
}

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

.wizard-question {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.wizard-subtext {
    text-align: center;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Card Selection Layout */
.selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.selection-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    background-color: var(--bg-card);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.selection-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.selection-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.selection-card:hover {
    border-color: var(--primary-light);
    background-color: var(--bg-body);
}

.selection-card.selected {
    border-color: var(--accent);
    background-color: var(--accent-light);
}

.selection-card.selected .selection-card-title {
    color: var(--primary);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
    outline: none;
}

.textarea-input {
    resize: vertical;
    min-height: 120px;
}

/* 10DLC Checkbox and Disclaimer */
.sms-consent-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background-color: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.sms-consent-box input[type="checkbox"] {
    margin-top: 0.25rem;
    min-width: 1.2rem;
    min-height: 1.2rem;
    cursor: pointer;
}

.sms-consent-box label {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted);
    cursor: pointer;
}

.sms-consent-box label a {
    color: var(--primary);
    text-decoration: underline;
}

.sms-consent-box label strong {
    color: var(--text-main);
}

.wizard-footer-disclosure {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: center;
    margin-top: 1.5rem;
    line-height: 1.4;
}

/* Feedback Element */
.form-feedback {
    display: none;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-feedback.success {
    background-color: #DEF7EC;
    color: #03543F;
}

.form-feedback.error {
    background-color: #FDE8E8;
    color: #9B1C1C;
}

/* Contact Page Grid layout */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
}

.contact-details h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-details > p {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.contact-detail-block {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-icon {
    font-size: 1.5rem;
    color: var(--accent);
}

.detail-text h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.detail-text p {
    font-size: 0.95rem;
}

.contact-form-card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 3.5rem;
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--primary);
}

.contact-form-card h2 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Footer / Disclaimer Box */
.site-footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 5rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 3.5rem;
}

.footer-col h4 {
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

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

.footer-disclaimer-box {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-bottom: 2rem;
}

.footer-disclaimer-box p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    line-height: 1.8;
    text-align: justify;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

/* FAQ Layout */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.faq-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Page Header Heroes */
.page-hero {
    background: linear-gradient(rgba(14, 58, 47, 0.9), rgba(14, 58, 47, 0.9)), url('https://images.unsplash.com/photo-1556761175-4b46a572b786?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
    color: var(--text-light);
    padding: 6rem 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.8rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.page-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
}

/* Legal layout */
.legal-container {
    max-width: 850px;
    margin: -3rem auto 4rem;
    background-color: var(--bg-card);
    padding: 4rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--accent);
}

.legal-section {
    margin-bottom: 3.5rem;
}

.legal-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.legal-section h3 {
    font-size: 1.15rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--primary-dark);
}

.legal-section p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-section ul {
    margin-left: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.legal-section li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Media Queries */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }
    
    .hero-form-box {
        margin: 0 auto;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-features {
        align-items: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .site-header {
        padding: 0.75rem 0;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--bg-card);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .nav-list.show {
        display: flex;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .timeline-flex {
        flex-direction: column;
    }
    
    .service-row, .service-row:nth-child(even) {
        flex-direction: column;
    }
    
    .service-content-col {
        padding: 2.5rem;
    }
    
    .selection-grid {
        grid-template-columns: 1fr;
    }
    
    .wizard-box {
        padding: 2rem 1.5rem;
    }
    
    .legal-container {
        padding: 2rem 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
