/* Base reset & custom properties */
:root {
    --color-burgundy-700: #a12138;
    --color-burgundy-800: #821d32;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #a12138;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Navbar link underline on hover */
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #a12138;
    transition: width 0.2s ease;
    margin-top: 2px;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu transitions */
#mobileMenu.open {
    transform: translateX(0);
}
#mobileMenu {
    transform: translateX(100%);
}

/* Hamburger animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
body.menu-open .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
body.menu-open .menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.5rem;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Selection color */
::selection {
    background: #f9d0d9;
    color: #6c1a2d;
}
