/* ============================================
   Scotch Pine Liquor Inc — Custom Styles
   Clean minimalist · Emerald & Cream
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

/* --- Selection --- */
::selection {
    background: rgba(22, 101, 52, 0.2);
    color: #14532d;
}

/* --- Typography Utilities --- */
.section-eyebrow {
    letter-spacing: 0.3em;
}

/* --- Hero Animations --- */
.hero-eyebrow {
    animation: fadeUp 0.8s ease-out 0.2s both;
}

.hero-title {
    animation: fadeUp 0.8s ease-out 0.4s both;
}

.hero-subtitle {
    animation: fadeUp 0.8s ease-out 0.6s both;
}

.hero-cta {
    animation: fadeUp 0.8s ease-out 0.8s both;
}

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

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

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

/* --- Navbar --- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(22, 101, 52, 0.08);
}

.nav-link {
    position: relative;
}

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

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

#navbar.scrolled .nav-link {
    color: rgba(20, 83, 45, 0.7) !important;
}

#navbar.scrolled .nav-link:hover {
    color: #166534 !important;
}

/* --- Mobile Menu --- */
.mobile-link {
    font-size: 0.875rem;
}

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
#menu-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
    top: 50%;
    transform: rotate(45deg);
}

#menu-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

#menu-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
    top: 50%;
    transform: rotate(-45deg);
    width: 1.25rem;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Card Items --- */
.card-item {
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.card-item:hover {
    transform: translateY(-4px);
}

/* --- Buttons --- */
.cta-primary {
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-primary:hover::before {
    opacity: 1;
}

/* --- Form --- */
input:focus,
textarea:focus {
    border-color: rgba(74, 222, 128, 0.5) !important;
}

input::placeholder,
textarea::placeholder {
    font-style: italic;
}

/* --- Subtle line decorations --- */
h2 .italic {
    font-style: italic;
    font-weight: 300;
}

/* --- Smooth image loading --- */
img {
    image-rendering: auto;
}

/* --- Focus visible for accessibility --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(74, 222, 128, 0.6);
    outline-offset: 2px;
}

/* --- Responsive adjustments --- */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title br {
        display: none;
    }

    .section-eyebrow {
        letter-spacing: 0.2em;
    }

    #navbar {
        background: rgba(254, 253, 248, 0.95);
        backdrop-filter: blur(12px);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

/* --- Print styles --- */
@media print {
    #navbar,
    .scroll-indicator,
    .cta-primary,
    .cta-secondary {
        display: none;
    }

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

    a {
        color: #000;
    }
}
