/* ===== Base & Typography ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Navbar ===== */
.nav-link {
    position: relative;
    color: rgba(10, 22, 40, 0.8);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C9A84C;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #0A1628;
}

.nav-text {
    color: #0A1628;
}

.nav-text-secondary {
    color: #1B3A6E;
}

/* Navbar scrolled state */
header.scrolled .nav-text {
    color: #0A1628;
}

header.scrolled .nav-text-secondary {
    color: #1B3A6E;
}

header.scrolled .nav-link {
    color: rgba(10, 22, 40, 0.8);
}

header.scrolled .nav-link::after {
    background: #C9A84C;
}

/* ===== Hamburger ===== */
#menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

#menu-btn.active {
    background: #0A1628;
    border-color: #0A1628;
}

#menu-btn.active .hamburger-line {
    background: white;
}

/* Mobile menu active state */
header.menu-open .hamburger-line {
    background: #0A1628;
}

header.menu-open #menu-btn {
    background: transparent;
    border-color: #0A1628;
}

header.menu-open #menu-btn .hamburger-line {
    background: #0A1628;
}

/* ===== Mobile Links ===== */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

header.menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

header.menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
header.menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
header.menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
header.menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
header.menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ===== Diagonal Clip ===== */
.clip-diagonal {
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0A1628;
}

::-webkit-scrollbar-thumb {
    background: #C9A84C;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D4B965;
}

/* ===== Selection ===== */
::selection {
    background: #C9A84C;
    color: #0A1628;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group img {
        transition: none;
    }
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
}
