/* ============================================================
   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 SERVICES ── */
.about-hero {
  position: relative;
  width: 100%;
  height: 420px;
  background-image: url('../images/architecture/serv_hero.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 40, 55, 0.62);
}

.about-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.about-hero-title {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--white);
  margin-bottom: 0;
}

.about-hero-divider {
  width: 260px;
  height: 2px;
  background: var(--white);
  opacity: 0.6;
}

.about-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;
}

/* ── SERVICES SECTION ── */
.services-section {
  padding: 80px 48px;
  background: var(--white);
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ── SERVICE CARD ── */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

/* ── CARD IMAGE WRAP ── */
.service-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
  filter: grayscale(30%);
}

/* Hover: zoom + warna penuh */
.service-card:hover .service-card-img {
  transform: scale(1.07);
  filter: grayscale(0%);
}

/* ── LABEL (pojok kiri atas gambar) ── */
.service-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--accent);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  text-transform: uppercase;
  pointer-events: none;
}

/* ── CARD BODY ── */
.service-card-body {
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.service-card-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── READ MORE LINK ── */
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  margin-top: auto;
  transition: color 0.2s ease;
}

.service-card-link-line {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
  transition: width 0.25s ease;
}

.service-card-link:hover {
  color: var(--accent);
}

.service-card-link:hover .service-card-link-line {
  width: 40px;
}

/* ── SERVICE MODAL ── */
.svc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.70);
  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;
}

.svc-modal-backdrop.svc-modal-open {
  opacity: 1;
  pointer-events: all;
}

.svc-modal {
  background: var(--white);
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.35s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.svc-modal-backdrop.svc-modal-open .svc-modal {
  transform: translateY(0);
}

/* ── TOMBOL TUTUP ── */
.svc-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 10;
  background: rgba(17, 17, 17, 0.55);
  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;
  line-height: 1;
}

.svc-modal-close:hover {
  background: var(--primary);
}

/* ── GAMBAR ── */
.svc-modal-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}

.svc-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
}

.svc-modal-img-label {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--accent);
  color: var(--white);
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
}

/* ── BODY ── */
.svc-modal-body {
  padding: 32px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── BLOCK (about / key elements) ── */
.svc-modal-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.svc-modal-block-title {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.svc-modal-about {
  font-size: 0.93rem;
  color: var(--accent);
  line-height: 1.75;
}

/* ── CHECKLIST ── */
.svc-modal-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.svc-modal-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.90rem;
  color: var(--text);
  line-height: 1.55;
}

.svc-modal-checklist li::before {
  content: '';
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpolyline points='2,6 5,9 10,3' stroke='%23555555' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ── PRICE BOX ── */
.svc-modal-price-box {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 1.5px solid var(--border);
  padding: 14px 28px;
  background: var(--light);
  align-self: flex-start;
}

.svc-modal-price-label {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.svc-modal-price-divider {
  color: var(--border);
  font-size: 1.1rem;
}

.svc-modal-price-value {
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
}

/* ── CTA SECTION ── */
.cta-section {
  position: relative;
  width: 100%;
  padding: 80px 48px;
  background-image: url('../images/architecture/serv_cta.webp');  /* ganti gambar sesuai kebutuhan */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.60);   /* dark overlay sesuai tone hitam brand */
}

.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 720px;
}

.cta-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.cta-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cta-btn:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--accent);
}

/* ── 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) {
}

/* ── 1024px ── */
@media (max-width: 1024px) {
    .services-container { grid-template-columns: repeat(2, 1fr); }
}

/* ── 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; }
  
  /* 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) {
  .services-section  { padding: 48px 20px; }
  .services-container { grid-template-columns: 1fr; gap: 24px; }
  .cta-section       { padding: 60px 24px; background-attachment: scroll; }
  .cta-heading       { font-size: 1.3rem; }
  .svc-modal-body    { padding: 24px 20px 28px; }
  .svc-modal-img-wrap { aspect-ratio: 16 / 9; }
}

/* ── 480px ── */
@media (max-width: 480px) {
  /* WhatsApp Float */
  .wa-float                  { width: 48px !important; height: 48px !important; bottom: 20px !important; right: 20px !important; }
}

/* ── 320px ── */
@media (max-width: 320px) {
  .nav-inner                 { height: 60px; }
  .nav-logo img              { height: 36px; }
  .nav-taglines              { display: none; }
}