/* =========================================================================
   BLOG / JOURNAL CSS - Instituto Longevinté
   Design System: IM8 Health / Antigravity Premium
   Aesthetic: Dark Clinical Luxury, Brutalist Elegance, High Negative Space
   ========================================================================= */

/* =========================================================================
   GLOBAL FONTS (IM8 Health Design System)
   ========================================================================= */
@font-face {
    font-family: 'Aeonik';
    src: url('https://im8health.com/cdn/shop/files/aeonik_regular-webfont.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Aeonik';
    src: url('https://im8health.com/cdn/shop/files/Aeonik-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Aeonik';
    src: url('https://im8health.com/cdn/shop/files/Aeonik-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ABC Arizona Flare';
    src: url('https://im8health.com/cdn/shop/files/ABCArizonaFlare-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ABC Arizona Flare';
    src: url('https://im8health.com/cdn/shop/files/ABCArizonaFlare-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ABC Arizona Flare';
    src: url('https://im8health.com/cdn/shop/files/ABCArizonaFlare-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ABC Arizona Flare';
    src: url('https://im8health.com/cdn/shop/files/ABCArizonaFlare-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'NB Architekt';
    src: url('https://im8health.com/cdn/shop/files/nb_architekt_light-webfont.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'NB Architekt';
    src: url('https://im8health.com/cdn/shop/files/nb_architekt_regular-webfont.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'NB Architekt';
    src: url('https://im8health.com/cdn/shop/files/nb_architekt_bold-webfont.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --c-bg: #041611;
    --c-primary: #D4AF37;   /* Clinical Gold */
    --c-primary-light: #E8D5B7;
    --c-primary-dark: #C9A961;
    --c-text: #f8f8f7;      /* Off-white */
    --c-text-muted: #858481;
    --c-glass: rgba(26, 26, 25, 0.4);
    --c-glass-border: rgba(212, 175, 55, 0.15);
    
    --font-heading: 'ABC Arizona Flare', serif;
    --font-body: 'Aeonik', sans-serif;
    --font-mono: 'NB Architekt', monospace;
    
    --trans-cinematic: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --trans-fast: 0.4s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =========================================================================
   NAVBAR (Premium Glassmorphic)
   ========================================================================= */
.ds-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    background: transparent;
    backdrop-filter: blur(0px);
    border-bottom: 1px solid rgba(212, 175, 55, 0);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.ds-navbar.scrolled {
    height: 80px;
    background: rgba(4, 22, 17, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.05);
}
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
    flex-shrink: 1;
    min-width: 0;
}
.nav-logo img {
    height: 140px;
    width: auto;
    max-width: clamp(160px, 15vw, 220px);
    object-fit: contain;
    transition: var(--trans-smooth);
}
.nav-logo:hover img {
    transform: scale(1.02);
    filter: brightness(1.1);
}
.nav-menu {
    display: flex;
    gap: clamp(15px, 2.5vw, 40px);
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    min-width: 0;
}
.nav-link {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.5px;
    color: var(--c-text-main);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--trans-fast);
}
.nav-link:hover, .nav-link.active {
    opacity: 1;
    color: var(--c-primary);
}
.btn-nav-wrapper {
    flex: 0 0 auto;
    margin-left: 20px;
}

.btn-nav-wrapper .btn {
    height: 42px; /* More compact for navbar */
    padding: 0 24px;
    font-size: 13px;
    letter-spacing: 1px;
}

.nav-toggle { display: none; }

/* =========================================================================
   BUTTONS UPDATE
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 54px;
    padding: 0 32px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary {
    background: var(--c-primary) !important;
    color: #041611 !important;
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    background: var(--c-primary-light) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}
.ds-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 6%;
}

/* =========================================================================
   GRAIN OVERLAY (Master Texture)
   ========================================================================= */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url('data:image/svg+xml,%3Csvg viewBox=\'0 0 256 256\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cfilter id=\'noise\'%3E%3CfeTurbulence type=\'fractalNoise\' baseFrequency=\'0.65\' numOctaves=\'3\' stitchTiles=\'stitch\'/%3E%3C/filter%3E%3Crect width=\'100%25\' height=\'100%25\' filter=\'url(%23noise)\'/%3E%3C/svg%3E');
}

/* =========================================================================
   JOURNAL FILTERS
   ========================================================================= */
.journal-filters {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 80px 0 60px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--c-text);
    font-family: var(--font-body);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--trans-fast);
}

.filter-btn:hover, 
.filter-btn.active {
    border-color: var(--c-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* =========================================================================
   JOURNAL GRID & CARDS
   ========================================================================= */
.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 80px 40px; /* High vertical negative space */
    margin-bottom: 120px;
}

.journal-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: var(--trans-cinematic);
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
    background: #111;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%) contrast(1.1);
    transition: var(--trans-cinematic);
}

.journal-card:hover .card-image {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1.05);
}

.card-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--c-primary);
    margin-bottom: 16px;
    display: block;
}

.card-title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 2.5vw, 32px);
    line-height: 1.2;
    font-weight: 300;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.journal-card:hover .card-title {
    color: var(--c-primary);
}

.card-excerpt {
    font-size: 15px;
    color: var(--c-text-muted);
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-link {
    font-family: var(--font-body);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--trans-fast);
}

.card-link::after {
    content: '→';
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.journal-card:hover .card-link::after {
    transform: translateX(8px);
}

/* =========================================================================
   ARTICLE CTA BOX (Internal Article Style)
   ========================================================================= */
.article-cta-box {
    margin-top: 80px;
    padding: 60px;
    background: var(--c-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--c-glass-border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--c-primary);
    margin-bottom: 20px;
}

.cta-box-title {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 24px;
}

/* =========================================================================
   REVEAL & UTILITIES
   ========================================================================= */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--trans-cinematic);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Filtering Utility Classes */
.card-hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    position: absolute; /* Take out of flow during animation */
    display: none;
}

/* =========================================================================
   YOUTUBE VIDEOS SECTION
   ========================================================================= */
.youtube-videos-section {
    padding: 100px 0;
    text-align: center;
    background-color: var(--c-bg); /* Sincronizado com IM8 Health */
}

.youtube-videos-section h2 {
    color: #f4f4f4; /* Texto claro */
}

.youtube-videos-section p {
    color: rgba(244,244,244,0.7); /* Texto claro com opacidade */
}

.content-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.content-card {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    text-align: left;
}

.content-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.content-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.content-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 22, 17, 0.95) 0%, rgba(4, 22, 17, 0.7) 40%, transparent 100%);
    z-index: 1;
}

.content-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px 24px 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.content-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--c-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.content-title {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.content-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.2);
}

.content-card:hover .content-card-bg img {
    transform: scale(1.05);
}

.content-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 64px;
    height: 64px;
    background: rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.content-play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #FFFFFF;
    margin-left: 4px;
    transition: border-color 0.4s ease;
}

.content-card:hover .content-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    background: var(--c-primary);
    border-color: var(--c-primary);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

.content-card:hover .content-play-btn::after {
    border-color: transparent transparent transparent #0a0a0a;
}

.cta-youtube {
    margin-top: 40px;
}

.btn-youtube {
    display: inline-block;
    background: #D4AF37; /* Cor de destaque */
    color: #000;
    padding: 15px 30px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-youtube:hover {
    background: #e0b840;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 991px) {
    .journal-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }

    /* Navbar & Hamburger */
    .nav-toggle {
        display: flex;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
        padding: 10px;
        position: relative;
    }
    .hamburger { width: 24px; height: 2px; background: var(--c-text); display: block; position: relative; transition: 0.3s; }
    .hamburger::before, .hamburger::after { content: ''; position: absolute; width: 24px; height: 2px; background: var(--c-text); left: 0; transition: 0.3s; }
    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }

    .menu-open .hamburger { background: transparent; }
    .menu-open .hamburger::before { top: 0; transform: rotate(45deg); }
    .menu-open .hamburger::after { bottom: 0; transform: rotate(-45deg); }

    .nav-menu {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(4, 22, 17, 0.98); backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; align-items: center;
        gap: 40px; opacity: 0; visibility: hidden; transition: var(--trans-smooth);
    }
    .nav-menu.open { display: flex !important; opacity: 1; visibility: visible; }
    .nav-link { font-size: 24px; }
    .btn-nav-wrapper { display: none; }
}

@media (max-width: 768px) {
    .content-hub-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .journal-grid { grid-template-columns: 1fr; }
    .ds-container { padding: 0 24px; }
    .article-cta-box { padding: 40px 24px; }
    .cta-box-title { font-size: 24px; }
}

/* =========================================================================
   PREMIUM FOOTER
   ========================================================================= */
.ds-footer {
    background-color: #030f0c;
    padding: 120px 0 0;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: start;
}

.footer-col-brand img {
    width: 180px;
    margin-bottom: 24px;
}

.footer-brand-text {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--c-text-muted);
    max-width: 280px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c-primary);
    margin-bottom: 32px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--c-text-muted);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--c-primary);
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.footer-contact-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--c-primary-light);
    opacity: 0.6;
}

.footer-contact-value {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--c-text-muted);
}

.footer-social-icons {
    display: flex;
    gap: 20px;
}

.footer-social-link {
    color: var(--c-text-muted);
    transition: color 0.4s ease, transform 0.4s ease;
}

.footer-social-link:hover {
    color: var(--c-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(133, 132, 129, 0.5);
}

.footer-legal a {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(133, 132, 129, 0.5);
    text-decoration: none;
    margin-left: 24px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--c-primary);
}

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

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .footer-legal a {
        margin: 0 12px;
    }
}

/* =========================================================================
           MOBILE RESPONSIVENESS - NAVBAR & HAMBURGER
           ========================================================================= */
        @media (max-width: 991px) {
            .nav-toggle {
                display: flex !important;
                background: transparent;
                border: none;
                cursor: pointer;
                z-index: 1001;
                padding: 10px;
                position: relative;
            }
            .hamburger {
                width: 24px;
                height: 2px;
                background: #d4a843;
                display: block;
                position: relative;
                transition: 0.3s;
            }
            .hamburger::before, .hamburger::after {
                content: '';
                position: absolute;
                width: 24px;
                height: 2px;
                background: #d4a843;
                left: 0;
                transition: 0.3s;
            }
            .hamburger::before { top: -8px; }
            .hamburger::after { bottom: -8px; }
            .menu-open .hamburger { background: transparent; }
            .menu-open .hamburger::before { top: 0; transform: rotate(45deg); }
            .menu-open .hamburger::after { bottom: 0; transform: rotate(-45deg); }
            .nav-menu {
                position: fixed !important;
                top: 0 !important;
                left: 0 !important;
                width: 100% !important;
                height: 100vh !important;
                background: rgba(4, 22, 17, 0.98) !important;
                backdrop-filter: blur(20px) !important;
                flex-direction: column !important;
                justify-content: center !important;
                align-items: center !important;
                gap: 40px !important;
                opacity: 0 !important;
                visibility: hidden !important;
                transition: all 0.3s ease !important;
                z-index: 1000 !important;
            }
            .nav-menu.open {
                display: flex !important;
                opacity: 1 !important;
                visibility: visible !important;
            }
            .nav-link { font-size: 24px !important; }
            .btn-nav-wrapper { display: none !important; }
            body, html { overflow-x: hidden; width: 100%; }
            .ds-container { padding: 0 20px !important; }
        }

        @media (max-width: 991px) {
            /* Blog hero / header */
            .blog-hero, .page-header {
                padding: 120px 20px 60px !important;
                text-align: center;
            }

            /* Content Hub Grid */
            .content-hub-grid {
                grid-template-columns: 1fr !important;
                gap: 24px;
            }
            .content-card { min-height: 280px !important; }

            /* YouTube Videos */
            .youtube-videos-section { padding: 60px 20px !important; }
            .youtube-videos-section h2 { font-size: clamp(24px, 7vw, 36px) !important; }

            /* Footer */
            .footer-grid {
                grid-template-columns: 1fr !important;
                gap: 32px;
            }
        }
        @media (max-width: 480px) {
            .content-hub-grid { grid-template-columns: 1fr !important; }
        }
