/* ============================================
   Ink Addiction Tattoos — Custom Styles
   Classic & Elegant · Forest Green + Cream
   ============================================ */

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

body {
    font-family: 'Lora', Georgia, serif;
}

/* Selection */
::selection {
    background: #4a7a4a;
    color: #fdfcfa;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #4a7a4a;
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    display: block;
    max-width: 100%;
}

/* ============================================
   Scroll Reveal (progressive enhancement)
   Content is visible by default; JS adds animation
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal[data-reveal="left"] {
        transform: translateX(-24px);
    }

    .reveal[data-reveal="right"] {
        transform: translateX(24px);
    }

    .reveal.visible {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Header scroll state
   ============================================ */
#site-header {
    background: transparent;
}

#site-header.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(45, 77, 45, 0.08);
}

/* ============================================
   Mobile menu
   ============================================ */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

/* ============================================
   Button micro-interactions
   ============================================ */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   Form improvements
   ============================================ */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(74, 122, 74, 0.1);
}

/* ============================================
   Gallery hover
   ============================================ */
.group img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    #site-header,
    #mobile-menu,
    .reveal {
        display: none !important;
    }

    body {
        color: #1a2e1a;
        background: white;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.75rem;
        color: #666;
    }
}
