:root {
    --primary-color: #111111;
    --secondary-color: #1c1c1c;
    --accent-color: #c4a35a;
    --accent-dark: #9b7d3a;
    --accent-soft: rgba(196, 163, 90, 0.14);
    --text-color: #161616;
    --text-muted: #6b6b6b;
    --white: #ffffff;
    --off-white: #f6f4ef;
    --border-color: #e6e1d6;
    --danger: #b42318;
    --success: #027a48;
    --shadow: 0 18px 50px rgba(17, 17, 17, 0.12);
    --radius: 18px;
    --container: 1240px;
    --header-height: 108px;
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "Manrope", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-color);
    background: var(--white);
    line-height: 1.7;
    overflow-x: clip;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

html.nav-open,
body.nav-open {
    overflow: hidden;
    touch-action: none;
}

img, svg, video, iframe, embed { max-width: 100%; }
img, video { height: auto; display: block; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font-family: inherit; font-size: 16px; }
button, a { touch-action: manipulation; }

.container-xl {
    width: min(calc(100% - 32px), var(--container));
    margin-inline: auto;
}

.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.bg-soft { background: var(--off-white); }
.bg-dark { background: var(--primary-color); color: var(--white); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--accent-color);
}

.display-title,
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.15;
}

.display-title { font-size: clamp(2.4rem, 5vw, 4.6rem); margin: 0 0 18px; overflow-wrap: break-word; }
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); overflow-wrap: break-word; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); overflow-wrap: break-word; }
h3 { font-size: 1.45rem; overflow-wrap: break-word; }

.lead { font-size: 1.08rem; color: var(--text-muted); max-width: 640px; }

.btn-gold,
.btn-dark,
.btn-line,
.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: .02em;
    transition: .25s ease;
}

.btn-gold { background: var(--accent-color); color: #111; }
.btn-gold:hover { background: var(--accent-dark); color: #fff; }
.btn-dark { background: var(--primary-color); color: #fff; }
.btn-dark:hover { background: #000; color: var(--accent-color); }
.btn-line { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn-line:hover { background: #fff; color: #111; }
.btn-white { background: #fff; color: #111; }
.btn-white:hover { background: var(--accent-color); }

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1040;
    height: calc(var(--header-height) + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    background: #000;
    transition: .3s ease;
}

.site-header .header-inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-logo { display: flex; align-items: center; max-width: 320px; }
.brand-logo img { max-height: 92px; width: auto; background: transparent; mix-blend-mode: lighten; }

.nav-desktop { display: flex; align-items: center; gap: 22px; }
.nav-desktop a {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    position: relative;
}
.nav-desktop a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -8px;
    width: 0; height: 1px;
    background: var(--accent-color);
    transition: .25s ease;
}
.nav-desktop a:hover::after,
.nav-desktop a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; }
.header-phone i { color: var(--accent-color); margin-right: 6px; }

.site-header.is-sticky {
    background: rgba(0,0,0,.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.menu-toggle {
    display: none;
    width: 46px; height: 46px;
    border: 1px solid rgba(255,255,255,.2);
    background: transparent;
    color: #fff;
    border-radius: 50%;
}

.mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,.96);
    transform: translateX(100%);
    transition: .35s ease;
    z-index: 1050;
    padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.mobile-nav.open { transform: none; }
.mobile-nav img { max-width: min(180px, 58vw); height: auto; mix-blend-mode: lighten; }
.mobile-nav a { display: block; color: #fff; font-size: 1.4rem; font-family: var(--font-display); padding: 12px 0; }

.page-hero,
.hero-slider { position: relative; min-height: 100svh; min-height: 100dvh; color: #fff; overflow: hidden; }
.hero-slider .carousel-inner,
.hero-slider .carousel-item { min-height: 100svh; min-height: 100dvh; }
.hero-slide {
    min-height: 100svh;
    min-height: 100dvh;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-slide::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.28) 70%, rgba(0,0,0,.15) 100%);
}
.hero-content, .page-hero-content {
    position: relative;
    z-index: 2;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
}
.page-hero { min-height: 52vh; }
.page-hero-content { min-height: 52vh; padding: 140px 0 60px; }

.carousel-control-prev,
.carousel-control-next { width: 8%; z-index: 3; }
.hero-slider .carousel-indicators { z-index: 3; margin-bottom: 36px; }
.hero-slider .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,.45);
    border: 0;
    opacity: 1;
}
.hero-slider .carousel-indicators .active { background-color: var(--accent-color); }

.stats-bar {
    margin-top: -48px;
    position: relative;
    z-index: 3;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.stat-item { padding: 32px 24px; border-right: 1px solid rgba(255,255,255,.08); }
.stat-item:last-child { border-right: 0; }
.stat-number {
    font-family: var(--font-display);
    font-size: 2.6rem;
    color: var(--accent-color);
    line-height: 1;
}
.stat-label { margin-top: 8px; color: rgba(255,255,255,.72); font-size: 14px; }

.split-about { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; height: 560px; object-fit: cover; border-radius: 24px; }
.about-badge {
    position: absolute;
    left: -18px; bottom: 28px;
    background: var(--accent-color);
    color: #111;
    padding: 22px 24px;
    border-radius: 16px;
    max-width: 190px;
    font-weight: 700;
}

.project-grid,
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.project-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
    height: 100%;
    transition: .3s ease;
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.project-card .thumb { position: relative; overflow: hidden; height: 260px; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: .6s ease; }
.project-card:hover .thumb img { transform: scale(1.08); }
.project-card .badge-status {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--accent-color);
    color: #111;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
}
.project-card .body { padding: 22px; }
.project-card .meta { color: var(--text-muted); font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap; }
.project-card h3 { margin: 8px 0 10px; font-size: 1.55rem; }

.feature-grid, .why-grid { display: grid; gap: 22px; }
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.why-grid { grid-template-columns: repeat(3, 1fr); }
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}
.service-grid > .service-card {
    min-width: 0;
}

.icon-card, .service-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    height: 100%;
    transition: .25s ease;
}
.service-card {
    display: flex;
    flex-direction: column;
    padding: 26px 22px 22px;
    border-radius: 20px;
    min-height: 0;
    height: auto;
}
.service-card h2,
.service-card h3 {
    font-size: 1.4rem;
    margin: 0 0 10px;
}
.service-card p {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 16px;
    flex: 1 1 auto;
}
.service-card .icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 22px;
    margin-bottom: 14px;
    flex: 0 0 auto;
}
.service-card a {
    margin-top: auto;
}
.icon-card:hover, .service-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}
.icon-wrap {
    width: 54px; height: 54px;
    border-radius: 14px;
    display: grid; place-items: center;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 22px;
    margin-bottom: 16px;
}

.cta-band {
    background:
        linear-gradient(90deg, rgba(17,17,17,.86), rgba(17,17,17,.55)),
        url("../images/about-team.jpg") center/cover;
    color: #fff;
    border-radius: 28px;
    padding: 64px 48px;
}
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}
.cta-actions a { flex: 1 1 160px; }

.site-footer {
    background: #0d0d0d;
    color: rgba(255,255,255,.78);
    padding: 80px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1fr; gap: 36px; }
.site-footer h3, .site-footer h4 { color: #fff; margin-bottom: 18px; }
.site-footer a { color: rgba(255,255,255,.74); }
.site-footer a:hover { color: var(--accent-color); }
.footer-logo { max-width: 260px; margin-bottom: 16px; mix-blend-mode: lighten; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
    width: 40px; height: 40px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    display: grid; place-items: center;
}
.footer-bottom {
    margin-top: 48px;
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 18px 0;
    font-size: 14px;
}

.whatsapp-float {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    width: 58px; height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: grid; place-items: center;
    font-size: 28px;
    z-index: 1030;
    box-shadow: 0 12px 30px rgba(37,211,102,.35);
}
.mobile-cta {
    position: fixed;
    inset: auto 0 0 0;
    background: #111;
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    z-index: 1020;
    padding-bottom: env(safe-area-inset-bottom);
}
.mobile-cta a {
    color: #fff;
    text-align: center;
    padding: 12px 6px;
    font-size: 12px;
    font-weight: 700;
    border-right: 1px solid rgba(255,255,255,.08);
}
.mobile-cta a i { display: block; color: var(--accent-color); font-size: 18px; margin-bottom: 4px; }

.breadcrumb-wrap { font-size: 14px; color: rgba(255,255,255,.75); }
.breadcrumb-wrap a { color: #fff; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 16px; height: 260px; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: .45s ease; }
.gallery-item:hover img { transform: scale(1.07); }

.filter-bar {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-bottom: 28px;
}
.filter-chip {
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
}
.filter-chip.active, .filter-chip:hover { background: var(--primary-color); color: #fff; border-color: #111; }

.detail-cover { border-radius: 24px; overflow: hidden; margin-bottom: 28px; }
.detail-cover img { width: 100%; height: 520px; object-fit: cover; }
.meta-box, .info-card {
    background: var(--off-white);
    border-radius: 20px;
    padding: 24px;
}
.unit-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}
.unit-table table { min-width: 640px; }
.map-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 240px;
    overflow: hidden;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.content-body img,
.content-body iframe,
.content-body table { max-width: 100%; }
.content-body table { display: block; overflow-x: auto; }
.lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,.92);
    display: none; z-index: 2000; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; }
.lightbox .nav-btn, .lightbox .close-btn {
    position: absolute; background: transparent; border: 0; color: #fff; font-size: 32px;
}
.lightbox .close-btn { top: 18px; right: 24px; }
.lightbox .prev { left: 18px; }
.lightbox .next { right: 18px; }

.form-control, .form-select, textarea.form-control {
    min-height: 52px;
    border-radius: 12px;
    border-color: #ddd6c8;
    padding: 12px 14px;
    font-size: 16px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 .2rem var(--accent-soft);
}

.empty-state { padding: 48px 20px; text-align: center; color: var(--text-muted); }

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    animation: reveal .7s ease forwards;
    animation-play-state: paused;
}
[data-reveal].is-visible { animation-play-state: running; }
@keyframes reveal { to { opacity: 1; transform: none; } }

@media (hover: none) {
    .project-card:hover,
    .icon-card:hover,
    .service-card:hover { transform: none; }
    .project-card:hover .thumb img,
    .gallery-item:hover img { transform: none; }
}

@media (max-width: 991px) {
    :root { --header-height: 72px; }
    .nav-desktop, .header-actions .header-phone, .header-actions .btn-gold { display: none; }
    .menu-toggle { display: grid; place-items: center; flex-shrink: 0; }
    .brand-logo { max-width: min(220px, 58vw); min-width: 0; }
    .brand-logo img { max-height: 52px; }
    .site-header { background: #000; }
    .header-inner { gap: 12px; }
    .project-grid,
    .post-grid,
    .stats-grid,
    .feature-grid,
    .gallery-grid,
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .split-about,
    .why-grid { grid-template-columns: 1fr; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split-about { gap: 28px; }
    .about-media img { height: min(380px, 56vw); }
    .about-badge { left: 12px; right: 12px; max-width: none; bottom: 16px; }
    .cta-band { padding: 36px 22px; border-radius: 20px; }
    .cta-actions { justify-content: stretch; }
    .mobile-cta { display: grid; }
    .whatsapp-float { display: none; }
    body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
    .detail-cover img { height: 280px; }
    .hero-content, .page-hero-content {
        padding: calc(var(--header-height) + env(safe-area-inset-top) + 28px) 0 96px;
    }
    .page-hero,
    .page-hero-content { min-height: 0; }
    .page-hero-content { padding-bottom: 40px; }
    .hero-slider .carousel-indicators { margin-bottom: calc(80px + env(safe-area-inset-bottom)); }
    .carousel-control-prev,
    .carousel-control-next { width: 44px; }
    .stats-bar { margin-top: -28px; }
    .service-card { min-height: 0; padding: 22px 20px; }
    .service-card h2, .service-card h3 { font-size: 1.55rem; }
    .filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        margin-right: -16px;
        padding-right: 16px;
    }
    .filter-chip { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; }
    .mobile-cta a { min-height: 56px; display: grid; place-items: center; padding: 10px 4px; }
    .lightbox img { max-width: 94vw; max-height: 78svh; }
    .lightbox .close-btn { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
}

@media (max-width: 640px) {
    :root { --header-height: 64px; }
    .brand-logo { max-width: min(180px, 56vw); }
    .brand-logo img { max-height: 44px; }
    .project-grid,
    .post-grid,
    .feature-grid,
    .why-grid,
    .footer-grid,
    .gallery-grid { grid-template-columns: 1fr; }
    .service-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .section { padding: 56px 0; }
    .stat-item { padding: 22px 16px; border-right: 1px solid rgba(255,255,255,.08); }
    .stat-item:nth-child(2n) { border-right: 0; }
    .stat-item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
    .display-title { font-size: clamp(1.85rem, 8vw, 2.6rem); }
    h1 { font-size: clamp(1.7rem, 7vw, 2.3rem); }
    h2 { font-size: clamp(1.45rem, 6vw, 2rem); }
    .hero-content .d-flex,
    .cta-actions { width: 100%; }
    .hero-content .btn-gold,
    .hero-content .btn-line,
    .cta-actions a { flex: 1 1 calc(50% - 6px); min-width: 0; padding: 0 12px; }
    .project-card .thumb,
    .gallery-item { height: 220px; }
    .project-card h3 { font-size: 1.35rem; }
    .about-media img { height: 260px; }
    .footer-logo { max-width: 180px; }
    .map-embed { aspect-ratio: 4 / 3; }
    .container-xl { width: min(calc(100% - 24px), var(--container)); }
}
