/* ========================================
   A+ Chi-Town — Custom Styles
   Classic & Elegant | Forest Green + Off-White
   ======================================== */

/* ---- Base Reset & Foundations ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

::selection {
    background-color: #1B4332;
    color: #FDFBF7;
}

/* ---- Navigation ---- */
.nav-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(253, 251, 247, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.08);
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-scrolled .font-serif {
    color: #1B4332;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #D4A84B;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ---- Hero ---- */
.hero {
    position: relative;
}

.hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(10, 26, 19, 0.55) 0%,
        rgba(27, 67, 50, 0.70) 40%,
        rgba(15, 37, 28, 0.82) 70%,
        rgba(10, 26, 19, 0.90) 100%
    );
}

/* Hero badge animation */
.hero-badge {
    opacity: 0;
    animation: fadeInDown 0.8s 0.3s forwards;
}

.hero h1 {
    opacity: 0;
    animation: fadeInUp 1s 0.5s forwards;
}

.hero p {
    opacity: 0;
    animation: fadeInUp 1s 0.7s forwards;
}

.hero > div:last-child > div {
    opacity: 0;
    animation: fadeInUp 1s 0.9s forwards;
}

/* Scroll line animation */
.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ---- Mobile Menu ---- */
.mobile-menu-link {
    position: relative;
}

.mobile-menu-link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background-color: #D4A84B;
    margin-top: 4px;
    transition: width 0.3s ease;
}

.mobile-menu-link:hover::after {
    width: 60%;
}

/* ---- Reveal Animations (progressive enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

/* Default state: always visible for accessibility */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Buttons ---- */
button, [type="submit"], [type="button"] {
    cursor: pointer;
}

/* ---- Form Elements ---- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231B4332' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ---- Image Loading ---- */
img {
    max-width: 100%;
    height: auto;
}

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

/* ---- Utility ---- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Print Styles ---- */
@media print {
    .nav-scrolled,
    .animate-scroll-line,
    [data-animate] {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}
