/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    background-color: #F0F8F5;
    color: #333;
    margin: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background-color: #4682B4;
    position: relative;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #4682B4;
}

.logo-wrapper {
    background-color: #4682B4;
    padding: 5px;
    forced-color-adjust: none;
    -webkit-forced-color-adjust: none;
}

.logo-image {
    max-width: 150px;
    height: auto;
    filter: none;
    -webkit-filter: none;
    forced-color-adjust: none;
    -webkit-forced-color-adjust: none;
}

.firm-info {
    text-align: left;
    color: #F0F8F5;
}

.firm-info h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.firm-info p {
    margin: 5px 0 0 0;
    font-size: 14px;
    font-weight: 400;
}

.firm-name {
    color: #F0F8F5;
    text-decoration: none;
}

.firm-name:hover {
    text-decoration: underline;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav a {
    color: #F0F8F5;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    padding: 5px 10px;
    display: block;
    position: relative;
    z-index: 3;
    white-space: nowrap;
}

/* Hover effect */
nav a:hover {
    color: #4682B4;
    background-color: #B0E0E6;
    border-radius: 0 0 5px 5px;
    transform: scale(1.05);
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

nav a:hover::before {
    content: '';
    position: absolute;
    top: -100vh;
    left: 0;
    right: 0;
    bottom: 100%;
    background-color: #B0E0E6;
    z-index: 1;
}

/* Focus state for accessibility */
nav a:focus {
    outline: 2px solid #F0F8F5;
    outline-offset: 2px;
}

/* Active button */
nav a.active {
    color: #4682B4;
    background-color: #ADD8E6;
    text-decoration: none;
    border-radius: 0 0 5px 5px;
}

nav a.active::before {
    content: '';
    position: absolute;
    top: -100vh;
    left: 0;
    right: 0;
    bottom: 100%;
    background-color: #ADD8E6;
    z-index: 1;
}

/* Hover on active button */
nav a.active:hover {
    background-color: #B0E0E6;
}

nav a.active:hover::before {
    background-color: #B0E0E6;
}

/* Suppress active state when hovering a different button */
nav:hover a.active:not(:hover) {
    color: #F0F8F5;
    background-color: transparent;
}

nav:hover a.active:not(:hover)::before {
    display: none;
}

main {
    padding: 20px;
}

footer {
    text-align: center;
    padding: 25px;
    background-color: #F0F8F5;
    color: #4682B4;
}

.cta-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #4682B4;
    color: #F0F8F5;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 700;
}

/* Add focus state for CTA button */
.cta-button:focus {
    outline: 2px solid #4682B4;
    outline-offset: 2px;
}

.cta-button:hover {
    background-color: #ADD8E6;
    color: #333;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 40px 20px;
    background-color: #4682B4;
    color: #F0F8F5;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 20px;
}

.audit-info {
    padding: 30px 20px;
    background-color: #F0F8F5;
    max-width: 800px;
    margin: 0 auto;
}

.audit-info h2 {
    font-size: 28px;
    color: #4682B4;
    text-align: center;
    margin-bottom: 20px;
}

.audit-info p {
    font-size: 18px;
    color: #333;
    margin: 15px 0;
}

.services-pitch {
    padding: 30px 20px;
    background-color: #FFFFFF;
    max-width: 800px;
    margin: 0 auto;
}

.services-pitch h2 {
    font-size: 28px;
    color: #4682B4;
    text-align: center;
    margin-bottom: 20px;
}

/* Fix syntax error: missing closing quote */
.services-pitch p {
    font-size: 18px;
    color: #333;
    margin: 15px 0;
}

.services-pitch ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.services-pitch li {
    font-size: 18px;
    color: #333;
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.services-pitch li:before {
    content: "✔";
    color: #4682B4;
    position: absolute;
    left: 0;
}

.services-pitch .cta-button {
    display: block;
    width: fit-content;
    margin: 20px auto 0;
}

/* Testimonials section (added for social proof) */
.testimonials {
    padding: 30px 20px;
    background-color: #F0F8F5;
    text-align: center;
}

.testimonials h2 {
    font-size: 28px;
    color: #4682B4;
    margin-bottom: 20px;
}

.testimonials blockquote {
    font-style: italic;
    color: #333;
    margin: 0;
}

/* Report Page Specific Styles */
.reports-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.reports-page h1 {
    color: #4682B4;
    text-align: center;
    margin-bottom: 20px;
}

.reports-page h2 {
    color: #4682B4;
    border-bottom: 2px solid #4682B4;
    padding-bottom: 5px;
    margin-top: 30px;
}

.reports-page h3 {
    color: #333;
    margin-top: 20px;
}

.reports-page ul {
    list-style-type: none;
    padding-left: 20px;
}

.reports-page ul li {
    margin: 10px 0;
    padding-left: 10px;
    position: relative;
}

.reports-page ul li::before {
    content: "•";
    color: #4682B4;
    position: absolute;
    left: -10px;
}

.reports-page a {
    color: #4682B4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.reports-page a:hover {
    color: #ADD8E6;
    text-decoration: underline;
}

.reports-page blockquote {
    font-style: italic;
    color: #555;
    border-left: 4px solid #4682B4;
    padding-left: 15px;
    margin: 15px 0;
}

/* Sticky Table of Contents (Desktop Only) */
@media (min-width: 769px) {
    .toc {
        position: sticky;
        top: 20px;
        float: right;
        width: 25%;
        background-color: #F0F8F5;
        padding: 15px;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .content {
        float: left;
        width: 70%;
    }

    .reports-page::after {
        content: "";
        display: table;
        clear: both;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .reports-page {
        padding: 15px;
    }

    .toc {
        width: 100%;
        margin-bottom: 20px;
    }

    .content {
        width: 100%;
    }
}

/* Responsive Design for Portrait Mode */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 10px;
        text-align: center;
    }

    .logo-container {
        flex-direction: column;
        gap: 5px;
    }

    .logo-image {
        max-width: 120px;
    }

    .firm-info h1 {
        font-size: 20px;
    }

    .firm-info p {
        font-size: 12px;
    }

    nav {
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        gap: 5px;
        padding: 0;
        width: 100%;
    }

    nav a {
        font-size: 16px;
        padding: 8px;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
   
    /* Disable ::before on small screens */
    nav a:hover::before,
    nav a.active::before {
        display: none;
    }

    .hero {
        padding: 20px 10px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 16px;
    }

    .audit-info, .services-pitch, .testimonials {
        padding: 15px;
        max-width: 100%;
    }

    .audit-info h2, .services-pitch h2, .testimonials h2 {
        font-size: 20px;
    }

    .cta-button {
        padding: 8px 15px;
        font-size: 14px;
    }

    .reports-page {
        padding: 15px;
    }

    .toc {
        width: 100%;
        margin-bottom: 20px;
    }

    .content {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-image {
        max-width: 100px;
    }

    .firm-info h1 {
        font-size: 18px;
    }

    .firm-info p {
        font-size: 10px;
    }

    nav a {
        font-size: 14px;
        padding: 6px;
    }

    .hero h1 {
        font-size: 20px;
    }

    .hero p {
        font-size: 14px;
    }

    .audit-info h2, .services-pitch h2, .testimonials h2 {
        font-size: 18px;
    }

    .audit-info p, .services-pitch p, .services-pitch li, .testimonials blockquote {
        font-size: 13px;
    }

    footer {
        padding: 10px;
    }

    .cta-button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .reports-page h2 {
        font-size: 20px;
    }

    .reports-page h3 {
        font-size: 16px;
    }

    .reports-page ul li {
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    nav a {
        font-size: 12px;
        padding: 8px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* New Media Query for Landscape Mode on Mid-Sized Screens */
@media (max-height: 500px) and (orientation: landscape) {
    header {
        flex-direction: row; /* Keep logo and nav side by side */
        align-items: center;
        padding: 5px 10px; /* Reduce padding for shorter height */
    }

    .logo-container {
        flex-direction: row; /* Logo and firm info side by side */
        gap: 10px;
    }

    .logo-image {
        max-width: 80px; /* Smaller logo to fit */
    }

    .firm-info h1 {
        font-size: 16px;
    }

    .firm-info p {
        font-size: 10px;
    }

    nav {
        width: auto; /* Allow nav to take only the space it needs */
    }

    nav ul {
        flex-wrap: nowrap; /* Prevent wrapping */
        overflow-x: auto; /* Allow horizontal scrolling if needed */
        white-space: nowrap; /* Keep buttons in a single row */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
        gap: 10px; /* Smaller gap */
        padding-bottom: 5px; /* Space for scrollbar */
    }

    nav a {
        font-size: 14px; /* Smaller text */
        padding: 4px 8px; /* Smaller padding */
        display: inline-block; /* Fit content */
    }

    /* Disable ::before to avoid background issues */
    nav a:hover::before,
    nav a.active::before {
        display: none;
    }

    .hero {
        padding: 10px;
    }

    .hero h1 {
        font-size: 20px;
    }

    .hero p {
        font-size: 14px;
    }

    .audit-info, .services-pitch, .testimonials {
        padding: 10px;
    }

    .audit-info h2, .services-pitch h2, .testimonials h2 {
        font-size: 18px;
    }

    .reports-page {
        padding: 10px;
    }

    .reports-page h2 {
        font-size: 18px;
    }

    .reports-page h3 {
        font-size: 16px;
    }
}