/* ========================================
   Tradecraft Outfitters — 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 {
    background-color: #c94a28;
    color: #faf8f5;
}

/* ========================================
   Typography
   ======================================== */

.section-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c94a28;
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 300;
    line-height: 1.1;
    color: #1c1917;
}

.section-body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: #78716c;
}

/* ========================================
   Hero Animations
   ======================================== */

.hero-subtitle {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
    transform: translateY(20px);
}

.hero-title {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
    transform: translateY(20px);
}

.hero-body {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
    transform: translateY(20px);
}

.hero-stats {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 1s;
    opacity: 0;
    transform: translateY(20px);
}

.hero-image {
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ========================================
   Navbar
   ======================================== */

#navbar {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 248, 245, 0.97);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

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

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

/* ========================================
   Mobile Menu
   ======================================== */

.mobile-link {
    position: relative;
}

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

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

/* ========================================
   Provision Cards
   ======================================== */

.provision-card {
    opacity: 1;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.provision-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* ========================================
   Craft Principles
   ======================================== */

.craft-principle {
    opacity: 1;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.craft-principle:hover .w-12 {
    background-color: rgba(201, 74, 40, 0.3);
}

/* ========================================
   Story Cards
   ======================================== */

.story-card {
    opacity: 1;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

/* ========================================
   Scroll Reveal Animations
   (Progressive enhancement — content
   is visible by default, JS adds animation)
   ======================================== */

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ========================================
   Contact Items
   ======================================== */

.contact-item {
    opacity: 1;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-item:hover h4 {
    color: #c94a28;
}

.contact-item:hover h4 {
    transition: color 0.3s ease;
}

/* ========================================
   Button Focus States
   ======================================== */

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #c94a28;
    outline-offset: 2px;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 768px) {
    .hero-stats {
        gap: 8px !important;
    }

    .hero-stats > div {
        text-align: center;
    }

    .hero-stats > div:not(:last-child) {
        padding-right: 16px;
        border-right: 1px solid rgba(168, 60, 32, 0.2);
    }

    .hero-stats > div:last-child {
        border-right: none;
    }
}
