/* =============================================
   D & T ARMS, LLC — Custom Styles
   ============================================= */

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

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

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #2e6638;
    color: #faf9f6;
}

/* =============================================
   Navigation
   ============================================= */
.nav-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(29, 64, 35, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-link {
    position: relative;
}

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

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

/* Primary Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #1d4023;
    color: #faf9f6;
}

.btn-primary:hover {
    background: #2e6638;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 64, 35, 0.3);
}

/* Secondary Button */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    position: relative;
}

.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

.hero h1 {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero p {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero .flex-col {
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero .grid {
    animation: fadeInUp 0.8s ease 0.6s both;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   Product Cards
   ============================================= */
.product-card {
    opacity: 1;
}

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

/* =============================================
   Mobile Menu
   ============================================= */
.mobile-menu {
    top: 0;
    padding-top: 0;
}

.mobile-link {
    display: block;
    text-decoration: none;
    color: #1d4023;
    transition: color 0.2s ease;
}

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

/* Hamburger Animation */
.menu-line {
    transition: all 0.3s ease;
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* =============================================
   Scroll Reveal Animations
   (Progressive Enhancement — content visible by default)
   ============================================= */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   Form Styles
   ============================================= */
input:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #a8a49b;
}

/* =============================================
   Responsive Adjustments
   ============================================= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .hero .grid {
        gap: 1.5rem;
    }
    
    .hero .grid > div > div:first-child {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.25rem;
    }
}

/* =============================================
   Print Styles
   ============================================= */
@media print {
    .nav-scrolled,
    .mobile-menu,
    .hero {
        display: none;
    }
    
    body {
        color: #1e1d1a;
        background: white;
    }
    
    section {
        page-break-inside: avoid;
    }
}
