html {
    box-sizing: border-box;
}

*, 
::before, 
::after {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

:root {
    --primary-color: #FFF;
    --secondary-color: #DDA11D;
    --accent-color: #B10012;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    background-color: var(--primary-color);
}

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

.navbar {
    background-color: #DDA11D;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    padding: 10px 20px;
    transition: transform 0.3s ease-in-out;
}

.navbar.hide {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin: 0 auto;
}

.nav-container .brand {
    display: flex; 
    align-items: center;
    text-decoration: none;
    color: #FFF;
    font-size: 1.3rem;
    font-weight: bold;
}

.brand img {
    height: 35px;
    margin-right: 8px;
}

.nav-link-container ul {
    display: none;
    list-style-type: none;
    flex: 1 0 55%;
    justify-content: flex-end;
    gap: 3rem;
    align-items: center;
}

.nav-link-container ul li a {
    position: relative;
}

.nav-link-container ul li a::after {
    content: "";
    position: absolute;
    width: 100%;
    left: 0;
    bottom: -2px;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link-container ul li a:hover::after {
    transform: scaleX(100%);
}

.nav-link-container .nav-link.underline::after {
    transform: scaleX(100%);
}

.nav-link-container .nav-link {
    text-decoration: none;
    color: #FFF;
}

.nav-menu {
    font-size: 24px;
    cursor: pointer;
    border: none;
    background: none;
    color: #FFF;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background-color: #DDA11D;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    transform: translateX(-100%);
    z-index: 9999;
}

.sidebar[data-state="open"] {
    display: block;
    animation: navOpen 500ms ease-in-out forwards;
}

.sidebar[data-state="closing"] {
    animation: navClose 500ms ease-in-out forwards;
}

.sidebar[data-state="closed"] {
    display: none;
}

[aria-expanded="true"] + .sidebar {
    transform: translateX(0);
}

@keyframes navOpen {
    from {transform: translateX(-100%);}
    to {transform: translateX(0);}
}

@keyframes navClose {
    from {transform: translateX(0);}
    to {transform: translateX(-100%);}
}

.sidebar .nav-head-container {
    padding: 1rem;
    font-weight: bold;
    font-size: 1.2rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar .nav-head-container img {
    height: 35px
}

.sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.sidebar ul li a {
    display: block;
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    transition: color 0.2s;
    color: #FFF;
    padding: 0.5rem;    
}

.sidebar ul li a:hover {
    color: #007BFF;
}

.sidebar ul li a.active {
    border-left: 1px solid #FFF;
    background-color: rgba(255, 255, 255, 0.15);
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #FFF;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

.overlay.active {
    display: block;
}

main {
    margin-top: 55px;
}


.footer {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 2rem 1rem;
    text-align: center;
}

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

.footer-about,
.footer-links,
.footer-contact {
    width: 100%;
}

.footer .title {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
}

.footer-about p,
.footer-contact p,
.footer-links p,
.footer-links a {
    font-size: 0.95rem;
    line-height: 1.4;
}

.footer-contact p:not(.title) {
    margin: 0.5rem 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 1rem;
}

@keyframes fadeUp {
    from {opacity: 0; transform: translateY(30px);}
    to {opacity: 1; transform: translateY(0);}
}

@media (min-width: 600px) {
    .footer .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        max-width: 1200px;
        margin: 0 auto;
    }

    .footer-about,
    .footer-links,
    .footer-contact {
        flex: 1;
        min-width: 200px;
        text-align: left;
    }

    .footer {
        text-align: left;
        padding: 3rem 2rem 1rem;
    }
}

@media (min-width: 785px) {
    .nav-link-container ul {
        display: flex;
    }
    .nav-menu {
        display: none;
    }
    .menu-toggle {
        display: none;
    }
}