/* 
  Carpceter - Modern Craftsmanship CSS (REBUILD)
  Archetype: Interactive Gallery
  Protocol: Rules Fix Upgrade
*/

:root {
    --primary: #78350F;
    /* Oak */
    --accent: #D97706;
    /* Amber */
    --bg-color: #FFFBEB;
    /* Warm Paper */
    --white: #FFFFFF;
    --text-main: #292524;
    --text-muted: #78716C;

    --font-head: 'Playfair Display', serif;
    --font-body: 'Mulish', sans-serif;

    --max-width: 1400px;
    /* Gallery Width */
    --header-height: 90px;
    --radius: 2px;
    /* Sharp craftsmanship */
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    background-image: radial-gradient(#FDE68A 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--text-main);
    line-height: 1.8;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
    transition: transform 0.5s ease;
}

ul {
    list-style: none;
}

/* Interactive Components */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.btn {
    position: relative;
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--primary);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--accent);
    transition: 0.3s ease;
    z-index: -1;
}

.btn:hover::after {
    height: 100%;
}

/* Card Interactions */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.craft-card {
    position: relative;
    overflow: hidden;
    background: white;
    box-shadow: 0 20px 40px -10px rgba(120, 53, 15, 0.1);
    transition: 0.4s;
}

.craft-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(120, 53, 15, 0.2);
}

.craft-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.craft-card:hover img {
    transform: scale(1.05);
}

.craft-content {
    padding: 2.5rem;
}

/* Header (Phase 3 Spec) */
.site-header {
    height: var(--header-height);
    background: rgba(255, 251, 235, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(120, 53, 15, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile Menu Logic (Strict) */
#mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-bottom: 1px solid var(--primary);
    }

    .nav-menu.active {
        display: block;
        animation: slideDown 0.4s ease;
    }

    .nav-menu ul {
        display: flex;
        flex-direction: column;
        padding: 2rem;
        align-items: center;
        gap: 1.5rem;
    }

    #mobile-menu-toggle {
        display: block;
    }
}

@media (min-width: 769px) {
    .nav-menu {
        display: block;
        position: static;
        box-shadow: none;
    }

    .nav-menu ul {
        display: flex;
        gap: 4rem;
    }

    .nav-menu a {
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 0.9rem;
        position: relative;
    }

    .nav-menu a::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        bottom: -5px;
        left: 0;
        background-color: var(--accent);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .nav-menu a:hover::before {
        transform: scaleX(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Hero */
.hero {
    padding: 8rem 0;
    text-align: center;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 2rem;
    color: var(--primary);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
}

/* Ad Slot (Monetization) */
.ad-slot-sidebar,
.ad-slot-header {
    background: #F3F4F6;
    border: 1px dashed #D1D5DB;
    padding: 1rem;
    margin: 2rem 0;
    text-align: center;
    color: #9CA3AF;
    font-size: 0.8rem;
    font-family: monospace;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

/* Trust Badges */
.trust-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #FEF3C7;
    color: #92400E;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.5rem;
}

/* Footer (Re-architected) */
.footer {
    background: var(--primary);
    color: white;
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: left;
}

.footer h4 {
    color: #FDE68A;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer a {
    color: #E7E5E4;
    display: block;
    margin-bottom: 0.8rem;
}

.footer a:hover {
    color: #FDE68A;
    transform: translateX(5px);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}