/* ==========================================================================
   Memorial Sebastião Mendes (1951 - 2026) - Stylesheet
   Design Dignificado, Moderno, Nobre e Responsivo
   ========================================================================== */

:root {
    --primary-navy: #0b1528;
    --secondary-navy: #152238;
    --navy-card: #1c2d4a;
    --navy-light: #243b61;
    --accent-gold: #d4af37;
    --accent-gold-light: #f3e5ab;
    --accent-gold-dark: #aa8214;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-gold: rgba(212, 175, 55, 0.35);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 35px -5px rgba(11,21,40,0.15);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* Reset & Base Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, .cinzel-font {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.02em;
    color: var(--primary-navy);
}

.playfair-font {
    font-family: 'Playfair Display', serif;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* Top Mourning Banner */
.mourning-bar {
    background: #050a12;
    color: #e2e8f0;
    padding: 10px 0;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.mourning-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.mourning-bar .ribbon-icon {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.mourning-bar .date-badge {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold-light);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border-gold);
}

/* Header & Navigation */
.site-header {
    background: rgba(11, 21, 40, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.brand-logo .initials {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    color: var(--primary-navy);
    font-family: 'Cinzel', serif;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.brand-text .name {
    display: block;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.brand-text .tag {
    display: block;
    font-size: 0.72rem;
    color: var(--accent-gold-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.nav-menu a:hover {
    color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.05);
}

.btn-tribute-nav {
    color: var(--accent-gold) !important;
    border: 1px solid var(--border-gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.candle-quick-btn {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold-light);
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.candle-quick-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #070d18 0%, #101c30 50%, #192b4a 100%);
    color: #ffffff;
    padding: 70px 0 90px;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 50px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold-light);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 12px;
}

.highlight-gold {
    color: var(--accent-gold);
    background: linear-gradient(to right, #ffd700, #d4af37, #fceda2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-popular-name {
    font-size: 1.35rem;
    color: #e2e8f0;
    margin-bottom: 15px;
    font-style: italic;
}

.life-dates {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.07);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 22px;
    border-left: 3px solid var(--accent-gold);
    color: #e2e8f0;
    font-size: 0.95rem;
}

.date-sep {
    color: var(--accent-gold);
}

.hero-desc {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    line-height: 1.7;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    color: var(--primary-navy);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e5be42, #99740e);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-sound {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-gold-light);
    border: 1px solid var(--border-gold);
}

.btn-sound:hover {
    background: rgba(212, 175, 55, 0.2);
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--primary-navy);
    font-weight: 700;
}

.btn-gold:hover {
    background: #e6be3f;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-lg {
    padding: 15px 34px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

.btn-outline-dark {
    background: transparent;
    color: var(--primary-navy);
    border: 1px solid var(--primary-navy);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline-dark:hover {
    background: var(--primary-navy);
    color: #ffffff;
}

.btn-white {
    background: #ffffff;
    color: var(--primary-navy);
    font-weight: 600;
}

.btn-white:hover {
    background: #f1f5f9;
}

/* Stats in Hero */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-card {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.stat-label {
    font-size: 0.76rem;
    color: #94a3b8;
    line-height: 1.3;
}

/* Hero Portrait Frame */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
}

.portrait-frame {
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.frame-border-outer {
    padding: 12px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.6) 0%, rgba(212, 175, 55, 0.1) 50%, rgba(212, 175, 55, 0.5) 100%);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(212, 175, 55, 0.2);
}

.frame-border-inner {
    border-radius: calc(var(--radius-lg) - 4px);
    overflow: hidden;
    background: #0b1528;
}

.portrait-image-box {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05);
    transition: transform 0.5s ease;
}

.portrait-img:hover {
    transform: scale(1.03);
}

.portrait-ribbon {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 21, 40, 0.85);
    backdrop-filter: blur(8px);
    color: var(--accent-gold);
    padding: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border-top: 1px solid var(--border-gold);
}

.portrait-caption {
    margin-top: 15px;
}

.portrait-caption h3 {
    color: #ffffff;
    font-size: 1.25rem;
}

.portrait-caption p {
    color: var(--accent-gold-light);
    font-size: 0.85rem;
}

/* Quote Section */
.quote-section {
    background: var(--navy-card);
    color: #ffffff;
    padding: 45px 0;
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
    text-align: center;
    position: relative;
}

.quote-container {
    max-width: 850px;
}

.quote-icon {
    font-size: 2.2rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
    opacity: 0.7;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.45rem;
    line-height: 1.6;
    color: #f1f5f9;
    margin-bottom: 12px;
}

.quote-author {
    font-size: 0.95rem;
    color: var(--accent-gold-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* General Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold-dark);
    background: rgba(212, 175, 55, 0.12);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.section-title {
    font-size: 2.3rem;
    margin-bottom: 12px;
}

.title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.title-divider span {
    width: 60px;
    height: 1.5px;
    background: var(--accent-gold);
}

.title-divider i {
    color: var(--accent-gold);
    font-size: 0.75rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto;
}

/* Biografia Section */
.bio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 45px;
}

.bio-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 30px 25px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--accent-gold);
    transition: var(--transition);
}

.bio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.bio-icon {
    width: 55px;
    height: 55px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    color: var(--accent-gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.bio-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.bio-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

/* Bio Story Tab Box */
.bio-story-box {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.bio-story-header {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border-color);
}

.story-pill {
    padding: 16px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.story-pill:hover {
    color: var(--primary-navy);
    background: rgba(255, 255, 255, 0.6);
}

.story-pill.active {
    color: var(--primary-navy);
    background: #ffffff;
    border-bottom-color: var(--accent-gold);
}

.bio-story-body {
    padding: 30px;
}

.story-content-item {
    display: none;
}

.story-content-item.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.story-content-item h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--primary-navy);
}

.story-content-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 12px;
}

/* Linha do Tempo Section */
.timeline-section {
    background: #f1f5f9;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-gold), var(--primary-navy), #000);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 42px;
    height: 42px;
    right: -21px;
    background: var(--primary-navy);
    border: 3px solid var(--accent-gold);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold-light);
    font-size: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

.timeline-item.right .timeline-dot {
    left: -21px;
}

.timeline-dot.funeral-dot {
    background: #000000;
    border-color: #ffffff;
    color: #ffffff;
}

.timeline-content {
    padding: 22px 25px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.timeline-year {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold-dark);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 3px 10px;
    border-radius: 15px;
    margin-bottom: 8px;
}

.mandate-tag {
    display: inline-block;
    background: var(--primary-navy);
    color: var(--accent-gold-light);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: 600;
}

.memorial-tag {
    background: #000000;
    color: #ffffff;
}

.highlight-mandate {
    border-left: 4px solid var(--accent-gold);
}

.timeline-item.left .highlight-mandate {
    border-left: none;
    border-right: 4px solid var(--accent-gold);
}

.highlight-memorial {
    border-right: 4px solid #000000;
    background: #fafafa;
}

.timeline-content h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* Legado & Obras Section */
.legacy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.legacy-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 35px 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.legacy-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-navy), var(--navy-light));
    border-radius: var(--radius-sm);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.legacy-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.legacy-card p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    margin-bottom: 18px;
}

.legacy-list {
    list-style: none;
    border-top: 1px dashed var(--border-color);
    padding-top: 15px;
}

.legacy-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.legacy-list li i {
    color: #10b981;
    font-size: 0.8rem;
}

/* Galeria de Fotos Section */
.gallery-section {
    background: #f8fafc;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #000;
}

.gallery-thumb {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11,21,40,0.92) 0%, rgba(11,21,40,0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #ffffff;
}

.gallery-overlay i {
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.gallery-overlay h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.gallery-overlay span {
    font-size: 0.82rem;
    color: #cbd5e1;
}

.gallery-item:hover .gallery-thumb img {
    transform: scale(1.06);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-placeholder-card {
    background: #ffffff;
    border: 2px dashed var(--border-gold);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.gallery-placeholder-card .placeholder-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.gallery-placeholder-card h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.gallery-placeholder-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.gallery-user-action {
    max-width: 900px;
    margin: 30px auto 0;
}

.user-action-box {
    background: #ffffff;
    border: 2px dashed var(--border-gold);
    border-radius: var(--radius-md);
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.user-action-box i {
    font-size: 2.2rem;
    color: var(--accent-gold-dark);
}

.user-action-box h4 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.user-action-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Videos Section */
.videos-section {
    background: #0b1528;
    color: #ffffff;
}

.videos-section .section-title {
    color: #ffffff;
}

.videos-section .section-subtitle {
    color: #94a3b8;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.video-card {
    background: var(--navy-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.video-preview {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    background: #000;
}

.video-preview iframe, .video-preview video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.video-info {
    padding: 24px;
}

.video-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--accent-gold-light);
    background: rgba(212, 175, 55, 0.15);
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-weight: 600;
}

.video-info h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.video-info p {
    color: #cbd5e1;
    font-size: 0.92rem;
    margin-bottom: 15px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

/* Notícias Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.news-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

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

.news-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    margin-bottom: 12px;
}

.news-source {
    font-weight: 700;
    color: var(--primary-navy);
}

.news-date {
    color: var(--text-muted);
}

.news-title {
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: 10px;
}

.news-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--accent-gold-dark);
}

.news-link:hover {
    color: var(--primary-navy);
}

/* Official Links Banner */
.official-links-banner {
    background: linear-gradient(135deg, var(--primary-navy), var(--navy-card));
    border-radius: var(--radius-md);
    padding: 25px 35px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-gold);
}

.banner-text {
    display: flex;
    align-items: center;
    gap: 20px;
}

.banner-text i {
    font-size: 2.2rem;
    color: var(--accent-gold);
}

.banner-text h4 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.banner-text p {
    font-size: 0.9rem;
    color: #cbd5e1;
}

.banner-links {
    display: flex;
    gap: 12px;
}

/* Livro de Condolências & Velas */
.condolences-section {
    background: #f1f5f9;
}

.candle-interactive-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    max-width: 600px;
    margin: 0 auto 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gold);
}

.candle-graphic {
    position: relative;
    width: 40px;
    height: 85px;
    margin: 0 auto 20px;
}

.candle-wax {
    position: absolute;
    bottom: 0;
    width: 40px;
    height: 55px;
    background: linear-gradient(to right, #fcfcfc, #e2e8f0, #cbd5e1);
    border-radius: 6px 6px 0 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.candle-wick {
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 10px;
    background: #2b2b2b;
}

.candle-flame {
    position: absolute;
    bottom: 63px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 30px;
    background: radial-gradient(ellipse at bottom, #ffffff 0%, #ffe600 30%, #ff5722 80%);
    border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
    animation: flameFlicker 1.5s infinite alternate ease-in-out;
    box-shadow: 0 0 25px #ffb300, 0 0 45px rgba(255, 152, 0, 0.4);
}

@keyframes flameFlicker {
    0% { transform: translateX(-50%) scale(1) rotate(-1deg); }
    50% { transform: translateX(-50%) scale(1.08) rotate(1deg); }
    100% { transform: translateX(-50%) scale(0.95) rotate(-2deg); }
}

.candle-title {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.candle-counter {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-gold-dark);
    line-height: 1.1;
    margin-bottom: 8px;
}

.candle-sub {
    font-size: 0.92rem;
    color: var(--text-secondary);
    max-width: 460px;
    margin: 0 auto 20px;
}

.condolence-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 35px;
}

.condolence-form-card, .condolence-feed-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.card-header-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.card-header-icon i {
    font-size: 1.4rem;
    color: var(--accent-gold-dark);
}

.card-header-icon h3 {
    font-size: 1.25rem;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.feed-header h3 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feed-count {
    background: #f1f5f9;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.messages-list {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.messages-list::-webkit-scrollbar {
    width: 6px;
}

.messages-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.message-item {
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 16px;
    border-left: 3px solid var(--accent-gold);
    animation: fadeIn 0.4s ease;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.message-author {
    font-weight: 700;
    color: var(--primary-navy);
    font-size: 0.95rem;
}

.message-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.message-tag {
    display: inline-block;
    font-size: 0.72rem;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold-dark);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 8px;
}

.message-body {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Footer */
.site-footer {
    background: #060b13;
    color: #e2e8f0;
    padding-top: 60px;
    border-top: 2px solid var(--border-gold);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo .initials {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: var(--primary-navy);
    font-family: 'Cinzel', serif;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.footer-logo h4 {
    color: #ffffff;
    font-size: 1.15rem;
}

.footer-logo span {
    font-size: 0.78rem;
    color: var(--accent-gold-light);
}

.about-col p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-share span {
    display: block;
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 8px;
}

.share-btn {
    background: #152238;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    margin-right: 6px;
    transition: var(--transition);
}

.share-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-navy);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--accent-gold);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

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

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.funeral-info p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.funeral-info i {
    color: var(--accent-gold);
    margin-top: 3px;
}

.footer-bottom {
    background: #03060a;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
    color: #64748b;
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-to-top {
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 18, 0.94);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    max-width: 850px;
    width: 90%;
    text-align: center;
}

.lightbox-content img {
    max-height: 75vh;
    margin: 0 auto 15px;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 35px rgba(0,0,0,0.8);
}

.lightbox-caption {
    color: #ffffff;
    font-size: 1rem;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: var(--accent-gold);
    color: var(--primary-navy);
}

.lightbox-close {
    top: 25px;
    right: 25px;
    font-size: 2rem;
}

.lightbox-prev {
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-desc {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bio-grid, .legacy-grid, .gallery-grid, .news-grid, .videos-grid {
        grid-template-columns: 1fr;
    }

    .condolence-layout {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .official-links-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .banner-text {
        flex-direction: column;
    }

    .banner-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-navy);
        border-bottom: 1px solid var(--border-gold);
        padding: 20px;
    }

    .nav-menu.open {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 10px;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .timeline-container::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 15px;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left {
        text-align: left;
    }

    .timeline-dot {
        left: 10px !important;
        right: auto !important;
    }

    .timeline-item.left .highlight-mandate {
        border-right: none;
        border-left: 4px solid var(--accent-gold);
    }

    .mourning-content {
        flex-direction: column;
        text-align: center;
    }

    .user-action-box {
        flex-direction: column;
        text-align: center;
    }
}
