/* Suzuki Bali signature layer — CSS only, no runtime or asset dependency. */
:root {
  --sig-blue: #1769ff;
  --sig-cyan: #71e0ff;
  --sig-ink: #07152e;
  --sig-line: rgba(45, 107, 255, .17);
  --sig-ease: cubic-bezier(.2, .75, .25, 1);
}

/* A fine light-track motif gives the catalog a distinctive automotive rhythm. */
.hero {
  isolation: isolate;
  position: relative;
}
.hero:after {
  content: "";
  position: absolute;
  z-index: -1;
  left: max(24px, calc((100vw - 1240px) / 2));
  bottom: 0;
  width: min(42vw, 520px);
  height: 2px;
  background: linear-gradient(90deg, var(--sig-blue), rgba(113, 224, 255, .8) 58%, transparent);
  transform-origin: left;
  animation: sig-track-in 1.05s var(--sig-ease) both;
}
.hero-copy { position: relative; }
.hero-copy:before {
  content: "BALI • SUZUKI";
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: #2b6fe5;
  font: 800 10px/1.2 "Plus Jakarta Sans", sans-serif;
  letter-spacing: .19em;
}
.hero-copy:after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 20px;
  border-radius: 4px;
  background: linear-gradient(90deg, #1769ff 0 68%, #77dfff 68%);
}
.hero-orbit { transform-origin: 50% 50%; }
.orbit-card {
  border: 1px solid rgba(255,255,255,.7) !important;
  box-shadow: 0 18px 55px rgba(20,65,145,.16), inset 0 1px rgba(255,255,255,.72) !important;
  transition: transform .35s var(--sig-ease), box-shadow .35s var(--sig-ease) !important;
}
.orbit-card:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: 0 24px 60px rgba(20,65,145,.22), inset 0 1px rgba(255,255,255,.8) !important; }

/* Editorial section markers and crisp card edges; no animated filters or large shadows. */
.section-head { position: relative; }
.section-head:before {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--sig-blue), var(--sig-cyan));
}
.package-card, .post-card, .resource-card, .contact-card, .related-package-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(37, 82, 151, .12) !important;
  transition: transform .28s var(--sig-ease), box-shadow .28s var(--sig-ease), border-color .28s ease !important;
}
.package-card:before, .post-card:before, .resource-card:before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 18px;
  width: 34px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--sig-blue), var(--sig-cyan));
  transition: width .32s var(--sig-ease);
}
.package-card:hover, .post-card:hover, .resource-card:hover, .contact-card:hover, .related-package-card:hover {
  transform: translateY(-5px);
  border-color: rgba(45,107,255,.28) !important;
  box-shadow: 0 18px 38px rgba(21,56,117,.12) !important;
}
.package-card:hover:before, .post-card:hover:before, .resource-card:hover:before { width: 66px; }
.package-image, .post-image { transition: transform .55s var(--sig-ease) !important; }
.package-card:hover .package-image, .post-card:hover .post-image { transform: scale(1.035); }

.button, a.button, button.button { transition: transform .2s var(--sig-ease), box-shadow .2s ease, background-color .2s ease !important; }
.button.primary:hover, .button.light-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(32,91,213,.2); }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(45,107,255,.42) !important;
  outline-offset: 3px;
}
.cta-band { isolation: isolate; overflow: hidden; }
.cta-band:after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  right: -110px;
  top: -150px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255,255,255,.035), 0 0 0 46px rgba(255,255,255,.025);
  pointer-events: none;
}

/* Admin surfaces stay clear and practical while sharing the same brand details. */
.admin-form-card, .admin-login, .admin-section { border-radius: 16px; }
.admin-form-card:focus-within, .admin-login:focus-within { border-color: rgba(45,107,255,.34); }

@keyframes sig-track-in { from { transform: scaleX(.05); opacity: .35; } to { transform: scaleX(1); opacity: 1; } }

@media (max-width: 700px) {
  .hero:after { left: 20px; width: 58vw; }
  .hero-copy:before { margin-bottom: 11px; font-size: 9px; }
  .package-card:hover, .post-card:hover, .resource-card:hover, .contact-card:hover, .related-package-card:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero:after { animation: none !important; }
  .package-card, .post-card, .resource-card, .contact-card, .related-package-card,
  .package-image, .post-image, .button, a.button, button.button { transition: none !important; }
  .package-card:hover, .post-card:hover, .resource-card:hover, .contact-card:hover, .related-package-card:hover,
  .package-card:hover .package-image, .post-card:hover .post-image { transform: none !important; }
}

/* Preserve the original Suzuki blue at rest; fade a dark-to-blue vertical glass tint in on scroll. */
.topbar {
  background: #1554c7 !important;
  transition: background-color .5s ease, border-color .5s ease, box-shadow .5s ease !important;
}
.topbar:not(.is-scrolled):before {
  display: block !important;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(5,12,24,.98) 0%, rgba(8,28,62,.9) 46%, rgba(21,84,199,.94) 100%) !important;
  opacity: 0 !important;
  transition: opacity .52s cubic-bezier(.2,.7,.2,1) !important;
}
.topbar.is-scrolled {
  background: #1554c7 !important;
  border-color: rgba(203,224,255,.28) !important;
  box-shadow: 0 10px 30px rgba(5,18,39,.2), inset 0 1px rgba(255,255,255,.13) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.12) !important;
  backdrop-filter: blur(10px) saturate(1.12) !important;
}
.topbar.is-scrolled:before {
  display: block !important;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(5,12,24,.98) 0%, rgba(8,28,62,.9) 46%, rgba(21,84,199,.94) 100%) !important;
  opacity: 1 !important;
  transition: opacity .52s cubic-bezier(.2,.7,.2,1) !important;
}
.topbar.is-scrolled .nav,
.topbar.is-scrolled .nav a,
.topbar.is-scrolled .brand strong,
.topbar.is-scrolled .brand small,
.topbar.is-scrolled .nav-admin,
.topbar.is-scrolled .mobile-toggle { color: rgba(247,250,255,.96) !important; }
.topbar.is-scrolled .nav a:hover,
.topbar.is-scrolled .nav a.active { color: #b9d9ff !important; }
.topbar.is-scrolled .nav-admin,
.topbar.is-scrolled .mobile-toggle { background: rgba(255,255,255,.1) !important; border-color: rgba(255,255,255,.22) !important; }
@media (max-width: 900px) {
  .topbar.is-scrolled, .topbar.is-scrolled .nav.open {
    -webkit-backdrop-filter: blur(9px) !important;
    backdrop-filter: blur(9px) !important;
  }
}

/* The dark-to-Suzuki-blue tint cross-fades over the original blue surface. */
.topbar:not(.is-scrolled):before, .topbar.is-scrolled:before {
  background: linear-gradient(180deg, rgba(5,12,24,.98) 0%, rgba(8,28,62,.9) 46%, rgba(21,84,199,.94) 100%) !important;
}



/* Cinematic, muted vehicle footage behind the existing hero content. */
.hero-video-active {
  isolation: isolate;
  overflow: hidden;
  border-radius: 26px;
  background: #07152e url('/assets/suzuki-hero-poster.jpg') 62% 56% / cover no-repeat;
}
.hero-video-active .hero-background-video {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 56%;
  filter: saturate(1.06) brightness(.82);
  pointer-events: none;
}
.hero-video-active:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(4,13,29,.91) 0%, rgba(4,13,29,.76) 40%, rgba(4,13,29,.38) 72%, rgba(4,13,29,.28) 100%), linear-gradient(0deg, rgba(4,13,29,.34), transparent 58%);
}
.hero-video-active .hero-copy,
.hero-video-active .hero-orbit { position: relative; z-index: 2; }
.hero-video-active h1 { color: #f7faff !important; }
.hero-video-active h1 em { color: #91c3ff !important; }
.hero-video-active .hero-lead,
.hero-video-active .hero-proof,
.hero-video-active .hero-copy:before { color: rgba(244,248,255,.9) !important; }
.hero-video-active .hero-copy:after { background: linear-gradient(90deg, #74baff 0 68%, #b2eaff 68%) !important; }
.hero-video-active .hero-proof svg { color: #9fe3cd !important; }
.hero-video-active .button.ghost { color: #f7faff !important; border-color: rgba(255,255,255,.46) !important; background: rgba(255,255,255,.08) !important; }
.hero-video-active .fronx-showcase,
.hero-video-active .orbit-line,
.hero-video-active .fronx-glow { display: none !important; }
.hero-video-active:after { z-index: 2; opacity: .82; }
.hero-video-fallback .hero-background-video { display: none !important; }
@media (max-width: 760px) {
  .hero-video-active .hero-background-video { object-position: 72% center; }
  .hero-video-active { background-position: 72% center; }
  .hero-video-active:before { background: linear-gradient(90deg, rgba(4,13,29,.82), rgba(4,13,29,.49)), linear-gradient(0deg, rgba(4,13,29,.42), transparent 62%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video-active .hero-background-video { display: none !important; }
}

.hero-video-active .hero-orbit:after { display: none !important; }

/* Edge-to-edge hero: remove the boxed corner treatment; keep cinematic dark overlay and white type. */
.hero-video-active { border-radius: 0 !important; }

/* Full-bleed video hero: no boxed container edges; keep a safe inset around copy. */
.hero-video-active {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: clamp(24px, calc((100vw - 1240px) / 2 + 24px), 104px) !important;
  padding-right: clamp(24px, calc((100vw - 1240px) / 2 + 24px), 104px) !important;
  border-radius: 0 !important;
}
@media (max-width: 760px) {
  .hero-video-active { padding-left: 22px !important; padding-right: 22px !important; }
}

/* Align to the document's usable viewport (excluding desktop scrollbar width). */
.hero-video-active { width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }

/* Header is fixed at 72 px; remove the extra 6 px reserved above the hero. */
.site-shell { padding-top: 72px !important; }

/* Home cinematic mode: video begins at document top and continues behind the fixed navbar. */
.site-shell.cinematic-home-shell { padding-top: 0 !important; }
.site-shell.cinematic-home-shell .hero-video-active .hero-copy { padding-top: 132px !important; }
.site-shell.cinematic-home-shell .topbar:not(.is-scrolled) {
  background: rgba(5,15,35,.28) !important;
  border-color: rgba(255,255,255,.16) !important;
  -webkit-backdrop-filter: blur(9px) saturate(1.1) !important;
  backdrop-filter: blur(9px) saturate(1.1) !important;
}
.site-shell.cinematic-home-shell .topbar:not(.is-scrolled):before {
  display: block !important;
  background: linear-gradient(180deg, rgba(5,12,24,.92) 0%, rgba(8,28,62,.76) 55%, rgba(21,84,199,.86) 100%) !important;
  opacity: 1 !important;
}

/* Solid nav treatment: remove glass blur/transparency while keeping the dark-to-Suzuki-blue gradient. */
.site-shell .topbar,
.site-shell .topbar.is-scrolled,
.site-shell.cinematic-home-shell .topbar:not(.is-scrolled) {
  background: linear-gradient(180deg, #071423 0%, #102e5d 56%, #1554c7 100%) !important;
  border-color: rgba(36,98,184,.78) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 8px 22px rgba(3,14,32,.22) !important;
}
.site-shell .topbar:before,
.site-shell .topbar.is-scrolled:before,
.site-shell .topbar:not(.is-scrolled):before {
  display: none !important;
  background: none !important;
  opacity: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}


/* Admin login: clear, mobile-friendly mode tabs, form rhythm, and useful error states. */
.admin-gate { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 32px 18px 48px; }
.admin-login { width: min(100%, 440px); padding: clamp(24px, 4vw, 40px); border: 1px solid #e2eaf5; border-radius: 22px; background: #fff; box-shadow: 0 22px 56px rgba(18,47,91,.12); }
.admin-login h1 { margin: 14px 0 8px !important; color: #10284c; font-size: clamp(26px, 3vw, 32px) !important; line-height: 1.12 !important; letter-spacing: -.04em !important; }
.admin-login > p { margin: 0 0 18px; color: #647792; font-size: 13px; line-height: 1.6; }
.admin-login .kicker { color: #2868d7; font-size: 10px; letter-spacing: .14em; }
.admin-login .admin-logo { margin-bottom: 16px; }
.auth-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 18px 0 16px; padding: 5px; border: 1px solid #e1e9f4; border-radius: 13px; background: #f3f6fb; }
.auth-mode { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #647792; font: 700 12px/1.25 inherit; cursor: pointer; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.auth-mode:hover { color: #1554c7; }
.auth-mode.active { border-color: #e3eaf5; background: #fff; color: #1554c7; box-shadow: 0 2px 8px rgba(23,59,112,.09); }
.admin-login form, .pin-login-form { display: grid; gap: 13px; margin: 0; }
.admin-login form label, .pin-login-form label { display: grid; gap: 7px; color: #354c6d; font-size: 12px; font-weight: 700; }
.admin-login input, .pin-login-form input { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #d7e1ef; border-radius: 11px; outline: none; background: #fff; color: #10284c; font: 500 14px/1.4 inherit; transition: border-color .18s ease, box-shadow .18s ease; }
.admin-login input:focus, .pin-login-form input:focus { border-color: #3977e5; box-shadow: 0 0 0 3px rgba(45,107,255,.13); }
.admin-login form .button[type=submit], .pin-login-form .button[type=submit] { width: 100%; min-height: 48px; margin-top: 3px; border-radius: 12px !important; }
.admin-login form button[disabled], .pin-login-form button[disabled] { cursor: wait; opacity: .72; }
.admin-login form .form-error, .pin-form-error { margin: 0; padding: 11px 12px; border: 1px solid #f1c4c8; border-radius: 10px; background: #fff4f4; color: #992f3a; font-size: 12px; line-height: 1.5; }
.admin-login [hidden], .pin-login-form[hidden] { display: none !important; }
.login-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: #72829a; font-size: 11px; line-height: 1.45; }
.auth-mode:focus-visible, .admin-login button:focus-visible, .pin-login-form button:focus-visible { outline: 3px solid rgba(45,107,255,.34); outline-offset: 2px; }
@media (max-width: 600px) {
  .admin-gate { min-height: calc(100svh - 72px); padding: 22px 16px 36px; }
  .admin-login { padding: 24px 20px; border-radius: 18px; }
}

/* No glass treatment in the navbar or its mobile menu/toggle. */
.site-shell .topbar .mobile-toggle,
.site-shell .topbar.is-scrolled .mobile-toggle {
  background: #174b98 !important;
  border-color: #4a84d5 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}
.site-shell .topbar .nav.open,
.site-shell .topbar.is-scrolled .nav.open {
  background: #0c2852 !important;
  border: 1px solid #315f9f !important;
  box-shadow: 0 18px 34px rgba(3,14,32,.34) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.site-shell .topbar .nav.open:before { display: none !important; }


/* Refined PIN mode: a sliding active marker and a short, reduced-motion-safe entrance. */
.auth-mode-switch { position: relative; isolation: isolate; overflow: hidden; }
.auth-mode-switch:before { content: ''; position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 8px); border: 1px solid #d9e6f8; border-radius: 9px; background: linear-gradient(135deg,#fff,#f4f8ff); box-shadow: 0 2px 8px rgba(23,59,112,.1); transform: translateX(0); transition: transform .28s cubic-bezier(.16,1,.3,1), background .22s ease; pointer-events: none; }
.admin-login.pin-mode-active .auth-mode-switch:before { transform: translateX(calc(100% + 6px)); background: linear-gradient(135deg,#fff,#e8f1ff); }
.auth-mode { position: relative; z-index: 1; font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1.25; }
.auth-mode.active { border-color: transparent !important; background: transparent !important; color: #1554c7 !important; box-shadow: none !important; }
.admin-login.pin-mode-active .auth-mode[data-auth-mode="pin"] { color: #1554c7 !important; }
.admin-login form:not([hidden]) { animation: loginFormIn .22s ease-out both; }
.pin-login-form:not([hidden]) { animation: pinFormIn .3s cubic-bezier(.16,1,.3,1) both; }
@keyframes loginFormIn { from { opacity: .75; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pinFormIn { from { opacity: 0; transform: translateY(9px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
.admin-login input, .pin-login-form input { font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.4; }
.pin-login-form input { min-height: 56px; text-align: center; font-size: 20px; font-weight: 700; letter-spacing: .38em; }
.pin-login-form input::placeholder { color: #a4b2c8; letter-spacing: .3em; }
.pin-login-form button[type=submit] { background: linear-gradient(105deg,#1853c5,#2d6bff 55%,#4387ff) !important; box-shadow: 0 8px 20px rgba(45,107,255,.19) !important; transition: transform .18s ease, box-shadow .18s ease !important; }
.pin-login-form button[type=submit]:hover { transform: translateY(-1px); box-shadow: 0 11px 24px rgba(45,107,255,.25) !important; }
.login-backend-note { margin: 16px 0 0; padding: 11px 12px; border: 1px solid #d6e5fc; border-radius: 11px; background: #f2f7ff; color: #395777; font-size: 11px; line-height: 1.5; }
.login-backend-note:before { content: 'INFO'; display: inline-block; margin-right: 7px; color: #1554c7; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.admin-login form.is-submitting button[type=submit] { opacity: .75; }

/* Modern success confirmation shown only after PHP confirms the session. */
.login-success-overlay { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 20px; background: rgba(4,13,29,.48); opacity: 0; transition: opacity .2s ease; }
.login-success-overlay.is-visible { opacity: 1; }
.login-success-card { width: min(100%,360px); padding: 30px 26px 24px; border: 1px solid #e3ebf6; border-radius: 22px; background: #fff; box-shadow: 0 26px 70px rgba(3,14,32,.25); text-align: center; transform: translateY(10px) scale(.97); transition: transform .28s cubic-bezier(.16,1,.3,1); }
.login-success-overlay.is-visible .login-success-card { transform: translateY(0) scale(1); }
.login-success-icon { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 17px; border-radius: 50%; background: linear-gradient(145deg,#13c994,#0b9b72); box-shadow: 0 10px 24px rgba(11,155,114,.22); animation: successIconPop .42s .06s cubic-bezier(.16,1,.3,1) both; }
.login-success-icon svg { width: 34px; height: 34px; }
.login-success-icon path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: successTick .32s .25s ease-out forwards; }
.login-success-card h2 { margin: 0 0 7px; color: #112b4e; font: 700 22px/1.2 inherit; font-family: inherit; }
.login-success-card p { margin: 0; color: #677b96; font-size: 13px; line-height: 1.5; }
.login-success-progress { height: 3px; margin-top: 20px; overflow: hidden; border-radius: 3px; background: #e8eef7; }
.login-success-progress span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#13b787,#2d6bff); transform: scaleX(0); transform-origin: left; animation: successProgress 1s linear .04s forwards; }
@keyframes successIconPop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
@keyframes successTick { to { stroke-dashoffset: 0; } }
@keyframes successProgress { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .auth-mode-switch:before, .admin-login form:not([hidden]), .pin-login-form:not([hidden]), .login-success-overlay, .login-success-card, .login-success-icon, .login-success-icon path, .login-success-progress span { animation: none !important; transition: none !important; }
  .login-success-overlay.is-visible { opacity: 1; }
  .login-success-overlay.is-visible .login-success-card { transform: none; }
  .login-success-icon path { stroke-dashoffset: 0; }
}

.login-success-card h2 { margin: 0 0 7px; color: #112b4e; font-family: inherit; font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }

.admin-login form.pin-login-form:not([hidden]) { animation: pinFormIn .3s cubic-bezier(.16,1,.3,1) both; }
