@import url('/newmoban/_external/fonts.googleapis.com/css2__q_family-Playfair-Display-wght-400-700-family-Segoe-UI-wght-400-600-display-swap.css');

:root {
    --primary-color: #3e2723; /* Dark Wood */
    --secondary-color: #5d4037; /* Medium Wood */
    --accent-color: #8d6e63; /* Light Wood */
    --light-color: #efebe9; /* Off-white */
    --text-color: #212121;
    --white: #ffffff;
    --hover-color: #d7ccc8;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid rgba(62, 39, 35, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--accent-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header */
header {
    background-color: var(--primary-color);
    background-image: url('/newmoban/_external/demo.mobanwang.com/mb/lo202602/202602058/html/images/wood-pattern.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 4px solid var(--accent-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid var(--accent-color);
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.2);
}

.logo a {
    color: var(--white);
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.1rem;
}

nav ul li a:hover, nav ul li a.active {
    color: #d5d5d5;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
}

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    background-image: linear-gradient(rgba(62, 39, 35, 0.7), rgba(62, 39, 35, 0.7)), url('/newmoban/_external/demo.mobanwang.com/mb/lo202602/202602058/html/images/home_header.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 700px;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 4px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Sections */
.section {
    padding: 5rem 2rem;
}

.bg-light {
    background-color: var(--light-color);
}

.bg-white {
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background-color: var(--accent-color);
    background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(0,0,0,0.1) 5px, rgba(0,0,0,0.1) 10px);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 10px solid #DEB887; /* Light wood frame look */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Gallery/Work */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.work-item {
    position: relative;
    overflow: hidden;
    height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(62, 39, 35, 0.9);
    color: var(--white);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.work-item:hover .work-overlay {
    transform: translateY(0);
}

.work-overlay h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

/* About */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1 1 500px;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

.about-image {
    flex: 1 1 400px;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 5px solid var(--accent-color);
    z-index: 0;
}

.about-image img {
    position: relative;
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Contact */
.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--accent-color);
}

.contact-form {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--light-color);
    padding: 2.5rem;
    border-radius: 8px;
    position: relative;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial-card::before {
    content: '\201C';
    font-size: 5rem;
    color: rgba(62, 39, 35, 0.1);
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: serif;
}

.quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #555;
    position: relative;
    z-index: 1;
}

.client-info {
    display: flex;
    align-items: center;
}

.client-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 2px solid var(--accent-color);
}

.client-info h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.client-info span {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Back to Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    width: 50px;
    height: 50px;
    border: none;
    outline: none;
    background-color: transparent;
    background-image: url('/newmoban/_external/demo.mobanwang.com/mb/lo202602/202602058/html/wood-arrow.svg');
    background-size: cover;
    cursor: pointer;
    transition: transform 0.3s;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border-radius: 8px; /* Matches SVG rx/ry */
}

#backToTop:hover {
    transform: translateY(-3px);
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    background-image: url('/newmoban/_external/demo.mobanwang.com/mb/lo202602/202602058/html/images/wood-pattern.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    border-top: 4px solid var(--accent-color);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(62, 39, 35, 0.6);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--light-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    color: var(--light-color);
    padding: 4rem 0 2rem;
    margin-top: auto;
    border-top: 5px solid var(--accent-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Instagram Grid */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.insta-item {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 4px;
    border: 2px solid var(--accent-color);
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.insta-item:hover img {
    transform: scale(1.1);
}

/* Newsletter in Footer */
.newsletter-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
}

.newsletter-form button {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(62, 39, 35, 0.95); /* Dark wood theme */
    color: #fff;
    padding: 1rem;
    text-align: center;
    z-index: 1000;
    display: none; /* Hidden by default */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    border-top: 3px solid var(--secondary-color);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.cookie-btn:hover {
    background-color: #a1887f; /* Lighter shade */
}

/* Modal/Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    border: 5px solid var(--accent-color);
    border-radius: 4px;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    text-align: center;
    color: var(--white);
    padding: 10px 0;
    height: 150px;
}

.modal-caption h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px) {
    .modal-content {
        width: 95%;
    }
}
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 1rem 0;
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 10px 10px rgba(0,0,0,0.2);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 0;
    }

    nav ul li a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        flex-direction: column-reverse;
    }
    
    .about-image, .about-text {
        flex: auto;
        width: 100%;
    }
}