/* 
   Vieux Bois Chalets Agencements - Main Stylesheet 
*/

:root {
    /* Colors */
    /* Vieux bois inspired brown - darker and richer */
    --primary-color: #4a342e;
    /* Lighter wood tone */
    --secondary-color: #8d6e63;
    /* Light beige/paper */
    --accent-color: #d7ccc8;
    --text-dark: #2c2c2c;
    --text-light: #f9f9f9;
    --white: #ffffff;
    /* Cleaner white background */
    --background: #ffffff;

    /* Spacing - Increased for airy feel */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1.5rem;
    --spacing-md: 3rem;
    --spacing-lg: 6rem;
    --spacing-xl: 8rem;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    /* More breathable */
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--background);
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    /* Removed all-caps for elegance */
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.section-dark,
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
    color: var(--white) !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Constants/Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    /* Larger touch target */
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 600;
    /* Modern cleaner font for buttons */
    font-family: var(--font-body);
    cursor: pointer;
    /* Slight radius */
    border-radius: 2px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s;
}

.btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Utilities */
.bg-light {
    /* Very light grey for section contrast */
    background-color: #f7f7f7;
}

.btn-inverse {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.btn-inverse:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.text-white {
    color: var(--white);
}

.section-padding {
    padding: var(--spacing-lg) 0;
}

/* Header */
header {
    background-color: var(--white);
    /* Softer shadow */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 0.8rem 0;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.header-top .container {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem var(--spacing-sm);
}

.logo a {
    /* Slightly smaller but bolder */
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-body);
    /* Modern font for logo text if image implies text */
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-menu ul {
    display: flex;
    gap: var(--spacing-md);
}

.nav-menu a {
    /* Switch to clearer sans-serif for nav */
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    /* More subtle hover */
    border-bottom: 2px solid var(--secondary-color);
}



/* CONTACT PROTECTION & COPY */
.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.contact-type-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
    font-size: 0.95rem;
    line-height: 1;
    /* Helps with vertical centering */
}

.contact-link:hover {
    color: var(--secondary-color);
}

.copy-btn {
    background: none;
    border: none;
    padding: 4px;
    margin-left: 4px;
    /* Space between text and copy button */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    opacity: 0.6;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.copy-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

.copy-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.copy-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.copy-indicator.active {
    opacity: 1;
    visibility: visible;
    bottom: 40px;
}

/* Hamburger (Mobile) - Hidden by default on Desktop */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* FOOTER */
footer {
    /* Very dark grey for footer */
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding: var(--spacing-lg) 0 var(--spacing-md);
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col h3 {
    font-family: var(--font-heading);
    color: var(--white);
    /* Thinner line */
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: var(--spacing-xs);
    display: inline-block;
    margin-bottom: var(--spacing-md);
    /* Lighter weight for elegance */
    font-weight: 400;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: var(--spacing-md);
    font-size: 0.85rem;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        /* Hide top bar on mobile to save space */
        display: none;
    }

    .hamburger {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
        /* JS will toggle this */
        display: none;
        flex-direction: column;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-menu ul li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: var(--spacing-sm);
        border-bottom: 1px solid #eee;
    }

    .section-padding {
        padding: var(--spacing-md) 0;
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 4px solid var(--white);
    border-radius: 4px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--secondary-color);
}

/* Specific cursor for clickable images */
img[data-lightbox-trigger="true"] {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

img[data-lightbox-trigger="true"]:hover {
    transform: scale(1.02);
}

/* Features Section Redesign */
.section-features {
    position: relative;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    overflow: hidden;
    /* For any decorative elements */
}

.section-title-white {
    color: var(--white) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    padding-bottom: 1rem;
    margin-bottom: 3.5rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    /* Slight transparency */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2.5rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-img-wrapper {
    width: 180px;
    height: 180px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-img-wrapper {
    border-color: var(--secondary-color);
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.feature-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.feature-card:hover .feature-img-wrapper img {
    transform: scale(1.15);
}

.feature-card h4 {
    margin-bottom: 0.8rem;
    font-size: 1.35rem;
    color: var(--white) !important;
    font-family: var(--font-heading);
    font-weight: 500;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}