/* --- Variables: The Walnut Palette --- */
:root {
    --wood-dark: #4A3B32;   /* Deep walnut */
    --wood-light: #8C705F;  /* Lighter wood tone */
    --sand-base: #F4F1EA;   /* Off-white parchment/sand */
    --sand-mid: #E8E4D9;    /* Slightly darker sand */
    --mustard: #CFAA58;     /* Muted gold/mustard accent */
    --ink-black: #2B2B2B;   /* Softer than pure black */
    --white: #FFFFFF;
    
    --font-head: 'Playfair Display', serif;
    --font-body: 'Merriweather', serif;
    
    --sticky-offset: 0px; /* Adjust if you add a top bar later */
}

/* --- Reset & Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink-black);
    background-color: var(--sand-base);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--wood-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 2.8rem; letter-spacing: -0.5px; }
h2 { font-size: 2.2rem; margin-top: 2rem; text-align: center; }
h3 { font-size: 1.5rem; color: var(--wood-light); }

p { margin-bottom: 1.2rem; }

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

/* --- Layout Utilities --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.narrow {
    max-width: 700px;
}

.section-pad {
    padding: 5rem 0;
}

.bg-tan {
    background-color: var(--sand-mid);
    border-top: 1px solid rgba(74, 59, 50, 0.1);
    border-bottom: 1px solid rgba(74, 59, 50, 0.1);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-left: 3px solid var(--mustard);
    box-shadow: 0 4px 15px rgba(74, 59, 50, 0.05);
}

/* --- Header & Nav (Sticky + Flyouts) --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--wood-dark);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mustard);
    letter-spacing: 1px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav > ul > li {
    position: relative; /* Anchor for dropdown */
}

.main-nav a {
    font-size: 0.95rem;
    color: var(--sand-base);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    color: var(--mustard);
    border-bottom-color: var(--mustard);
}

/* Flyout Logic */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    border-top: 3px solid var(--mustard);
}

.dropdown-menu li a {
    display: block;
    color: var(--wood-dark);
    padding: 12px 20px;
    border-bottom: 1px solid var(--sand-mid);
    font-size: 0.9rem;
}

.dropdown-menu li a:hover {
    background-color: var(--sand-base);
    color: var(--wood-light);
}

/* Hover Trigger */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- Hero Section --- */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(244, 241, 234, 0.9), rgba(244, 241, 234, 0.95)), url('https://images.unsplash.com/photo-1455390582262-044cdead277a?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); 
    /* Note: In production, replace Unsplash URL with a local texture/image of paper/walnut */
    background-size: cover;
    background-position: center;
}

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

.lead {
    font-size: 1.25rem;
    color: var(--wood-light);
    margin-bottom: 2.5rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-head);
    font-weight: 600;
    border-radius: 2px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--wood-dark);
    color: var(--mustard);
    border: 1px solid var(--wood-dark);
}

.btn-primary:hover {
    background-color: var(--mustard);
    color: var(--wood-dark);
    border-color: var(--mustard);
}

.btn-secondary {
    background-color: transparent;
    color: var(--wood-dark);
    border: 1px solid var(--wood-dark);
}

.btn-secondary:hover {
    background-color: var(--wood-dark);
    color: var(--white);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--wood-dark);
    color: var(--sand-base);
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align tops of columns */
    margin-bottom: 2rem;
    position: relative;
}

/* The clever layout trick for side columns */
.footer-col.left {
    flex: 1;
    text-align: right;
    padding-right: 10%; /* Push slightly inward */
}

.footer-logo {
    flex: 1;
    text-align: center;
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--mustard);
    font-weight: bold;
    border: 1px solid var(--wood-light);
    padding: 10px 20px;
    transform: translateY(-10%); /* Visual balance */
}

.footer-col.right {
    flex: 1;
    text-align: left;
    padding-left: 10%;
}

.footer-col a {
    color: var(--mustard);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 1rem;
    }

    /* On mobile, hover is tricky. 
       Without JS, we keep hover behavior but ensure it doesn't break layout */
    
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-col.left, .footer-col.right {
        text-align: center;
        padding: 0;
    }
}