* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3D2817;
    --accent: #CC5500;
    --background: #FAEBD7;
    --highlight: #CD7F32;
    --text-dark: #2C1810;
    --text-light: #5C4033;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Karla', sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Text', serif;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

header {
    background-color: var(--primary);
    color: var(--background);
    padding: 1rem 0;
    min-height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--background);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav ul li a {
    color: var(--background);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--background);
    transition: all 0.3s ease;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
}

.mobile-nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

section {
    margin: 2rem 0;
    padding: 0 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--text-dark) 100%);
    color: var(--background);
    padding: 4rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/wood-texture.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--background);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--accent);
    color: var(--background);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
    cursor: pointer;
    font-family: 'Karla', sans-serif;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--highlight);
    border-color: var(--highlight);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--background);
    color: var(--background);
}

.btn-secondary:hover {
    background-color: var(--background);
    color: var(--primary);
}

.wood-section {
    background-image: url('../images/wood-texture.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    padding: 4rem 1rem;
    position: relative;
}

.wood-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(61, 40, 23, 0.7);
}

.wood-section .container {
    position: relative;
    z-index: 1;
    color: var(--background);
}

.wood-section h2 {
    color: var(--background);
}

.before-after-container {
    max-width: 900px;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.before-after-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.before-after-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.before-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    clip-path: inset(0 0 0 0);
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: var(--highlight);
    cursor: ew-resize;
    z-index: 10;
}

.slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: var(--highlight);
    border: 3px solid var(--background);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background-color: var(--background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card h3 {
    margin-bottom: 0.5rem;
}

form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--background);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--text-light);
    border-radius: 4px;
    font-family: 'Karla', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

form textarea {
    resize: vertical;
    min-height: 150px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

.checkbox-group label {
    font-weight: 400;
    cursor: pointer;
}

footer {
    background-color: var(--primary);
    color: var(--background);
    padding: 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--background);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--background);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.copyright-links {
    margin-top: 0.5rem;
}

.copyright-links a {
    margin: 0 0.5rem;
    color: var(--background);
    text-decoration: underline;
}

.privacy-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary);
    color: var(--background);
    padding: 1.5rem;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: none;
}

.privacy-popup.active {
    display: block;
}

.privacy-popup-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.privacy-popup p {
    flex: 1;
    min-width: 250px;
}

.privacy-popup-buttons {
    display: flex;
    gap: 1rem;
}

.policy-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem 0 1rem;
}

.policy-page h1 {
    margin-bottom: 2rem;
}

.policy-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.policy-page p {
    margin-bottom: 1rem;
}

.policy-page ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.policy-page li {
    margin-bottom: 0.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    body {
        hyphens: auto;
    }
    .btn-secondary{
        margin-top: 1rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    nav ul {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mobile-nav ul {
        display: flex;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .before-after-slider {
        height: 300px;
    }
    
    .privacy-popup-content {
        flex-direction: column;
        text-align: center;
    }
    
    .privacy-popup-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .policy-page {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    section {
        margin: 1.5rem 0;
    }
}

