/* 
 * R. A. Electric - Custom Styles
 * Bold Editorial Design System
 */

:root {
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
}

/* Editorial Decorative Elements */
.decorative-line {
    position: relative;
}

.decorative-line::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #427a56; /* forest-500 */
    margin-top: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F9F7F2;
}

::-webkit-scrollbar-thumb {
    background: #2c5f40;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #234b32;
}

/* Selection Color */
::selection {
    background-color: #c5dfca;
    color: #163020;
}

/* Image Handling */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Focus States for Accessibility */
button:focus, a:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 122, 86, 0.3);
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Smooth reveal animation classes (used by JS) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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