/* ============================================
   Tough Cuts LLC — Custom Styles
   Classic & Elegant · Forest Green + Off-White
   ============================================ */

/* ---- Base & Typography ---- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #1B4332;
    color: #FDFCF8;
}

/* ---- Smooth Scroll Offset for Fixed Header ---- */
section[id] {
    scroll-margin-top: 80px;
}

/* ---- Header ---- */
.site-header {
    background: transparent;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.site-header.scrolled {
    background-color: rgba(27, 67, 50, 0.97);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

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

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

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

/* ---- Mobile Menu ---- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

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

/* ---- Service Cards ---- */
.service-card {
    perspective: 1000px;
}

.service-card .bg-white {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover .bg-white {
    transform: translateY(-4px);
}

/* ---- Scroll Reveal Animations ---- */
/* Default state: visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
}

/* When JS adds the 'reveal-animate' class, apply animation */
@media (prefers-reduced-motion: no-preference) {
    .reveal.reveal-animate {
        animation: revealFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
}

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

/* ---- Gallery Hover Effects ---- */
.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* ---- Button Ripple Effect ---- */
button, a[role="button"] {
    position: relative;
    overflow: hidden;
}

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

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

::-webkit-scrollbar-thumb {
    background: #93ba8d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4f7d4a;
}

/* ---- Selection ---- */
::selection {
    background: #1B4332;
    color: #FDFCF8;
}

/* ---- Form Styles ---- */
select option {
    background: #FDFCF8;
    color: #3D3229;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 767px) {
    section[id] {
        scroll-margin-top: 60px;
    }

    .font-display {
        line-height: 1.15;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    section[id] {
        scroll-margin-top: 72px;
    }
}

/* ---- Print Styles ---- */
@media print {
    .site-header,
    .reveal {
        display: block !important;
        opacity: 1 !important;
    }

    #mobile-menu {
        display: none !important;
    }
}
