/* styles.css - Red Color Scheme - Met Museum Inspired Refinement */

:root {
    --primary-red: #E4002B; /* Main red */
    --dark-red: #89001A;   /* Darker red for hover and accents */
    --medium-gray: #666666; /* Medium gray for text */
    --light-gray: #f2f2f2; /* Light gray for subtle backgrounds */
    --white: #FFFFFF;      /* White */
    --text-dark: #1a1a1a;   /* Dark text color */
    --text-light: #757575;  /* Light gray for secondary text */
    --hover-gray:#E8E8E8;   /* Light gray for hover */
}

body {
    font-family: Nunito, Times, serif; /* Serif font for body text */
    margin: 0;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6; /* Improved line height for readability */
}

/* Header */
.header {
    background-color: var(--primary-red);
    border-bottom: 1px solid var(--light-gray); /* Lighter border */
    padding: 1rem 0;
    position: sticky; /* Make the header sticky */
    top: 0;
    z-index: 100; /* Ensure the header stays on top */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px; /* Increased max-width */
    margin: 0 auto;
    padding: 0 3rem; /* Increased padding */
}

/* Logo */
.logo {
    background-color: var(--primary-red); /* Dark red logo */
    color: var(--white);
    font-family: 'Times New Roman', serif; /* Serif font */
    font-size: 2rem; /* Slightly larger */
    font-weight: 700;
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.logo:hover {
    background-color: var(--dark-red); /* Darker red on hover */
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 2.5rem; /* Increased gap */
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color:  var(--white); /* Primary red navigation links */
    text-decoration: none;
    font-weight: 400; /* Lighter weight */
    font-size: 1.1rem; /* Slightly bigger */
    padding: 0.5rem;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--dark-red); /* Dark red on hover */
    background-color: var(--hover-gray);/*added gray bg on hover*/
}

.map-responsive{
    overflow:hidden;
    padding-bottom:50%;
    position:relative;
    height:0;
}
.map-responsive iframe{
    left:0;
    top:0;
    height:450px;
    width:100%;
    position:absolute;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--primary-red); /* Red hamburger icon */
    font-size: 1.5rem;
    cursor: pointer;
}
/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    overflow: hidden;
    display: flex; /* Enable Flexbox */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
    opacity: 0; /* Hide by default */
    transition: opacity 0.5s ease-in-out; /* Smooth transition */
}

.hero-video.active {
    opacity: 1; /* Show the active video */
}

.hero-content {
    position: relative;
    z-index: 2; /* ensure that the text is displayed over the videos */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-align: center; /* Center align text */
    color: white; /* change text to white */
}
.hero-content h1 {
    font-size: 3rem; /* Add h1 styling */
}

/* Add video overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(228, 0, 43, 0.4), rgba(228, 0, 43, 0.6));
    z-index: 1;
}

.hero-content .button {
    background: transparent; /* Make background transparent */
    color: white; /* Ensure text is visible */
    border: 2px solid white; /* Add a white border */
    padding: 10px 20px; /* Adjust padding */
    border-radius: 5px; /* Add some roundness */
    text-decoration: none; /* Remove underline */
    font-weight: bold;
    transition: background-color 0.3s ease; /* Smooth hover effect */
    
}

.hero-content .button:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Lighter background on hover */
    cursor: pointer;
}

.button {
    background-color: var(--primary-red); /* Red button */
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    display: inline-block;
    border-radius: 0px; /* No border radius */
    transition: background-color 0.3s;
}

.button:hover {
    background-color: var(--dark-red); /* Darker red on hover */
}

/* Exhibits Grid */
.exhibits-grid {
    padding: 4rem 3rem; /* Increased padding */
}

.exhibits-grid h2 {
    font-family: 'Times New Roman', serif;
    color: var(--primary-red); /* Red heading */
    text-align: center;
    font-size: 3rem; /* Larger heading */
    margin: 0 0 3rem 0;
    font-weight: 400;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Larger min-width */
    gap: 3rem; /* Increased gap */
    max-width: 1400px; /* Increased max-width */
    margin: 0 auto;
}

.exhibit-card {
    border: 1px solid var(--light-gray); /* Light gray border */
    padding: 1.5rem; /* Increased padding */
    text-align: left; /* Left-align text */
}

.exhibit-card img {
    width: 100%;
    height: 250px; /* Increased image height */
    object-fit: cover;
    margin-bottom: 1.5rem; /* Increased margin */
}

.exhibit-card h3 {
    color: var(--dark-red); /* Dark red heading */
    margin: 0 0 0.5rem 0;
    font-weight: 600; /* Bold heading */
    font-size: 1.2rem;
}

.exhibit-card p {
  color: var(--text-light); /*lighter text*/
  font-size: 1rem; /* slightly bigger text*/
}

/* Footer */
.footer {
    border-top: 1px solid var(--light-gray); /* Light gray border */
    padding: 2rem 3rem; /* increased padding */
    margin-top: 3rem;
}

.footer-content {
    max-width: 1400px; /* Increased max-width */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem; /* Increased gap */
}

.footer-links a {
    color: var(--primary-red); /* Red links */
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--dark-red); /* Dark red on hover */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--white);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .navbar {
        padding: 0 1.5rem; /* Adjust padding for smaller screens */
    }

    .exhibits-grid {
        padding: 4rem 1.5rem; /* Adjust padding for smaller screens */
    }
    .footer{
        padding: 2rem 1.5rem; /* Adjust padding for smaller screens */
    }
}


#header-component {
    position: sticky; /* Torna o header "grudado" */
    top: 0;           /* Define a distância do topo da tela */
    z-index: 100;    /* Garante que o header fique acima de outros elementos */
}

#footer-component {
    position: fixed;
    width: 100%;
    bottom: 0;          /* Define a distância do fundo da tela */
    z-index: 100;       /* Garante que o footer fique acima de outros elementos */
}
