/* Fishers Fabrication and Performance — Custom Styles */

/* Base reset & typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: #223124;
    background: #faf9f6;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: #547552;
    color: #faf9f6;
}

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #547552;
    outline-offset: 2px;
}

/* Navigation transitions */
.nav-link {
    position: relative;
    text-decoration: none;
    color: #2a3d2b;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 400;
}

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

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

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

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

.mobile-link {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    color: #223124;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #547552;
}

/* Menu lines animation */
.menu-line {
    display: block;
    width: 24px;
    height: 1px;
    background: #2a3d2b;
    transition: all 0.3s ease;
}

.menu-line-close {
    display: block;
    width: 24px;
    height: 1px;
    background: #2a3d2b;
    transition: all 0.3s ease;
}

/* Button styles */
.btn-primary {
    display: inline-block;
    background: #223124;
    color: #faf9f6;
    border: 1px solid #223124;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 400;
    text-decoration: none;
    padding: 0.875rem 2rem;
    border-radius: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: transparent;
    color: #223124;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: #223124;
    border: 1px solid #223124;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 400;
    text-decoration: none;
    padding: 0.875rem 2rem;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #223124;
    color: #faf9f6;
}

/* Service card hover effects */
.service-card {
    border: 1px solid #e3ebe0;
    background: #faf9f6;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    border-color: #547552;
    box-shadow: 0 8px 40px rgba(34, 49, 36, 0.06);
    transform: translateY(-2px);
}

/* Scroll reveal (progressive enhancement) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s 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;
    }

    img, .service-card, .reveal img {
        transition: none;
    }
}

/* Thin line accent */
.line-accent {
    width: 60px;
    height: 1px;
    background: #547552;
}

/* Horizontal divider */
.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #c5d7c1, transparent);
}

/* Form styles */
input, textarea {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

input::placeholder, textarea::placeholder {
    color: #9cb897;
}

/* Image hover zoom */
overflow-hidden {
    overflow: hidden;
}

/* Sticky nav shadow on scroll */
nav.scrolled {
    box-shadow: 0 1px 0 rgba(34, 49, 36, 0.08);
}
