/* PAGE-PUBLIC-HOME-001 · BF-SITE-001 */
:root {
  --site-ink: #1a2332;
  --site-muted: #5c6b7a;
  --site-paper: #f7f4ef;
  --site-accent: #0d6e6e;
  --site-accent-deep: #0a5555;
  --site-sand: #e8e0d4;
  --site-font-display: "Fraunces", "Georgia", serif;
  --site-font-body: "DM Sans", "Segoe UI", sans-serif;
}

.site-page {
  margin: 0;
  color: var(--site-ink);
  font-family: var(--site-font-body);
  background: var(--site-paper);
}

.site-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 35, 50, 0.08);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--site-ink);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.55rem;
  background: var(--site-accent);
  color: #fff;
}

.site-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.site-btn:hover {
  transform: translateY(-1px);
}

.site-btn-ghost {
  color: var(--site-ink);
  border-color: rgba(26, 35, 50, 0.15);
  background: transparent;
}

.site-btn-ghost:hover {
  background: rgba(26, 35, 50, 0.05);
  color: var(--site-ink);
}

.site-btn-primary {
  background: var(--site-accent);
  color: #fff;
}

.site-btn-primary:hover {
  background: var(--site-accent-deep);
  color: #fff;
}

.site-hero {
  position: relative;
  min-height: min(88vh, 52rem);
  display: grid;
  align-items: center;
  padding: clamp(3rem, 10vw, 7rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 8vw, 5rem);
  overflow: hidden;
  color: #f4f7f6;
  background:
    linear-gradient(160deg, rgba(10, 40, 42, 0.88) 0%, rgba(13, 110, 110, 0.55) 48%, rgba(26, 35, 50, 0.75) 100%),
    radial-gradient(ellipse at 20% 20%, #1a8a8a 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, #244055 0%, #0f1a22 70%);
}

.site-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.9;
}

.site-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
}

.site-hero-copy {
  animation: site-rise 0.8s ease-out both;
}

.site-hero-media {
  animation: site-rise 0.9s ease-out 0.08s both;
}

.site-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  animation: site-rise 0.8s ease-out both;
}

.site-hero .eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 247, 246, 0.72);
}

.site-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--site-font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.site-hero p {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: rgba(244, 247, 246, 0.85);
  max-width: 34rem;
}

.site-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-section {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem);
  animation: site-rise 0.7s ease-out both;
}

.site-section:nth-child(odd) {
  background: #fff;
}

.site-section-inner {
  max-width: 68rem;
  margin: 0 auto;
}

.site-section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--site-font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.site-section .lead {
  margin: 0 0 1.5rem;
  color: var(--site-muted);
  max-width: 36rem;
  line-height: 1.55;
}

.site-placeholder {
  border: 1px dashed rgba(26, 35, 50, 0.22);
  border-radius: 0.75rem;
  padding: 1.25rem 1.4rem;
  background: rgba(232, 224, 212, 0.35);
  color: var(--site-muted);
  font-size: 0.92rem;
}

.site-placeholder code {
  font-size: 0.85em;
  color: var(--site-accent-deep);
}

.site-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.site-tile {
  padding: 1.25rem;
  border-radius: 0.85rem;
  background: var(--site-paper);
  border: 1px solid rgba(26, 35, 50, 0.08);
}

.site-tile h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.site-tile p {
  margin: 0;
  color: var(--site-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.site-footer {
  padding: 2rem clamp(1rem, 4vw, 2.5rem);
  border-top: 1px solid rgba(26, 35, 50, 0.08);
  color: var(--site-muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-footer--rich {
  display: block;
  background: #0f1a22;
  color: rgba(244, 247, 246, 0.78);
  border-top: none;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem) 1.5rem;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  max-width: 68rem;
  margin: 0 auto 2rem;
}

.site-footer-heading {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #fff;
  font-family: var(--site-font-display);
}

.site-footer-col p {
  margin: 0 0 0.5rem;
  line-height: 1.5;
  font-size: 0.88rem;
}

.site-footer-muted {
  opacity: 0.75;
}

.site-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer-links li {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
}

.site-footer-links a {
  color: rgba(244, 247, 246, 0.9);
  text-decoration: none;
}

.site-footer-links a:hover {
  text-decoration: underline;
}

.site-footer-bar {
  max-width: 68rem;
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  font-size: 0.8rem;
}

.site-footer-bar a {
  color: rgba(244, 247, 246, 0.85);
}

.site-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.site-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(26, 35, 50, 0.08);
  border-radius: 0.85rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15, 26, 34, 0.1);
}

.site-card__media {
  aspect-ratio: 16 / 10;
  background: #e8eef0;
  overflow: hidden;
}

.site-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-card__ph {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d5e2e4, #eef3f4);
}

.site-card h3 {
  margin: 0.9rem 1rem 0.35rem;
  font-size: 1.05rem;
  font-family: var(--site-font-display);
}

.site-card p {
  margin: 0 1rem 1rem;
  font-size: 0.88rem;
  color: var(--site-muted);
  line-height: 1.45;
}

.site-hero-media-placeholder {
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 0.85rem;
  min-height: 14rem;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.site-video-wrap--hero {
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.site-detail__img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  border-radius: 0.85rem;
  margin: 1rem 0 1.5rem;
}

.site-detail__body {
  line-height: 1.65;
  max-width: 42rem;
}

@media (max-width: 900px) {
  .site-hero-layout,
  .site-footer-grid {
    grid-template-columns: 1fr;
  }
  .site-hero {
    min-height: auto;
    align-items: start;
  }
}

@keyframes site-rise {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-hero-inner,
  .site-section {
    animation: none;
  }
}

/* Consent: modal card di tengah layar */
.site-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(13, 15, 20, 0.45);
  backdrop-filter: blur(2px);
  animation: site-consent-backdrop-in 0.22s ease-out both;
}

.site-consent-banner {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid rgba(26, 35, 50, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(13, 15, 20, 0.22);
  text-align: left;
  animation: site-consent-in 0.28s ease-out both;
}

.site-consent-banner__inner {
  padding: 1.35rem 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.site-consent-banner__text {
  min-width: 0;
}

.site-consent-banner p {
  margin: 0;
  color: var(--site-text, #0d0f14);
  font-size: 0.92rem;
  line-height: 1.5;
}

.site-consent-banner__title {
  font-weight: 700;
  margin-bottom: 0.45rem !important;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.site-consent-banner__message {
  color: var(--site-muted, #5b6570) !important;
  line-height: 1.55 !important;
}

.site-consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
}

.site-consent-banner__link {
  color: var(--site-accent, #0d6e6e);
  font-size: 0.875rem;
  text-decoration: underline;
  margin-right: auto;
}

.site-consent-banner__btn {
  border: none;
  border-radius: 10px;
  padding: 0.5rem 1.05rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.site-consent-banner__btn--accept {
  background: var(--site-accent, #0d6e6e);
  color: #fff;
}

.site-consent-banner__btn--reject {
  background: transparent;
  border: 1px solid rgba(26, 35, 50, 0.2);
  color: var(--site-text, #0d0f14);
}

@keyframes site-consent-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes site-consent-in {
  from {
    opacity: 0;
    transform: translateY(0.6rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.has-site-consent {
  overflow: hidden;
}

@media (max-width: 640px) {
  .site-consent-banner {
    width: min(100%, 22rem);
  }
  .site-consent-banner__actions {
    width: 100%;
  }
  .site-consent-banner__link {
    width: 100%;
    margin: 0 0 0.15rem;
  }
  .site-consent-banner__actions .site-consent-banner__btn {
    flex: 1;
  }
}

.site-video-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
}

.site-video-poster {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: #000;
  cursor: pointer;
  z-index: 2;
}

.site-video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-video-poster__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.site-video-poster--hidden {
  display: none;
}

.site-video-wrap--poster-only .site-video-poster-img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.site-legal h1 {
  margin-top: 0;
}

.site-legal__meta {
  color: var(--site-muted, #64748b);
  font-size: 0.875rem;
}

.site-video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.site-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.site-video-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: #000;
}

.site-video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-video-poster__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #0d0f14;
}

.site-video-poster--hidden {
  display: none;
}

.site-video-poster--fallback {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.site-video-poster--fallback.site-video-poster--dim {
  opacity: 1;
  pointer-events: auto;
}

/* PAGE-SITE-HERO-VIDEO-001 — poster tetap di hero; play membuka modal */
.site-video-poster--static {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.85rem;
  overflow: hidden;
}

.site-video-wrap--hero .site-video-poster--static img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-hero-media-placeholder--play {
  width: 100%;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  gap: 0.75rem;
}

.site-hero-media-placeholder--play .site-video-poster__play {
  position: static;
  transform: none;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto;
}

.site-video-modal[hidden] {
  display: none !important;
}

.site-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.site-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 15, 20, 0.62);
  backdrop-filter: blur(3px);
  border: 0;
  cursor: pointer;
}

.site-video-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 56rem);
  max-height: min(92vh, 40rem);
  background: #0f172a;
  border-radius: 1rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: site-consent-in 0.24s ease-out both;
}

.site-video-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem 0.65rem;
  color: #fff;
}

.site-video-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.site-video-modal__close {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-video-modal__close:hover,
.site-video-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.site-video-modal__body {
  padding: 0 1rem 1rem;
}

.site-video-embed--modal {
  border-radius: 0.65rem;
  overflow: hidden;
  background: #000;
}

.site-video-modal__fallback {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
}

.site-video-modal__fallback a {
  color: #9ae6e0;
}

body.has-site-video-modal {
  overflow: hidden;
}

@media (max-width: 640px) {
  .site-video-modal {
    padding: 0.75rem;
  }
  .site-video-modal__panel {
    width: 100%;
    max-height: 94vh;
  }
}

.site-legal {
  max-width: 42rem;
}

.site-legal__meta {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--site-muted, #64748b);
}
