/* ============================================
   Tim Shaffer Design.Fabrication.Welding
   Custom Styles
   ============================================ */

/* CSS Custom Properties */
:root {
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --nav-link-color: #475569;
    --nav-btn-color: #0f766e;
    --nav-btn-border: #0f766e;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Navbar transition classes */
.nav-active #nav-logo-text {
    color: #f8fafc !important;
}

.nav-active #nav-logo-sub {
    color: #94a3b8 !important;
}

.nav-active .nav-link {
    color: #cbd5e1 !important;
}

.nav-active .nav-link:hover {
    color: #f8fafc !important;
}

.nav-active .nav-primary-nav {
    color: #5eead4 !important;
    border-color: #5eead4 !important;
}

.nav-active .menu-line {
    background-color: #f8fafc !important;
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
}

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

/* Gallery item transitions */
.gallery-item {
    cursor: pointer;
}

/* Testimonial card hover */
.testimonial-card {
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Button focus states */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .gallery-item img {
        transition: none;
    }

    .service-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, footer {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    .service-card,
    .testimonial-card {
        break-inside: avoid;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background: #0d9488;
    color: #fff;
}
