/* custom.css */

/* Core Identity & Branding - From PORTAL_PRD.md */
:root {
    --color-primary: #1B263B; /* Navy Blue */
    --color-accent: #4CAF50;  /* Sage Green */
    --color-background: #F8FAFC; /* Light Clinical Grey */
    --color-highlight-cardio: #D62828; /* Deep Red */
    --color-highlight-gluco: #F4A261;  /* Soft Orange */
    --color-highlight-igenics: #FFC300; /* Golden Yellow */
    --color-highlight-mitolyn: #8338EC; /* Electric Purple */
    --color-highlight-neuro: #3A86FF;  /* Electric Blue */
    --color-highlight-provadent: #E63946; /* Subtle Red */
    --color-highlight-livpure: #F9C74F; /* Saffron Gold */
}

body {
    font-family: 'Inter', sans-serif; /* Body font for legibility */
    background-color: var(--color-background);
    color: var(--color-text-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif; /* Serif font for authority */
    color: var(--color-primary);
}

/* Scroll-Reveal & Glassmorphism Premium Classes */
.reveal-up { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); 
}
.reveal-up.active { 
    opacity: 1; 
    transform: translateY(0); 
}

.glass-card {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05) !important;
}

/* Header Styling - Based on PORTAL_PRD.md & VISUAL_IDENTITY_CLEANUP_PRD.md */
header.main-header {
    background-color: var(--color-primary); /* Navy Blue */
    color: #FFFFFF;
    padding: 1rem 0;
}

.header-logo img {
    max-height: 50px; /* Adjust as needed */
}

/* Forçar apenas o menu Hambúrguer (Off-canvas) - Esconder MegaMenu Desktop */
.t4-megamenu, .navbar-collapse {
    display: none !important;
}
.navbar-toggler {
    display: inline-block !important;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}

.main-navigation li a {
    color: #FFFFFF;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: background-color 0.3s ease;
}

.main-navigation li a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Subtle hover effect */
}

/* Footer Styling - Based on FOOTER_PRD.md */
footer.main-footer {
    background-color: var(--color-primary); /* Navy Blue */
    color: #FFFFFF; /* White Pure - Forçar via !important ou classes text-white */
    padding: 3rem 0;
    font-size: 0.875rem; /* text-sm */
}

footer.main-footer a {
    color: var(--color-secondary-text); /* Cinza muito claro */
    text-decoration: none;
    transition: color 0.3s ease;
}

footer.main-footer a:hover {
    color: var(--color-accent); /* Sage Green */
}

.footer-disclaimer {
    color: #E2E8F0; /* Cinza muito claro */
    font-size: 0.75rem; /* text-xs */
    text-align: center;
    border-top: 1px solid #334155; /* border-slate-700 */
    margin-top: 2rem;
    padding-top: 1.5rem;
    line-height: 1.5;
}

/* Home Page Specifics - Based on HOME_PAGE_PRD.md */
.hero-section {
    background-color: var(--color-background);
    padding: 4rem 0;
    text-align: center;
}

.hero-headline {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: #4A5568; /* a dark grey */
    margin-bottom: 2rem;
}

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

.report-card {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.report-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.05);
}

.report-card img {
    width: 100%;
    height: 200px; /* Fixed height for images */
    object-fit: cover;
}

.report-card-content {
    padding: 1.5rem;
}

.report-category-tag {
    display: inline-block;
    background-color: var(--color-accent); /* Sage Green */
    color: #FFFFFF;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px; /* pill shape */
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.report-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--color-primary); /* Navy Blue */
    margin-bottom: 0.5rem;
}

.report-summary {
    color: #4A5568;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
}

.read-more-link {
    color: var(--color-accent); /* Sage Green */
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.read-more-link:hover {
    text-decoration: none;
    transform: translateY(-2px);
    color: #3d8b40;
}
