/* CSS for the navigation bar (and related top elements) */

/* Remove duplicate CSS variables since they're in common.css */

/* Styling for the top bar container */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
    z-index: 101;
}

/* Styling for the logo link at the top */
.logo-link img {
    height: 60px;
    width: 150px;
    display: block;
    object-fit: contain;
}

/* Styling for the top social media handles */
.social-media-top {
    display: flex;
    gap: 10px;
}

.social-media-top img {
    height: 24px;
    width: 24px;
    opacity: 0.7;
    transition: var(--transition);
}

.social-media-top img:hover {
    opacity: 1;
}

nav {
    background-color: var(--primary-blue);
    overflow: hidden;
}

nav ul {
    list-style-type: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
}

nav ul li a {
    font-family: var(--font-secondary);
    display: block;
    color: var(--neutral-white);
    text-align: center;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background-color: var(--secondary-gold);
    visibility: hidden;
    transition: left 0.3s ease-out, right 0.3s ease-out, visibility 0s 0.3s;
}

nav ul li a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--accent-gold-light);
    opacity: 0;
    border-radius: 5px;
    transition: opacity 0.3s ease;
    z-index: -1;
}

nav ul li a:hover {
    color: var(--dark-blue);
}

nav ul li a:hover::before {
    visibility: visible;
    left: 0;
    right: 0;
    transition: left 0.3s ease-in, right 0.3s ease-in, visibility 0s;
}

nav ul li a:hover::after {
    opacity: 1;
}

nav ul li a.active {
    background-color: var(--dark-blue);
    color: var(--neutral-white);
}

nav ul li a:visited {
    color: var(--dark-blue);
}

footer {
    background-color: var(--primary-blue);
    color: var(--neutral-white);
    padding: 2rem 20px;
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    align-items: start;
    justify-content: center;
    font-family: var(--font-primary);
    line-height: 1.5;
}

.social-media-footer {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.social-media-footer img {
    height: 24px;
    width: 24px;
    opacity: 0.7;
    transition: var(--transition);
}

.social-media-footer img:hover {
    opacity: 1;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Style for the Starling Logo in the Footer */
footer .footer-section:first-child img {
    height: 60px;
    width: 150px;
    display: block;
    margin-top: 0.5rem;
    object-fit: contain;
}

/* Subtle scale-up on hover for social media icons */
.social-media-top img,
.social-media-footer img {
    transition: var(--transition);
}

.social-media-top img:hover,
.social-media-footer img:hover {
    transform: scale(1.1);
    opacity: 1;
}