@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Color Palette */
    --bg-main: #f8fafc;        /* Soft gray-blue background */
    --bg-card: #ffffff;        /* Pure white for cards */
    --bg-header: #ffffff;      /* Pure white for header */
    --brand-primary: #0f172a;  /* Slate 900 - Deep Navy/Slate */
    --brand-secondary: #334155;/* Slate 700 */
    --brand-accent: #c2410c;   /* Dark warm amber-orange */
    --brand-accent-hover: #9a3412;
    --text-main: #1e293b;      /* Slate 800 */
    --text-muted: #64748b;     /* Slate 500 */
    --border-color: #e2e8f0;   /* Slate 200 */
    --border-hover: #cbd5e1;   /* Slate 300 */
    --success: #15803d;        /* Emerald 700 */
    --success-bg: #f0fdf4;
    --error: #b91c1c;          /* Red 700 */
    --error-bg: #fef2f2;
    
    /* Typography */
    --font-header: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Shadows & Border Radius */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 20px 40px -15px rgba(15, 23, 42, 0.06);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 30px 0 60px 0;
}

/* Top Bar & Ticker (CNN Style) */
.top-bar { 
    background: var(--brand-primary); 
    color: #ffffff; 
    font-size: 0.85rem; 
    height: 38px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 1001;
    border-bottom: 2px solid var(--brand-accent);
}

.cnn-ticker {
    display: flex;
    width: 100%;
    align-items: center;
    position: relative;
}

.ticker-urgent-tag {
    background: var(--brand-accent);
    color: #ffffff;
    padding: 0 15px;
    height: 38px;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 0.75rem;
    position: relative;
    z-index: 10;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: var(--font-header);
}

.ticker-urgent-tag::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 0;
    border-top: 19px solid transparent;
    border-bottom: 19px solid transparent;
    border-left: 15px solid var(--brand-accent);
}

.ticker-scroll-container {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    min-width: 0;
}

.ticker-scroll-text {
    display: inline-block;
    white-space: nowrap;
    animation: cnn-scroll 35s linear infinite;
    font-weight: 500;
    letter-spacing: 0.5px;
    will-change: transform;
}

@keyframes cnn-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-scroll-text span {
    margin-right: 60px;
}

/* Header & Navigation */
.main-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--brand-primary);
    letter-spacing: -1px;
}

.logo-text span {
    color: var(--brand-accent);
    font-weight: 400;
}

.portal-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: -2px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-header);
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-secondary);
    padding: 8px 4px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-accent);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--brand-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--brand-accent);
}

/* Responsive Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--brand-primary);
    cursor: pointer;
    padding: 5px;
}

/* Grid Layout for Home */
.news-grid {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 40px;
    margin-top: 15px;
}

/* Cards & Articles */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-premium);
    border-color: var(--border-hover);
}

.card-badge {
    display: inline-block;
    background-color: var(--brand-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-badge.accent {
    background-color: var(--brand-accent);
}

.card-title {
    font-family: var(--font-header);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--brand-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.card-title a:hover {
    color: var(--brand-accent);
}

.card-excerpt {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.read-more {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--brand-accent);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: var(--brand-accent-hover);
    gap: 10px;
}

/* Sidebar Column */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-family: var(--font-header);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand-primary);
    border-bottom: 3px solid var(--brand-accent);
    padding-bottom: 8px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.side-card {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px dotted var(--border-color);
}

.side-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.side-card-content h4 {
    font-family: var(--font-header);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1.3;
}

.side-card-content h4 a:hover {
    color: var(--brand-accent);
}

.side-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

/* Typography for Article Detail */
.article-detail {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.article-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 25px;
    margin-bottom: 30px;
}

.article-category {
    color: var(--brand-accent);
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.article-title {
    font-family: var(--font-header);
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--brand-primary);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155; /* Slate 700 for softer long read contrast */
    text-align: justify;
}

.article-body p {
    margin-bottom: 25px;
}

.article-body h2 {
    font-family: var(--font-header);
    color: var(--brand-primary);
    font-size: 1.8rem;
    font-weight: 800;
    margin: 40px 0 20px 0;
    letter-spacing: -0.5px;
    border-left: 4px solid var(--brand-accent);
    padding-left: 15px;
}

.article-body blockquote {
    background-color: #f8fafc;
    border-left: 4px solid var(--brand-primary);
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-body blockquote p {
    font-style: italic;
    font-size: 1.15rem;
    color: var(--brand-secondary);
    margin-bottom: 0;
}

.article-body blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-accent);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-body ul, .article-body ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.article-body li {
    margin-bottom: 10px;
}

/* Proofs & Attachments Container */
.proofs-box {
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    margin: 40px 0;
}

.proofs-title {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.proofs-list {
    list-style: none;
    padding: 0 !important;
}

.proofs-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.proofs-item:last-child {
    border-bottom: none;
}

.proofs-link {
    color: var(--brand-accent);
    font-weight: 700;
    text-decoration: underline;
}

.proofs-link:hover {
    color: var(--brand-accent-hover);
}

/* Author Profile Card */
.author-profile {
    display: flex;
    gap: 25px;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-top: 50px;
    align-items: center;
}

.author-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: var(--shadow-md);
}

.author-info h4 {
    font-family: var(--font-header);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 5px;
}

.author-bio {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Footer styling */
.main-footer {
    background-color: var(--brand-primary);
    color: #e2e8f0;
    padding: 60px 0 30px 0;
    margin-top: 60px;
    border-top: 5px solid var(--brand-accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-family: var(--font-header);
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-about p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.footer-links-list a {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-links-list a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-contact-info p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--brand-accent);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--brand-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(194, 65, 12, 0.2);
}

.btn-whatsapp {
    background-color: #22c55e;
    color: #ffffff;
    gap: 8px;
    font-size: 1.05rem;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.25);
    margin-top: 20px;
}

.btn-whatsapp:hover {
    background-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(34, 197, 94, 0.35);
}

/* Form Styles for Contact and Privacy Consents */
.contact-form {
    max-width: 600px;
    margin: 40px auto 0 auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--brand-primary);
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--brand-accent);
}

/* Checkbox alignment for LGPD */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 25px 0;
}

.checkbox-control {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.checkbox-label a {
    color: var(--brand-accent);
    text-decoration: underline;
    font-weight: 600;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-content {
        position: relative;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: -24px;
        right: -24px;
        background-color: var(--bg-header);
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 15px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .author-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
