/* ===================================================
   HERMAKON — DARK MODE WIREFRAME SYSTEM
   Navy bg, red accent, capitalized nav labels
=================================================== */

@font-face {
  font-family: "Mozilla Text";
  src: url("../assets/fonts/MozillaText-Regular.woff2") format("woff2"),
       url("../assets/fonts/MozillaText-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mozilla Text";
  src: url("../assets/fonts/MozillaText-Medium.woff2") format("woff2"),
       url("../assets/fonts/MozillaText-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mozilla Text";
  src: url("../assets/fonts/MozillaText-SemiBold.woff2") format("woff2"),
       url("../assets/fonts/MozillaText-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mozilla Text";
  src: url("../assets/fonts/MozillaText-Bold.woff2") format("woff2"),
       url("../assets/fonts/MozillaText-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Force header element inheritance */
header.site {
  font-family: "Mozilla Text", "Inter", "Helvetica Neue", Arial, sans-serif;
}

:root {
  --bg: #03142A;
  --bg-2: #062043;
  --ink: #F5F7FA;
  --gray-900: #E4E9F2;
  --gray-700: #B8C4D9;
  --gray-500: #8CA0BF;
  --gray-300: #3D6C9C;
  --gray-200: #123A63;
  --gray-100: #0D2C4D;
  --paper: #03142A;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #9F0712;
  --accent-text: #E8606C;
  --accent-hover: #C10E1D;
  --radius: 3px;
  --gap: 24px;
  --gap-sm: 12px;
  --gap-lg: 48px;
  --max: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Mozilla Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Global Image Containment */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Type Scale ---------- */
h1, h2, h3, p, ul { margin: 0; }

.h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -0.005em; line-height: 1.2; }
.h3 { font-size: 16px; font-weight: 600; line-height: 1.3; }
.body { font-size: 15px; font-weight: 400; color: var(--gray-700); }
.body-bold { font-size: 15px; font-weight: 600; color: var(--ink); }
.caption { font-size: 12.5px; font-weight: 500; color: var(--gray-500); text-transform: none; letter-spacing: 0.01em; }
.eyebrow { font-size: 11px; font-weight: 600; color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Layout Helpers ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: none; }
.section-tight { padding: 32px 0; }
.section-head { margin-bottom: 28px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Container & Image Constraints ---------- */
.block {
  background: repeating-linear-gradient(
    135deg,
    var(--gray-200),
    var(--gray-200) 10px,
    var(--gray-100) 10px,
    var(--gray-100) 20px
  );
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  padding: 0;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.block img, .card-img, .portfolio-img, .academy-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.block-square { aspect-ratio: 1/1; }
.block-wide { aspect-ratio: 16/9; }
.block-portrait { aspect-ratio: 3/4; }
.block-hero { aspect-ratio: 21/9; }
.block-icon { width: 40px; height: 40px; flex: none; }
.block-thumb { aspect-ratio: 1/1; cursor: pointer; }

/* ---------- Header / Nav ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  z-index: 50;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
}
.logo img {
  max-height: 32px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-700);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }
.nav-cta { flex: none; }

.nav-links li { position: relative; }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-2);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  min-width: 160px;
  z-index: 60;
  flex-direction: column;
}

.nav-links li:hover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
}

.nav-links li:hover .dropdown { display: flex; }
.dropdown a { padding: 8px 16px; display: block; white-space: nowrap; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero-fullwidth {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-color: var(--bg);
  background-image: url('../assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  padding: 60px 0;
}

.hero-fullwidth::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(
    to right,
    var(--bg) 0%,
    rgba(0, 0, 0, 0.90) 10%,
    rgba(0, 0, 0, 0.75) 40%,
    rgba(0, 0, 0, 0.15) 75%,
    var(--bg) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-text-block { max-width: 580px; }
.hero-fullwidth .text-white { color: #ffffff; }
.hero-fullwidth .text-light { color: rgba(255, 255, 255, 0.9); }
.hero-fullwidth .text-muted { color: rgba(255, 255, 255, 0.7); }

/* ---------- Bento Items ---------- */
.bento-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius, 8px);
  background-color: var(--gray-100);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.bento-item .bento-text { flex: 1; }
.bento-item .h3 { transition: color 0.2s ease; }

.bento-arrow {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: var(--gray-700);
  opacity: 0.4;
  transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  margin-left: auto;
}

.bento-item:hover {
  border-color: var(--accent-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.bento-item:hover .h3 { color: var(--accent-text); }
.bento-item:hover .bento-arrow {
  color: var(--accent-text);
  opacity: 1;
  transform: translateX(4px);
}

.num-circle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.bento-item:hover .num-circle {
  background-color: #dc2626;
  border-color: #ef4444;
  color: #ffffff;
  transform: scale(1.08);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { border-color: var(--accent-text); color: var(--accent-text); }
.btn-small { padding: 8px 14px; font-size: 12.5px; }
.btn-full { width: 100%; }
.btn-text { border: none; padding: 0; text-decoration: underline; text-underline-offset: 3px; background: none; }
.btn-group { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Breadcrumb & Filter ---------- */
.breadcrumb { padding: 14px 0 0; }
.breadcrumb .caption { text-transform: uppercase; letter-spacing: 0.05em; }
.breadcrumb .caption a { color: var(--gray-500); text-decoration: none; }
.breadcrumb .caption a:hover { text-decoration: underline; }

.filter-bar {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 28px;
}
.filter-bar span {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  padding-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.filter-bar span.active { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--accent); }

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-7 { grid-template-columns: repeat(7, 1fr); }
.grid-tight { gap: var(--gap-sm); }

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.card .block { margin-bottom: 2px; }
.card-stack { display: flex; flex-direction: column; gap: 4px; flex: 1; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-lg); align-items: start; }
.split.rev { direction: rtl; }
.split.rev > * { direction: ltr; }

/* ---------- Detail Hero & Gallery Layout ---------- */
.detail-hero { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-lg); padding-top: 28px; align-items: start; }
.gallery-main { width: 100%; aspect-ratio: 16 / 9; margin-bottom: 10px; border-radius: 8px; overflow: hidden; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.info-col { display: flex; flex-direction: column; gap: 14px; }
.info-col .btn-group { margin-top: 6px; }

.spec-table { border-top: 1px solid var(--line); }
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.spec-row .caption { color: var(--gray-500); }
.spec-row .body-bold { text-align: right; }


/* ---------- Divider List ---------- */
.divider-list {
  display: flex;
  flex-direction: column;
}

.divider-list .row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 16px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.divider-list .row:hover {
  background-color: var(--gray-100);
  padding-left: 24px;
}

.divider-list .row:hover .h3 {
  color: var(--accent-text);
}


/* ---------- Form & Accordion ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.field .fake-input {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--gray-500);
  background: var(--paper);
}

.accordion-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.accordion-item .plus { font-size: 18px; color: var(--gray-500); flex: none; }

.cta-strip {
  background: linear-gradient(135deg, var(--bg-2), var(--gray-100));
  border: 1px solid var(--line);
  padding: 48px 24px;
  text-align: center;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Set content to center */
.cta-strip .btn-group {
  justify-content: center;
}

/* ---------- Certificate & Portfolio Teasers ---------- */
.certificate-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#portofolio-teaser .block-wide, #academy .block-wide {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
}

#portofolio-teaser .block-wide:hover .portfolio-img,
#academy .card:hover .academy-img {
  transform: scale(1.05);
}

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
  padding: 48px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

.footer-grid .h3 { text-transform: uppercase; letter-spacing: 0.05em; font-size: 13px; }
.footer-grid ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--gray-700); text-decoration: none; font-size: 13.5px; }
.footer-grid a:hover { color: var(--accent-text); }

.footer-contact { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; color: var(--gray-700); }
.contact-item { display: flex; align-items: flex-start; gap: 10px; margin: 0; line-height: 1.4; }
.contact-icon { width: 20px; height: 20px; min-width: 20px; fill: currentColor; margin-top: 2px; color: var(--gray-700); }
.footer-contact a { color: inherit; text-decoration: underline; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 12px;
}

.social-row { display: flex; gap: 8px; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--gray-700);
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.social-icon:hover { background-color: var(--accent-text); color: #ffffff; transform: translateY(-2px); }
.social-icon svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 99;
  transition: transform 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
}
.wa-float:hover { background-color: #20ba5a; transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }

/* ---------- Utilities ---------- */
.mt-sm { margin-top: 8px; }
.mt { margin-top: 16px; }
.mt-lg { margin-top: 32px; }

/* ---------- Responsive Breakpoints (MUST STAY AT BOTTOM) ---------- */
@media (min-width: 901px) {
  .wa-float { bottom: 24px; right: 24px; width: 60px; height: 60px; }
  .wa-float svg { width: 34px; height: 34px; }
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-7 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .detail-hero { grid-template-columns: 1fr; }
  .hero-fullwidth { min-height: 480px; align-items: flex-end; padding: 40px 0 32px 0; }
  .hero-fullwidth::before {
    background-image: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.65) 60%,
      rgba(0, 0, 0, 0.40) 100%
    );
  }

  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-2);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-300);
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links .dropdown {
    position: static;
    display: block;
    border: none;
    padding: 8px 0 0 16px;
    background: transparent;
  }
}

@media (max-width: 768px) {
  .grid-4:not(.grid-tight) {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    row-gap: 20px !important;
  }

  /* Keep grid-4 containers 2-column on mobile while keeping tight gap */
  .grid-4.grid-tight {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .bento-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .bento-arrow { position: absolute; top: 12px; right: 12px; margin-left: 0; }
}

@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr !important; }
  .grid-7 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* Inline Tag List Spacing */
.list-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.list-inline .sep {
  color: var(--text-muted, #94a3b8);
  font-size: 0.8em;
}


.mb-md { margin-bottom: 16px; }
.mt-xl { margin-top: 56px; }



/* Remove 24px side padding and margins on these sections */
#paket-proyek,
#layanan-fabrikasi,
#paket-proyek .section-head,
#layanan-fabrikasi .split {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}


/* ---------- Ebook Badges & Pricing ---------- */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  z-index: 2;
}

.badge-free {
  background-color: #10b981;
  color: #ffffff;
}

.badge-premium {
  background-color: var(--accent);
  color: #ffffff;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price-tag {
  font-size: 12px;
  font-weight: 700;
}

.price-tag.free {
  color: #10b981;
}

.price-tag.premium {
  color: var(--accent-text);
}
