/* ============================================================
   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 BLOG ── */
.blog-hero {
  position: relative;
  width: 100%;
  height: 420px;
  background-image: url('../images/architecture/blog_hero.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 40, 55, 0.62);
}

.blog-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.blog-hero-title {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--white);
  margin-bottom: 0;
}

.blog-hero-divider {
  width: 260px;
  height: 2px;
  background: var(--white);
  opacity: 0.6;
}

.blog-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;
}

/* ── BLOG SECTION ── */
.blog-section {
  background: var(--white);
  padding: 80px 0 100px;
}

.blog-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── Blog Intro ── */
.blog-intro {
  text-align: center;
  margin-bottom: 60px;
}

.blog-intro-label {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.blog-intro-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 16px;
}

.blog-intro-desc {
  font-size: 0.95rem;
  color: var(--accent);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Blog Grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

/* ── Blog Card ── */
.blog-card {
  cursor: pointer;
  outline: none;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  transition: border-color 0.25s ease;
}

.blog-card:hover {
  border-color: var(--primary);
}

.blog-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ── Card Image ── */
.blog-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--accent2);
  margin-bottom: 20px;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-card:hover .blog-card-img {
  transform: scale(1.07);
}

.blog-card-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0);
  transition: background 0.35s ease;
}

.blog-card:hover .blog-card-img-overlay {
  background: rgba(10, 10, 10, 0.32);
}

/* Teks "BACA ARTIKEL" muncul saat hover */
.blog-card-read {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--white);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.blog-card:hover .blog-card-read {
  opacity: 1;
  transform: translateY(0);
}

/* Error state gambar */
.blog-card-img-wrap.img-error {
  background: var(--accent2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-img-wrap.img-error::after {
  content: 'No Image';
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ── Card Body ── */
.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 0 4px 16px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-card-date {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.blog-card-sep {
  color: var(--border);
  font-size: 0.9rem;
}

.blog-card-author {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--primary);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
  color: var(--accent);
}

.blog-card-excerpt {
  font-size: 0.83rem;
  color: var(--accent);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Card Button ── */
.blog-card-btn {
  margin-top: 6px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  background: transparent;
  border: 1.5px solid var(--primary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
}

.blog-card-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.blog-card-btn:hover::before {
  transform: scaleX(1);
}

.blog-card-btn:hover {
  color: var(--white);
}

/* ── ARTICLE MODAL ── */
.article-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.article-modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.68);
  animation: fadeIn 0.25s ease;
}

.modal-panel {
  position: relative;
  z-index: 1;
  background: var(--white);
  width: 100%;
  max-width: 780px;
  max-height: 92vh;
  overflow-y: auto;
  margin-top: 4vh;
  animation: slideUp 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  scroll-behavior: smooth;
  /* Scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.modal-panel::-webkit-scrollbar {
  width: 4px;
}

.modal-panel::-webkit-scrollbar-track {
  background: transparent;
}

.modal-panel::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Kunci scroll body saat modal terbuka */
body.modal-open {
  overflow: hidden;
}

/* ── Modal Close Button ── */
.modal-close {
  position: absolute;
  top: 0;
  right: 0;
  /*float: right;*/
  z-index: 10;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  /*margin-left: auto;*/
}

.modal-close:hover {
  background: var(--accent);
}

/* ── Modal Hero Image ── */
.modal-hero {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: var(--accent2);
  /*margin-top: -44px;*/ /* naik ke balik tombol close */
}

.modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.2) 0%, transparent 60%);
}

/* ── Modal Content ── */
.modal-content {
  padding: 40px 48px 56px;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.modal-date {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.modal-sep {
  color: var(--border);
}

.modal-author {
  font-size: 0.72rem;
  color: var(--muted);
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--primary);
  margin-bottom: 20px;
}

.modal-divider {
  width: 56px;
  height: 2px;
  background: var(--primary);
  margin-bottom: 28px;
}

.modal-body {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--accent);
}

.modal-body p {
  margin-bottom: 4px;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
  margin-top: 12px;
  margin-bottom: 4px;
}

.modal-body h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 12px;
  margin-bottom: 4px;
}

/* ── PAGINATION ── */
.blog-pagination {
  display        : flex;
  align-items    : center;
  justify-content: center;
  gap            : 8px;
  margin-top     : 64px;
}

.pg-btn {
  min-width      : 42px;
  height         : 42px;
  padding        : 0 10px;
  display        : flex;
  align-items    : center;
  justify-content: center;
  font-size      : 0.8rem;
  font-weight    : 600;
  letter-spacing : 0.04em;
  color          : var(--accent);
  background     : transparent;
  border         : 1.5px solid var(--border);
  cursor         : pointer;
  transition     : color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.pg-btn:hover:not(:disabled) {
  color          : var(--white);
  background     : var(--primary);
  border-color   : var(--primary);
}

.pg-btn:disabled {
  opacity        : 0.35;
  cursor         : not-allowed;
}

.pg-btn.pg-active {
  color          : var(--white);
  background     : var(--primary);
  border-color   : var(--primary);
}

.pg-prev,
.pg-next {
  font-size      : 0;   /* sembunyikan teks fallback, tampilkan SVG saja */
}

/* ── MODAL CTA WHATSAPP ── */
.modal-cta {
  margin-top     : 48px;
  border-top     : 1px solid var(--border);
  padding-top    : 40px;
}

.modal-cta-inner {
  background     : var(--primary);
  padding        : 40px 44px;
  display        : flex;
  align-items    : center;
  justify-content: space-between;
  gap            : 32px;
}

.modal-cta-text {
  flex           : 1;
}

.modal-cta-label {
  font-size      : 0.65rem;
  font-weight    : 700;
  letter-spacing : 0.22em;
  color          : rgba(255,255,255,0.55);
  margin-bottom  : 10px;
  text-transform : uppercase;
}

.modal-cta-title {
  font-size      : 1.2rem;
  font-weight    : 700;
  color          : var(--white);
  letter-spacing : 0.02em;
  margin-bottom  : 10px;
  line-height    : 1.35;
}

.modal-cta-desc {
  font-size      : 0.82rem;
  color          : rgba(255,255,255,0.65);
  line-height    : 1.75;
}

.modal-cta-btn {
  flex-shrink    : 0;
  display        : inline-flex;
  align-items    : center;
  gap            : 10px;
  padding        : 14px 28px;
  font-size      : 0.72rem;
  font-weight    : 700;
  letter-spacing : 0.14em;
  text-transform : uppercase;
  text-decoration: none;
  color          : var(--primary);
  background     : var(--white);
  border         : none;
  position       : relative;
  overflow       : hidden;
  cursor         : pointer;
  transition     : color 0.3s ease;
  white-space    : nowrap;
}

.modal-cta-btn::before {
  content        : '';
  position       : absolute;
  inset          : 0;
  background     : #25D366;
  transform      : scaleX(0);
  transform-origin: left;
  transition     : transform 0.3s ease;
}

.modal-cta-btn:hover::before {
  transform      : scaleX(1);
}

.modal-cta-btn:hover {
  color          : var(--white);
}

/* ── 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) {
  .blog-container              { padding: 0 40px; }
  .blog-grid                   { gap: 36px 28px; }
}

/* ── 1024px ── */
@media (max-width: 1024px) {
  .blog-section                { padding: 64px 0 80px; }
  .blog-container              { padding: 0 32px; }
  .blog-grid                   { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .blog-intro                  { margin-bottom: 48px; }
  .modal-content               { padding: 32px 36px 48px; }
  .modal-title                 { font-size: 1.5rem; }
}

/* ── 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; }
  /* Modal */
  .modal-panel                 { max-width: 100%; margin-top: 0; max-height: 100vh; border-radius: 0; }
  .modal-hero                  { height: 240px; }
  .modal-content               { padding: 28px 24px 48px; }
  .modal-title                 { font-size: 1.35rem; }
}

/* ── 600px ── */
@media (max-width: 600px) {
  .blog-section                { padding: 48px 0 64px; }
  .blog-container              { padding: 0 20px; }
  .blog-grid                   { grid-template-columns: 1fr; gap: 40px; }
  .blog-intro-title            { font-size: 1.75rem; }
  .blog-hero-title             { font-size: 2.4rem; }
  .modal-cta-inner             { flex-direction: column; padding: 28px 24px; align-items: flex-start; }
  .modal-cta-btn               { width: 100%; justify-content: center; }
}

/* ── 480px ── */
@media (max-width: 480px) {
  /* WhatsApp Float */
  .wa-float                  { width: 48px !important; height: 48px !important; bottom: 20px !important; right: 20px !important; }
  .blog-hero                   { height: 260px; }
  .blog-hero-title             { font-size: 2rem; }
  .blog-hero-divider           { width: 160px; }
  .wa-float                    { width: 48px !important; height: 48px !important; bottom: 20px !important; right: 20px !important; }
  .modal-content               { padding: 24px 20px 40px; }
  .modal-title                 { font-size: 1.2rem; }
  .modal-hero                  { height: 200px; }
}

/* ── 320px ── */
@media (max-width: 320px) {
  .nav-inner                 { height: 60px; }
  .nav-logo img              { height: 36px; }
  .nav-taglines              { display: none; }
  .blog-intro-title            { font-size: 1.5rem; }
}