/* Alpine Sanctuary - Custom Styles */

/* ===== Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

body {
    background-color: #faf9f9;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(30, 94, 66, 0.15);
    color: #00462d;
}

/* ===== Scrollbar ===== */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ===== Glass & Blur ===== */
.alpine-glass {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-nav {
    background: rgba(250, 249, 249, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ===== Shadows ===== */
.editorial-shadow {
    box-shadow: 0 40px 80px -20px rgba(26, 28, 28, 0.05);
}

.ambient-shadow {
    box-shadow: 0 40px 40px rgba(26, 28, 28, 0.05);
}

/* ===== Gradients ===== */
.hero-gradient {
    background: linear-gradient(180deg, rgba(26,28,28,0.4) 0%, rgba(26,28,28,0) 40%, rgba(26,28,28,0) 70%, rgba(26,28,28,0.4) 100%);
}

.hero-gradient-primary {
    background: linear-gradient(135deg, #00462d 0%, #1e5e42 100%);
}

/* ===== Typography ===== */
.serif-tracking { letter-spacing: -0.02em; }
.text-balanced { text-wrap: balance; }

/* ===== Clip Paths ===== */
.asymmetric-cap {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
}

/* ===== Alpine Parallax ===== */
.alpine-parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@supports (-webkit-touch-callout: none) {
    .alpine-parallax {
        background-attachment: scroll;
    }
}

/* ===== Navigation ===== */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

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

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

.nav-link.active {
    color: #00462d;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ===== Side Nav ===== */
.side-nav {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1280px) {
    .side-nav {
        transform: translateX(0);
    }
}

/* ===== Bottom Nav ===== */
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: rgba(26, 28, 28, 0.4);
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.bottom-nav-item.active {
    color: #1e5e42;
    font-weight: 600;
}

.bottom-nav-item.active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== Hover Effects ===== */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-zoom:hover img {
    transform: scale(1.05);
}

/* ===== Line expand on hover ===== */
.line-expand {
    display: inline-block;
    width: 48px;
    height: 1px;
    background: #00462d;
    transition: width 0.3s ease;
}

.group:hover .line-expand {
    width: 80px;
}

/* ===== Smooth scroll ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Print ===== */
@media print {
    .side-nav, nav, .bottom-nav, .fab { display: none !important; }
    main { margin-right: 0 !important; }
}
