/* Base Styles & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2b2b2b;

    /* Live Background Image */
    background-image: url('https://www.hudsonhandmade.com/img/BG.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Header & Navigation (Desktop Default) */
header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e2ded8;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    backdrop-filter: blur(5px);
}
.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-container img {
    max-height: 55px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}
.logo-container:hover img {
    opacity: 0.85;
}
nav a {
    text-decoration: none;
    color: #4a4a4a;
    margin-left: 1.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, background-color 0.2s ease, border-color 0.2s ease;
}
nav a:hover {
    color: #0b5327;
}

/* Hero Section */
.hero {
    background-color: rgba(161, 130, 160, 0.3);
    padding: 6rem 2rem;
    text-align: center;
    border-bottom: 1px solid #e2ded8;
}
.hero-content {
    max-width: 750px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 2.8rem;
    color: #1a1a1a;
    margin-bottom: 1.2rem;
    font-weight: 700;
}
.hero p {
    font-size: 1.25rem;
    color: #444444;
    margin-bottom: 2.5rem;
}
.btn {
    display: inline-block;
    background-color: #0b5327;
    color: #ffffff;
    padding: 0.9rem 2.2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
    background-color: #073a1b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 83, 39, 0.2);
}

/* Main Content Categories & Content Blocks */
.categories, .info-section {
    max-width: 1100px;
    margin: 5rem auto;
    padding: 0 2rem;
}
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}
.card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e8e4de;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(3px);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.card-image-box {
    height: 280px;
    width: 100%;
    overflow: hidden;
    background-color: rgba(234, 221, 205, 0.4);
    border-bottom: 1px solid #e8e4de;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card:hover .card-image-box img {
    transform: scale(1.04);
}

.card h3 {
    padding: 1.8rem 1rem 0.6rem 1rem;
    color: #1a1a1a;
    font-size: 1.4rem;
}
.card p {
    padding: 0 1.5rem 2rem 1.5rem;
    color: #555555;
    font-size: 1rem;
    line-height: 1.5;
}

/* Informational Text Sections */
.text-block {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e8e4de;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #e5e5e5;
    text-align: center;
    padding: 2.5rem 2rem;
    font-size: 0.95rem;
    border-top: 5px solid #0b5327;
}
footer p {
    margin: 0.4rem 0;
}

html {
    scroll-behavior: smooth;
}
.categories, .info-section {
    scroll-margin-top: 80px;
}

/* Contact Form Styles */
.contact-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    width: 100%;
    text-align: left;
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
    display: block;
    width: 100% !important;
    height: 52px !important;
    padding: 0 1.25rem !important;
    border: 1px solid #dcd7d0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1.05rem;
    background-color: #ffffff;
    color: #2b2b2b;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box !important;
    -webkit-appearance: none;
}

.contact-form textarea {
    display: block;
    width: 100% !important;
    min-height: 180px !important;
    padding: 1.1rem 1.25rem !important;
    border: 1px solid #dcd7d0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1.05rem;
    background-color: #ffffff;
    color: #2b2b2b;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    resize: vertical;
    box-sizing: border-box !important;
    -webkit-appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0b5327;
    box-shadow: 0 0 0 3px rgba(11, 83, 39, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888888;
}

.contact-form .btn {
    align-self: center;
    width: 100%;
    max-width: 280px;
    height: 52px;
    padding: 0 2rem;
    cursor: pointer;
    border: none;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.honeypot {
    display: none !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ==========================================================================
   Comprehensive Mobile Responsive Overrides
   ========================================================================== */
@media (max-width: 650px) {
    header {
        padding: 0.75rem 0.5rem !important;
    }

    .nav-container {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .logo-container img {
        max-height: 42px !important;
    }

    nav {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
        width: 100% !important;
    }

    /* Force mobile pill button layout over desktop margins */
    header nav a,
    nav a {
        display: inline-block !important;
        margin: 0 !important;
        padding: 0.45rem 0.85rem !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.3px !important;
        background-color: rgba(11, 83, 39, 0.08) !important;
        border: 1px solid rgba(11, 83, 39, 0.2) !important;
        border-radius: 20px !important;
        color: #0b5327 !important;
        white-space: nowrap !important;
        text-transform: uppercase !important;
    }

    header nav a:active,
    header nav a:hover,
    nav a:active,
    nav a:hover {
        background-color: #0b5327 !important;
        color: #ffffff !important;
    }

    .hero {
        padding: 3.5rem 1.25rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .categories, .info-section {
        margin: 3rem auto;
        padding: 0 1rem;
    }

    .text-block {
        padding: 1.5rem 1.25rem;
    }

    .contact-form {
        gap: 1.2rem;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"] {
        height: 48px !important;
        font-size: 1rem;
    }

    .contact-form textarea {
        min-height: 140px !important;
        font-size: 1rem;
    }

    .contact-form .btn {
        max-width: 100%;
    }
}
