/* NFR-1 & NFR-2: Global Resets and Core Styling */
:root {
    /* NFR-1: Color Palette suggesting natural materials */
    --color-primary: #385133; /* Deep Green */
    --color-secondary: #C8AA74; /* Subtle Neutral/Earth Tone */
    --color-neutral: #f9f9f9;  /* Clean Background */
    --color-text: #1a1a1a;
    --color-light-text: #ffffff;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-neutral);
    /* UN-5: Mobile Accessibility (Mobile-First) */
    overflow-x: hidden; 
}

/* NFR-2: WCAG 2.1 AA Contrast Standard Applied to Headings/Text */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 0.5em;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s;
}

/* --- Navigation --- */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--color-light-text);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav-links {
    list-style: none;
    display: none; /* Hidden by default for mobile */
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-light-text);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.nav-links a {
    display: block;
    padding: 1rem 5%;
    border-top: 1px solid #eee;
    color: var(--color-text);
}

.nav-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: block; /* Visible on mobile */
}

/* --- Call to Action Buttons --- */
.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 1.5rem;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
}

.primary-cta {
    background-color: var(--color-primary);
    color: var(--color-light-text);
}

.primary-cta:hover {
    background-color: #2a3c26;
}

.secondary-cta {
    background-color: var(--color-secondary);
    color: var(--color-text);
}

.secondary-cta:hover {
    background-color: #bfa168;
}

/* --- Section Styling --- */
section {
    padding: 4rem 5%;
    min-height: 80vh;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: #666;
}

/* --- FR-1: Hero Section --- */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* FR-1: Minimum height */
    text-align: center;
}

.hero-bg-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #385133; /* Placeholder Color (Deep Green) */
    opacity: 0.8;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-light-text);
    padding: 1rem;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--color-light-text);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    margin-top: 1rem;
}


/* --- FR-1: About Section --- */
.about-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    background-color: var(--color-light-text);
}

.about-content {
    flex: 1;
}

.about-img-placeholder {
    /* FR-1: Fixed dimensions for About Section Image Placeholder */
    width: 100%;
    height: 400px; /* Reduced for mobile stacking */
    max-width: 500px;
    background-color: var(--color-neutral);
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
}

/* --- FR-2: Gallery Section --- */
.gallery-section {
    background-color: var(--color-neutral);
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.tab {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-secondary);
    background-color: transparent;
    color: var(--color-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
}

.tab.active {
    background-color: var(--color-secondary);
    color: var(--color-light-text);
}

.tab:hover {
    background-color: #f0f0f0;
}

.tab.active:hover {
    background-color: var(--color-secondary);
}


/* Styling for the switching title (UX Hint) */
.category-switch-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--color-text); /* Use a darker color than the main title */
    margin-top: 1rem;
    margin-bottom: 2rem;
    transition: opacity 0.3s ease-in-out;
}


.furniture-grid {
    display: grid;
    /* Mobile-first: single column */
    grid-template-columns: 1fr;
    gap: 2rem;
    transition: opacity 0.5s ease-in-out;
}

.furniture-grid.active {
    display: grid;
    opacity: 1;
}

.furniture-grid:not(.active) {
    display: none;
    opacity: 0;
}

.furniture-card {
    background-color: var(--color-light-text);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.card-img-placeholder {
    /* FR-2: Fixed size of 600px x 750px for all gallery images */
    width: 100%;
    height: 400px; /* Adjusted height for mobile display while maintaining aspect ratio via object-fit */
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.9rem;
}

.card-details {
    padding: 1.5rem;
}

.item-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* --- FR-1 & FR-3: Contact Section --- */
.contact-section {
    text-align: center;
    background-color: var(--color-primary);
    color: var(--color-light-text);
    min-height: 40vh;
}

.contact-section h2, .contact-section p {
    color: var(--color-light-text);
}

.contact-detail {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- FR-4: Footer --- */
.site-footer {
    text-align: center;
    padding: 1rem 5%;
    font-size: 0.8rem;
    background-color: var(--color-text);
    color: #aaa;
}

/* --- NFR-2: Media Query for Desktop/Tablet (Responsiveness) --- */
@media (min-width: 768px) {
    /* Navigation: Desktop layout */
    .nav-links {
        display: flex;
        flex-direction: row;
        width: auto;
        position: static;
        box-shadow: none;
        gap: 1.5rem;
    }

    .nav-links a {
        padding: 0;
        border-top: none;
    }
    
    .nav-toggle {
        display: none;
    }

    /* About Section: Side-by-side layout */
    .about-section {
        flex-direction: row;
        align-items: center;
    }

    .about-img-placeholder {
        /* FR-1: Fixed dimensions for About Section Image Placeholder */
        height: 700px;
        width: 600px;
        flex-shrink: 0;
    }

    /* Gallery Section: Grid changes */
    .furniture-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on tablet/desktop */
    }
    
    .card-img-placeholder {
         /* Maintain aspect ratio close to 600x750px */
         height: 450px; 
    }
}

/* Further desktop optimization */
@media (min-width: 1200px) {
    .furniture-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on large desktop */
    }
}
/* --- Contact Details Link Styling --- */

/* Ensures the email link stands out in the contact details */
.contact-detail a {
    color: #4CAF50; /* Example: A distinct green color, or use a classic blue like #007bff */
    text-decoration: none; /* Removes the underline by default */
    font-weight: bold;
    transition: color 0.3s;
}

.contact-detail a:hover {
    color: #388E3C; /* Darker green on hover */
    text-decoration: underline; /* Adds underline on hover for clarity */
}