/* TOP NAVIGATION STYLES */
.top-nav {
    background-color: #ffffff; 
    border-bottom: 3px solid #007bff; 
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.nav-content {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* SMALL HEADER LOGO */
.header-logo {
    height: 40px; 
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4em;
    font-weight: bold;
    color: #0056b3;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
}
.nav-links li {
    margin: 0 12px;
}
.nav-links a {
    color: #0056b3; 
    text-decoration: none;
    font-size: 0.9em; 
    font-weight: 600;
    padding: 5px 0;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: #28a745; 
}
.menu-toggle {
    display: none; 
    font-size: 2em;
    color: #0056b3;
    cursor: pointer;
    line-height: 1;
    padding: 5px 10px;
}

/* BASE STYLES */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f8ff; 
    color: #333;
    text-align: center;
    font-size: 20px; 
}

p, li {
    line-height: 1.6;
    text-align: left;
}

/* Eliminate top margin on content that follows headings */
.content-wrapper p, 
.content-wrapper ul, 
.content-wrapper ol {
    margin-top: 0;
}

.content-wrapper h1, .content-wrapper h2 {
    text-align: center;
}

.content-wrapper h1:nth-of-type(2),
.content-wrapper h1:nth-of-type(3) { 
    text-align: left;
    margin-top: 40px;
    font-size: 1.8em;
    color: #0056b3;
}

/* CONTAINER */
.container {
    max-width: 750px; 
    margin: 20px auto; 
    padding: 0; 
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); 
}
.content-wrapper {
    padding: 30px 40px; 
}

/* --- HEADING MARGIN ADJUSTMENTS --- */

h1 {
    color: #007bff; 
    font-size: 2.8em;
    margin-bottom: 15px; 
}
h2 {
    color: #0056b3; 
    font-size: 1.6em;
    font-weight: 600; 
    margin-bottom: 8px;   
    margin-top: 20px;     
    text-align: left; 
}
h3 {
    color: #0056b3;
    font-size: 1.2em;
    font-weight: 700;
    margin-top: 5px;   /* REDUCED SPACE ABOVE H3 (was 20px) */
    margin-bottom: 8px;   
    text-align: left;
}

/* BUTTON STYLES (Unchanged) */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 25px; 
    padding-bottom: 30px;
}

.action-button {
    display: block;
    width: 100%;
    max-width: 600px; 
    margin: 0 auto; 
    padding: 25px 20px; 
    text-decoration: none; 
    border-radius: 12px; 
    font-size: 1.5em; 
    font-weight: 700; 
    line-height: 1.4; 
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

/* Button Colors */
#btn-evaluate {
    background-color: #0056b3; color: white; border: 3px solid #003366; box-shadow: 0 8px #003366;
}
#btn-package {
    background-color: #28a745; color: white; border: 3px solid #1e7e34; box-shadow: 0 8px #1e7e34;
}
#btn-letter {
    background-color: #17a2b8; color: white; border: 3px solid #0f6674; box-shadow: 0 8px #0f6674;
}
#btn-paralegal {
    background-color: #6f42c1; color: white; border: 3px solid #5b359f; box-shadow: 0 8px #5b359f;
}

.action-button:hover {
    transform: translateY(-4px); 
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3); 
    opacity: 0.95;
}
.action-button:active {
    transform: translateY(4px); 
    box-shadow: 0 4px #555;
}

/* FOOTER (Unchanged) */
#main-footer {
    background-color: #0056b3; 
    color: white;
    padding: 20px 40px;
    margin-top: 20px;
    text-align: center;
}
#main-footer h3 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.2em;
}
#main-footer p, #main-footer a {
    color: #f0f8ff; 
    margin: 5px 0;
    text-decoration: none;
    font-size: 1em; 
    line-height: 1.4;
}
#main-footer a:hover {
    text-decoration: underline;
}

/* MOBILE MENU (Adjusted H-tag font sizes) */
@media (max-width: 700px) {
    .nav-links {
        display: none; 
        flex-direction: column; 
        width: 100%; 
        background-color: #ffffff;
        position: absolute; 
        left: 0; 
        top: 55px; 
        z-index: 1000; 
        border-top: 1px solid #ddd;
    }
    .nav-links.active { 
        display: flex; 
    }
    .nav-links li { 
        text-align: center; 
        margin: 0; 
        border-bottom: 1px solid #f0f0f0; 
    }
    .nav-links a { 
        display: block; 
        padding: 15px 0; 
        font-size: 1.1em; 
    }
    .menu-toggle { 
        display: block; 
    }
    
    .container {
        max-width: none; 
        margin: 10px; 
        box-shadow: none; 
    }
    .content-wrapper {
        padding: 30px 15px; 
    }
    h1 { font-size: 2.2em; margin-bottom: 10px; } 
    h2 { font-size: 1.3em; margin-bottom: 8px; margin-top: 15px; } 
    h3 { font-size: 1.1em; margin-top: 5px; margin-bottom: 8px; } /* Mobile adjustment: Reduced margin-top to 5px */

    .action-button { 
        max-width: none; 
        width: calc(100% - 20px); 
        margin: 0 auto; 
        font-size: 1.2em;
        padding: 18px 10px; 
        box-shadow: 0 5px #555;
    }
}
