/* AndTeak.com - Artisan Furniture Refinishing */

:root {
    --bg-color: #fcfcfb;
    /* Warm, paper-like off-white */
    --text-color: #2c2c2c;
    /* Soft charcoal, not harsh black */
    --accent-color: #5d4037;
    /* Dark mahogany */
    --link-color: #795548;
    /* Lighter walnut */
    --border-color: #e0e0e0;

    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;

    --max-width: 960px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 18px;
    /* Slightly larger for readability */
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: normal;
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.8rem;
    margin-top: var(--spacing-lg);
}

h3 {
    font-size: 1.4rem;
}

p {
    margin-bottom: var(--spacing-md);
    max-width: 70ch;
    /* Optimal line length for reading */
}

a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

a:hover {
    border-bottom-color: var(--link-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}



/* Header & Nav */
/* Header & Nav */
body {
    padding-top: 130px;
    /* Compensate for larger fixed header height */
}

/* Header & Nav */
body {
    padding-top: 108px;
    /* Match header height (90px logo + 16px padding + border) */
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    /* Ensure it stays on top of everything, including hero overlay */
    background-color: var(--bg-color);
    padding: 0;
    /* Remove padding to allow nav items to touch edges */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    /* Stretch items to fill header height */
    flex-wrap: wrap;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    height: 100%;
    /* Ensure container fills header (implied by flex/content) */
}

.logo-link {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) 0;
    /* Buffer for logo */
}

.logo-img {
    height: 90px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

header.scrolled .logo-img {
    height: 50px;
}

.site-nav {
    display: flex;
    align-items: stretch;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
    align-items: stretch;
    /* Stretch LIs */
}

.site-nav li {
    display: flex;
    align-items: center;
    position: relative;
    /* Context for dropdown */
}

.site-nav a {
    color: var(--text-color);
    font-size: 1.3rem;
    /* Increased from 1.1rem */
    text-transform: lowercase;
    font-variant: small-caps;
    letter-spacing: 1px;
    font-weight: 600;
    display: flex;
    /* Flex to center text */
    align-items: center;
    height: 100%;
    /* Fill the LI */
    padding: 0;
    /* Remove padding, rely on height */
}

/* Dropdown Menu */
.dropdown {
    /* position relative handled by li rule above */
    display: flex;
    /* Ensure it behaves like other LIs */
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border: 1px solid var(--border-color);
    top: 100%;
    left: 0;
    margin-top: 0;
    padding: var(--spacing-sm) 0;
    border-radius: 0 0 2px 2px;
    /* Radius only on bottom */
    border-top: none;
    /* Look like extension */
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-variant: normal;
    text-transform: none;
    letter-spacing: normal;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    margin-top: 0;
    /* Remove top margin for full bleed effect */
    margin-bottom: var(--spacing-xl);
    text-align: center;
    width: 100%;
    position: relative;
}

.hero-image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 60vh;
    /* Set a fixed height or min-height */
    min-height: 400px;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover the area */
    object-position: center;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(252, 252, 251, 0.9);
    /* Semi-transparent background matching site bg */
    padding: var(--spacing-lg);
    max-width: 80%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.hero-overlay h1 {
    margin-bottom: var(--spacing-sm);
    font-size: 2.2rem;
}

.hero-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 0;
}

/* Footer */
footer {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

footer a {
    color: #666;
    margin: 0 var(--spacing-sm);
}

/* Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Form Styles */
input,
textarea {
    width: 100%;
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

button {
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 2px;
}

button:hover {
    background: #4e342e;
    /* Darker shade */
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }

    h1 {
        font-size: 2rem;
    }
}