@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary-color: #8D6E63; /* Medium Coffee */
    --secondary-color: #D7CCC8; /* Light Beige */
    --accent-color: #BCAAA4; /* Pastel Brown */
    --accent-orange: #FFCC80; /* Soft Peach Orange */
    --accent-orange-light: #FFF3E0; /* Very Light Orange */
    --bg-light: #FDFBF9; /* Creamy White */
    --text-dark: #3E2723; /* Dark Chocolate */
    --text-muted: #6D4C41;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --glass: rgba(255, 255, 255, 0.7);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .brand-font {
    font-family: 'Playfair Display', serif;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: var(--white); /* White background as requested */
    box-shadow: var(--shadow-soft);
}

nav.scrolled {
    padding: 0.8rem 5%;
}

.logo img {
    height: 80px; /* Enlarged logo */
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

nav.scrolled .logo img {
    height: 60px; /* Slightly smaller on scroll but still clearly visible */
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--white);
    overflow: hidden;
    border-bottom: 1px solid var(--accent-orange); /* 1px orange separation for hero */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
    filter: brightness(0.6);
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem; /* Thinner padding as requested */
    background: var(--accent-orange); /* Orange background as requested */
    color: var(--text-dark); /* Darker text for better contrast on orange */
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 1.5px solid var(--accent-orange);
}

.btn:hover {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* --- Projects Section --- */
.section {
    padding: 8rem 10%;
    border-bottom: 1px solid var(--accent-orange); /* 1px orange separation */
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-header .line {
    width: 60px;
    height: 3px;
    background: var(--accent-orange); /* Soft orange line */
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(141, 110, 99, 0.15);
}

.project-img {
    height: 400px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #BF360C; /* Soft burnt orange for titles */
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Floating Elements --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(10deg);
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: -100px;
    left: 30px;
    right: 30px;
    background: var(--accent-orange-light); /* Soft orange background */
    padding: 1.5rem 2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: all 0.6s ease;
    border: 1px solid var(--accent-orange);
}

.cookie-banner.active {
    bottom: 30px;
}

.cookie-banner p {
    font-size: 0.9rem;
    max-width: 80%;
}

.cookie-btn {
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* --- Footer --- */
footer {
    background: var(--text-dark);
    color: var(--secondary-color);
    padding: 5rem 10% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p, .footer-section a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

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

/* --- Contact Section --- */
.contact-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--secondary-color);
}

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

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-form input, 
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form input:focus, 
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    background: #fffcf9;
}

.btn-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
}

/* Captcha Styles */
.captcha-container {
    margin-bottom: 2rem;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.captcha-code {
    background: #3e2723;
    color: #fff;
    padding: 0.5rem 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 5px;
    border-radius: 5px;
    user-select: none;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
    /* Grainy effect for captcha simulation */
    background-image: radial-gradient(circle, #4e342e 1px, transparent 1px);
    background-size: 4px 4px;
}

.refresh-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.refresh-btn:hover {
    transform: rotate(180deg);
}

.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.form-status.success { color: #2e7d32; }
.form-status.error { color: #d32f2f; }

/* Contact Image */
.contact-image {
    position: relative;
    height: 100%;
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(62, 39, 35, 0.8));
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
}

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-image {
        display: none;
    }
}

@media (max-width: 600px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .section { padding: 5rem 5%; }
    .projects-grid { grid-template-columns: 1fr; }
    .cookie-banner { flex-direction: column; gap: 1rem; text-align: center; }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 2rem;
        gap: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        animation: fadeInDown 0.4s ease forwards;
    }

    @keyframes fadeInDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* --- Map Section Styles --- */
.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    color: var(--white);
    font-size: 0.95rem;
}

.btn-map.google {
    background: #4285F4;
}

.btn-map.waze {
    background: #33CCFF;
}

.btn-map:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    filter: brightness(1.1);
}

.btn-map i {
    font-size: 1.2rem;
}

/* --- Instagram Feed Styles --- */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.ig-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    display: block;
}

.ig-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.ig-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(141, 110, 99, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(3px);
}

.ig-item:hover .ig-overlay {
    opacity: 1;
}

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

@media (max-width: 768px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
