
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    color: #0A1B35;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
}

img, svg {
    max-width: 100%;
}

img {
    display: block;
}

a {
    text-decoration: none;
}

ul, ol {
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6,
.font-serif {
    font-family: 'Playfair Display', serif;
}

.header-transparent {
    background-color: transparent;
    border-bottom: 1px solid rgba(217, 178, 96, 0.1);
}

.header-solid {
    background-color: #040B14;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(217, 178, 96, 0.2);
}

.hero-section {
    background-color: #040B14;
    position: relative;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #d9b260;
    outline-offset: 4px;
}

.btn-gold {
    background-color: #d9b260;
    color: #040B14;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #b58f45;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 178, 96, 0.25);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #d9b260;
    color: #d9b260;
    background-color: rgba(217, 178, 96, 0.05);
}

.slide-fade {
    animation-name: fade;
    animation-duration: 0.5s;
}

@keyframes fade {
    from { opacity: .4; }
    to { opacity: 1; }
}

.line-clamp-2,
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }

.prose p { margin-bottom: 1rem; line-height: 1.8; }
.prose h2, .prose h3, .prose h4 { margin-top: 2rem; margin-bottom: 1rem; color: #0A1B35; }
.prose ul, .prose ol { margin: 1rem 0 1rem 1.25rem; }
.prose a { color: #0A1B35; text-decoration: underline; }

.gv-primary-menu .menu,
.mobile-menu-links .menu {
    display: contents;
}

.gv-primary-menu .menu-item,
.mobile-menu-links .menu-item {
    list-style: none;
}

.gv-primary-menu .menu-item a {
    color: #d1d5db;
}

.mobile-menu-links .menu-item a {
    color: #ffffff;
}

footer .menu { list-style: none; }
footer .menu li { margin-bottom: 0.75rem; }
footer .menu a { transition: color .2s ease; }
footer .menu a:hover { color: #d9b260; }

.custom-logo-link img {
    max-height: 70px;
    width: auto;
}

/* Ajustes WordPress / menus */
.gv-primary-menu,
.mobile-menu-links,
footer .menu {
    font-family: 'Inter', sans-serif;
}

.gv-primary-menu .menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gv-primary-menu .menu-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gv-primary-menu a,
.gv-primary-menu a:visited,
.gv-primary-menu a:active {
    color: #d1d5db;
    text-decoration: none;
}

.gv-primary-menu a:hover,
.gv-primary-menu a:focus-visible {
    color: #d9b260;
}

.mobile-menu-links .menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-links .menu-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-links a,
.mobile-menu-links a:visited,
.mobile-menu-links a:active {
    color: #ffffff;
    text-decoration: none;
}

.mobile-menu-links a:hover,
.mobile-menu-links a:focus-visible {
    color: #d9b260;
}

footer .menu,
footer ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

footer .menu li,
footer ul.menu li {
    list-style: none;
    margin: 0 0 0.75rem 0;
    padding: 0;
}

footer .menu a,
footer .menu a:visited,
footer .menu a:active {
    color: #d1d5db;
    text-decoration: none;
}

footer .menu a:hover,
footer .menu a:focus-visible {
    color: #d9b260;
}

a[href^="#"] {
    text-decoration: none;
}

/* Garante leitura visual no hero e seções escuras */
.hero-section .text-white,
.bg-brand-navy .text-white,
.bg-brand-deep .text-white,
.bg-brand-navyLight .text-white {
    color: #ffffff;
}

.hero-section .text-gray-300,
.bg-brand-navy .text-gray-300,
.bg-brand-deep .text-gray-300,
.bg-brand-navyLight .text-gray-300 {
    color: #d1d5db;
}

.hero-section .text-gray-400,
.bg-brand-navy .text-gray-400,
.bg-brand-deep .text-gray-400,
.bg-brand-navyLight .text-gray-400 {
    color: #9ca3af;
}

/* Admin bar */
.admin-bar #main-header {
    top: 32px;
}
@media (max-width: 782px) {
    .admin-bar #main-header {
        top: 46px;
    }
}

/* Segurança extra para imagem e conteúdo do hero */
.hero-section > .container,
.hero-section .container {
    position: relative;
    z-index: 10;
}


#main-header {
    left: 0;
    right: 0;
}

main, section, footer, header, nav, div {
    box-sizing: border-box;
}

.container {
    width: 100%;
}

body.admin-bar {
    min-height: 100vh;
}



/* ===== FIX DEFINITIVO FOOTER LINKS ===== */
footer a,
footer a:visited,
footer a:active,
footer a:focus {
    color: #d1d5db !important;
    text-decoration: none !important;
}

footer a:hover,
footer a:focus-visible {
    color: #d9b260 !important;
}

footer ul,
footer li {
    list-style: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* ===== LOGO SVG HEADER ===== */
.gv-site-logo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 56px;
    object-fit: contain;
}

#navbar .custom-logo-link,
#navbar > .flex.items-center a.block.w-40.md\:w-56,
#navbar a.block.w-40.md\:w-56 {
    display: block;
    width: 224px;
    max-width: 100%;
}

@media (max-width: 767px) {
    #navbar .custom-logo-link,
    #navbar > .flex.items-center a.block.w-40.md\:w-56,
    #navbar a.block.w-40.md\:w-56 {
        width: 160px;
    }

    .gv-site-logo {
        max-height: 44px;
    }
}


/* ===== Equipe quality blocks refinement ===== */
#equipe .shadow-brand-navy\/10 {
    box-shadow: 0 10px 24px rgba(10, 27, 53, 0.10);
}
#equipe svg {
    display: block;
}


/* ===== Blog hybrid grid ===== */
.gv-blog-hybrid {
    position: relative;
}

.gv-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.gv-blog-card {
    width: 100%;
    max-width: 100%;
    opacity: 1;
    transform: translateY(0);
    transition: transform .35s ease, opacity .35s ease, border-color .3s ease, box-shadow .3s ease;
}

.gv-blog-card.is-entering {
    opacity: 0;
    transform: translateY(20px);
}

.gv-blog-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.gv-blog-card-featured {
    grid-column: span 3;
}

.gv-blog-card-featured .gv-blog-card-link {
    height: 230px;
}

.gv-blog-card-featured h3 {
    font-size: clamp(1.8rem, 2.3vw, 2.8rem);
    line-height: 1.15;
}

.gv-blog-card-featured p {
    font-size: 1rem;
}

.gv-blog-card h3 a,
.gv-blog-card h3 a:visited,
.gv-blog-card h3 a:active,
.gv-blog-card h3 a:focus {
    color: #0A1B35 !important;
    text-decoration: none !important;
}

.gv-blog-card h3 a:hover,
.gv-blog-card h3 a:focus-visible {
    color: #d9b260 !important;
}

.gv-blog-card .gv-blog-readmore-link,
.gv-blog-card .gv-blog-readmore-link:visited,
.gv-blog-card .gv-blog-readmore-link:active,
.gv-blog-card .gv-blog-readmore-link:focus {
    text-decoration: none !important;
}

@media (max-width: 1024px) {
    .gv-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gv-blog-card-featured {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .gv-blog-grid {
        grid-template-columns: 1fr;
    }

    .gv-blog-card-featured {
        grid-column: span 1;
    }

    .gv-blog-card-featured .gv-blog-card-link {
        height: 220px;
    }

    .gv-blog-card-featured h3 {
        font-size: 2rem;
    }
}


/* ===== Quality items alignment ===== */
.gv-quality-item {
    align-items: flex-start;
}

.gv-quality-icon {
    min-width: 56px;
    min-height: 56px;
    box-shadow: 0 10px 24px rgba(10, 27, 53, 0.10);
}

.gv-quality-content h5,
.gv-quality-content p {
    margin: 0;
}

.gv-quality-content h5 {
    line-height: 1.25;
}

.gv-quality-content p {
    margin-top: 0.5rem;
}

@media (max-width: 640px) {
    .gv-quality-item {
        gap: 0.875rem;
    }

    .gv-quality-icon {
        min-width: 48px;
        min-height: 48px;
        width: 48px;
        height: 48px;
        border-radius: 0.875rem;
    }

    .gv-quality-icon svg {
        width: 20px;
        height: 20px;
    }

    .gv-quality-content {
        padding-top: 0.1rem;
    }
}


/* ===== Inner pages header fix ===== */
body:not(.gv-home) #main-header {
    background-color: #040B14;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(217, 178, 96, 0.2);
}

body:not(.gv-home) #topbar {
    display: flex;
    background-color: #040B14;
    color: #d1d5db;
    border-bottom: 1px solid rgba(217, 178, 96, 0.12);
}

body:not(.gv-home) #navbar {
    background-color: #040B14;
}

body:not(.gv-home) #navbar .gv-primary-menu a,
body:not(.gv-home) #navbar .gv-primary-menu a:visited,
body:not(.gv-home) #navbar .gv-primary-menu a:active {
    color: #d1d5db;
}

body:not(.gv-home) #navbar .gv-primary-menu a:hover,
body:not(.gv-home) #navbar .gv-primary-menu a:focus-visible {
    color: #d9b260;
}

body:not(.gv-home) main,
body:not(.gv-home) .site-main,
body.single-post main {
    padding-top: 190px;
}

@media (max-width: 1024px) {
    body:not(.gv-home) main,
    body:not(.gv-home) .site-main,
    body.single-post main {
        padding-top: 125px;
    }

    body:not(.gv-home) #topbar {
        display: none;
    }
}


/* ===== Footer SVG logo ===== */
.gv-footer-logo {
    display: block;
    width: 100%;
    height: auto;
    max-width: 220px;
    max-height: 58px;
    object-fit: contain;
}


/* ===== Blog page template grid ===== */
.gv-blog-page-grid .gv-blog-card {
    grid-column: span 1;
}

@media (max-width: 1024px) {
    .gv-blog-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .gv-blog-page-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== Header admin bar stability ===== */
html {
    scroll-padding-top: 140px;
}

#main-header {
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    will-change: background-color, box-shadow, transform;
}

#main-header.header-transparent {
    background-color: rgba(4, 11, 20, 0.92);
    border-bottom: 1px solid rgba(217, 178, 96, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#main-header.header-solid {
    background-color: #040B14;
    border-bottom: 1px solid rgba(217, 178, 96, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#navbar,
#topbar {
    position: relative;
    z-index: 2;
}

#topbar {
    background-color: transparent;
}

.gv-home main {
    padding-top: 0;
}

body.admin-bar #main-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar #main-header {
        top: 46px;
    }
}

@media (max-width: 1024px) {
    #main-header.header-transparent,
    #main-header.header-solid {
        background-color: #040B14;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    #topbar {
        display: none !important;
    }

    html {
        scroll-padding-top: 100px;
    }
}



/* ===== Blog page spacing fix ===== */
.page-template-page-blog main.site-main,
.page-template-page-blog #primary.site-main {
    padding-top: 120px !important;
}

.page-template-page-blog #primary > section:first-child,
.page-template-page-blog main > section:first-child {
    padding-top: 64px !important;
}

@media (max-width: 1024px) {
    .page-template-page-blog main.site-main,
    .page-template-page-blog #primary.site-main {
        padding-top: 96px !important;
    }

    .page-template-page-blog #primary > section:first-child,
    .page-template-page-blog main > section:first-child {
        padding-top: 48px !important;
    }
}


/* ===== Mobile menu stability ===== */
#mobileNav {
    will-change: transform;
}
