/* ============================================================
   PT. Brilian Inovatek Nusantara — Architecture About Stylesheet
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── CSS VARIABLES ── */
:root {
  --primary  : #111111;       /* hitam utama (brand, aktif, hover) */
  --accent   : #555555;       /* abu gelap (elemen sekunder) */
  --accent2  : #f5f5f5;       /* abu sangat terang (background highlight) */
  --light    : #fafafa;       /* background section */
  --white    : #ffffff;       /* putih murni */
  --text     : #111111;       /* teks utama — hitam */
  --muted    : #888888;       /* teks sekunder / tidak aktif */
  --border   : #e0e0e0;       /* garis border halus */
  --font     : 'Segoe UI', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
}

/* ── NAVBAR ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 100%;
  margin: 0;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 80px;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
  overflow: visible;
}

.nav-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
  overflow: visible;
  display: block;
}

.nav-logo-fallback {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  display: none;
}

.nav-taglines {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  align-self: center;
}

.nav-tagline-main {
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  font-weight: bold;
  font-style: italic;
}

/* ── NAV MENU (tengah) ── */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 0;
  margin-left: auto;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);           /* abu saat tidak aktif */
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text);            /* hitam saat hover */
}

/* Underline animasi saat hover */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--text);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);          /* underline muncul saat hover */
}

.nav-item-active .nav-link {
  color: var(--text);
  font-weight: 700;
}

/* Garis bawah aktif */
.nav-item-active .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--text);      /* garis hitam permanen */
  transform: scaleX(1);         /* selalu tampil */
  border-radius: 0;
}

/* ── NAV LOGO SUBTITLE ── */
.nav-logo-name {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 1px;
}

/* ── HAMBURGER (mobile) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.nav-hamburger-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.nav-hamburger-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.nav-hamburger-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── HERO PROJECTS ── */
.projects-hero {
  position: relative;
  width: 100%;
  height: 420px;
  background-image: url('../images/architecture/proj_hero.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.projects-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 40, 55, 0.62);
}

.projects-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.projects-hero-title {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--white);
  margin-bottom: 0;
}

.projects-hero-divider {
  width: 260px;
  height: 2px;
  background: var(--white);
  opacity: 0.6;
}

.projects-hero-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 1;
}

.breadcrumb-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--white);
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb-current {
  color: var(--white);
  font-weight: 600;
}

/* ── CLIENT LOGO SLIDER ── */
.clients {
  margin-top: 40px;
  padding: 32px 240px;
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.clients::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 1px;
  background: var(--border);
}

.clients-viewport {
  flex: 1;
  overflow: hidden;
}

.clients-track {
  display: flex;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.clients-item {
  flex: 0 0 25%; /* tampil 4 sekaligus */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  border-right: none;
}

.clients-item img {
  height: 130px;
  width: 130px;
  object-fit: contain;
}

.clients-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%; /* lingkaran */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
  margin: 0 24px;
}

.clients-arrow:hover {
  background: var(--text);
  color: var(--white);
}

/* ── PROJECTS SECTION ── */
.proj-section {
  padding: 64px 48px 80px;
  background: var(--white);
}

/* ── FILTER BAR ── */
.proj-filter-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.proj-filter-bar {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  padding: 0 8px;
  background: var(--white);
  flex-wrap: wrap;
  justify-content: center;
}

.proj-filter-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 18px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.proj-filter-btn:hover {
  color: var(--text);
}

.proj-filter-btn.proj-filter-active {
  color: #c9a84c;
}

.proj-filter-sep {
  color: var(--border);
  font-size: 1rem;
  user-select: none;
}

/* ── PROJECT GRID ── */
.proj-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── PROJECT CARD ── */
.proj-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  /* hidden = untuk load more */
}

.proj-card.proj-hidden {
  display: none;
}

.proj-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.proj-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
  filter: grayscale(20%);
}

/* Kategori badge pojok kanan atas */
.proj-card-cat {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(17, 17, 17, 0.55);
  color: var(--white);
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 5px 10px;
  backdrop-filter: blur(2px);
}

/* Hover overlay — gelap + nama proyek */
.proj-card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.62);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.proj-card-hover-name {
  background: var(--white);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.proj-card-hover-name::after {
  content: '\2192';
  margin-left: auto;
  font-size: 1.1rem;
}

/* Aktifkan overlay saat hover */
.proj-card:hover .proj-card-img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

.proj-card:hover .proj-card-hover-overlay {
  opacity: 1;
}

/* Nama bar bawah card */
.proj-card-name-bar {
  display: none; /* tersembunyi, nama sudah ada di overlay */
}

/* ── LOAD MORE ── */
.proj-loadmore-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.proj-loadmore-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 48px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.proj-loadmore-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.proj-loadmore-btn:disabled {
  opacity: 0.35;
  cursor: default;
  background: none;
  color: var(--muted);
  border-color: var(--border);
}


/* ── PROJECT MODAL ── */
.proj-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(3px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.30s ease;
}

.proj-modal-backdrop.proj-modal-open {
  opacity: 1;
  pointer-events: all;
}

.proj-modal {
  background: var(--white);
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.35s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.proj-modal-backdrop.proj-modal-open .proj-modal {
  transform: translateY(0);
}

/* Tombol X */
.proj-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 10;
  background: rgba(17, 17, 17, 0.60);
  color: var(--white);
  border: none;
  width: 32px;
  height: 32px;
  font-size: 0.80rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.proj-modal-close:hover {
  background: var(--primary);
}

/* Layout dua kolom */
.proj-modal-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
}

/* ── KIRI: SLIDER ── */
.proj-modal-left {
  display: flex;
  flex-direction: column;
}

.proj-modal-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--primary);
}

.proj-modal-slides {
  display: flex;
  height: 100%;
  transition: transform 0.40s ease;
}

.proj-modal-slide {
  min-width: 100%;
  height: 100%;
}

.proj-modal-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Panah navigasi */
.proj-modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 17, 17, 0.55);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 5;
}

.proj-modal-arrow:hover {
  background: var(--primary);
}

.proj-modal-prev { left: 12px; }
.proj-modal-next { right: 12px; }

/* Dots */
.proj-modal-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.proj-modal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.2s ease;
}

.proj-modal-dot.active {
  background: #c9a84c;
}

/* Deskripsi bawah slider */
.proj-modal-desc-wrap {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.proj-modal-desc-title {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  color: var(--text);
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--text);
  display: inline-block;
}

.proj-modal-desc {
  font-size: 0.92rem;
  color: var(--accent);
  line-height: 1.8;
}

/* ── KANAN: DETAIL TABLE ── */
.proj-modal-right {
  background: var(--primary);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.proj-modal-table {
  width: 100%;
  border-collapse: collapse;
}

.proj-modal-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.proj-modal-table tr:last-child {
  border-bottom: none;
}

.proj-modal-table td {
  padding: 14px 0;
  font-size: 0.85rem;
  vertical-align: top;
  line-height: 1.5;
}

.proj-modal-table td:first-child {
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  padding-right: 10px;
  width: 110px;
}

.proj-modal-table td:nth-child(2) {
  color: rgba(255,255,255,0.5);
  padding-right: 8px;
  width: 14px;
}

.proj-modal-table td:last-child {
  color: rgba(255,255,255,0.75);
}

/* Bintang rating */
.proj-modal-stars {
  display: inline-flex;
  gap: 3px;
}

.proj-modal-star {
  color: #c9a84c;
  font-size: 1rem;
}

.proj-modal-star.empty {
  color: rgba(255,255,255,0.2);
}

/* ── FOOTER ── */
footer {
  background: var(--primary);
  color: var(--white);
}

.footer-main {
  padding: 56px 44px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-vdivider {
  display: none;
}

.footer-col-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col-desc {
  font-size: 0.82rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
}

.footer-address {
  font-style: normal;
  font-size: 0.83rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.65);
}

.footer-contacts {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-link {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s ease;
}

.footer-link:hover {
  color: var(--white);
}

.footer-link svg {
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  margin-left: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.footer-main > div:nth-child(2) {
  text-align: left;
  padding-left: 64px; /* sesuaikan angkanya */
}

.footer-main > div:nth-child(3) {
  text-align: left;
  padding-left: 64px; /* sesuaikan angkanya */
}

/* ── WHATSAPP FLOATING ── */
.wa-float {
  position: fixed !important;
  bottom: 28px !important;
  right: 28px !important;
  left: auto !important;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* ============================================================
   RESPONSIVE — Desktop First (max-width)
   ============================================================ */

/* ── 1280px ── */
@media (max-width: 1280px) {
  .clients                   { padding: 32px 160px; }
}

/* ── 1024px ── */
@media (max-width: 1024px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .clients                   { padding: 32px 80px; }
}

/* ── 900px ── */
@media (max-width: 900px) {
  /* Navbar */
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    gap: 0;
    z-index: 998;
  }
  .nav-menu.nav-menu-open    { display: flex; }
  .nav-link                  { padding: 12px 0; font-size: 0.85rem; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-item:last-child .nav-link { border-bottom: none; }
  .nav-item-active .nav-link::after { display: none; }
  .nav-share-label           { display: none; }
  .nav-hamburger             { display: flex; }
  .nav-actions               { gap: 2px; }
  .proj-modal-inner { grid-template-columns: 1fr; }
  .proj-modal-right { padding: 24px 20px; }
  /* Clients */
  .clients                   { padding: 24px 32px; }
  .clients-item              { flex: 0 0 33.33%; }
  /* Footer */
  .footer-main               { grid-template-columns: 1fr; gap: 32px; padding: 40px 32px; }
  .footer-main > div:nth-child(2),
  .footer-main > div:nth-child(3) { text-align: left; padding-left: 0; }
  .footer-main > div:nth-child(2) .footer-contacts,
  .footer-main > div:nth-child(2) .footer-address,
  .footer-main > div:nth-child(3) .footer-contacts,
  .footer-main > div:nth-child(3) .footer-address { text-align: left; }
  .footer-copy               { margin-left: 0; }
  .footer-bottom-inner       { padding: 16px 32px; margin-left: 0; }
}

/* ── 600px ── */
@media (max-width: 600px) {
  .proj-section { padding: 40px 16px 60px; }
  .proj-grid    { grid-template-columns: 1fr; }
  .proj-filter-btn { padding: 10px 12px; font-size: 0.68rem; }
  .clients-item              { flex: 0 0 50%; }
  .clients-arrow             { margin: 0 8px; width: 36px; height: 36px; font-size: 0.85rem; }
}

/* ── 480px ── */
@media (max-width: 480px) {
  /* WhatsApp Float */
  .wa-float                  { width: 48px !important; height: 48px !important; bottom: 20px !important; right: 20px !important; }
  /* Clients */
  .clients                   { padding: 24px 16px; }
  .clients-item img          { height: 80px; width: 80px; }
}

/* ── 320px ── */
@media (max-width: 320px) {
  .nav-inner                 { height: 60px; }
  .nav-logo img              { height: 36px; }
  .nav-taglines              { display: none; }
}