:root {
    /* Eldermark Stone LLC — institutional palette */
    --brand-primary: #1e4976;
    --brand-primary-dark: #153555;
    --brand-primary-light: #2d6ba3;
    /* Typography: serif for headings, sans for body (consultancy-style) */
    --font-serif: Georgia, "Times New Roman", Times, serif;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    /* Neutrals — WCAG AA friendly */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #5c5c5c;
    --bg-page: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-alt: #f5f6f7;
    --border-subtle: #e8e9ea;
    /* Layout */
    --content-max: 1200px;
    --text-measure: 70ch;
    --radius-sm: 4px;
    --radius-md: 6px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.07);
}

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

body.dark-mode .loading-screen {
    background-color: #1a1a1a;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loading-logo-circle {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-logo {
    height: auto;
    max-width: 540px;
    object-fit: contain;
}

.loading-logo-dark {
    display: none;
}

.loading-logo-light {
    display: block;
}

body.dark-mode .loading-logo-dark {
    display: block;
}

body.dark-mode .loading-logo-light {
    display: none;
}

.loading-bar-container {
    width: 300px;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

body.dark-mode .loading-bar-container {
    background-color: #333333;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease-out;
    animation: loadingProgress 1.5s ease-out forwards;
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-primary);
    background-color: var(--bg-page);
}

/* Heading hierarchy — serif, institutional */
h1, h2, h3, h4,
.hero h1,
.content-section h2,
.content-section h3,
.pillar-card h3,
.methodology-step h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.content-section h2 {
    letter-spacing: -0.02em;
}

header {
    background-color: var(--bg-card);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    cursor: pointer;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    height: auto;
    min-height: 50px;
}

.logo:hover {
    opacity: 0.7;
}

.logo-img {
    height: 120px;
    width: auto;
    max-width: 600px;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.logo-img-light {
    display: block;
}

.logo-img-dark {
    display: none;
}

body.dark-mode .logo-img-light {
    display: none;
}

body.dark-mode .logo-img-dark {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
    cursor: pointer;
}

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

main {
    min-height: calc(100vh - 250px);
}

.page {
    display: none;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

.page.active {
    display: block;
}

/* Hero Section — institutional, no promotional look */
.hero {
    position: relative;
    padding: 4.5rem 2.5rem;
    margin-bottom: 3.5rem;
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-eldermark {
    background: linear-gradient(160deg, var(--brand-primary-dark) 0%, var(--brand-primary) 45%, #0f1729 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.hero-text {
    text-align: left;
}

.hero-image {
    text-align: center;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 2.125rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 1.25rem;
    text-align: left;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2.25rem;
    max-width: 52ch;
    text-align: left;
}

.hero .cta-button + .cta-button-secondary {
    margin-left: 0.75rem;
}

.cta-button-secondary {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    color: #ffffff !important;
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: none;
}

.hero .trust-item {
    color: rgba(255, 255, 255, 0.85);
}

.hero .trust-icon {
    color: rgba(255, 255, 255, 0.7);
}

/* CTAs — sober, professional */
.cta-button {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--brand-primary);
    border: 1px solid var(--brand-primary-dark);
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    margin-bottom: 0;
    box-shadow: none;
}

.cta-button:hover {
    background-color: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    color: #ffffff;
    box-shadow: none;
}

.cta-button:focus {
    outline: none;
}

.cta-button:focus-visible {
    outline: 2px solid var(--brand-primary-dark);
    outline-offset: 2px;
}

.trust-elements {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    margin-top: 0;
    flex-wrap: wrap;
    text-align: left;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-icon {
    color: var(--brand-primary);
    font-weight: 400;
    font-size: 1rem;
}

/* Content Sections — clear hierarchy, readable measure */
.content-section {
    background: var(--bg-card);
    padding: 3.5rem 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2.5rem;
}

.section-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 0;
}

.section-text {
    text-align: left;
    max-width: var(--text-measure);
}

.section-text > p:first-of-type {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.section-image {
    text-align: center;
}

.section-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.team-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.team-gallery .gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.team-gallery .gallery-img:hover {
    box-shadow: var(--shadow-md);
}

.content-section-intro {
    margin-bottom: 1.75rem;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: var(--text-measure);
}

.section-cta {
    text-align: left;
    margin-top: 2.5rem;
}

/* Section headings — H1 not in content-section; H2/H3 scale */
.content-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    margin-top: 0;
    color: var(--text-primary);
}

.content-section h3 {
    font-size: 1.1875rem;
    margin-bottom: 0.5rem;
}

.content-section h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}

.contact-note {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 55ch;
    margin-left: auto;
    margin-right: auto;
}

.content-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.content-section > p {
    max-width: var(--text-measure);
}

.method-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.25rem;
    margin-bottom: 1rem;
}

.method-list li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--bg-card-alt);
    border-left: 3px solid var(--brand-primary);
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 1rem;
}

/* Do/Dont Section */
.do-dont {
    margin-top: 2rem;
}

.do-dont-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.do-column h3,
.dont-column h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.do-column {
    padding: 1.5rem;
    background: var(--bg-card-alt);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--brand-primary);
}

.dont-column {
    padding: 1.5rem;
    background: var(--bg-card-alt);
    border-radius: var(--radius-md);
    border-left: 3px solid #b91c1c;
}

.do-column ul,
.dont-column ul {
    list-style: none;
    padding-left: 0;
}

.do-column li,
.dont-column li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    line-height: 1.65;
    position: relative;
    padding-left: 1.5rem;
}

.do-column li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand-primary);
    font-weight: bold;
}

.dont-column li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
}

/* Service cards — consistent with institutional look */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.pillar-card {
    padding: 0;
    background: var(--bg-card-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    border-top: 3px solid var(--brand-primary);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover {
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.pillar-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--border-subtle);
}

.pillar-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

.pillar-card h3 {
    color: var(--brand-primary);
    margin: 1.25rem 1.25rem 0.5rem;
    font-size: 1.125rem;
    font-family: var(--font-serif);
}

.pillar-card p {
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 1.25rem 1.25rem;
    padding-bottom: 1.25rem;
    font-size: 0.9375rem;
}

/* FAQ Section */
.faq-section {
    margin-top: 2rem;
}

.faq-list {
    margin-top: 2rem;
}

.faq-item {
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    background: var(--bg-card-alt);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--brand-primary);
}

.faq-item h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
}

.faq-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.65;
}

.faq-item a {
    color: var(--brand-primary);
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* About page — Mission and Values */
.content-section h1 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.manifesto-text {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: var(--text-measure);
}

.mvv-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.mvv-card {
    padding: 1.75rem;
    background: var(--bg-card-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    border-top: 3px solid var(--brand-primary);
}

.mvv-card h2 {
    font-size: 1.25rem;
    color: var(--brand-primary);
    margin-bottom: 0.75rem;
}

.mvv-card p {
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 0;
}

.values-list {
    list-style: none;
    padding-left: 0;
}

.values-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.values-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--brand-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Methodology — clean steps, no gimmicks */
.methodology-section {
    margin: 3rem 0;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-subtle);
}

.methodology-image-wrapper {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.methodology-main-img {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 2;
    object-fit: cover;
    display: block;
}

.methodology-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.methodology-step {
    padding: 1.5rem 1.25rem;
    background: var(--bg-card-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    text-align: left;
    transition: border-color 0.2s ease;
}

.methodology-step:hover {
    border-color: var(--brand-primary);
}

.step-icon {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.methodology-step h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
}

.methodology-step p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0;
    line-height: 1.65;
}

/* Governança */
.governance-section {
    margin: 3rem 0;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-subtle);
}

.governance-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.governance-list li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--bg-card-alt);
    border-left: 3px solid var(--brand-primary);
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Operações */
.operations-section {
    margin: 3rem 0;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-subtle);
}

.operations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.operation-item {
    padding: 1.5rem 1.25rem;
    background: var(--bg-card-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    text-align: center;
}

.operation-item h3 {
    color: var(--brand-primary);
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.operation-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.65;
}

/* Contact */
.contact-section {
    margin: 3rem 0;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.contact-section a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-section a:hover {
    text-decoration: underline;
}

.contact-section a:focus {
    outline: none;
}

.contact-section a:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Footer — institutional */
footer {
    background-color: #2d2d2d;
    color: #e5e5e5;
    padding: 3rem 2rem 2.5rem;
    margin-top: 3.5rem;
}

.footer-content {
    max-width: var(--content-max);
    margin: 0 auto;
}

.footer-content > p {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #d4d4d4;
    font-size: 0.9375rem;
}

.footer-address {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-address p {
    margin: 0.25rem 0;
    color: #999;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #555;
}

.footer-nav a {
    color: #d4d4d4;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #ffffff;
}

.footer-nav a:focus {
    outline: none;
}

.footer-nav a:focus-visible {
    outline: 2px solid #d4d4d4;
    outline-offset: 2px;
}

.footer-disclaimer {
    text-align: center;
    font-size: 0.8125rem;
    color: #a3a3a3;
    line-height: 1.65;
    max-width: 65ch;
    margin: 0 auto;
}

body.dark-mode .footer-address {
    color: #999;
}

body.dark-mode .footer-address p {
    color: #999;
}

/* Responsive — preserve hierarchy and readability */
@media (max-width: 768px) {
    .page {
        padding: 1.5rem 1.25rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.25rem;
    }

    .nav-right {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .logo-img {
        max-width: 280px;
        height: auto;
        max-height: 72px;
    }

    .hero {
        padding: 3rem 1.5rem;
        margin-bottom: 2.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 1.625rem;
        text-align: left;
    }

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

    .hero-text {
        text-align: left;
    }

    .trust-elements {
        justify-content: flex-start;
        gap: 1.25rem;
    }

    .content-section {
        padding: 2rem 1.25rem;
    }

    .section-with-image {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-text {
        max-width: none;
    }

    .content-section h2 {
        font-size: 1.375rem;
    }

    .pillar-image {
        height: 160px;
    }

    .loading-logo {
        max-width: 320px;
    }

    .loading-bar-container {
        width: 240px;
    }

    .do-dont-grid {
        grid-template-columns: 1fr;
    }

    .pillars-grid,
    .mvv-section {
        grid-template-columns: 1fr;
    }

    .methodology-steps,
    .operations-grid {
        grid-template-columns: 1fr;
    }

    .section-cta {
        text-align: center;
    }

    .footer-nav {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
}

/* Dark Mode Toggle — subtle */
.dark-mode-toggle {
    background: transparent;
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    padding: 0;
}

.dark-mode-toggle:hover {
    background: var(--brand-primary);
    color: white;
}

.dark-mode-toggle:active {
    opacity: 0.9;
}

.dark-mode-toggle:focus {
    outline: none;
}

.dark-mode-toggle:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

.toggle-icon {
    transition: transform 0.3s;
}

.dark-mode-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

/* Dark Mode — same structure, adjusted tokens */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e5e5e5;
    --bg-card-alt: #252525;
    --border-subtle: #3a3a3a;
}

body.dark-mode header {
    background-color: #252525;
    box-shadow: var(--shadow-sm);
}

body.dark-mode .nav-link {
    color: #e5e5e5;
}

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

body.dark-mode .content-section {
    background: #252525;
    box-shadow: none;
    border: 1px solid #3a3a3a;
}

body.dark-mode .hero-eldermark {
    background: linear-gradient(160deg, #0f1729 0%, var(--brand-primary-dark) 50%, var(--brand-primary) 100%);
}

body.dark-mode .hero h1 {
    color: #ffffff;
}

body.dark-mode .hero-subtitle,
body.dark-mode .hero .trust-item {
    color: rgba(255, 255, 255, 0.88);
}

body.dark-mode .hero .trust-icon {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .pillar-image {
    background: #1a1a1a;
}

body.dark-mode .section-img,
body.dark-mode .pillar-img,
body.dark-mode .methodology-main-img {
    opacity: 0.95;
}

body.dark-mode .content-section h2,
body.dark-mode .content-section h1,
body.dark-mode .do-column h3,
body.dark-mode .dont-column h3,
body.dark-mode .faq-item h3 {
    color: #f0f0f0;
}

body.dark-mode .content-section p,
body.dark-mode .trust-item,
body.dark-mode .method-list li,
body.dark-mode .do-column li,
body.dark-mode .dont-column li,
body.dark-mode .faq-item p,
body.dark-mode .pillar-card p,
body.dark-mode .mvv-card p,
body.dark-mode .values-list li,
body.dark-mode .methodology-step p,
body.dark-mode .governance-list li,
body.dark-mode .operation-item p,
body.dark-mode .manifesto-text,
body.dark-mode .content-section-intro {
    color: #b8b8b8;
}

body.dark-mode .pillar-card h3,
body.dark-mode .methodology-step h3 {
    color: var(--brand-primary-light);
}

body.dark-mode .method-list li,
body.dark-mode .governance-list li,
body.dark-mode .faq-item,
body.dark-mode .pillar-card,
body.dark-mode .mvv-card,
body.dark-mode .methodology-step,
body.dark-mode .operation-item,
body.dark-mode .do-column,
body.dark-mode .dont-column {
    background: #252525;
    border-left-color: var(--brand-primary);
    border-color: #3a3a3a;
}

body.dark-mode .do-column {
    background: #1e2936;
}

body.dark-mode .dont-column {
    background: #2a2525;
}

body.dark-mode footer {
    background-color: #1a1a1a;
}

body.dark-mode .footer-nav {
    border-bottom-color: #3a3a3a;
}

body.dark-mode .footer-nav a {
    color: #b8b8b8;
}

body.dark-mode .footer-nav a:hover {
    color: var(--brand-primary-light);
}

body.dark-mode .footer-nav a:focus-visible {
    outline-color: var(--brand-primary-light);
}

body.dark-mode .footer-content > p {
    color: #d4d4d4;
}

body.dark-mode .footer-disclaimer {
    color: #9a9a9a;
}

body.dark-mode .dark-mode-toggle {
    border-color: var(--brand-primary-light);
    color: var(--brand-primary-light);
}

body.dark-mode .dark-mode-toggle:hover {
    background: var(--brand-primary);
    color: white;
}

body.dark-mode .contact-section a {
    color: var(--brand-primary-light);
}

body.dark-mode .contact-section a:hover {
    color: #5a9fd4;
}

/* Acessibilidade — focus visível (teclado), discreto para rato */
a:focus,
button:focus,
.nav-link:focus {
    outline: none;
}

a:focus-visible,
button:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Skip to main content */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--brand-primary);
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    z-index: 1001;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

.skip-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .loading-bar {
        animation: none !important;
        transition: none !important;
    }
    
    .loading-screen {
        transition: none !important;
    }
}

/* ============================================
   Cookie Consent System Styles
   ============================================ */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 1.5rem 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    border-top: 1px solid #e0e0e0;
}

.cookie-banner-visible {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 250px;
}

.cookie-banner-text p {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.cookie-banner-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cookie-link {
    color: var(--brand-primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.cookie-link:hover {
    color: var(--brand-primary-dark);
    text-decoration: underline;
}

.cookie-link-separator {
    color: #999;
    font-size: 0.85rem;
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: white;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(49, 86, 190, 0.3);
}

.cookie-btn-reject {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
}

.cookie-btn-reject:hover {
    background: #f5f5f5;
    border-color: #999;
}

.cookie-btn-manage {
    background: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
}

.cookie-btn-manage:hover {
    background: rgba(49, 86, 190, 0.05);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cookie-modal-visible {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.cookie-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s;
}

.cookie-modal-visible .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-modal-header h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s;
    line-height: 1;
}

.cookie-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.cookie-modal-body {
    padding: 2rem;
}

.cookie-modal-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid var(--brand-primary);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.cookie-category-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--brand-primary);
}

.cookie-toggle input:focus + .cookie-toggle-slider {
    box-shadow: 0 0 0 3px rgba(49, 86, 190, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-toggle-disabled .cookie-toggle-slider {
    background-color: var(--brand-primary);
    cursor: not-allowed;
}

.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: white;
}

.cookie-btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(49, 86, 190, 0.3);
}

.cookie-btn-secondary {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
}

.cookie-btn-secondary:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* Dark Mode Styles for Cookie Consent */
body.dark-mode .cookie-banner {
    background: #2d2d2d;
    border-top-color: #444;
}

body.dark-mode .cookie-banner-text p {
    color: #e0e0e0;
}

body.dark-mode .cookie-link {
    color: var(--brand-primary-light);
}

body.dark-mode .cookie-btn-reject {
    color: #b0b0b0;
    border-color: #555;
}

body.dark-mode .cookie-btn-reject:hover {
    background: #252525;
    border-color: #666;
}

body.dark-mode .cookie-modal-content {
    background: #2d2d2d;
}

body.dark-mode .cookie-modal-header {
    border-bottom-color: #444;
}

body.dark-mode .cookie-modal-header h2 {
    color: #e0e0e0;
}

body.dark-mode .cookie-modal-close {
    color: #b0b0b0;
}

body.dark-mode .cookie-modal-close:hover {
    background: #252525;
    color: #e0e0e0;
}

body.dark-mode .cookie-modal-description {
    color: #b0b0b0;
}

body.dark-mode .cookie-category {
    background: #252525;
    border-left-color: var(--brand-primary);
}

body.dark-mode .cookie-category-info h3 {
    color: #e0e0e0;
}

body.dark-mode .cookie-category-desc {
    color: #b0b0b0;
}

body.dark-mode .cookie-modal-footer {
    border-top-color: #444;
}

body.dark-mode .cookie-btn-secondary {
    color: #b0b0b0;
    border-color: #555;
}

body.dark-mode .cookie-btn-secondary:hover {
    background: #252525;
    border-color: #666;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-text {
        margin-bottom: 1rem;
    }

    .cookie-banner-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1rem;
    }

    .cookie-category-header {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-toggle {
        align-self: flex-start;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}

/* Accessibility - Focus styles */
.cookie-btn:focus,
.cookie-toggle input:focus + .cookie-toggle-slider,
.cookie-modal-close:focus {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cookie-banner,
    .cookie-modal,
    .cookie-modal-content,
    .cookie-toggle-slider,
    .cookie-toggle-slider:before {
        transition: none !important;
        animation: none !important;
    }
}
