/* ============================================
   Sweet Creek Pottery — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0D0A0F;
}
::-webkit-scrollbar-thumb {
    background: #4a274a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C8963E;
}

/* --- Selection --- */
::selection {
    background: rgba(200, 150, 62, 0.3);
    color: #f5f0f7;
}

/* --- Navigation --- */
.nav-link {
    position: relative;
}

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

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

/* --- Navbar Scrolled State --- */
#navbar.scrolled {
    background: rgba(13, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(74, 39, 74, 0.3);
}

#navbar.scrolled .nav-link {
    color: #ebe0ee;
}

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

/* --- Reveal Animations (Progressive Enhancement) --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

/* --- Input Focus Styles --- */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 1px rgba(200, 150, 62, 0.2);
}

/* --- Image Hover Effects --- */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* --- Gold Gradient Text --- */
.text-gold-gradient {
    background: linear-gradient(135deg, #e8c078 0%, #C8963E 50%, #b8862e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Subtle Pattern Overlay --- */
.pattern-overlay {
    background-image: radial-gradient(rgba(200, 150, 62, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* --- Button Ripple Effect --- */
button, .group-hover\:translate-y-0 {
    position: relative;
    overflow: hidden;
}

/* --- Map Filter Override --- */
iframe[src*="google.com/maps"] {
    border-radius: 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* --- Loading State for Images --- */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* --- Focus Visible for Accessibility --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C8963E;
    outline-offset: 2px;
}

/* --- Print Styles --- */
@media print {
    #navbar,
    #contactForm,
    iframe {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
