/* ==========================================================================
   ROOT VARIABLES & GLOBAL STYLES
   ========================================================================== */
:root {
    --bg-color: #FAFAFA;
    --text-main: #1A1A1A;
    --text-muted: #4A4A4A;
    --accent-wood: #8C6239; /* Warm white oak tone */
    --btn-brown: #5A3E2B;   /* Dark, rich walnut/espresso brown */
    --bg-dark: #232323;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
}

h1, h2, h3, .serif {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   NAVIGATION & HEADER
   ========================================================================== */
header {
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute; /* Keeps it floating over the hero image on index */
    width: 100%;
    z-index: 20;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
}

.social-links {
    display: flex;
    gap: 15px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links a:hover {
    color: var(--text-muted);
}

/* HAMBURGER MENU */
.hamburger {
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.nav-menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background: #fff;
    border: 1px solid var(--text-main);
    padding: 20px 30px;
    min-width: 220px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    flex-direction: column;
    gap: 15px;
    text-align: right;
    z-index: 50; /* Ensures it pops over other elements */
}

.nav-menu.active {
    display: flex;
}

.nav-menu a {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-wood);
}

/* ==========================================================================
   BUTTONS & INLINE LINKS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--btn-brown);
    background: transparent;
    color: var(--btn-brown);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
}

.btn:hover {
    background: var(--btn-brown);
    color: #fff;
}

.btn-primary {
    background: var(--btn-brown);
    color: #fff;
}

.btn-primary:hover {
    background: transparent;
    color: var(--btn-brown);
}

.btn-light {
    border-color: #fff;
    color: #fff;
}

.btn-light:hover {
    background: #fff;
    color: var(--text-main);
}

.logo-btn {
    border-color: var(--text-main);
    color: var(--text-main);
    padding: 12px 20px;
    letter-spacing: 2px;
}

.logo-btn:hover {
    background: var(--text-main);
    color: #fff;
}

/* INLINE TEXT LINKS */
.text-link {
    color: var(--accent-wood);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.text-link:hover {
    color: var(--btn-brown);
    text-decoration: underline;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
   /*
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: #E8E6E1;
    background-image: linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.1)), 
                      url('../images/entryway-table/custom-console-table.jpg'), 
                      url('../images/entryway-table/custom-woodworking-joinery-2.jpg');
    background-size: cover, 50% 100%, 50% 100%;
    background-position: center, left center, right center;
    background-repeat: no-repeat;
    padding-top: 80px;
}
*/
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: #E8E6E1;
    background-image: linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.1)), url('../images/entryway-table/custom-woodworking-joinery-2.jpg');
    background-size: cover;
    background-position: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 750px;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* ==========================================================================
   VALUES SECTION (4-Point Grid)
   ========================================================================== */
.values {
    padding: 100px 0;
    background: #fff;
}

.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.value-card p {
    color: var(--text-muted);
}

/* ==========================================================================
   THE ARTISAN SECTION
   ========================================================================== */
.artisan {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.artisan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.artisan-img {
    width: 100%;
    height: 600px;
    background-color: #ddd; 
    background-image: url('../images/crib/dog-crib-maple-custom.jpg');
    background-size: cover;
    background-position: center;
}

.artisan-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.artisan-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* ==========================================================================
   THE PROCESS SECTION
   ========================================================================== */
.process {
    padding: 100px 0;
    background: #fff;
    text-align: center;
}

.process h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.step {
    text-align: left;
}

.step-num {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--accent-wood);
    margin-bottom: 10px;
    line-height: 1;
}

/* ==========================================================================
   CATALOG GRID & CARDS (JSON Injected)
   ========================================================================== */
.catalog-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.catalog-header {
    text-align: center;
    margin-bottom: 50px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border: 1px solid #e8e5e1;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.product-image-wrap {
    width: 100%;
    height: 300px;
    background: #f0eee9;
    overflow: hidden;
    position: relative;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.05); /* Subtle luxury zoom effect */
}

/* Retaining your sold banner logic from the store in case you need it */
.sold-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(139, 0, 0, 0.88);
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    padding: 8px 0;
    font-size: 0.95rem;
}

.product-details {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.product-title {
    font-size: 1.4rem;
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-wood);
    margin-bottom: 15px;
}

.product-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-disabled {
    display: block;
    width: 100%;
    padding: 12px;
    background: #cccccc;
    color: #666666;
    border: none;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    cursor: not-allowed;
}

/* ==========================================================================
   FOOTER & CTA
   ========================================================================== */
.footer-cta {
    background-color: var(--bg-dark);
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.footer-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.footer-cta p {
    margin-bottom: 40px;
    color: #bbb;
}

footer {
    background-color: #1A1A1A;
    color: #777;
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
}

/* ==========================================================================
   MEDIA QUERIES (Responsive Design)
   ========================================================================== */
@media (max-width: 900px) {
    .social-links { display: none; }
    .grid-2x2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .artisan-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .header-right { gap: 15px; }
    .btn { padding: 10px 20px; font-size: 0.8rem; }
    .logo-btn { padding: 10px 15px; letter-spacing: 1px; }
    
    /* Ensure header layout adjusts for smaller screens if needed */
    header {
        padding: 20px 15px;
    }
}