/* Color Palette & Base Reset */
:root {
    --navy: #0a192f;
    --navy-light: #112240;
    --gold: #c5a059;
    --gold-hover: #b08d4b;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, h4, .logo {
    font-family: 'Playfair Display', serif; /* Gives a premium, legal/banking feel */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.bg-light { background-color: #f1f5f9; }

/* Security Banner */
.alert-banner {
    background-color: #7f1d1d;
    color: var(--white);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-banner a {
    color: #fca5a5;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
}

.alert-banner a:hover { 
    text-decoration: underline; 
    color: var(--white);
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: relative; /* Crucial for the mobile dropdown to align correctly */
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
}

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

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--gold); }

.nav-btn {
    background-color: var(--navy);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background 0.3s;
}

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

/* Mobile Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--navy);
    transition: all 0.3s ease;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex; 
    }

    .nav-links {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        gap: 20px;
        text-align: center;
    }

    .nav-links.active {
        display: flex; 
    }

    /* Animate Hamburger to an 'X' */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Hero Section */
.hero {
    position: relative;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80') center/cover;
    color: var(--white);
    padding: 160px 20px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(10, 25, 47, 0.95), rgba(10, 25, 47, 0.7));
    z-index: 1;
}

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

.hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #cbd5e1;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .hero h1 { font-size: 40px; }
    .hero p { font-size: 16px; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--navy);
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--navy);
}

/* Trust Bar & Compliance Banner */
.compliance-banner {
    background-color: #061121;
    color: #94a3b8;
    padding: 12px 0;
    font-size: 13px;
    border-bottom: 1px solid #1e293b;
}

.compliance-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px 30px;
}

.compliance-container span {
    display: flex;
    align-items: center;
}

.trust-bar {
    background-color: var(--navy-light);
    color: var(--white);
    padding: 20px 0;
    border-bottom: 3px solid var(--gold);
}

.trust-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Sections & Grids */
.info-section, .news-section {
    padding: 100px 20px;
}

.section-title {
    font-size: 40px;
    color: var(--navy);
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/* Premium Cards */
.premium-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

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

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 15px;
}

/* Tracker Mockup Widget */
.tracker-section {
    padding: 100px 20px;
}

.tracker-widget {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 0 auto;
}

.tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.tracker-status {
    background-color: #fef3c7;
    color: #b45309;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.progress-bar-container {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-line {
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 4px;
    background-color: #e2e8f0;
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 44px;
    height: 44px;
    background-color: var(--white);
    border: 4px solid #e2e8f0;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    border-color: #10b981;
    background-color: #10b981;
    color: white;
}

.progress-step.current .step-circle {
    border-color: var(--gold);
    color: var(--gold);
}

.progress-step span {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.progress-step.active span, .progress-step.current span {
    color: var(--navy);
    font-weight: 600;
}

/* Mobile Responsiveness for Tracker */
@media (max-width: 650px) {
    .progress-bar-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .progress-line {
        width: 4px;
        height: 100%;
        left: 20px;
        top: 0;
    }
    .progress-step {
        display: flex;
        align-items: center;
        text-align: left;
        width: 100%;
    }
    .step-circle {
        margin: 0 20px 0 0;
    }
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(197, 160, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

.animate-pulse {
    animation: pulse-ring 2s infinite;
}

/* FAQ Section */
.faq-section {
    padding: 80px 20px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.faq-item summary {
    padding: 20px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    font-size: 18px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none; 
}

.faq-item summary:after {
    content: '+';
    font-size: 24px;
    color: var(--gold);
    transition: transform 0.3s ease;
}

.faq-item[open] summary:after {
    content: '-';
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 20px 20px;
    color: #475569;
    line-height: 1.7;
}

/* News Widget */
.news-widget {
    background: var(--white);
    padding: 30px;
    border-left: 4px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.news-widget:hover {
    transform: translateX(5px);
}

.news-date {
    display: block;
    font-size: 12px;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.news-widget h4 {
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.read-more:hover { color: var(--gold); }

/* Legal Page Styles */
.page-header {
    background-color: var(--navy);
    color: var(--white);
    padding: 80px 20px;
    border-bottom: 4px solid var(--gold);
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-header p {
    color: #94a3b8;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.legal-section {
    padding: 60px 20px 100px;
    background-color: var(--bg-light);
}

.legal-container {
    max-width: 850px; 
    background-color: var(--white);
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .legal-container { padding: 30px 20px; }
    .page-header h1 { font-size: 32px; }
}

.legal-block {
    margin-bottom: 40px;
}

.legal-block h2 {
    font-size: 24px;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.legal-block p {
    margin-bottom: 15px;
    color: #475569;
    font-size: 16px;
    text-align: justify;
}

.legal-block strong { color: var(--navy); }

.legal-block ul {
    margin-top: 15px;
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-block ul li {
    margin-bottom: 10px;
    color: #475569;
    font-size: 16px;
}

/* Secure Portal / Form Styles */
.form-section {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.form-wrapper {
    display: flex;
    gap: 50px;
    background: var(--white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-top: 5px solid var(--navy);
}

@media (max-width: 900px) {
    .form-wrapper {
        flex-direction: column;
        padding: 30px 20px;
    }
}

.form-info { flex: 1; }

.form-info h3 {
    font-size: 28px;
    color: var(--navy);
    margin-bottom: 25px;
}

.steps-list {
    list-style-type: decimal;
    padding-left: 20px;
    margin-bottom: 40px;
}

.steps-list li {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 16px;
}

.steps-list strong { color: var(--navy); }

.trust-box {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 20px;
    border-radius: 6px;
    color: #166534;
    font-size: 14px;
}

.escrow-form { flex: 1.5; }

.form-row {
    display: flex;
    gap: 20px;
}

@media (max-width: 650px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--navy);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-main);
    background-color: #f8fafc;
    transition: all 0.3s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

.full-width-btn {
    width: 100%;
    text-align: center;
    font-size: 18px;
    padding: 18px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: var(--navy);
    color: #94a3b8;
    padding-top: 80px;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col { flex: 1; min-width: 200px; }
.info-col { flex: 2; min-width: 300px; }

.logo-light { color: var(--white); margin-bottom: 15px; }
.logo-light span { color: var(--gold); }

.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--gold); }

.contact-email a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom {
    background-color: #061121;
    padding: 20px 0;
    font-size: 13px;
}