body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #ffffff;
    color: #333;
}

/* === Header Layout === */
header {
    background-color: #f5f5f0;
    border-bottom: 4px solid #003333;
    padding-top: 24px;
}

.header-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 10px 0;
}

.logo {
    width: 100%;
    max-width: 325px;
    height: auto;
    max-height: 100px;
    margin-bottom: 6px;
}

.tagline {
    font-size: 12px;
    color: #003333;
    font-weight: normal;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8em;
    color: #003333;
    cursor: pointer;
    padding-top: 0;
}

.nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
}

.nav-links a {
    color: #003333;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.2s;
}

.nav-links a:hover {
    border-bottom: 2px solid #003333;
}

/* === Responsive Layout === */
@media (max-width: 700px) {
    .header-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .branding {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-left: 0;
        margin-bottom: 0;
        max-width: 600px;
    }

    .menu-toggle {
        display: block;
        margin-bottom: 10px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }

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

    .logo {
        max-height: 120px;
        max-width: 600px;
    }

    .tagline {
        font-size: 14px;
    }
}

/* === Layout for Main Content === */
section {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

section p,
section ul,
section ol {
    line-height: 1.6;
}

/* === Global Heading Hierarchy (inside main content) === */
main h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin: 0 0 0.75rem;
    color: #003333;
    font-weight: bold;
}

main h2 {
    font-size: 1.6rem;
    line-height: 1.35;
    margin: 2rem 0 0.75rem;
    color: #003333;
    font-weight: bold;
}

main h3 {
    font-size: 1.3rem;
    line-height: 1.4;
    margin: 1.5rem 0 0.5rem;
    color: #003333;
    font-weight: bold;
}

main h4 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 1.25rem 0 0.25rem;
    color: #444;
    font-weight: bold;
}

/* Original section h3 look for non-article sections (About, Practice Areas) */
section > h3 {
    color: #003333;
    border-bottom: 2px solid #003333;
    padding-bottom: 5px;
}

/* === LANDING PAGE STYLES === */

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
    margin-top: 0;
}

.hero h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin: 0 0 1rem;
    color: #003333;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #555;
    margin: 0 auto 2rem;
    max-width: 700px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary {
    display: inline-block;
    padding: 14px 32px;
    background-color: #003333;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.05rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.cta-primary:hover {
    background-color: #005555;
    text-decoration: none;
}

.cta-secondary {
    display: inline-block;
    padding: 14px 32px;
    background-color: transparent;
    color: #003333;
    font-weight: bold;
    font-size: 1.05rem;
    border: 2px solid #003333;
    border-radius: 4px;
    text-decoration: none;
    transition:
        background-color 0.2s,
        color 0.2s;
}

.cta-secondary:hover {
    background-color: #003333;
    color: #ffffff;
    text-decoration: none;
}

/* Why Section */
.why-section {
    background-color: #f5f5f0;
    padding: 40px 20px;
    margin: 60px auto;
    border-top: 4px solid #003333;
    border-bottom: 4px solid #003333;
}

.why-section h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 2.5rem;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.why-item h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #003333;
}

.why-item p {
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .why-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Who We Serve Section */
.who-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.who-section h2 {
    margin-top: 0;
}

.who-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.who-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #ddd;
    line-height: 1.6;
}

.who-list li:last-child {
    border-bottom: none;
}

/* Approach Section */
.approach-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.approach-section h2 {
    margin-top: 0;
}

.approach-item {
    margin-bottom: 2rem;
}

.approach-item h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #003333;
}

.approach-item p {
    margin: 0;
    line-height: 1.6;
}

/* Final CTA Section */
.final-cta {
    text-align: center;
    background-color: #f5f5f0;
    padding: 50px 20px;
    margin: 60px auto;
    border-top: 4px solid #003333;
    border-bottom: 4px solid #003333;
}

.final-cta h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.final-cta > p {
    max-width: 650px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.final-cta .cta-primary {
    margin-bottom: 1.5rem;
}

.cta-location {
    font-size: 0.95rem;
    color: #666;
    margin-top: 1.5rem;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-primary,
    .cta-secondary {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* === Contact section tweaks === */
.contact p {
    margin: 0;
    line-height: 1.2;
}

/* === About layout === */
.about {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.headshot {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    background-color: #cccccc;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    border: 2px solid #003333;
}

/* === Footer === */
footer {
    text-align: center;
    font-size: 0.8em;
    color: #666;
    margin: 40px 0;
    border-top: 2px solid #003333;
    padding-top: 10px;
}

footer p {
    max-width: 800px;
    margin: auto;
}

/* === Links === */
a {
    color: #003333;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === Insights: list page === */

/* Insights Intro */
.insights-intro {
    margin-top: 20px;
    margin-bottom: 40px;
}

.insights-intro h1 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.insights-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

/* Insights Section Container */
.insights-section {
    margin-bottom: 60px;
}

.insights-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.insight-preview {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
}

.insight-preview h2 {
    margin: 0 0 0.25rem;
}

.insight-preview h2 a {
    text-decoration: none;
}

.insight-preview h2 a:hover {
    text-decoration: underline;
}

.insight-preview .meta {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 0.5rem;
}

.insight-preview > p {
    margin-bottom: 0.75rem;
}

/* Insight Tags */
.insight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f5f5f0;
    color: #003333;
    font-size: 0.85rem;
    border-radius: 3px;
    border: 1px solid #ddd;
}

/* Insights CTA */
.insights-cta {
    text-align: center;
    background-color: #f5f5f0;
    padding: 50px 20px;
    margin: 60px auto;
    border-top: 4px solid #003333;
    border-bottom: 4px solid #003333;
}

.insights-cta h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.insights-cta > p {
    max-width: 650px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Pagination under Insights */
.pagination {
    margin-top: 2rem;
    font-size: 0.9rem;
    display: flex;
    gap: 1rem;
}

.pagination a {
    text-decoration: none;
    font-weight: bold;
}

/* === Insights: single post === */

/* Post Container */
.post-container {
    margin-top: 20px;
    margin-bottom: 60px;
}

/* Back Navigation */
.post-nav-top {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-block;
    color: #003333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: bold;
    padding: 0.5rem 0;
}

.back-link:hover {
    text-decoration: underline;
}

/* Post Header */
.post-header {
    background-color: #f5f5f0;
    padding: 1rem;
    margin-bottom: 2rem;
}

.insight-post h1 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    line-height: 1.3;
}

.post-meta-container {
    margin: 0 1rem;
}

.post-date {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Post Content */
.post-content {
    margin-bottom: 1rem;
}

.post-content h1 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-content p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.post-content ul,
.post-content ol {
    margin: 1.25rem 0;
    padding-left: 2rem;
    line-height: 1.7;
}

.post-content li {
    margin-bottom: 0.5rem;
}

/* Post Footer */
.post-footer {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.post-nav-bottom {
    margin-bottom: 0;
}

/* Post CTA */
.post-cta {
    text-align: center;
    background-color: #f5f5f0;
    padding: 50px 20px;
    margin: 60px auto;
    border-top: 4px solid #003333;
    border-bottom: 4px solid #003333;
}

.post-cta h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.post-cta > p {
    max-width: 650px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Override heavy borders on headings inside posts */
.insight-post h2,
.insight-post h3,
.insight-post h4 {
    border: none;
    padding-bottom: 0;
}

.insight-meta {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1.5rem;
}

/* Subtitle / hook under title */
.insight-subtitle {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
    font-style: italic;
}

/* === CONTACT PAGE STYLES === */

/* Contact Intro */
.contact-intro {
    margin-top: 20px;
    margin-bottom: 50px;
}

.contact-intro h1 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.contact-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

/* Primary Contact Section */
.contact-primary {
    margin-bottom: 50px;
}

.contact-primary h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.contact-primary > p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-guidance {
    margin: 1.5rem 0 2rem;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.contact-guidance li {
    margin-bottom: 0.75rem;
}

.contact-email-box {
    background-color: #f5f5f0;
    padding: 30px;
    border: 2px solid #003333;
    border-radius: 4px;
    text-align: center;
    margin-top: 2rem;
}

.contact-email-box h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    color: #003333;
}

.contact-email {
    font-size: 1.3rem;
    margin: 0.5rem 0;
}

.contact-email a {
    color: #003333;
    font-weight: bold;
}

.contact-response {
    margin: 1rem 0 0;
    font-size: 0.95rem;
    color: #666;
}

/* Alternative Contact */
.contact-alternative {
    margin-bottom: 50px;
}

.contact-alternative h2 {
    margin-top: 0;
    margin-bottom: 2rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-method h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #003333;
}

.contact-detail {
    font-size: 1.1rem;
    margin: 0.5rem 0 1rem;
    line-height: 1.6;
}

.contact-detail a {
    color: #003333;
    font-weight: bold;
}

.contact-note {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 600px) {
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* What to Expect Section */
.contact-expect {
    background-color: #f5f5f0;
    padding: 40px 20px;
    margin: 50px auto;
    border-top: 4px solid #003333;
    border-bottom: 4px solid #003333;
}

.contact-expect h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.contact-expect p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-expect p:last-child {
    margin-bottom: 0;
}

/* Current Clients Note */
.contact-clients {
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 25px;
    background-color: #f9f9f9;
    border-left: 4px solid #003333;
}

.contact-clients h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    color: #003333;
}

.contact-clients p {
    margin: 0;
    line-height: 1.6;
}

/* === SERVICES PAGE STYLES === */

/* Services Intro */
.services-intro {
    margin-top: 20px;
    margin-bottom: 60px;
}

.services-intro h1 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.services-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

/* Core Services Section */
.services-core {
    margin-bottom: 60px;
}

.service-item {
    margin-bottom: 2rem;
}

.service-item h3 {
    font-size: 1.25rem;
    color: #003333;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.service-item p {
    margin: 0;
    line-height: 1.6;
}

/* Projects Section */
.services-projects {
    background-color: #f5f5f0;
    padding: 40px 20px;
    margin: 60px auto;
    border-top: 4px solid #003333;
    border-bottom: 4px solid #003333;
}

.services-projects h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.services-projects > p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.project-type h4 {
    font-size: 1.1rem;
    color: #003333;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.project-type p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Process Section */
.services-process {
    margin-top: 60px;
    margin-bottom: 60px;
}

.process-item {
    margin-bottom: 2rem;
}

.process-item h3 {
    font-size: 1.2rem;
    color: #003333;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.process-item p {
    margin: 0;
    line-height: 1.6;
}

/* About Section on Services Page */
.services-about {
    margin-top: 60px;
    margin-bottom: 60px;
}

.about-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Services CTA */
.services-cta {
    text-align: center;
    background-color: #f5f5f0;
    padding: 50px 20px;
    margin: 60px auto;
    border-top: 4px solid #003333;
    border-bottom: 4px solid #003333;
}

.services-cta h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.services-cta > p {
    max-width: 650px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
}
