/* ==========================================
   BARDOS DE CONVÉS - MEDIEVAL MINIMALIST
   ========================================== */

/* Medieval Fonts */
@font-face {
    font-family: 'King Harold';
    src: url('resources/king_harold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Medieval Icons';
    src: url('resources/bayeux.ttf') format('truetype');
}

/* ==========================================
   VARIABLES & RESET
   ========================================== */

:root {
    --black: #000;
    --white: #fff;
    --gray: #666;
    --gray-light: #e8e8e8;
    --accent: #333;
    
    --font-medieval: 'King Harold', serif;
    --font-body: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
    --font-icons: 'Medieval Icons';
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
}

/* ==========================================
   NAVBAR
   ========================================== */

#mainNav {
    background: rgba(0, 0, 0, 0.85);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--black);
}

#mainNav.scrolled {
    background: rgba(0, 0, 0, 0.95);
}

.logo-nav {
    height: 40px;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-family: var(--font-medieval);
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin: 0 0.3rem;
    padding: 0.4rem 0.8rem !important;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.navbar-nav .nav-link:hover {
    border-bottom-color: var(--white);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-section {
    min-height: 60vh;
    background: 
        linear-gradient(
            rgba(255, 255, 255, 0.7),
            rgba(255, 255, 255, 0.7)
        ),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" /><feColorMatrix values="0 0 0 0 0.4, 0 0 0 0 0.4, 0 0 0 0 0.4, 0 0 0 0.05 0"/></filter><rect width="300" height="300" filter="url(%23noise)" opacity="0.3"/></svg>'),
        linear-gradient(to bottom, #d8d8d8, #e8e8e8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    border-bottom: 3px solid var(--black);
}

.hero-ornaments {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
}

.ornament {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.medieval-icon {
    font-family: var(--font-icons);
    font-size: 2rem;
    color: var(--black);
    opacity: 0.7;
}

.medieval-icon:hover {
    opacity: 1;
}

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

.hero-logo {
    max-width: 150px;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-medieval);
    font-size: 3rem;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gray);
    letter-spacing: 2px;
    font-style: italic;
}

.hero-divider {
    width: 80px;
    height: 1px;
    background: var(--black);
    margin: 1rem auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--black);
    font-size: 1.5rem;
    opacity: 0.5;
}

/* ==========================================
   SECTIONS
   ========================================== */
.contact-item {
    text-align: center;
}

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

.bg-light {
    background: #fafafa !important;
}

.bg-dark {
    background: var(--black) !important;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.medieval-icon-decoration {
    font-family: var(--font-icons);
    font-size: 7rem;
    color: var(--black);
    opacity: 0.6;
}

.bg-dark .medieval-icon-decoration {
    color: var(--white);
}

.section-title {
    font-family: var(--font-medieval);
    font-size: 2.2rem;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.section-title.text-white {
    color: var(--white);
}

.content-box {
    background: var(--white);
    padding: 2rem;
    border: 1px solid var(--gray-light);
}

.content-box p {
    margin-bottom: 1rem;
}

.content-box .lead {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ==========================================
   AGENDA
   ========================================== */

.agenda-list {
    background: var(--white);
    border: 1px solid var(--gray-light);
}

.agenda-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
}

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

.agenda-item:hover {
    background: #fafafa;
}

.agenda-date {
    background: var(--black);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    min-width: 80px;
    margin-right: 1.5rem;
}

.date-day {
    font-size: 2rem;
    font-weight: bold;
    font-family: var(--font-medieval);
}

.date-month {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.agenda-details h4 {
    font-family: var(--font-medieval);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.agenda-details p {
    margin: 0.2rem 0;
    color: var(--gray);
    font-size: 0.95rem;
}

.agenda-details i {
    margin-right: 0.5rem;
    width: 15px;
}

/* ==========================================
   GALLERY
   ========================================== */

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--black);
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-item img[src=""],
.gallery-item img:not([src]) {
    display: none;
}

.gallery-item::before {
    content: 'A';
    font-family: var(--font-icons);
    font-size: 4rem;
    color: var(--black);
    opacity: 0.3;
    position: absolute;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.gallery-overlay i {
    font-size: 2rem;
    color: var(--white);
}

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

/* ==========================================
   VIDEOS
   ========================================== */

.video-wrapper {
    background: var(--white);
    padding: 1rem;
    border: 1px solid var(--gray-light);
}

.video-wrapper video {
    width: 100%;
    border: 1px solid var(--black);
    background: var(--black);
}

.video-title {
    font-family: var(--font-medieval);
    font-size: 1rem;
    margin-top: 0.8rem;
    text-align: center;
}

/* ==========================================
   MEMBERS
   ========================================== */

.member-card {
    text-align: center;
    background: var(--white);
    padding: 1.5rem;
    border: 1px solid var(--gray-light);
}

.member-card:hover {
    border-color: var(--black);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--black);
    margin-bottom: 1rem;
    background: var(--gray-light);
}

.member-photo[src=""],
.member-photo:not([src]) {
    display: none;
}

.member-card:not(:has(.member-photo[src]))::before,
.member-card:has(.member-photo:not([src]))::before {
    content: 'B';
    font-family: var(--font-icons);
    font-size: 3rem;
    color: var(--black);
    opacity: 0.4;
    display: block;
    margin-bottom: 1rem;
}

.member-info h4 {
    font-family: var(--font-medieval);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.member-role {
    color: var(--gray);
    font-style: italic;
    font-size: 0.95rem;
}

/* ==========================================
   CONTACT
   ========================================== */

.contact-info {
    margin: 1.5rem 0;
}

.contact-item {
    margin: 1.2rem 0;
}

.contact-item a {
    text-decoration: none;
    color: var(--white);
}

.contact-item a:hover {
    text-decoration: underline;
}

.btn-whatsapp {
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--white);
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-family: var(--font-medieval);
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    position: relative;
}

.btn-whatsapp:hover {
    background: var(--white);
    color: var(--black);
}

.btn-whatsapp:hover::after {
    content: 'C';
    font-family: var(--font-icons);
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.btn-whatsapp i {
    margin-right: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    position: relative;
}

.social-icon:hover {
    background: var(--white);
    color: var(--black);
}

.social-icon:hover::after {
    content: 'D';
    font-family: var(--font-icons);
    position: absolute;
    top: -35px;
    font-size: 1.5rem;
    color: var(--white);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: var(--black);
    color: var(--white);
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid var(--white);
}

.medieval-quote {
    font-family: var(--font-medieval);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    font-style: italic;
    opacity: 0.8;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 992px) {
    .hero-ornaments {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-ornaments {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .ornament {
        flex-direction: row;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .hero-logo {
        max-width: 120px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .agenda-item {
        flex-direction: column;
        text-align: center;
    }
    
    .agenda-date {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .content-box {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem !important;
    }
    
    .cellphonehidden {
        display: none;
    }
    
    .section-header {
        gap: 1rem;
    }
    
    .hero-section {
        min-height: 50vh;
    }
}