/* ============================================
   New Bavaria Welding — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: #d95030;
    color: #faf8f5;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(42, 34, 30, 0.08);
}

.navbar-text {
    transition: color 0.3s ease;
}

#navbar.scrolled .navbar-text {
    color: #1a1614;
}

.navbar-link {
    position: relative;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #d95030;
    transition: width 0.3s ease;
}

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

#navbar.scrolled .navbar-link {
    color: #4a423e;
}

#navbar.scrolled .navbar-link:hover {
    color: #c43d22;
}

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

#mobile-menu-btn.active #menu-line-1 {
    transform: rotate(45deg);
    top: 4px;
}

#mobile-menu-btn.active #menu-line-2 {
    opacity: 0;
}

#mobile-menu-btn.active #menu-line-3 {
    opacity: 1;
    top: 4px;
    transform: rotate(-45deg);
}

.mobile-nav-link {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(5) { transition-delay: 0.25s; }

/* ============================================
   Hero
   ============================================ */
.hero-content {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    opacity: 1;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    opacity: 1;
}

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

.service-card .w-14 {
    transition: transform 0.3s ease;
}

.service-card:hover .w-14 {
    transform: scale(1.05) rotate(-3deg);
}

/* ============================================
   About Section
   ============================================ */
.about-image {
    opacity: 1;
}

.about-content {
    opacity: 1;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 22, 20, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial-card {
    opacity: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ============================================
   Contact Form
   ============================================ */
.contact-form-wrapper {
    opacity: 1;
}

/* ============================================
   Scroll Animations
   (Progressive Enhancement — only when JS runs)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
}
