:root {
    --ink: #0f0f10;
    --charcoal: #1a1a1c;
    --slate: #3d3d42;
    --stone: #6b6560;
    --sand: #a09888;
    --linen: #e8e0d2;
    --cream: #f5f0e8;
    --ivory: #faf8f4;
    --bronze: #b08d57;
    --bronze-light: #d4a574;
    --bronze-glow: #c9a96e;
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--linen);
    background: var(--ink);
    line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 3rem; } }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(15, 15, 16, 0.95);
    border-bottom: 1px solid rgba(232, 224, 210, 0.06);
    padding: 0.8rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-logo img { height: 42px; width: auto; }
.header-nav { display: none; gap: 2rem; }
@media (min-width: 1024px) { .header-nav { display: flex; } }
.header-nav a {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(232, 224, 210, 0.7);
}
.header-nav a:hover, .header-nav a.is-active { color: var(--bronze-glow); }
.header-wa { display: none; }
@media (min-width: 1024px) { .header-wa { display: inline-flex; } }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.9rem 1.4rem;
    border: 0;
}
.btn-whatsapp { background: #1a6c47; color: #fff; }
.btn-outline-dark {
    background: transparent;
    color: var(--charcoal);
    border: 1px solid rgba(26, 26, 28, 0.2);
}
.btn-outline-dark:hover { border-color: var(--bronze); color: var(--bronze); }

.mobile-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }
.mobile-toggle span { display: block; width: 24px; height: 1.5px; background: var(--linen); }
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 16, 0.98);
    z-index: 30;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
}
.mobile-menu.active { display: flex; }
.mobile-menu a { font-family: var(--font-heading); font-size: 1.6rem; color: var(--linen); }

.page-hero { padding: 4.5rem 0 2rem; background: var(--ivory); color: var(--charcoal); }
.label-upper {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bronze);
}
.heading-section {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-top: 0.8rem;
}
.lead { max-width: 640px; color: var(--stone); margin-top: 1rem; }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.filters a {
    border: 1px solid rgba(26, 26, 28, 0.15);
    color: var(--charcoal);
    padding: 0.45rem 0.8rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.filters a.is-active, .filters a:hover { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }

.portfolio { background: var(--ivory); color: var(--charcoal); padding: 1rem 0 5rem; }
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) {
    .projects-grid { grid-template-columns: repeat(3, 1fr); }
    .project-card:nth-child(1) { grid-column: span 2; }
}
.project-card { position: relative; overflow: hidden; display: block; color: inherit; min-height: 280px; background: var(--charcoal); }
.project-card img { width: 100%; height: 360px; object-fit: cover; transition: transform 0.6s var(--ease-smooth); }
.project-card:hover img { transform: scale(1.04); }
.project-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(15,15,16,0.78) 0%, rgba(15,15,16,0.05) 55%);
}
.project-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem; color: var(--ivory); }
.project-category { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze-glow); margin-bottom: 0.35rem; }
.project-title { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 500; }
.project-place { color: rgba(232,224,210,0.8); font-size: 0.85rem; margin-top: 0.25rem; }
.project-badge {
    position: absolute; top: 1rem; left: 1rem; z-index: 2;
    background: var(--bronze-glow); color: var(--ink);
    font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
    padding: 0.35rem 0.55rem;
}
.empty-state { padding: 3rem 0 4rem; color: var(--stone); }

.detail-hero { position: relative; min-height: 62vh; background: var(--charcoal); display: flex; align-items: flex-end; }
.detail-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero .veil { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,15,16,0.82), rgba(15,15,16,0.15)); }
.detail-heading { position: relative; z-index: 1; padding: 3rem 0 2.5rem; max-width: 1280px; margin: 0 auto; width: 100%; }
.detail-heading h1 { font-family: var(--font-heading); font-weight: 500; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.03em; line-height: 1.05; margin: 0.6rem 0; }
.back-link { color: var(--bronze-glow); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.detail-body { background: var(--ivory); color: var(--charcoal); padding: 4rem 0 5rem; }
.detail-copy { max-width: 760px; }
.detail-copy h2 { font-family: var(--font-heading); font-weight: 500; font-size: 2rem; margin: 0.6rem 0 1rem; }
.detail-copy p { color: var(--stone); margin-bottom: 1rem; }
.gallery { display: grid; grid-template-columns: 1fr; gap: 0.8rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery button { border: 0; padding: 0; background: var(--charcoal); }
.gallery img { width: 100%; height: 320px; object-fit: cover; }
.detail-cta { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; border-top: 1px solid rgba(26,26,28,0.08); padding-top: 2rem; }

.lightbox { border: 0; padding: 0; background: rgba(15,15,16,0.94); color: white; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(15,15,16,0.94); }
.lightbox-inner { height: 100%; display: flex; flex-direction: column; }
.lightbox-bar { display: flex; justify-content: space-between; padding: 1rem 1.2rem; }
.lightbox-bar button { background: none; border: 0; color: white; font-size: 0.9rem; }
.lightbox img { margin: auto; max-width: min(1100px, 92vw); max-height: 78vh; object-fit: contain; }

.site-footer { padding: 4rem 0 2rem; background: var(--ink); }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(232,224,210,0.06); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-brand img { height: 42px; margin-bottom: 1rem; }
.footer-brand p { color: var(--stone); max-width: 280px; font-size: 0.9rem; }
.footer-heading { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze-glow); margin-bottom: 1rem; }
.footer-links { list-style: none; display: grid; gap: 0.55rem; }
.footer-links a { color: var(--stone); }
.footer-links a:hover { color: var(--linen); }
.footer-bottom { padding-top: 1.4rem; text-align: center; color: var(--slate); font-size: 0.78rem; }

.whatsapp-float {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50;
    width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.whatsapp-float svg { width: 28px; height: 28px; }
