/* Visual minimalista global — carregado após app.css e CSS das páginas */

:root {
    --font-brand: "Cinzel", Georgia, serif;
    --font-heading: "Playfair Display", Georgia, serif;
    --font-editorial: "EB Garamond", Georgia, serif;
    --font-ui: "Inter", Arial, sans-serif;

    --navy-950: #082338;
    --navy-900: #0c3555;
    --navy-800: #114468;
    --navy-700: #21638b;


    --gold-dark: #8d6a14;
    --gold: #c9a227;
    --gold-light: #f2df91;

    --gold-metallic:
        linear-gradient(
            135deg,
            #7a5a10 0%,
            #b88a1c 18%,
            #f3e29a 38%,
            #c89d25 55%,
            #8e6915 74%,
            #f0dc86 88%,
            #9a7318 100%
        );


    --white: #ffffff;
    --cream: #f7f8f7;
    --surface: #ffffff;
    --surface-soft: #f1f4f5;
    --text: #12364e;
    --muted: #667782;
    --border: #dfe5e8;
    --border-strong: #cdd7dc;

    --metallic-gold: none;
    --metallic-blue: none;

    --radius-small: 8px;
    --radius-medium: 16px;
    --radius-large: 24px;
}

body {
    color: var(--text);
    background: var(--cream);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--navy-900);
    font-family: var(--font-heading);
}

.main-navigation,
.header-actions,
.hero-eyebrow,
.button,
.footer-column h2 {
    font-family: var(--font-ui);
}

.brand-logo {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    object-fit: contain;
}

.footer-brand-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    object-fit: contain;
}

/* Cabeçalho */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(205, 215, 220, 0.82);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
}

.header-content {
    min-height: 76px;
}

.brand-symbol {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border: 1px solid var(--gold-light);
    color: var(--gold-dark);
    background: var(--white);
    box-shadow: none;
}

.brand-symbol::before {
    display: none;
}

.brand-symbol span {
    color: var(--gold-dark);
    background: none;
    font-size: 0.74rem;
    font-weight: 600;
}

.brand-text strong {
    color: var(--navy-900);
    font-size: 1rem;
}

.brand-text small {
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 0.55rem;
}

.main-navigation {
    gap: 25px;
}

.main-navigation a,
.login-link {
    color: #3b5261;
    font-size: 0.8rem;
    font-weight: 600;
}

.main-navigation a:hover,
.login-link:hover {
    color: var(--navy-900);
}

.main-navigation a[aria-current="page"] {
    color: var(--navy-900);
    font-weight: 750;
}

.mobile-menu-toggle,
.mobile-menu-backdrop {
    display: none;
}

.main-navigation .header-actions {
    margin-left: 2px;
}

.main-navigation .header-actions > .button,
.main-navigation .header-actions > .button:hover {
    color: var(--white);
}

.header-account-menu {
    position: relative;
}

.header-account-menu > summary {
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 10px 5px 6px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    color: var(--navy-900);
    background: var(--white);
    cursor: pointer;
    list-style: none;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.header-account-menu > summary::-webkit-details-marker {
    display: none;
}

.header-account-menu > summary:hover,
.header-account-menu[open] > summary {
    border-color: #afc0c7;
    background: #f7f9f9;
    box-shadow: 0 6px 18px rgba(8, 35, 56, 0.07);
}

.header-account-menu > summary:focus-visible {
    outline: 3px solid rgba(33, 99, 139, 0.2);
    outline-offset: 2px;
}

.header-account-avatar {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #d8c58d;
    border-radius: 50%;
    color: #d5b65d;
    background: var(--navy-900);
    font-family: var(--font-heading);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.header-account-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.header-account-name {
    min-width: 0;
    display: grid;
    line-height: 1.15;
}

.header-account-name small,
.header-account-name strong {
    display: block;
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-account-name small {
    color: #7c8c94;
    font-size: 0.48rem;
    font-weight: 650;
}

.header-account-name strong {
    margin-top: 2px;
    color: var(--navy-900);
    font-size: 0.62rem;
    font-weight: 750;
}

.header-account-chevron {
    width: 6px;
    height: 6px;
    margin: -3px 1px 0 3px;
    transform: rotate(45deg);
    border-right: 1px solid #6f818b;
    border-bottom: 1px solid #6f818b;
    transition: transform 160ms ease;
}

.header-account-menu[open] .header-account-chevron {
    margin-top: 3px;
    transform: rotate(225deg);
}

.header-account-dropdown {
    position: absolute;
    width: 286px;
    z-index: 80;
    top: calc(100% + 11px);
    right: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--white);
    box-shadow: 0 22px 58px rgba(8, 35, 56, 0.18);
}

.header-account-identity {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 17px;
    border-bottom: 1px solid var(--border);
    background: #f7f9f9;
}

.header-account-avatar-large {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 0.68rem;
}

.header-account-identity > div {
    min-width: 0;
}

.header-account-identity strong,
.header-account-identity small {
    display: block;
    overflow: hidden;
    font-family: var(--font-ui);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-account-identity strong {
    color: var(--navy-900);
    font-size: 0.69rem;
}

.header-account-identity small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.54rem;
}

.header-account-links {
    display: grid;
    padding: 7px;
}

.main-navigation .header-actions .header-account-links a {
    min-height: 39px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border-radius: 7px;
    color: #405967;
    font-family: var(--font-ui);
    font-size: 0.63rem;
    font-weight: 650;
    text-decoration: none;
}

.main-navigation .header-actions .header-account-links a span {
    color: var(--gold-dark);
    font-size: 0.51rem;
    font-weight: 800;
}

.main-navigation .header-actions .header-account-links a:hover {
    color: var(--navy-900);
    background: #f1f5f5;
}

.header-account-dropdown form {
    padding: 9px 11px 12px;
    border-top: 1px solid var(--border);
}

.header-account-dropdown form button {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #ead8d4;
    border-radius: 7px;
    color: #8a4a41;
    background: #fff8f6;
    font-family: var(--font-ui);
    font-size: 0.61rem;
    font-weight: 750;
    cursor: pointer;
}

.header-account-dropdown form button:hover {
    border-color: #dfc3bd;
    background: #fff2ef;
}

/* Botões */

.button {
    min-height: 43px;
    padding: 0 19px;
    border-radius: 8px;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: none;
}

.button:hover {
    transform: translateY(-1px);
}

.button-gold {
    color: var(--white);
    border-color: var(--navy-900);
    background: var(--navy-900);
    box-shadow: none;
}

.button-gold::before {
    display: none;
}

.button-gold:hover {
    border-color: var(--navy-800);
    background: var(--navy-800);
    box-shadow: 0 8px 20px rgba(18, 48, 71, 0.14);
}

.button-outline,
.button-light {
    color: var(--navy-900);
    border-color: var(--border-strong);
    background: var(--white);
}

/* Home */

.hero {
    padding: 86px 0 94px;
    background:
        radial-gradient(
            circle at 80% 18%,
            rgba(168, 135, 79, 0.07),
            transparent 25rem
        ),
        linear-gradient(180deg, #ffffff 0%, #f5f7f7 100%);
}

.hero-grid {
    gap: 84px;
}

.hero-eyebrow {
    margin-bottom: 18px;
    color: var(--gold-dark);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.hero h1 {
    max-width: 650px;
    color: var(--navy-900);
    background: none;
    font-size: clamp(3.05rem, 5.5vw, 5.1rem);
    font-weight: 600;
    line-height: 1.02;
}

.hero h1 span {
    background: var(--gold-metallic);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 1px rgba(122, 90, 16, 0.08);
}

.hero-description {
    margin-top: 25px;
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 0.98rem;
    line-height: 1.8;
}

.hero-actions {
    margin-top: 31px;
}

.hero-information {
    gap: 48px;
    margin-top: 44px;
}

.hero-information strong {
    color: var(--navy-900);
    font-size: 1.5rem;
}

.hero-information span {
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 0.7rem;
}

.hero-visual {
    min-height: 500px;
}

.photo-placeholder {
    width: min(440px, 92%);
    height: 490px;
    border: 1px solid var(--border);
    border-radius: 22px;
    color: #3f586b;
    background: #eef2f3;
    box-shadow: 0 18px 48px rgba(11, 34, 51, 0.09);
}

.floating-card {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 24px rgba(11, 34, 51, 0.07);
}

.experience-card strong {
    color: var(--gold-dark);
    font-size: 1.5rem;
}

.experience-card span,
.library-card strong {
    font-family: var(--font-ui);
}

.library-card small {
    color: var(--gold-dark);
    font-family: var(--font-ui);
}

/* Footer */

.site-footer {
    color: #c7d2d9;
    background: var(--navy-950);
}

.site-footer::before {
    display: none;
}

.footer-main {
    padding: 62px 0 48px;
}

.footer-grid {
    gap: 54px;
}

.footer-brand-symbol {
    width: 44px;
    height: 44px;
    border-color: rgba(215, 196, 158, 0.56);
    color: var(--gold-light);
    background: transparent;
    box-shadow: none;
}

.footer-brand strong {
    font-size: 1rem;
}

.footer-brand small,
.footer-description,
.footer-column nav a,
.footer-contact p,
.footer-bottom-content p,
.footer-bottom-content nav a {
    font-family: var(--font-ui);
}

.footer-brand small {
    color: #8296a2;
    font-size: 0.54rem;
}

.footer-description {
    color: #9aabb5;
    font-size: 0.8rem;
    line-height: 1.75;
}

.footer-social a,
.footer-social span {
    color: var(--gold-light);
    font-family: var(--font-ui);
    font-size: 0.6rem;
}

.footer-social-pending span {
    opacity: 0.62;
}

.footer-column h2 {
    margin-bottom: 19px;
    color: var(--white);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
}

.footer-column nav {
    gap: 10px;
}

.footer-column nav a,
.footer-contact p {
    color: #9aabb5;
    font-size: 0.76rem;
}

.footer-column nav a:hover {
    color: var(--white);
    transform: none;
}

.footer-contact span {
    color: var(--gold-light);
    font-family: var(--font-ui);
    font-size: 0.54rem;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.08);
}

.footer-bottom-content {
    min-height: 68px;
}

.footer-bottom-content p,
.footer-bottom-content nav a {
    color: #7f929d;
    font-size: 0.68rem;
}

/* Base para páginas internas */

.section-eyebrow {
    color: var(--gold-dark) !important;
    font-family: var(--font-ui) !important;
    font-size: 0.66rem !important;
    letter-spacing: 0.12em !important;
}

.admin-edit-page {
    color: var(--white) !important;
    border-color: var(--navy-900) !important;
    background: var(--navy-900) !important;
    box-shadow: 0 8px 20px rgba(18, 48, 71, 0.15) !important;
}

@media (max-width: 1040px) {
    body.mobile-menu-open {
        overflow: hidden;
    }

    .header-content {
        position: relative;
    }

    .mobile-menu-toggle {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        padding: 0 13px;
        border: 1px solid var(--border-strong);
        border-radius: 8px;
        color: var(--navy-900);
        background: var(--white);
        font-family: var(--font-ui);
        font-size: 0.68rem;
        font-weight: 750;
        cursor: pointer;
    }

    .mobile-menu-toggle:focus-visible {
        outline: 3px solid rgba(33, 99, 139, 0.22);
        outline-offset: 2px;
    }

    .mobile-menu-icon {
        width: 17px;
        display: grid;
        gap: 4px;
    }

    .mobile-menu-icon i {
        width: 100%;
        height: 1px;
        display: block;
        background: currentColor;
        transition:
            transform 180ms ease,
            opacity 180ms ease;
    }

    .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon i:first-child {
        transform: translateY(5px) rotate(45deg);
    }

    .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon i:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon i:last-child {
        transform: translateY(-5px) rotate(-45deg);
    }

    .main-navigation {
        position: fixed;
        width: min(360px, calc(100% - 40px));
        max-height: calc(100vh - 104px);
        z-index: 60;
        top: 88px;
        right: 20px;
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 12px;
        overflow-y: auto;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: var(--white);
        box-shadow: 0 24px 65px rgba(8, 35, 56, 0.2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;
        transition:
            opacity 180ms ease,
            transform 180ms ease,
            visibility 180ms ease;
    }

    .main-navigation > a {
        padding: 13px 12px;
        border-bottom: 1px solid var(--border);
        border-radius: 7px;
        font-size: 0.76rem;
    }

    .main-navigation > a:hover,
    .main-navigation > a[aria-current="page"] {
        background: #f3f6f6;
    }

    .main-navigation .header-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding-top: 12px;
        margin-left: 0;
    }

    .main-navigation .header-actions-authenticated {
        grid-template-columns: 1fr;
    }

    .header-account-menu {
        width: 100%;
    }

    .header-account-menu > summary {
        width: 100%;
        min-height: 48px;
        padding-right: 14px;
    }

    .header-account-name {
        margin-right: auto;
        text-align: left;
    }

    .header-account-name small,
    .header-account-name strong {
        max-width: 220px;
    }

    .header-account-dropdown {
        position: static;
        width: 100%;
        margin-top: 7px;
        border-radius: 10px;
        box-shadow: none;
    }

    .main-navigation .header-actions-authenticated > .button {
        width: 100%;
    }

    .main-navigation .header-actions a {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 10px;
        border: 1px solid var(--border-strong);
        border-radius: 7px;
        color: var(--navy-900);
        background: var(--white);
        font-family: var(--font-ui);
        font-size: 0.62rem;
        font-weight: 750;
        text-align: center;
        text-decoration: none;
    }

    .main-navigation .header-actions .button {
        display: inline-flex;
        color: var(--white);
        border-color: var(--navy-900);
        background: var(--navy-900);
    }

    .mobile-menu-backdrop {
        position: fixed;
        z-index: 45;
        inset: 76px 0 0;
        display: block;
        background: rgba(5, 27, 43, 0.38);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            opacity 180ms ease,
            visibility 180ms ease;
    }

    body.mobile-menu-open .main-navigation {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    body.mobile-menu-open .mobile-menu-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

@media (max-width: 680px) {
    .main-navigation {
        width: calc(100% - 24px);
        right: 12px;
    }

    .hero {
        padding: 62px 0 70px;
    }

    .photo-placeholder {
        height: 410px;
    }

    .footer-main {
        padding: 48px 0 40px;
    }
}


/* Barra de rolagem global */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--navy-700) #edf1f2;
}

/* Chrome, Edge e Safari */
*::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

*::-webkit-scrollbar-track {
    background: #edf1f2;
}

*::-webkit-scrollbar-thumb {
    border: 3px solid #edf1f2;
    border-radius: 999px;
    background: var(--navy-700);
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

*::-webkit-scrollbar-corner {
    background: #edf1f2;
}
