:root {
    --brand: #dc3545;
    --brand-dark: #b02a37;
    --ink: #1f2430;
    --muted: #6c757d;
    --soft: #f6f7f9;
}

html { scroll-behavior: smooth; }
body { color: var(--ink); }
img { max-width: 100%; }

/* Navbar */
.site-navbar { background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); padding: .9rem 0; }
.site-navbar .container { padding-left: 1.25rem; padding-right: 1.25rem; }
.site-navbar .navbar-brand { margin-right: 2.5rem; padding: 0; }
.site-navbar .navbar-brand img { height: 48px; width: auto; }
.site-navbar .navbar-toggler { padding: .5rem .7rem; }
.site-navbar .nav-link { font-weight: 500; padding: .7rem 1.15rem; color: var(--ink); }
.site-navbar .nav-link:hover { color: var(--brand); }
.site-navbar .nav-link.active { color: var(--brand); font-weight: 700; }
@media (min-width: 1200px) {
    .site-navbar .navbar-nav { gap: .35rem; }
    .site-navbar .nav-link { border-radius: .5rem; }
    .site-navbar .nav-link.active { box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
    .site-navbar .nav-cta { margin-left: 1rem; }
}
@media (max-width: 1199.98px) {
    .site-navbar .navbar-collapse { margin-top: .9rem; padding-top: .5rem; border-top: 1px solid #eceef1; }
    .site-navbar .nav-link { padding: .85rem .25rem; border-bottom: 1px solid #f2f3f5; }
    .site-navbar .nav-cta { padding: 1rem 0 .5rem; }
    .site-navbar .nav-cta .btn { display: block; width: 100%; padding: .75rem 1rem; }
}

/* Hero (beranda) */
.hero {
    position: relative; color: #fff; display: flex; align-items: center;
    min-height: 88vh; background-size: cover; background-position: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.hero .container { position: relative; z-index: 1; }
.hero-title { font-size: clamp(2rem, 5vw, 4.25rem); line-height: 1.15; font-weight: 800; }

/* Header halaman dalam */
.page-header {
    position: relative; color: #fff; padding: 4.5rem 0 3.5rem;
    background: linear-gradient(135deg, #1f2430 0%, #3a1c20 100%); background-size: cover; background-position: center;
}
.page-header h1 { font-weight: 800; font-size: clamp(1.75rem, 4vw, 2.75rem); }
.page-header .breadcrumb { --bs-breadcrumb-divider-color: #ffffff99; --bs-breadcrumb-item-active-color: #fff; }
.page-header .breadcrumb a { color: #ffffffcc; text-decoration: none; }

/* Seksi */
.section { padding: 4.5rem 0; }
.section-soft { background: var(--soft); }
.eyebrow { color: var(--brand); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; }
.section-title { font-weight: 800; font-size: clamp(1.5rem, 3.2vw, 2.25rem); }

.icon-circle {
    width: 72px; height: 72px; border-radius: 50%; background: var(--soft);
    display: inline-flex; align-items: center; justify-content: center; color: var(--brand); font-size: 1.75rem;
}
.step-number {
    width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--brand); color: var(--brand);
    display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
.stat-number { color: var(--brand); font-weight: 800; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1; }

/* Kartu proyek & artikel */
.card-lift { background: #fff; border-radius: 1rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .07); overflow: hidden; transition: transform .2s ease; height: 100%; }
.card-lift:hover { transform: translateY(-4px); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: #dcdcdc; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.location-tag {
    position: absolute; left: 12px; bottom: 10px; font-size: .85rem; color: #fff;
    background: rgba(0, 0, 0, .45); padding: 2px 10px; border-radius: 999px;
}
.filter-pill {
    padding: .4rem 1rem; border-radius: 999px; background: #eef0f3; color: var(--ink);
    text-decoration: none; font-weight: 500; transition: .2s ease; display: inline-block;
}
.filter-pill:hover { background: #e0e3e8; color: var(--ink); }
.filter-pill.active { background: var(--brand); color: #fff; }

/* Testimoni */
.quote-card { background: #fff; border-radius: 1rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .07); padding: 1.5rem; height: 100%; }
.quote-mark { color: var(--brand); font-size: 2rem; line-height: 1; }
.avatar-initial {
    width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--brand);
    font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none;
}

/* Peta */
.map-wrap { position: relative; max-width: 960px; margin: 0 auto; }
.map-pin {
    position: absolute; transform: translate(-50%, -100%); color: var(--brand); font-size: 1.6rem;
    text-decoration: none; animation: pulse 1.4s infinite ease-in-out;
}
.map-pin:hover { color: var(--brand-dark); }
@keyframes pulse { 50% { transform: translate(-50%, -100%) scale(1.25); opacity: .65; } }

/* Galeri detail proyek */
.gallery-main { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-radius: 1rem; background: #dcdcdc; }
.gallery-thumb { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: .5rem; cursor: pointer; opacity: .8; }
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; outline: 2px solid var(--brand); }

/* Artikel */
.article-body { line-height: 1.85; font-size: 1.05rem; }
.article-body img { max-width: 100%; height: auto; border-radius: .5rem; }

/* CTA */
.cta-band { background: var(--brand); color: #fff; border-radius: 1.25rem; padding: 2.5rem 1.5rem; }

/* Footer & WhatsApp */
.site-footer { background: #15181f; color: #fff; }
.site-footer a { color: #ffffffa6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.wa-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 1030; width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.wa-float:hover { color: #fff; background: #1ebe5a; }

/* Testimoni berjalan (marquee): berhenti saat di-hover/fokus */
.marquee { overflow: hidden; padding: .75rem 0 1.5rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee-scroll var(--marquee-duration, 60s) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-item { flex: 0 0 auto; width: 360px; margin-right: 1.5rem; display: flex; }
.marquee-item .quote-card { width: 100%; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
@media (max-width: 575.98px) { .marquee-item { width: 290px; margin-right: 1rem; } }
@media (prefers-reduced-motion: reduce) {
    .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .marquee-track { animation: none; }
}

/* Hero carousel (beranda) */
.hero-carousel { position: relative; }
.hero-slide {
    position: relative; color: #fff; background-size: cover; background-position: center;
    /* Tepat satu layar dikurangi tinggi navbar (--nav-h diisi site.js) agar bagian putih di bawah tidak terlihat */
    min-height: calc(100vh - var(--nav-h, 97px));
    min-height: calc(100svh - var(--nav-h, 97px));
}
.hero-slide.active, .hero-slide.carousel-item-next, .hero-slide.carousel-item-prev { display: flex; align-items: center; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .45) 65%, rgba(0, 0, 0, .3) 100%); }
.hero-content { position: relative; z-index: 1; padding-top: 4rem; padding-bottom: 6rem; }
.hero-accent { color: #ff6b78; }
.hero-text { max-width: 640px; }
.hero-carousel .carousel-indicators { z-index: 3; margin-bottom: 1.75rem; }
.hero-carousel .carousel-indicators [data-bs-target] { width: 34px; height: 4px; border: 0; border-radius: 2px; }
.hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { z-index: 3; width: 7%; min-width: 48px; }
@media (max-width: 767.98px) {
    .hero-content { padding-top: 2.5rem; padding-bottom: 5rem; }
    .hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { display: none; }
}
.hero-title { text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.hero-text { text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.hero-accent { color: #ff7a85; }

/* Pagination */
.site-pagination { display: flex; flex-direction: column; align-items: center; gap: .75rem; margin-top: 1rem; }
.site-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.site-pagination li > a, .site-pagination li > span {
    min-width: 44px; height: 44px; padding: 0 .9rem; border-radius: 999px; background: #eef0f3; color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-weight: 600; text-decoration: none; transition: .2s ease;
}
.site-pagination li > a:hover { background: #e0e3e8; color: var(--brand); }
.site-pagination li.active > span { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(220, 53, 69, .35); }
.site-pagination li.disabled > span { opacity: .45; cursor: not-allowed; }
.site-pagination li.dots > span { background: transparent; min-width: 28px; padding: 0; }
.site-pagination .page-info { margin: 0; color: var(--muted); font-size: .875rem; }
@media (max-width: 575.98px) {
    .site-pagination .label { display: none; }
    .site-pagination li > a, .site-pagination li > span { min-width: 40px; height: 40px; padding: 0 .6rem; }
}
